[klibc] pread and pwrite syscalls fix for 32bit arches, patch attached

Helge Deller t.glaser at tarent.de
Fri Sep 5 08:37:01 PDT 2014

Source: klibc
Version: 2.0.2
Severity: important
Tags: Patch

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. 

The attached bug fixes it for the hppa architecture.
It would be nice if you could apply it.


Patch: Add pread and pwrite 32bit syscall wrappers
Signed-off-by: Helge Deller <deller at gmx.de>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: klibc_hppa.patch
Type: text/x-patch
Size: 3608 bytes
Desc: not available
URL: <http://www.zytor.com/pipermail/klibc/attachments/20140905/62726cc4/attachment.bin>

More information about the klibc mailing list