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

Sergey Korolev s.korolev at ndmsystems.com
Sun Jun 10 22:28:00 CEST 2018


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.uclibc-ng.org/pipermail/devel/attachments/20180610/e61d6dfd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fix-prototypes-for-preadv-pwritev.patch
Type: text/x-patch
Size: 1270 bytes
Desc: not available
URL: <http://mailman.uclibc-ng.org/pipermail/devel/attachments/20180610/e61d6dfd/attachment.bin>


More information about the devel mailing list