[uclibc-ng-devel] _FILE_OFFSET_BITS=64 and preadv/pwritev prototypes

Waldemar Brodkorb wbx at uclibc-ng.org
Mon Jun 11 05:14:23 CEST 2018


Hi Sergey,
what does the patch fixes?
Compiler warnings? Runtime issues? ...

best regards
 Waldemar 

> Am 10.06.2018 um 22:28 schrieb Sergey Korolev <s.korolev at ndmsystems.com>:
> 
> As preadv and pwritev accept off_t type the prototypes should be declared as follows
> 
> extern ssize_t preadv (int __fd, const struct iovec *__iovec, int __count,
>                        off_t __offset) __wur;
>                                                                               
> extern ssize_t pwritev (int __fd, const struct iovec *__iovec, int __count,
>                         off_t __offset) __wur;
> 
> to take into account _FILE_OFFSET_BITS=64 define.
> 
> I am not sure but probably it is better to redeclare these prototypes
> by analogy with sendfile using __REDIRECT_NTH.
> <Fix-prototypes-for-preadv-pwritev.patch>
> _______________________________________________
> devel mailing list
> devel at uclibc-ng.org
> https://mailman.uclibc-ng.org/cgi-bin/mailman/listinfo/devel



More information about the devel mailing list