From aa398f56fa398f2202b04e82c67f822f3233786f Mon Sep 17 00:00:00 2001
From: Rich Felker <dalias@aerifal.cx>
Date: Sun, 20 Mar 2011 00:16:43 -0400
Subject: global cleanup to use the new syscall interface

---
 src/fcntl/fcntl.c  | 2 +-
 src/fcntl/open.c   | 2 +-
 src/fcntl/openat.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/fcntl')

diff --git a/src/fcntl/fcntl.c b/src/fcntl/fcntl.c
index 464dbf00..ab0ebecf 100644
--- a/src/fcntl/fcntl.c
+++ b/src/fcntl/fcntl.c
@@ -14,7 +14,7 @@ int fcntl(int fd, int cmd, ...)
 	va_end(ap);
 	if (cmd == F_SETFL) arg |= O_LARGEFILE;
 	if (cmd == F_SETLKW) CANCELPT_BEGIN;
-	r = __syscall_fcntl(fd, cmd, arg);
+	r = syscall(SYS_fcntl, fd, cmd, arg);
 	if (cmd == F_SETLKW) CANCELPT_END;
 	return r;
 }
diff --git a/src/fcntl/open.c b/src/fcntl/open.c
index 4c1a591d..064d298c 100644
--- a/src/fcntl/open.c
+++ b/src/fcntl/open.c
@@ -13,7 +13,7 @@ int open(const char *filename, int flags, ...)
 	mode = va_arg(ap, mode_t);
 	va_end(ap);
 	CANCELPT_BEGIN;
-	r = __syscall_open(filename, flags, mode);
+	r = syscall(SYS_open, filename, flags|O_LARGEFILE, mode);
 	CANCELPT_END;
 	return r;
 }
diff --git a/src/fcntl/openat.c b/src/fcntl/openat.c
index eefa0901..1a2d9535 100644
--- a/src/fcntl/openat.c
+++ b/src/fcntl/openat.c
@@ -13,7 +13,7 @@ int openat(int fd, const char *filename, int flags, ...)
 	mode = va_arg(ap, mode_t);
 	va_end(ap);
 	CANCELPT_BEGIN;
-	r = syscall4(__NR_openat, fd, (long)filename, flags|O_LARGEFILE, mode);
+	r = syscall(SYS_openat, fd, filename, flags|O_LARGEFILE, mode);
 	CANCELPT_END;
 	return r;
 }
-- 
cgit v1.2.3-70-g09d2