[parted-devel] [PATCH] libparted: Use syscall() interface instead of deprecated _syscall5() on linux
Anush Elangovan
anush at chromium.org
Tue May 11 17:49:52 UTC 2010
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>
---
libparted/arch/linux.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
index 38f4e31..2090331 100644
--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -1578,20 +1578,13 @@ linux_refresh_close (PedDevice* dev)
#if SIZEOF_OFF_T < 8
-static _syscall5(int,_llseek,
- unsigned int, fd,
- unsigned long, offset_high,
- unsigned long, offset_low,
- loff_t*, result,
- unsigned int, origin)
-
loff_t
llseek (unsigned int fd, loff_t offset, unsigned int whence)
{
loff_t result;
int retval;
- retval = _llseek(fd,
+ retval = syscall(__NR__llseek, fd,
((unsigned long long)offset) >> 32,
((unsigned long long)offset) & 0xffffffff,
&result,
--
1.6.4.4
More information about the parted-devel
mailing list