[parted-devel] [PATCH] libparted: Use syscall() interface instead of deprecated _syscall5() on linux

H. Peter Anvin hpa at zytor.com
Wed May 12 03:46:15 UTC 2010


On 05/11/2010 10:49 AM, Anush Elangovan wrote:
> Please find below a patch to make libparted use the linux syscall()
> interface instead of the deprecated _syscall5().
> 
> Signed-off-by: Anush Elangovan <anush at chromium.org>

syscall(2) is just plain broken on a whole bunch of architectures.
Avoid like the plague.

In this case, the proper thing to do is to use lseek64(), which is
available on any even remotely recent Linux libc (unless, of course,
off_t is already 64 bits.)

	-hpa

-- 
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.




More information about the parted-devel mailing list