Implement faccessat without AT_EACCESS flag
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 28 May 2017 17:29:33 +0000 (17:29 +0000)
committerAurelien Jarno <aurel32@debian.org>
Sun, 28 May 2017 17:29:33 +0000 (17:29 +0000)
commit9193f8cf5769bb5c60dac1ed983a279191f28ed6
tree1fe2ee38b8066b380e56658d0b5bc4e0df808201
parent614fdd11708c698904f4c4e29305a73baab5b2f8
Implement faccessat without AT_EACCESS flag

* hurd/hurd/fd.h: Include <fcntl.h>
(__hurd_at_flags): New function.
* hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
with call to __hurd_at_flags.
* include/unistd.h (__faccessat): Add declaration.
* sysdeps/mach/hurd/access.c (__access): Move implementation to
__faccessat, and replace it with a call to __faccessat.
* sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
with a call to __faccessat.
* sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
(__faccessat): ... this. Move implementation of __access into it when
AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
reauthenticate_cwdir_at helper to implement AT mechanism.
(faccessat): Define weak alias.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-faccessat.diff
hurd/hurd/fd.h
hurd/lookup-at.c
include/unistd.h
sysdeps/mach/hurd/access.c
sysdeps/mach/hurd/euidaccess.c
sysdeps/mach/hurd/faccessat.c