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/process/posix_spawn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/process') diff --git a/src/process/posix_spawn.c b/src/process/posix_spawn.c index f675a13c..08644f51 100644 --- a/src/process/posix_spawn.c +++ b/src/process/posix_spawn.c @@ -96,8 +96,7 @@ static int child(void *args_vp) goto fail; break; case FDOP_OPEN: - fd = __syscall(SYS_open, op->path, - op->oflag | O_LARGEFILE, op->mode); + fd = __sys_open(op->path, op->oflag, op->mode); if ((ret=fd) < 0) goto fail; if (fd != op->fd) { if ((ret=__syscall(SYS_dup2, fd, op->fd))<0) -- cgit v1.2.1