Hash :
eea9688d
Author :
Date :
2022-03-09T13:54:53
statat: now obsolete * lib/openat.h (statat, lstatat): Now deprecated. All uses removed, and replaced with fstatat. * modules/statat: Mark as obsolete, because it’s confusing: it’s not clear whether it should use AT_NO_AUTOMOUNT, which is implied by stat and by lstat, but not by fstatat. * tests/test-statat.c: Disable deprecated-declarations warnings.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
Description:
unlinkat() function: Remove a file at a directory.
Files:
lib/unlinkat.c
lib/at-func.c
m4/unlinkat.m4
m4/lstat.m4
Depends-on:
unistd
extensions
fcntl-h [test $HAVE_UNLINKAT = 0 || test $REPLACE_UNLINKAT = 1]
openat-h [test $HAVE_UNLINKAT = 0 || test $REPLACE_UNLINKAT = 1]
sys_stat [test $HAVE_UNLINKAT = 0 || test $REPLACE_UNLINKAT = 1]
at-internal [test $HAVE_UNLINKAT = 0]
errno [test $HAVE_UNLINKAT = 0]
fchdir [test $HAVE_UNLINKAT = 0]
filename [test $HAVE_UNLINKAT = 0]
openat-die [test $HAVE_UNLINKAT = 0]
rmdir [test $HAVE_UNLINKAT = 0]
save-cwd [test $HAVE_UNLINKAT = 0]
unlink [test $HAVE_UNLINKAT = 0]
configure.ac:
gl_FUNC_UNLINKAT
gl_CONDITIONAL([GL_COND_OBJ_UNLINKAT],
[test $HAVE_UNLINKAT = 0 || test $REPLACE_UNLINKAT = 1])
gl_UNISTD_MODULE_INDICATOR([unlinkat])
Makefile.am:
if GL_COND_OBJ_UNLINKAT
lib_SOURCES += unlinkat.c
endif
Include:
<unistd.h>
License:
GPL
Maintainer:
Jim Meyering, Eric Blake