From 594c827a22124ae550b9a877b8188e0898dff8db Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 24 May 2014 22:54:05 -0400 Subject: support kernels with no SYS_open syscall, only SYS_openat open is handled specially because it is used from so many places, in so many variants (2 or 3 arguments, setting errno or not, and cancellable or not). trying to do it as a function would not only increase bloat, but would also risk subtle breakage. this is the first step towards supporting "new" archs where linux lacks "old" syscalls. --- src/fcntl/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fcntl/open.c') diff --git a/src/fcntl/open.c b/src/fcntl/open.c index be442089..0594ed7e 100644 --- a/src/fcntl/open.c +++ b/src/fcntl/open.c @@ -10,7 +10,7 @@ int open(const char *filename, int flags, ...) va_start(ap, flags); mode = va_arg(ap, mode_t); va_end(ap); - return syscall_cp(SYS_open, filename, flags|O_LARGEFILE, mode); + return sys_open_cp(filename, flags, mode); } LFS64(open); -- cgit v1.2.1