Please find below a patch to make libparted use the linux syscall()
interface instead of the deprecated _syscall5().

Signed-off-by: Anush Elangovan <[email protected]>
---
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

_______________________________________________
parted-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/parted-devel

Reply via email to