Add pread and pwrite 32bit syscall wrappers for parisc
authorHelge Deller <deller@gmx.de>
Wed, 23 Apr 2014 20:52:53 +0000 (22:52 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 6 Jan 2019 19:33:01 +0000 (19:33 +0000)
commitfd0ae197b37f2082610abe545fb4ad68bc7ce7bd
tree172e54c48f0db281d5ff4cbb6ad24e1e89bb25ce
parent221dea7732125f15ffe8e6273b945e7a38ca59a1
Add pread and pwrite 32bit syscall wrappers for parisc

On the hppa arch (32bit userspace and 32 or 64bit kernel), the fstype
program fails to detect the filesystem.  The reason for this failure
is, that fstype calls the pread() syscall, which has on some
architectures with 32bit userspace a different calling syntax.  I
noticed this bug on hppa, but I assume s390 (32bit) and others might
run into similiar issues.

Signed-off-by: Helge Deller <deller@gmx.de>
Gbp-Pq: Name klibc-add-pread-and-pwrite-32bit-syscall-wrappers-for-parisc.patch
usr/include/endian.h
usr/klibc/Kbuild
usr/klibc/SYSCALLS.def
usr/klibc/pread.c [new file with mode: 0644]
usr/klibc/pwrite.c [new file with mode: 0644]