[PATCH 3/4] Consolidate pread/pread64 implementations

Mike Frysinger vapier@gentoo.org
Thu Jan 7 19:52:00 GMT 2016


On 07 Jan 2016 15:18, Adhemerval Zanella wrote:
> From: Adhemerval Zanella <adhemerval.zanella@linaro.com>
> 
> This patch consolidates all the pread/pread64 implementation for Linux
> in only one (sysdeps/unix/sysv/linux/pread.c).  It also removes the
> syscall from the auto-generation using assembly macros.
> 
> For pread{64} offset argument placement the new SYSCALL_LL{64} macro
> is used.  For pread ports that do not define __NR_pread will use
> __NR_pread64 and for pread64 ports that dot define __NR_pread64 will
> use __NR_pread for the syscall.

just to make sure i'm reading this correctly, in the past 64-bit ports
would have a pread symbol and pread64 would be an alias to it.  but with
this patch, 64-bit ports now have two symbols w/identical code ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20160107/26761ccf/attachment.sig>


More information about the Libc-alpha mailing list