[klibc] 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 <benh@debian.org>
Mon, 28 Jun 2021 14:24:37 +0000 (15:24 +0100)
commitcbf6dc98f1ed87691eb894a5c3dee2e7fcf6ab9c
treeddc573089eef25b5ebd8617373a574431bc1cb45
parent663f32320aa5b66b42f69990cad88eb324afdb3c
[klibc] Add pread and pwrite 32bit syscall wrappers for parisc

Bug-Debian: https://bugs.debian.org/745660
Forwarded: http://www.zytor.com/pipermail/klibc/2016-January/003880.html

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]