about summary refs log tree commit diff
path: root/src/fcntl
diff options
context:
space:
mode:
Diffstat (limited to 'src/fcntl')
-rw-r--r--src/fcntl/fcntl.c2
-rw-r--r--src/fcntl/open.c2
-rw-r--r--src/fcntl/openat.c2
3 files changed, 3 insertions, 3 deletions
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;
 }