diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-05-24 22:54:05 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-05-24 22:54:05 -0400 |
commit | 594c827a22124ae550b9a877b8188e0898dff8db (patch) | |
tree | f48f403bf1b6aa543f20783fa501c573aaa3a63e /src/misc/realpath.c | |
parent | 44d28e55121f9a7d736df59c09b963e17c8c4cfa (diff) | |
download | musl-594c827a22124ae550b9a877b8188e0898dff8db.tar.gz musl-594c827a22124ae550b9a877b8188e0898dff8db.tar.xz musl-594c827a22124ae550b9a877b8188e0898dff8db.zip |
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.
Diffstat (limited to 'src/misc/realpath.c')
-rw-r--r-- | src/misc/realpath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/realpath.c b/src/misc/realpath.c index 4cc7e7de..88c849cd 100644 --- a/src/misc/realpath.c +++ b/src/misc/realpath.c @@ -22,7 +22,7 @@ char *realpath(const char *restrict filename, char *restrict resolved) return 0; } - fd = syscall(SYS_open, filename, O_PATH|O_NONBLOCK|O_CLOEXEC|O_LARGEFILE); + fd = sys_open(filename, O_PATH|O_NONBLOCK|O_CLOEXEC); if (fd < 0) return 0; __procfdname(buf, fd); |