support kernels with no SYS_open syscall, only SYS_openat
authorRich Felker <dalias@aerifal.cx>
Sun, 25 May 2014 02:54:05 +0000 (22:54 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 25 May 2014 02:54:05 +0000 (22:54 -0400)
commit594c827a22124ae550b9a877b8188e0898dff8db
treef48f403bf1b6aa543f20783fa501c573aaa3a63e
parent44d28e55121f9a7d736df59c09b963e17c8c4cfa
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/env/__libc_start_main.c
src/fcntl/open.c
src/internal/syscall.h
src/misc/realpath.c
src/process/posix_spawn.c
src/stdio/__fopen_rb_ca.c
src/stdio/fopen.c
src/stdio/tmpfile.c
src/time/__map_file.c