faccessat, etc.: support AT_FDCWD-only use
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 Oct 2012 05:31:28 +0000 (22:31 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 Oct 2012 05:54:06 +0000 (22:54 -0700)
commit290d23ac868ab45c255654966b2d8fde99e3fa80
tree06e9dcdb6bfe5cb13d45386bd1de91a0c76ae82b
parentf395c21b24576a9b50392f4556f9caf0335df218
faccessat, etc.: support AT_FDCWD-only use

* lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
this function only if its first argument is AT_FDCWD.
Emacs wants faccessat for AT_EACCESS but not for any first-arg
values other than AT_FDCWD, so it doesn't want all the openat
machinery with fchdir etc.
* modules/faccessat, modules/fchmodat, modules/fchownat (Files):
* modules/fstatat, modules/mkdirat, modules/openat (Files):
* modules/unlinkat (Files):
Remove lib/openat-priv.h, as at-internal supplies this file.
Removing this file here allows us to support programs like Emacs
that avoid at-internal.
ChangeLog
lib/at-func.c
modules/faccessat
modules/fchmodat
modules/fchownat
modules/fstatat
modules/mkdirat
modules/openat
modules/unlinkat