This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/2] Consolidate preadv/preadv64 implementation


On 02 Jun 2016 08:26, Adhemerval Zanella wrote:
> --- a/sysdeps/unix/sysv/linux/preadv64.c
> +++ b/sysdeps/unix/sysv/linux/preadv64.c
>
> +#ifndef __NR_preadv64
> +# define __NR_preadv64 __NR_preadv
> +#endif
> +
> +#ifdef __ASSUME_PREADV
> +ssize_t
> +preadv64 (int fd, const struct iovec *vector, int count, off64_t offset)
> +{
> +  return SYSCALL_CANCEL (preadv64, fd, vector, count,
> +			 __ALIGNMENT_ARG SYSCALL_LL64 (offset));
> +}
> +#else
> +static ssize_t __atomic_preadv_replacement (int, const struct iovec *,
> +                                            int, off_t) internal_function;
> +ssize_t
> +preadv64 (int fd, const struct iovec *vector, int count, off64_t offset)
> +{
> +#ifdef __NR_preadv64

seems like __NR_preadv64 is always defined now ?
-mike

Attachment: signature.asc
Description: Digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]