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] | |
On 18 Nov 2015 12:02, Adhemerval Zanella wrote:
> 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.
pretty sure you just broke sh here. while it doesn't have the 64-bit
arg alignment issue, it has a wart where it copied the kernel interface
of one. you can see it in the files you deleted:
> --- a/sysdeps/unix/sysv/linux/sh/pread.c
> +++ /dev/null
>
> -ssize_t
> -__libc_pread (int fd, void *buf, size_t count, off_t offset)
> -{
> - return SYSCALL_CANCEL (pread, fd, buf, count, 0,
> - __LONG_LONG_PAIR (offset >> 31, offset));
> -}
> --- a/sysdeps/unix/sysv/linux/sh/pread64.c
> +++ /dev/null
>
> -ssize_t
> -__libc_pread64 (int fd, void *buf, size_t count, off64_t offset)
> -{
> - return SYSCALL_CANCEL (pread, fd, buf, count, 0,
> - __LONG_LONG_PAIR ((off_t) (offset >> 32),
> - (off_t) (offset & 0xffffffff)));
> -}
-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] |