diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-03-09 13:54:53 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-03-09 13:57:58 -0800 |
commit | eea9688d521634c58efa81130e509f647bbd9ff9 (patch) | |
tree | 2404ead6ddb92c99b52979aee4238a9c91fed1c9 /modules | |
parent | 44f347ce4009cd0100d0e6562939a032b16d6db1 (diff) | |
download | gnulib-eea9688d521634c58efa81130e509f647bbd9ff9.tar.gz |
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.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/fchownat | 1 | ||||
-rw-r--r-- | modules/renameatu | 1 | ||||
-rw-r--r-- | modules/statat | 7 | ||||
-rw-r--r-- | modules/unlinkat | 1 |
4 files changed, 7 insertions, 3 deletions
diff --git a/modules/fchownat b/modules/fchownat index ea2f2e678c..49c4b18096 100644 --- a/modules/fchownat +++ b/modules/fchownat @@ -19,7 +19,6 @@ lchown [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1] openat-die [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1] openat-h [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1] save-cwd [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1] -statat [test $REPLACE_FCHOWNAT = 1] configure.ac: gl_FUNC_FCHOWNAT diff --git a/modules/renameatu b/modules/renameatu index 5ce8e47587..e0c1ce3176 100644 --- a/modules/renameatu +++ b/modules/renameatu @@ -13,7 +13,6 @@ extensions fcntl-h filenamecat-lgpl [test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1] openat-h [test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1] -statat [test $REPLACE_RENAMEAT = 1] stdbool [test $REPLACE_RENAMEAT = 1] at-internal [test $HAVE_RENAMEAT = 0] filename [test $HAVE_RENAMEAT = 0] diff --git a/modules/statat b/modules/statat index 074d342bd8..bf274e054d 100644 --- a/modules/statat +++ b/modules/statat @@ -1,6 +1,13 @@ Description: statat() and lstatat() functions: Return info about a file at a directory. +Status: +obsolete + +Notice: +This module is obsolete. Please use fstatat instead, and decide +whether you want AT_NO_AUTOMOUNT in each fstatat call. + Files: lib/statat.c diff --git a/modules/unlinkat b/modules/unlinkat index 0efc1cc1b2..ed11c1e971 100644 --- a/modules/unlinkat +++ b/modules/unlinkat @@ -13,7 +13,6 @@ 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] -statat [test $REPLACE_UNLINKAT = 1] at-internal [test $HAVE_UNLINKAT = 0] errno [test $HAVE_UNLINKAT = 0] fchdir [test $HAVE_UNLINKAT = 0] |