]> Savannah Git Hosting - gnulib.git/commitdiff
Rename module sys_stat to sys_stat-h.
authorBruno Haible <bruno@clisp.org>
Fri, 27 Dec 2024 22:40:10 +0000 (23:40 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 27 Dec 2024 22:40:49 +0000 (23:40 +0100)
* modules/sys_stat-h: Renamed from modules/sys_stat.
* modules/sys_stat-h-tests: Renamed from modules/sys_stat-tests.
* modules/sys_stat-h-c++-tests: Renamed from modules/sys_stat-c++-tests.
* tests/test-sys_stat-h.c: Renamed from tests/test-sys_stat.c.
* tests/test-sys_stat-h-c++.cc: Renamed from tests/test-sys_stat-c++.cc.
* doc/posix-headers/sys_stat.texi: Update.
* doc/posix-functions/mkdir.texi: Update.
* modules/* (Depends-on): Update.
* modules/sys_stat: New file.

68 files changed:
ChangeLog
doc/posix-functions/mkdir.texi
doc/posix-headers/sys_stat.texi
modules/acl-permissions
modules/at-internal
modules/c-file-type
modules/canonicalize
modules/canonicalize-lgpl
modules/chmod
modules/chown
modules/crypto/af_alg
modules/euidaccess
modules/fchdir
modules/fchmodat
modules/file-type
modules/filemode
modules/findprog
modules/findprog-in
modules/findprog-lgpl
modules/fstat
modules/fstatat
modules/futimens
modules/getcwd-tests
modules/getumask
modules/glob-h
modules/isapipe
modules/largefile-tests
modules/lchmod
modules/lchown
modules/link
modules/link-tests
modules/lstat
modules/mkancesdirs
modules/mkdir
modules/mkdir-p
modules/mkdirat
modules/mkfifo
modules/mkfifoat
modules/mknod
modules/modechange
modules/openat
modules/openat-h
modules/posixcheck
modules/read-file
modules/relocatable-prog-wrapper
modules/remove-tests
modules/rename-tests
modules/rmdir
modules/stat
modules/stat-size
modules/supersede
modules/sys_stat
modules/sys_stat-c++-tests [deleted file]
modules/sys_stat-h [new file with mode: 0644]
modules/sys_stat-h-c++-tests [new file with mode: 0644]
modules/sys_stat-h-tests [new file with mode: 0644]
modules/sys_stat-tests [deleted file]
modules/tempname
modules/tmpdir
modules/truncate
modules/unlinkat
modules/utimens
modules/utimensat
modules/windows-stat-override
tests/test-sys_stat-c++.cc [deleted file]
tests/test-sys_stat-h-c++.cc [new file with mode: 0644]
tests/test-sys_stat-h.c [new file with mode: 0644]
tests/test-sys_stat.c [deleted file]

index c3e27322714a7aeabcad8c3bd51f78f69e6b479c..b4a8cf5df02ebcd36718a4cd3ac966c1085c14d5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2024-12-27  Bruno Haible  <bruno@clisp.org>
+
+       Rename module sys_stat to sys_stat-h.
+       * modules/sys_stat-h: Renamed from modules/sys_stat.
+       * modules/sys_stat-h-tests: Renamed from modules/sys_stat-tests.
+       * modules/sys_stat-h-c++-tests: Renamed from modules/sys_stat-c++-tests.
+       * tests/test-sys_stat-h.c: Renamed from tests/test-sys_stat.c.
+       * tests/test-sys_stat-h-c++.cc: Renamed from tests/test-sys_stat-c++.cc.
+       * doc/posix-headers/sys_stat.texi: Update.
+       * doc/posix-functions/mkdir.texi: Update.
+       * modules/* (Depends-on): Update.
+       * modules/sys_stat: New file.
+
 2024-12-27  Bruno Haible  <bruno@clisp.org>
 
        Rename module sys_socket to sys_socket-h.
index 74d4cee69b51049969cd7df34ebbf92f4d866786..b239acf4cad78db3593a32670531737d0ccf7fb8 100644 (file)
@@ -4,11 +4,11 @@
 
 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/functions/mkdir.html}
 
-Gnulib module: sys_stat or mkdir
-@mindex sys_stat
+Gnulib module: sys_stat-h or mkdir
+@mindex sys_stat-h
 @mindex mkdir
 
-Portability problems fixed by either Gnulib module @code{sys_stat} or @code{mkdir}:
+Portability problems fixed by either Gnulib module @code{sys_stat-h} or @code{mkdir}:
 @itemize
 @item
 This function is declared in different header files (namely, @code{<io.h>} or
index 48ff6e77c2d64f82445eb9996999be50bc984bfb..bc889e986fc303e8824cd31447a2ea3c1a182df9 100644 (file)
@@ -3,10 +3,10 @@
 
 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_stat.h.html}
 
-Gnulib module: sys_stat
-@mindex sys_stat
+Gnulib module: sys_stat-h
+@mindex sys_stat-h
 
-Portability problems fixed by Gnulib module @code{sys_stat}:
+Portability problems fixed by Gnulib module @code{sys_stat-h}:
 @itemize
 @item
 The type @code{mode_t} is not defined on some platforms:
@@ -35,7 +35,7 @@ Use the gnulib module
 @end itemize
 
 @mindex windows-stat-inodes
-Portability problems fixed by Gnulib module @code{sys_stat}, together with module @code{windows-stat-inodes}:
+Portability problems fixed by Gnulib module @code{sys_stat-h}, together with module @code{windows-stat-inodes}:
 @itemize
 @item
 On Windows platforms (excluding Cygwin), @code{st_ino} is always 0.
index 08dcea466d718c6a67bc4284e60635b4d7685cba..2221292c347f3c086c2accb4d820533f420b4bc0 100644 (file)
@@ -17,7 +17,7 @@ fstat
 minmax
 stat
 stdbool-h
-sys_stat
+sys_stat-h
 
 configure.ac:
 gl_FUNC_ACL
index 60627dbdeb7be4e272fc94f2f42dbca5f7c7ee1d..4b70b1f61abfd97738943a677171564cee27107c 100644 (file)
@@ -10,7 +10,7 @@ errno-h
 fcntl-h
 intprops
 open       [case $host_os in mingw* | windows*) false;; *) :;; esac]
-sys_stat
+sys_stat-h
 unistd
 
 configure.ac:
index 2abc601ed8a063b7204d52bab1118413920f42a0..bfc57b9c8df3d39e9fac55f71e8dee9bdd58d67f 100644 (file)
@@ -6,7 +6,7 @@ lib/file-type.h
 lib/c-file-type.c
 
 Depends-on:
-sys_stat
+sys_stat-h
 
 configure.ac:
 
index 39dcf64f694a3c2669b05ee3b375f99133453c70..6abcde32cbcbb243df217b1087e23cb3429f2297 100644 (file)
@@ -27,7 +27,7 @@ readlink
 glibc-internal/scratch_buffer
 stat
 stdbool-h
-sys_stat
+sys_stat-h
 unistd
 xalloc-die
 
index b05312a4a835843b4b12b4b24e5bc2c285c60e35..04d68e55630bbc6382ff2a3ebd184571e78fc677 100644 (file)
@@ -27,7 +27,7 @@ readlink                      [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $RE
 glibc-internal/scratch_buffer [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
 stat                          [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
 stdbool-h                     [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
-sys_stat                      [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
+sys_stat-h                    [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
 unistd                        [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
 
 configure.ac:
index 0efe7b0019764bd683345fb703cfd2260eba0b71..bd81bba2e3fde95c7fff6b1799399a5bf88c53ab 100644 (file)
@@ -6,7 +6,7 @@ lib/chmod.c
 m4/chmod.m4
 
 Depends-on:
-sys_stat
+sys_stat-h
 lstat           [test $REPLACE_CHMOD = 1]
 
 configure.ac:
index 348ae35a0ef48b71843a703cb02a58b1e423fc29..2ab3c3fd973237c5932539f0e4869507ef1d7450 100644 (file)
@@ -12,7 +12,7 @@ fstat           [test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1]
 open            [test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1]
 stat            [test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1]
 stdbool-h       [test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1]
-sys_stat        [test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1]
+sys_stat-h      [test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1]
 
 configure.ac:
 gl_FUNC_CHOWN
index ffb452056ccf5c1cff6a84cdedabe65a43430a82..86384c4775023ffc58ca67ab34281406dceb9f6a 100644 (file)
@@ -14,7 +14,7 @@ fseeko          [test $USE_AF_ALG = 1]
 ftello          [test $USE_AF_ALG = 1]
 fstat           [test $USE_AF_ALG = 1]
 sys_socket-h
-sys_stat
+sys_stat-h
 
 configure.ac:
 gl_AF_ALG
index 627f2de96d459720c2070a3e7be0d6386f577116..5fa0e3dc4a668afb2fc43a647c45cf9eb4f3cb01 100644 (file)
@@ -13,7 +13,7 @@ fcntl-h
 access          [test $HAVE_EUIDACCESS = 0]
 group-member    [test $HAVE_EUIDACCESS = 0]
 stat            [test $HAVE_EUIDACCESS = 0]
-sys_stat        [test $HAVE_EUIDACCESS = 0]
+sys_stat-h      [test $HAVE_EUIDACCESS = 0]
 
 configure.ac:
 gl_FUNC_EUIDACCESS
index 708922b0441a9daba9c32d077296002317049f13..e9430bcc7204247795baa74af812f5860f930677 100644 (file)
@@ -26,7 +26,7 @@ realloc-posix    [test $HAVE_FCHDIR = 0 || test $REPLACE_FCHDIR = 1]
 stat             [test $HAVE_FCHDIR = 0 || test $REPLACE_FCHDIR = 1]
 stdbool-h        [test $HAVE_FCHDIR = 0 || test $REPLACE_FCHDIR = 1]
 strdup-posix     [test $HAVE_FCHDIR = 0 || test $REPLACE_FCHDIR = 1]
-sys_stat         [test $HAVE_FCHDIR = 0 || test $REPLACE_FCHDIR = 1]
+sys_stat-h       [test $HAVE_FCHDIR = 0 || test $REPLACE_FCHDIR = 1]
 
 configure.ac:
 gl_FUNC_FCHDIR
index d7698cd3911721ef5e0326ae6efa029024227e6d..c99baf63c3566580c926981fe4e01168ac50ac6f 100644 (file)
@@ -7,7 +7,7 @@ lib/at-func.c
 m4/fchmodat.m4
 
 Depends-on:
-sys_stat
+sys_stat-h
 extensions
 errno-h         [test $HAVE_FCHMODAT = 0 || test $REPLACE_FCHMODAT = 1]
 fcntl-h         [test $HAVE_FCHMODAT = 0 || test $REPLACE_FCHMODAT = 1]
index 5f472e3c1a9b80990b7d60948a67ebe8c9c1efc3..42ed51a60600cab31e76bffde62d15887651e6fe 100644 (file)
@@ -9,7 +9,7 @@ Depends-on:
 c-file-type
 gettext-h
 gnulib-i18n
-sys_stat
+sys_stat-h
 
 configure.ac:
 
index 95d3e0f714e276e5eb5b9ca9324e6b10b2cb6bc6..4ddd2c174c9b911f8bda9741ddd0eece1a314fb4 100644 (file)
@@ -8,7 +8,7 @@ lib/filemode.c
 m4/filemode.m4
 
 Depends-on:
-sys_stat
+sys_stat-h
 
 configure.ac:
 gl_FILEMODE
index 5839935d3a45573fc001db07df188aa548eae242..dd35034b75c05db15523bebf483fbdc4fb8ba863 100644 (file)
@@ -9,7 +9,7 @@ m4/eaccess.m4
 
 Depends-on:
 stdbool-h
-sys_stat
+sys_stat-h
 xalloc
 xconcat-filename
 access
index 87efc31eb51f03459771458d27ac5fe730981c2d..9710899134cdda21968ace5c8cb8d80622f9db55 100644 (file)
@@ -9,7 +9,7 @@ m4/eaccess.m4
 
 Depends-on:
 stdbool-h
-sys_stat
+sys_stat-h
 filename
 concat-filename
 access
index d96bb0e13e0449e075ba6fc235663292e7ac4477..98301787ba6dc57d896e6b5f63efc09fe570701f 100644 (file)
@@ -10,7 +10,7 @@ m4/eaccess.m4
 
 Depends-on:
 stdbool-h
-sys_stat
+sys_stat-h
 strdup
 concat-filename
 access
index 0c168a7bcd7888b092ba0d91c3358087931c82ec..f7468dbc1b2bd436a3e76ebac72151f58bb7606e 100644 (file)
@@ -8,7 +8,7 @@ lib/stat-w32.c
 m4/fstat.m4
 
 Depends-on:
-sys_stat
+sys_stat-h
 largefile
 pathmax         [test $REPLACE_FSTAT = 1]
 stat            [test $REPLACE_FSTAT = 1]
index aa129072e398630120e64f6b5fee7b7c8d549746..93abb34043eb1b0b3e56a96bc06c8d043965295b 100644 (file)
@@ -8,7 +8,7 @@ m4/fstatat.m4
 m4/lstat.m4
 
 Depends-on:
-sys_stat
+sys_stat-h
 extensions
 at-internal     [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
 errno-h         [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
index e63ff78b7812519ab2154b6fd24047a6ac553a57..34dfe4ab13726cb98486c7a2fb267dc7c9c01a0c 100644 (file)
@@ -6,7 +6,7 @@ lib/futimens.c
 m4/futimens.m4
 
 Depends-on:
-sys_stat
+sys_stat-h
 extensions
 utimens         [test $HAVE_FUTIMENS = 0 || test $REPLACE_FUTIMENS = 1]
 
index 60404049a0ab4d142bb7b57ad83ebb5b8c215007..fa63aab42a470a6e1e1971312d3f32e7aa90992a 100644 (file)
@@ -10,7 +10,7 @@ fcntl-h
 getcwd-lgpl
 pathmax
 stdbool-h
-sys_stat
+sys_stat-h
 test-framework-sh
 
 configure.ac:
index 5e6cc2f2112fcf6b5c630a742c28c0707ea4c41f..8484c4b15de8279ddd19ac4aa4abe336a0557f65 100644 (file)
@@ -6,7 +6,7 @@ lib/getumask.c
 m4/getumask.m4
 
 Depends-on:
-sys_stat
+sys_stat-h
 extensions
 c99             [test $HAVE_GETUMASK = 0]
 unistd          [test $HAVE_GETUMASK = 0]
index 60d7cde096a85733fe78d6f4921def197526b00a..4290d9ffcc6c41e156f7d788af69d8f032c24965 100644 (file)
@@ -15,7 +15,7 @@ snippet/c++defs
 snippet/warn-on-use
 libc-config
 lstat
-sys_stat
+sys_stat-h
 
 configure.ac:
 gl_GLOB_H
index 0f144b7a44dc92612464ac3b94bc98458901c48a..5e401bfcf00ecfe09ec4b72c426e1058cf7eff51 100644 (file)
@@ -8,7 +8,7 @@ m4/isapipe.m4
 
 Depends-on:
 stdbool-h       [test $HAVE_ISAPIPE = 0]
-sys_stat        [test $HAVE_ISAPIPE = 0]
+sys_stat-h      [test $HAVE_ISAPIPE = 0]
 unistd          [test $HAVE_ISAPIPE = 0]
 msvc-nothrow    [test $HAVE_ISAPIPE = 0]
 fstat           [test $HAVE_ISAPIPE = 0]
index bc55b3db63a71c3a3f73bc306f75956305b8eed7..b94f02c4c5a433d3b53f1fe2642bdbeea8f60807 100644 (file)
@@ -4,7 +4,7 @@ tests/test-largefile.c
 Depends-on:
 intprops
 sys_types
-sys_stat
+sys_stat-h
 
 configure.ac:
 
index b55b86675f3dfa318949fe30b8c2ead79720f566..c6a529b8dc8fb1d214cb5141c7ded20d61fe5b09 100644 (file)
@@ -13,7 +13,7 @@ fcntl-h       [test $HAVE_LCHMOD = 0]
 intprops      [test $HAVE_LCHMOD = 0]
 lstat         [test $HAVE_LCHMOD = 0]
 readlink      [test $HAVE_LCHMOD = 0]
-sys_stat
+sys_stat-h
 unistd        [test $HAVE_LCHMOD = 0]
 
 configure.ac:
index 710d7bc6d3b6e980c51d0fe1b7bca98ba85db8e1..e0d20324d0955be2b85b7df4831cf33a02fa0202 100644 (file)
@@ -11,7 +11,7 @@ readlink        [test $HAVE_LCHOWN = 0]
 chown           [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
 errno-h         [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
 stdbool-h       [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
-sys_stat        [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
+sys_stat-h      [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
 lstat           [test $REPLACE_LCHOWN = 1]
 
 configure.ac:
index 32c438ce638ad72b98f298037fa3c8f5074b10cd..a0aaf1bf4e17117fcd6ebb4afaed2614e2c3ac9f 100644 (file)
@@ -10,7 +10,7 @@ unistd
 free-posix      [test $HAVE_LINK = 0 || test $REPLACE_LINK = 1]
 stat            [test $HAVE_LINK = 0 || test $REPLACE_LINK = 1]
 strdup-posix    [test $HAVE_LINK = 0 || test $REPLACE_LINK = 1]
-sys_stat        [test $HAVE_LINK = 0 || test $REPLACE_LINK = 1]
+sys_stat-h      [test $HAVE_LINK = 0 || test $REPLACE_LINK = 1]
 
 configure.ac:
 gl_FUNC_LINK
index 051030577dcd7a824f57427b2447e2ba99713b3e..45db35d0f2d108fb5bb1cbb96a9c120594983261 100644 (file)
@@ -8,7 +8,7 @@ Depends-on:
 ignore-value
 errno-h
 stdbool-h
-sys_stat
+sys_stat-h
 
 configure.ac:
 
index e89d158fc1181292461e0d80a766250723a936cc..1ccaf52514b39e93d63c08a75fd08059463baeee 100644 (file)
@@ -6,7 +6,7 @@ lib/lstat.c
 m4/lstat.m4
 
 Depends-on:
-sys_stat
+sys_stat-h
 largefile
 stat            [test $REPLACE_LSTAT = 1]
 stat-time       [test $REPLACE_LSTAT = 1]
index c4cb3db3453883606c448651ec87e81f6d99fed2..e11fea6e4e286eae13fd15369da6763758bbeb8c 100644 (file)
@@ -11,7 +11,7 @@ fcntl-h
 filename
 savewd
 stat-macros
-sys_stat
+sys_stat-h
 
 configure.ac:
 gl_MKANCESDIRS
index 8570a4a7e468621103cb0055d2dfa1db08033c44..c57d40ea55152b83b556e49b5c750781f5d8552d 100644 (file)
@@ -6,7 +6,7 @@ lib/mkdir.c
 m4/mkdir.m4
 
 Depends-on:
-sys_stat
+sys_stat-h
 dirname-lgpl    [test $REPLACE_MKDIR = 1]
 stat            [test $REPLACE_MKDIR = 1]
 
index ad37a64c8736ef2c8696180d5632bb47604f22d3..62f8e6d328b1b95b69ce0aa47e2cdecfdf80b3cd 100644 (file)
@@ -23,7 +23,7 @@ savewd
 stat
 stat-macros
 stdbool-h
-sys_stat
+sys_stat-h
 
 configure.ac:
 gl_MKDIR_PARENTS
index c553e18d7aec6617c542e9d537065c4693ec3064..71be95ce36c77649c6ce96bf2139465b65081e09 100644 (file)
@@ -7,7 +7,7 @@ lib/at-func.c
 m4/mkdirat.m4
 
 Depends-on:
-sys_stat
+sys_stat-h
 extensions
 at-internal     [test $HAVE_MKDIRAT = 0]
 errno-h         [test $HAVE_MKDIRAT = 0]
index 4015f2cfeab8790b6edbd7406787ac6d2893c706..6ca5fe8c0f61638d48e92327e8ccaa9277ce4650 100644 (file)
@@ -6,7 +6,7 @@ lib/mkfifo.c
 m4/mkfifo.m4
 
 Depends-on:
-sys_stat
+sys_stat-h
 stat            [test $HAVE_MKFIFO = 0 || test $REPLACE_MKFIFO = 1]
 
 configure.ac:
index 8c31cc2aafc9a60417a44b0f3fcb4b524eb2d3e4..17de90fe813268298d089be19eac66978593e122 100644 (file)
@@ -9,7 +9,7 @@ lib/at-func.c
 m4/mkfifoat.m4
 
 Depends-on:
-sys_stat
+sys_stat-h
 extensions
 fcntl-h         [test $HAVE_MKFIFOAT = 0 || test $REPLACE_MKFIFOAT = 1 || test $HAVE_MKNODAT = 0 || test $REPLACE_MKNODAT = 1]
 fstatat         [test $REPLACE_MKFIFOAT = 1 || test $REPLACE_MKNODAT = 1]
index 683df1c29805ce4d6e14426788cffeda216401ee..ae9d99d1f2177a2346b69bf8d24be15fa4eaffb2 100644 (file)
@@ -6,7 +6,7 @@ lib/mknod.c
 m4/mknod.m4
 
 Depends-on:
-sys_stat
+sys_stat-h
 extensions
 mkfifo          [test $HAVE_MKNOD = 0 || test $REPLACE_MKNOD = 1]
 stat            [test $HAVE_MKNOD = 0 || test $REPLACE_MKNOD = 1]
index 3ee6d45b70d5a1fcfad9528c55dff755fedf29bd..0f980f04d1297dd2fd9a26b5a6f895b4b60a4209 100644 (file)
@@ -11,7 +11,7 @@ Depends-on:
 stat
 stat-macros
 stdbool-h
-sys_stat
+sys_stat-h
 xalloc
 
 configure.ac:
index 02a2bb99a91dbb37f3d57251ae02222854d3c83d..396056f485b036ce3f8c2e1df5b5be7d0a979247 100644 (file)
@@ -14,7 +14,7 @@ extensions
 largefile
 openat-h        [test $HAVE_OPENAT = 0 || test $REPLACE_OPENAT = 1]
 stdbool-h       [test $HAVE_OPENAT = 0 || test $REPLACE_OPENAT = 1]
-sys_stat        [test $HAVE_OPENAT = 0 || test $REPLACE_OPENAT = 1]
+sys_stat-h      [test $HAVE_OPENAT = 0 || test $REPLACE_OPENAT = 1]
 cloexec         [test $REPLACE_OPENAT = 1]
 fstat           [test $REPLACE_OPENAT = 1]
 at-internal     [test $HAVE_OPENAT = 0]
index 8741064db8f345c90d1baf78e0f6315b669956c8..e2b58ddbb32eb5b093da282f11ddc89254d8a15d 100644 (file)
@@ -8,7 +8,7 @@ Depends-on:
 extern-inline
 fcntl-h
 stdbool-h
-sys_stat
+sys_stat-h
 unistd
 
 configure.ac:
index a07960fa3af45e356cf4d9bf59c8138e4be7905f..d302ee3252ccfa73ca58f5567b86e3fa6d412456 100644 (file)
@@ -38,7 +38,7 @@ sys_random-h
 sys_resource-h
 sys_select-h
 sys_socket-h
-sys_stat
+sys_stat-h
 sys_time
 sys_times
 sys_utsname
index 7f65ae1c61af61a5dd9bcf68f37041140c869b6b..125409a033c25fe58f19fb236a22b968cbd536d0 100644 (file)
@@ -15,7 +15,7 @@ malloc-posix
 memset_explicit
 realloc-posix
 stdint-h
-sys_stat
+sys_stat-h
 
 configure.ac:
 gl_PREREQ_READ_FILE
index cfd1719a9f1f160b1bc039cbcbf478c4aba46978..66f385df3150370ad71d5e90a2f236d346db9fa4 100644 (file)
@@ -75,7 +75,7 @@ stdckdint-h
 stdint-h
 stdlib-h
 string-h
-sys_stat
+sys_stat-h
 unistd
 xalloc-oversized
 
index 498c7d6e497061ff7f5fd743c6a3d78f3e86038d..5f7e3a8e19c14ec10c677f630ff15874f2b96769 100644 (file)
@@ -6,7 +6,7 @@ tests/macros.h
 Depends-on:
 ignore-value
 symlink
-sys_stat
+sys_stat-h
 
 configure.ac:
 
index 3e6dc3e1c4f394620ed1015e3abd176aa0ab8c46..6ee2d76ac2bd5548ba4dd8c461f7fb5f9f84f46a 100644 (file)
@@ -10,7 +10,7 @@ errno-h
 link
 stdbool-h
 symlink
-sys_stat
+sys_stat-h
 opendir
 readdir
 closedir
index 426587560efd01e8504c2ea101b3c87a8b4ffff2..66557f34b9338df0be4cf3f5065270fd7486dfb3 100644 (file)
@@ -8,7 +8,7 @@ m4/rmdir.m4
 Depends-on:
 unistd
 filename        [test $REPLACE_RMDIR = 1]
-sys_stat        [test $REPLACE_RMDIR = 1]
+sys_stat-h      [test $REPLACE_RMDIR = 1]
 
 configure.ac:
 gl_FUNC_RMDIR
index 7b0f8d991fb33328589a1feb3431544bcd3cc5b0..9db4f2e8609a0ccaab4bdd16bf014367deac4337 100644 (file)
@@ -8,7 +8,7 @@ lib/stat-w32.c
 m4/stat.m4
 
 Depends-on:
-sys_stat
+sys_stat-h
 largefile
 assert-h        [test $REPLACE_STAT = 1]
 filename        [test $REPLACE_STAT = 1]
index 77279707c81c16a98afa6c8ed10f3a81249b5822..56a085d65b69589c3b08d5ff9a54ab3efcd505e2 100644 (file)
@@ -7,7 +7,7 @@ m4/stat-size.m4
 
 Depends-on:
 fileblocks
-sys_stat
+sys_stat-h
 
 configure.ac:
 gl_STAT_SIZE
index 7d1520992c4dfd2e5bca980d68d35eaf37541a8b..da5c746552e728bbb0ec59f6a674c8e1770f153f 100644 (file)
@@ -10,7 +10,7 @@ Depends-on:
 c99
 fcntl-h
 stdbool-h
-sys_stat
+sys_stat-h
 clean-temp
 tempname
 canonicalize
index 233224e835d143c4864558ffe88a6083c00226fb..badc250b5a7ed3d4f6c6b19bee21d30e370ca657 100644 (file)
@@ -1,93 +1,20 @@
 Description:
 A <sys/stat.h> for systems with missing declarations.
 
+Status:
+deprecated
+
+Notice:
+This module is deprecated. Use the module 'sys_stat-h' instead.
+
 Files:
-lib/sys_stat.in.h
-m4/sys_stat_h.m4
-m4/unistd_h.m4
-m4/pid_t.m4
 
 Depends-on:
-gen-header
-include_next
-snippet/arg-nonnull
-snippet/c++defs
-snippet/warn-on-use
-sys_types
-time-h
+sys_stat-h
 
 configure.ac:
-gl_SYS_STAT_H
-gl_SYS_STAT_H_REQUIRE_DEFAULTS
-AC_PROG_MKDIR_P
 
 Makefile.am:
-BUILT_SOURCES += sys/stat.h
-
-# We need the following in order to create <sys/stat.h> when the system
-# has one that is incomplete.
-sys/stat.h: sys_stat.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
-       $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys'
-       $(AM_V_at)$(SED_HEADER_STDOUT) \
-             -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
-             -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
-             -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
-             -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
-             -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \
-             -e 's|@''WINDOWS_64_BIT_ST_SIZE''@|$(WINDOWS_64_BIT_ST_SIZE)|g' \
-             -e 's|@''WINDOWS_STAT_TIMESPEC''@|$(WINDOWS_STAT_TIMESPEC)|g' \
-             -e 's/@''GNULIB_CHMOD''@/$(GNULIB_CHMOD)/g' \
-             -e 's/@''GNULIB_FCHMODAT''@/$(GNULIB_FCHMODAT)/g' \
-             -e 's/@''GNULIB_FSTAT''@/$(GNULIB_FSTAT)/g' \
-             -e 's/@''GNULIB_FSTATAT''@/$(GNULIB_FSTATAT)/g' \
-             -e 's/@''GNULIB_FUTIMENS''@/$(GNULIB_FUTIMENS)/g' \
-             -e 's/@''GNULIB_GETUMASK''@/$(GNULIB_GETUMASK)/g' \
-             -e 's/@''GNULIB_LCHMOD''@/$(GNULIB_LCHMOD)/g' \
-             -e 's/@''GNULIB_LSTAT''@/$(GNULIB_LSTAT)/g' \
-             -e 's/@''GNULIB_MKDIR''@/$(GNULIB_MKDIR)/g' \
-             -e 's/@''GNULIB_MKDIRAT''@/$(GNULIB_MKDIRAT)/g' \
-             -e 's/@''GNULIB_MKFIFO''@/$(GNULIB_MKFIFO)/g' \
-             -e 's/@''GNULIB_MKFIFOAT''@/$(GNULIB_MKFIFOAT)/g' \
-             -e 's/@''GNULIB_MKNOD''@/$(GNULIB_MKNOD)/g' \
-             -e 's/@''GNULIB_MKNODAT''@/$(GNULIB_MKNODAT)/g' \
-             -e 's/@''GNULIB_STAT''@/$(GNULIB_STAT)/g' \
-             -e 's/@''GNULIB_UTIMENSAT''@/$(GNULIB_UTIMENSAT)/g' \
-             -e 's/@''GNULIB_OVERRIDES_STRUCT_STAT''@/$(GNULIB_OVERRIDES_STRUCT_STAT)/g' \
-             -e 's/@''GNULIB_MDA_CHMOD''@/$(GNULIB_MDA_CHMOD)/g' \
-             -e 's/@''GNULIB_MDA_MKDIR''@/$(GNULIB_MDA_MKDIR)/g' \
-             -e 's/@''GNULIB_MDA_UMASK''@/$(GNULIB_MDA_UMASK)/g' \
-             -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \
-             -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \
-             -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \
-             -e 's|@''HAVE_GETUMASK''@|$(HAVE_GETUMASK)|g' \
-             -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \
-             -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \
-             -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \
-             -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \
-             -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \
-             -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \
-             -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \
-             -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \
-             -e 's|@''REPLACE_CHMOD''@|$(REPLACE_CHMOD)|g' \
-             -e 's|@''REPLACE_FCHMODAT''@|$(REPLACE_FCHMODAT)|g' \
-             -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \
-             -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \
-             -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \
-             -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \
-             -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \
-             -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \
-             -e 's|@''REPLACE_MKFIFOAT''@|$(REPLACE_MKFIFOAT)|g' \
-             -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \
-             -e 's|@''REPLACE_MKNODAT''@|$(REPLACE_MKNODAT)|g' \
-             -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \
-             -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \
-             -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
-             -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
-             -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
-             $(srcdir)/sys_stat.in.h > $@-t
-       $(AM_V_at)mv $@-t $@
-MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
-MOSTLYCLEANDIRS += sys
 
 Include:
 <sys/stat.h>
@@ -96,4 +23,3 @@ License:
 LGPLv2+
 
 Maintainer:
-all
diff --git a/modules/sys_stat-c++-tests b/modules/sys_stat-c++-tests
deleted file mode 100644 (file)
index f5b3f28..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-Files:
-tests/test-sys_stat-c++.cc
-tests/signature.h
-
-Status:
-c++-test
-
-Depends-on:
-ansi-c++-opt
-
-configure.ac:
-
-Makefile.am:
-if ANSICXX
-TESTS += test-sys_stat-c++
-check_PROGRAMS += test-sys_stat-c++
-test_sys_stat_c___SOURCES = test-sys_stat-c++.cc
-test_sys_stat_c___LDADD = $(LDADD) $(LIBINTL) $(CLOCK_TIME_LIB) $(MBRTOWC_LIB) $(GETRANDOM_LIB)
-endif
diff --git a/modules/sys_stat-h b/modules/sys_stat-h
new file mode 100644 (file)
index 0000000..233224e
--- /dev/null
@@ -0,0 +1,99 @@
+Description:
+A <sys/stat.h> for systems with missing declarations.
+
+Files:
+lib/sys_stat.in.h
+m4/sys_stat_h.m4
+m4/unistd_h.m4
+m4/pid_t.m4
+
+Depends-on:
+gen-header
+include_next
+snippet/arg-nonnull
+snippet/c++defs
+snippet/warn-on-use
+sys_types
+time-h
+
+configure.ac:
+gl_SYS_STAT_H
+gl_SYS_STAT_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
+
+Makefile.am:
+BUILT_SOURCES += sys/stat.h
+
+# We need the following in order to create <sys/stat.h> when the system
+# has one that is incomplete.
+sys/stat.h: sys_stat.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
+       $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys'
+       $(AM_V_at)$(SED_HEADER_STDOUT) \
+             -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
+             -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
+             -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
+             -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
+             -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \
+             -e 's|@''WINDOWS_64_BIT_ST_SIZE''@|$(WINDOWS_64_BIT_ST_SIZE)|g' \
+             -e 's|@''WINDOWS_STAT_TIMESPEC''@|$(WINDOWS_STAT_TIMESPEC)|g' \
+             -e 's/@''GNULIB_CHMOD''@/$(GNULIB_CHMOD)/g' \
+             -e 's/@''GNULIB_FCHMODAT''@/$(GNULIB_FCHMODAT)/g' \
+             -e 's/@''GNULIB_FSTAT''@/$(GNULIB_FSTAT)/g' \
+             -e 's/@''GNULIB_FSTATAT''@/$(GNULIB_FSTATAT)/g' \
+             -e 's/@''GNULIB_FUTIMENS''@/$(GNULIB_FUTIMENS)/g' \
+             -e 's/@''GNULIB_GETUMASK''@/$(GNULIB_GETUMASK)/g' \
+             -e 's/@''GNULIB_LCHMOD''@/$(GNULIB_LCHMOD)/g' \
+             -e 's/@''GNULIB_LSTAT''@/$(GNULIB_LSTAT)/g' \
+             -e 's/@''GNULIB_MKDIR''@/$(GNULIB_MKDIR)/g' \
+             -e 's/@''GNULIB_MKDIRAT''@/$(GNULIB_MKDIRAT)/g' \
+             -e 's/@''GNULIB_MKFIFO''@/$(GNULIB_MKFIFO)/g' \
+             -e 's/@''GNULIB_MKFIFOAT''@/$(GNULIB_MKFIFOAT)/g' \
+             -e 's/@''GNULIB_MKNOD''@/$(GNULIB_MKNOD)/g' \
+             -e 's/@''GNULIB_MKNODAT''@/$(GNULIB_MKNODAT)/g' \
+             -e 's/@''GNULIB_STAT''@/$(GNULIB_STAT)/g' \
+             -e 's/@''GNULIB_UTIMENSAT''@/$(GNULIB_UTIMENSAT)/g' \
+             -e 's/@''GNULIB_OVERRIDES_STRUCT_STAT''@/$(GNULIB_OVERRIDES_STRUCT_STAT)/g' \
+             -e 's/@''GNULIB_MDA_CHMOD''@/$(GNULIB_MDA_CHMOD)/g' \
+             -e 's/@''GNULIB_MDA_MKDIR''@/$(GNULIB_MDA_MKDIR)/g' \
+             -e 's/@''GNULIB_MDA_UMASK''@/$(GNULIB_MDA_UMASK)/g' \
+             -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \
+             -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \
+             -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \
+             -e 's|@''HAVE_GETUMASK''@|$(HAVE_GETUMASK)|g' \
+             -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \
+             -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \
+             -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \
+             -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \
+             -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \
+             -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \
+             -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \
+             -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \
+             -e 's|@''REPLACE_CHMOD''@|$(REPLACE_CHMOD)|g' \
+             -e 's|@''REPLACE_FCHMODAT''@|$(REPLACE_FCHMODAT)|g' \
+             -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \
+             -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \
+             -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \
+             -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \
+             -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \
+             -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \
+             -e 's|@''REPLACE_MKFIFOAT''@|$(REPLACE_MKFIFOAT)|g' \
+             -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \
+             -e 's|@''REPLACE_MKNODAT''@|$(REPLACE_MKNODAT)|g' \
+             -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \
+             -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \
+             -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
+             -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
+             -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
+             $(srcdir)/sys_stat.in.h > $@-t
+       $(AM_V_at)mv $@-t $@
+MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
+MOSTLYCLEANDIRS += sys
+
+Include:
+<sys/stat.h>
+
+License:
+LGPLv2+
+
+Maintainer:
+all
diff --git a/modules/sys_stat-h-c++-tests b/modules/sys_stat-h-c++-tests
new file mode 100644 (file)
index 0000000..58b3363
--- /dev/null
@@ -0,0 +1,19 @@
+Files:
+tests/test-sys_stat-h-c++.cc
+tests/signature.h
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-sys_stat-h-c++
+check_PROGRAMS += test-sys_stat-h-c++
+test_sys_stat_h_c___SOURCES = test-sys_stat-h-c++.cc
+test_sys_stat_h_c___LDADD = $(LDADD) $(LIBINTL) $(CLOCK_TIME_LIB) $(MBRTOWC_LIB) $(GETRANDOM_LIB)
+endif
diff --git a/modules/sys_stat-h-tests b/modules/sys_stat-h-tests
new file mode 100644 (file)
index 0000000..a13ea11
--- /dev/null
@@ -0,0 +1,12 @@
+Files:
+tests/test-sys_stat-h.c
+
+Depends-on:
+assert-h
+sys_stat-h-c++-tests
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-sys_stat-h
+check_PROGRAMS += test-sys_stat-h
diff --git a/modules/sys_stat-tests b/modules/sys_stat-tests
deleted file mode 100644 (file)
index 7d4091b..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-Files:
-tests/test-sys_stat.c
-
-Depends-on:
-assert-h
-sys_stat-c++-tests
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-sys_stat
-check_PROGRAMS += test-sys_stat
index 4031c523a7d126937599818af9b8d6ca6f3fb787..0045d7c49bb831bce91cb5d40f1eb9a7f537eb11 100644 (file)
@@ -18,7 +18,7 @@ lstat
 mkdir
 stdbool-h
 stdint-h
-sys_stat
+sys_stat-h
 time-h
 
 configure.ac:
index be47108cd878e5ea7e5b35e9cd8a29c3ba9fcf24..00ab1a32289ea76c2f6da89bf3e351c23f09900e 100644 (file)
@@ -10,7 +10,7 @@ Depends-on:
 secure_getenv
 stat
 stdbool-h
-sys_stat
+sys_stat-h
 pathmax
 
 configure.ac:
index c6a108720b715803217eda34968375a3e219103d..7aa986cf35cb6a6c908d447e7500ee6b42c03810 100644 (file)
@@ -9,7 +9,7 @@ Depends-on:
 unistd
 sys_types
 largefile
-sys_stat
+sys_stat-h
 stat            [test $REPLACE_TRUNCATE = 1]
 open            [test $HAVE_DECL_TRUNCATE = 0 || test $REPLACE_TRUNCATE = 1]
 ftruncate       [test $HAVE_DECL_TRUNCATE = 0 || test $REPLACE_TRUNCATE = 1]
index 905d748902fa06fd50c1b087dcff67bd866348a1..8bae1c22633853be6948856cc5552e08d9f87e5c 100644 (file)
@@ -12,7 +12,7 @@ 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]
+sys_stat-h      [test $HAVE_UNLINKAT = 0 || test $REPLACE_UNLINKAT = 1]
 at-internal     [test $HAVE_UNLINKAT = 0]
 errno-h         [test $HAVE_UNLINKAT = 0]
 fchdir          [test $HAVE_UNLINKAT = 0]
index 77e90ff09e8105e7ea65aba1cc36f721f2f15e07..580639dc2606136e11c370d403718a0f607cf333 100644 (file)
@@ -18,7 +18,7 @@ msvc-nothrow
 stat
 stat-time
 stdbool-h
-sys_stat
+sys_stat-h
 sys_time
 time-h
 utime
index d07fcc86fbc0d6050917827ba03ce096a33fee51..32d5f105c045efbb87eda7a1140ba0baa2cce75d 100644 (file)
@@ -7,7 +7,7 @@ lib/at-func.c
 m4/utimensat.m4
 
 Depends-on:
-sys_stat
+sys_stat-h
 extensions
 at-internal     [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1]
 errno-h         [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1]
index 5507bb8d93bf7faff2c66fd4d236b3027887153d..3a7042754eb7d5c67502f1bc717f14a488843231 100644 (file)
@@ -9,7 +9,7 @@ have side effects on the compilation of the main modules in lib/.
 Files:
 
 Depends-on:
-sys_stat
+sys_stat-h
 
 configure.ac:
 gl_SYS_STAT_H_REQUIRE_DEFAULTS
diff --git a/tests/test-sys_stat-c++.cc b/tests/test-sys_stat-c++.cc
deleted file mode 100644 (file)
index 08b69b1..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-/* Test of <sys/stat.h> substitute in C++ mode.
-   Copyright (C) 2010-2024 Free Software Foundation, Inc.
-
-   This program is free software: you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation, either version 3 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
-
-/* Written by Bruno Haible <bruno@clisp.org>, 2010.  */
-
-#define GNULIB_NAMESPACE gnulib
-#include <config.h>
-
-#include <sys/stat.h>
-
-#include "signature.h"
-
-
-#if GNULIB_TEST_FCHMODAT
-SIGNATURE_CHECK (GNULIB_NAMESPACE::fchmodat, int,
-                 (int, char const *, mode_t, int));
-#endif
-
-#if GNULIB_TEST_FSTAT
-SIGNATURE_CHECK (GNULIB_NAMESPACE::fstat, int, (int, struct stat *));
-#endif
-
-#if GNULIB_TEST_FSTATAT
-SIGNATURE_CHECK (GNULIB_NAMESPACE::fstatat, int,
-                 (int, char const *, struct stat *, int));
-#endif
-
-#if GNULIB_TEST_FUTIMENS
-SIGNATURE_CHECK (GNULIB_NAMESPACE::futimens, int,
-                 (int, struct timespec const[2]));
-#endif
-
-#if GNULIB_TEST_GETUMASK
-SIGNATURE_CHECK (GNULIB_NAMESPACE::getumask, mode_t, (void));
-#endif
-
-#if GNULIB_TEST_LCHMOD
-SIGNATURE_CHECK (GNULIB_NAMESPACE::lchmod, int, (const char *, mode_t));
-#endif
-
-#if GNULIB_TEST_LSTAT
-SIGNATURE_CHECK (GNULIB_NAMESPACE::lstat, int, (const char *, struct stat *));
-#endif
-
-SIGNATURE_CHECK (GNULIB_NAMESPACE::mkdir, int, (char const *, mode_t));
-
-#if GNULIB_TEST_MKDIRAT
-SIGNATURE_CHECK (GNULIB_NAMESPACE::mkdirat, int, (int, char const *, mode_t));
-#endif
-
-#if GNULIB_TEST_MKFIFO
-SIGNATURE_CHECK (GNULIB_NAMESPACE::mkfifo, int, (char const *, mode_t));
-#endif
-
-#if GNULIB_TEST_MKFIFOAT
-SIGNATURE_CHECK (GNULIB_NAMESPACE::mkfifoat, int, (int, char const *, mode_t));
-#endif
-
-#if GNULIB_TEST_MKNOD
-SIGNATURE_CHECK (GNULIB_NAMESPACE::mknod, int, (char const *, mode_t, dev_t));
-#endif
-
-#if GNULIB_TEST_MKNODAT
-SIGNATURE_CHECK (GNULIB_NAMESPACE::mknodat, int,
-                 (int, char const *, mode_t, dev_t));
-#endif
-
-#if GNULIB_TEST_STAT
-//SIGNATURE_CHECK (GNULIB_NAMESPACE::stat, int, (const char *, struct stat *));
-#endif
-
-#if GNULIB_TEST_UTIMENSAT
-SIGNATURE_CHECK (GNULIB_NAMESPACE::utimensat, int,
-                 (int, char const *, struct timespec const[2], int));
-#endif
-
-
-int
-main ()
-{
-}
diff --git a/tests/test-sys_stat-h-c++.cc b/tests/test-sys_stat-h-c++.cc
new file mode 100644 (file)
index 0000000..08b69b1
--- /dev/null
@@ -0,0 +1,94 @@
+/* Test of <sys/stat.h> substitute in C++ mode.
+   Copyright (C) 2010-2024 Free Software Foundation, Inc.
+
+   This program is free software: you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation, either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2010.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <sys/stat.h>
+
+#include "signature.h"
+
+
+#if GNULIB_TEST_FCHMODAT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::fchmodat, int,
+                 (int, char const *, mode_t, int));
+#endif
+
+#if GNULIB_TEST_FSTAT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::fstat, int, (int, struct stat *));
+#endif
+
+#if GNULIB_TEST_FSTATAT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::fstatat, int,
+                 (int, char const *, struct stat *, int));
+#endif
+
+#if GNULIB_TEST_FUTIMENS
+SIGNATURE_CHECK (GNULIB_NAMESPACE::futimens, int,
+                 (int, struct timespec const[2]));
+#endif
+
+#if GNULIB_TEST_GETUMASK
+SIGNATURE_CHECK (GNULIB_NAMESPACE::getumask, mode_t, (void));
+#endif
+
+#if GNULIB_TEST_LCHMOD
+SIGNATURE_CHECK (GNULIB_NAMESPACE::lchmod, int, (const char *, mode_t));
+#endif
+
+#if GNULIB_TEST_LSTAT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::lstat, int, (const char *, struct stat *));
+#endif
+
+SIGNATURE_CHECK (GNULIB_NAMESPACE::mkdir, int, (char const *, mode_t));
+
+#if GNULIB_TEST_MKDIRAT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::mkdirat, int, (int, char const *, mode_t));
+#endif
+
+#if GNULIB_TEST_MKFIFO
+SIGNATURE_CHECK (GNULIB_NAMESPACE::mkfifo, int, (char const *, mode_t));
+#endif
+
+#if GNULIB_TEST_MKFIFOAT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::mkfifoat, int, (int, char const *, mode_t));
+#endif
+
+#if GNULIB_TEST_MKNOD
+SIGNATURE_CHECK (GNULIB_NAMESPACE::mknod, int, (char const *, mode_t, dev_t));
+#endif
+
+#if GNULIB_TEST_MKNODAT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::mknodat, int,
+                 (int, char const *, mode_t, dev_t));
+#endif
+
+#if GNULIB_TEST_STAT
+//SIGNATURE_CHECK (GNULIB_NAMESPACE::stat, int, (const char *, struct stat *));
+#endif
+
+#if GNULIB_TEST_UTIMENSAT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::utimensat, int,
+                 (int, char const *, struct timespec const[2], int));
+#endif
+
+
+int
+main ()
+{
+}
diff --git a/tests/test-sys_stat-h.c b/tests/test-sys_stat-h.c
new file mode 100644 (file)
index 0000000..7c4ec1f
--- /dev/null
@@ -0,0 +1,338 @@
+/* Test of <sys/stat.h> substitute.
+   Copyright (C) 2007-2024 Free Software Foundation, Inc.
+
+   This program is free software: you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation, either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2007.  */
+
+#include <config.h>
+
+#include <sys/stat.h>
+
+/* Check the existence of some macros.  */
+int a[] =
+  {
+    S_IFMT,
+#ifdef S_IFBLK /* missing on MSVC */
+    S_IFBLK,
+#endif
+    S_IFCHR, S_IFDIR, S_IFIFO, S_IFREG,
+#ifdef S_IFLNK /* missing on native Windows and DJGPP */
+    S_IFLNK,
+#endif
+#ifdef S_IFSOCK /* missing on native Windows and DJGPP */
+    S_IFSOCK,
+#endif
+    S_IRWXU, S_IRUSR, S_IWUSR, S_IXUSR,
+    S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP,
+    S_IRWXO, S_IROTH, S_IWOTH, S_IXOTH,
+    S_ISUID, S_ISGID, S_ISVTX,
+    S_ISBLK (S_IFREG),
+    S_ISCHR (S_IFREG),
+    S_ISDIR (S_IFREG),
+    S_ISFIFO (S_IFREG),
+    S_ISREG (S_IFREG),
+    S_ISLNK (S_IFREG),
+    S_ISSOCK (S_IFREG),
+    S_ISDOOR (S_IFREG),
+    S_ISMPB (S_IFREG),
+    S_ISMPX (S_IFREG),
+    S_ISNAM (S_IFREG),
+    S_ISNWK (S_IFREG),
+    S_ISPORT (S_IFREG),
+    S_ISCTG (S_IFREG),
+    S_ISOFD (S_IFREG),
+    S_ISOFL (S_IFREG),
+    S_ISWHT (S_IFREG)
+  };
+
+/* Sanity checks.  */
+
+static_assert (S_IRWXU == (S_IRUSR | S_IWUSR | S_IXUSR));
+static_assert (S_IRWXG == (S_IRGRP | S_IWGRP | S_IXGRP));
+static_assert (S_IRWXO == (S_IROTH | S_IWOTH | S_IXOTH));
+
+#ifdef S_IFBLK
+static_assert (S_ISBLK (S_IFBLK));
+#endif
+static_assert (!S_ISBLK (S_IFCHR));
+static_assert (!S_ISBLK (S_IFDIR));
+static_assert (!S_ISBLK (S_IFIFO));
+static_assert (!S_ISBLK (S_IFREG));
+#ifdef S_IFLNK
+static_assert (!S_ISBLK (S_IFLNK));
+#endif
+#ifdef S_IFSOCK
+static_assert (!S_ISBLK (S_IFSOCK));
+#endif
+
+#ifdef S_IFBLK
+static_assert (!S_ISCHR (S_IFBLK));
+#endif
+static_assert (S_ISCHR (S_IFCHR));
+static_assert (!S_ISCHR (S_IFDIR));
+static_assert (!S_ISCHR (S_IFIFO));
+static_assert (!S_ISCHR (S_IFREG));
+#ifdef S_IFLNK
+static_assert (!S_ISCHR (S_IFLNK));
+#endif
+#ifdef S_IFSOCK
+static_assert (!S_ISCHR (S_IFSOCK));
+#endif
+
+#ifdef S_IFBLK
+static_assert (!S_ISDIR (S_IFBLK));
+#endif
+static_assert (!S_ISDIR (S_IFCHR));
+static_assert (S_ISDIR (S_IFDIR));
+static_assert (!S_ISDIR (S_IFIFO));
+static_assert (!S_ISDIR (S_IFREG));
+#ifdef S_IFLNK
+static_assert (!S_ISDIR (S_IFLNK));
+#endif
+#ifdef S_IFSOCK
+static_assert (!S_ISDIR (S_IFSOCK));
+#endif
+
+#ifdef S_IFBLK
+static_assert (!S_ISFIFO (S_IFBLK));
+#endif
+static_assert (!S_ISFIFO (S_IFCHR));
+static_assert (!S_ISFIFO (S_IFDIR));
+static_assert (S_ISFIFO (S_IFIFO));
+static_assert (!S_ISFIFO (S_IFREG));
+#ifdef S_IFLNK
+static_assert (!S_ISFIFO (S_IFLNK));
+#endif
+#ifdef S_IFSOCK
+static_assert (!S_ISFIFO (S_IFSOCK));
+#endif
+
+#ifdef S_IFBLK
+static_assert (!S_ISREG (S_IFBLK));
+#endif
+static_assert (!S_ISREG (S_IFCHR));
+static_assert (!S_ISREG (S_IFDIR));
+static_assert (!S_ISREG (S_IFIFO));
+static_assert (S_ISREG (S_IFREG));
+#ifdef S_IFLNK
+static_assert (!S_ISREG (S_IFLNK));
+#endif
+#ifdef S_IFSOCK
+static_assert (!S_ISREG (S_IFSOCK));
+#endif
+
+#ifdef S_IFBLK
+static_assert (!S_ISLNK (S_IFBLK));
+#endif
+static_assert (!S_ISLNK (S_IFCHR));
+static_assert (!S_ISLNK (S_IFDIR));
+static_assert (!S_ISLNK (S_IFIFO));
+static_assert (!S_ISLNK (S_IFREG));
+#ifdef S_IFLNK
+static_assert (S_ISLNK (S_IFLNK));
+#endif
+#ifdef S_IFSOCK
+static_assert (!S_ISLNK (S_IFSOCK));
+#endif
+
+#ifdef S_IFBLK
+static_assert (!S_ISSOCK (S_IFBLK));
+#endif
+static_assert (!S_ISSOCK (S_IFCHR));
+static_assert (!S_ISSOCK (S_IFDIR));
+static_assert (!S_ISSOCK (S_IFIFO));
+static_assert (!S_ISSOCK (S_IFREG));
+#ifdef S_IFLNK
+static_assert (!S_ISSOCK (S_IFLNK));
+#endif
+#ifdef S_IFSOCK
+static_assert (S_ISSOCK (S_IFSOCK));
+#endif
+
+#ifdef S_IFBLK
+static_assert (!S_ISDOOR (S_IFBLK));
+#endif
+static_assert (!S_ISDOOR (S_IFCHR));
+static_assert (!S_ISDOOR (S_IFDIR));
+static_assert (!S_ISDOOR (S_IFIFO));
+static_assert (!S_ISDOOR (S_IFREG));
+#ifdef S_IFLNK
+static_assert (!S_ISDOOR (S_IFLNK));
+#endif
+#ifdef S_IFSOCK
+static_assert (!S_ISDOOR (S_IFSOCK));
+#endif
+
+#ifdef S_IFBLK
+static_assert (!S_ISMPB (S_IFBLK));
+#endif
+static_assert (!S_ISMPB (S_IFCHR));
+static_assert (!S_ISMPB (S_IFDIR));
+static_assert (!S_ISMPB (S_IFIFO));
+static_assert (!S_ISMPB (S_IFREG));
+#ifdef S_IFLNK
+static_assert (!S_ISMPB (S_IFLNK));
+#endif
+#ifdef S_IFSOCK
+static_assert (!S_ISMPB (S_IFSOCK));
+#endif
+
+#ifdef S_IFBLK
+static_assert (!S_ISMPX (S_IFBLK));
+#endif
+static_assert (!S_ISMPX (S_IFCHR));
+static_assert (!S_ISMPX (S_IFDIR));
+static_assert (!S_ISMPX (S_IFIFO));
+static_assert (!S_ISMPX (S_IFREG));
+#ifdef S_IFLNK
+static_assert (!S_ISMPX (S_IFLNK));
+#endif
+#ifdef S_IFSOCK
+static_assert (!S_ISMPX (S_IFSOCK));
+#endif
+
+#ifdef S_IFBLK
+static_assert (!S_ISNAM (S_IFBLK));
+#endif
+static_assert (!S_ISNAM (S_IFCHR));
+static_assert (!S_ISNAM (S_IFDIR));
+static_assert (!S_ISNAM (S_IFIFO));
+static_assert (!S_ISNAM (S_IFREG));
+#ifdef S_IFLNK
+static_assert (!S_ISNAM (S_IFLNK));
+#endif
+#ifdef S_IFSOCK
+static_assert (!S_ISNAM (S_IFSOCK));
+#endif
+
+#ifdef S_IFBLK
+static_assert (!S_ISNWK (S_IFBLK));
+#endif
+static_assert (!S_ISNWK (S_IFCHR));
+static_assert (!S_ISNWK (S_IFDIR));
+static_assert (!S_ISNWK (S_IFIFO));
+static_assert (!S_ISNWK (S_IFREG));
+#ifdef S_IFLNK
+static_assert (!S_ISNWK (S_IFLNK));
+#endif
+#ifdef S_IFSOCK
+static_assert (!S_ISNWK (S_IFSOCK));
+#endif
+
+#ifdef S_IFBLK
+static_assert (!S_ISPORT (S_IFBLK));
+#endif
+static_assert (!S_ISPORT (S_IFCHR));
+static_assert (!S_ISPORT (S_IFDIR));
+static_assert (!S_ISPORT (S_IFIFO));
+static_assert (!S_ISPORT (S_IFREG));
+#ifdef S_IFLNK
+static_assert (!S_ISPORT (S_IFLNK));
+#endif
+#ifdef S_IFSOCK
+static_assert (!S_ISPORT (S_IFSOCK));
+#endif
+
+#ifdef S_IFBLK
+static_assert (!S_ISCTG (S_IFBLK));
+#endif
+static_assert (!S_ISCTG (S_IFCHR));
+static_assert (!S_ISCTG (S_IFDIR));
+static_assert (!S_ISCTG (S_IFIFO));
+static_assert (!S_ISCTG (S_IFREG));
+#ifdef S_IFLNK
+static_assert (!S_ISCTG (S_IFLNK));
+#endif
+#ifdef S_IFSOCK
+static_assert (!S_ISCTG (S_IFSOCK));
+#endif
+
+#ifdef S_IFBLK
+static_assert (!S_ISOFD (S_IFBLK));
+#endif
+static_assert (!S_ISOFD (S_IFCHR));
+static_assert (!S_ISOFD (S_IFDIR));
+static_assert (!S_ISOFD (S_IFIFO));
+static_assert (!S_ISOFD (S_IFREG));
+#ifdef S_IFLNK
+static_assert (!S_ISOFD (S_IFLNK));
+#endif
+#ifdef S_IFSOCK
+static_assert (!S_ISOFD (S_IFSOCK));
+#endif
+
+#ifdef S_IFBLK
+static_assert (!S_ISOFL (S_IFBLK));
+#endif
+static_assert (!S_ISOFL (S_IFCHR));
+static_assert (!S_ISOFL (S_IFDIR));
+static_assert (!S_ISOFL (S_IFIFO));
+static_assert (!S_ISOFL (S_IFREG));
+#ifdef S_IFLNK
+static_assert (!S_ISOFL (S_IFLNK));
+#endif
+#ifdef S_IFSOCK
+static_assert (!S_ISOFL (S_IFSOCK));
+#endif
+
+#ifdef S_IFBLK
+static_assert (!S_ISWHT (S_IFBLK));
+#endif
+static_assert (!S_ISWHT (S_IFCHR));
+static_assert (!S_ISWHT (S_IFDIR));
+static_assert (!S_ISWHT (S_IFIFO));
+static_assert (!S_ISWHT (S_IFREG));
+#ifdef S_IFLNK
+static_assert (!S_ISWHT (S_IFLNK));
+#endif
+#ifdef S_IFSOCK
+static_assert (!S_ISWHT (S_IFSOCK));
+#endif
+
+/* POSIX 2008 requires traditional encoding of permission constants.  */
+static_assert (S_IRWXU == 00700);
+static_assert (S_IRUSR == 00400);
+static_assert (S_IWUSR == 00200);
+static_assert (S_IXUSR == 00100);
+static_assert (S_IRWXG == 00070);
+static_assert (S_IRGRP == 00040);
+static_assert (S_IWGRP == 00020);
+static_assert (S_IXGRP == 00010);
+static_assert (S_IRWXO == 00007);
+static_assert (S_IROTH == 00004);
+static_assert (S_IWOTH == 00002);
+static_assert (S_IXOTH == 00001);
+static_assert (S_ISUID == 04000);
+static_assert (S_ISGID == 02000);
+static_assert (S_ISVTX == 01000);
+
+#if ((0 <= UTIME_NOW && UTIME_NOW < 1000000000)           \
+     || (0 <= UTIME_OMIT && UTIME_OMIT < 1000000000)      \
+     || UTIME_NOW == UTIME_OMIT)
+invalid UTIME macros
+#endif
+
+/* Check the existence of some types.  */
+nlink_t t1;
+off_t t2;
+mode_t t3;
+
+struct timespec st;
+
+int
+main (void)
+{
+  return 0;
+}
diff --git a/tests/test-sys_stat.c b/tests/test-sys_stat.c
deleted file mode 100644 (file)
index 7c4ec1f..0000000
+++ /dev/null
@@ -1,338 +0,0 @@
-/* Test of <sys/stat.h> substitute.
-   Copyright (C) 2007-2024 Free Software Foundation, Inc.
-
-   This program is free software: you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation, either version 3 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
-
-/* Written by Bruno Haible <bruno@clisp.org>, 2007.  */
-
-#include <config.h>
-
-#include <sys/stat.h>
-
-/* Check the existence of some macros.  */
-int a[] =
-  {
-    S_IFMT,
-#ifdef S_IFBLK /* missing on MSVC */
-    S_IFBLK,
-#endif
-    S_IFCHR, S_IFDIR, S_IFIFO, S_IFREG,
-#ifdef S_IFLNK /* missing on native Windows and DJGPP */
-    S_IFLNK,
-#endif
-#ifdef S_IFSOCK /* missing on native Windows and DJGPP */
-    S_IFSOCK,
-#endif
-    S_IRWXU, S_IRUSR, S_IWUSR, S_IXUSR,
-    S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP,
-    S_IRWXO, S_IROTH, S_IWOTH, S_IXOTH,
-    S_ISUID, S_ISGID, S_ISVTX,
-    S_ISBLK (S_IFREG),
-    S_ISCHR (S_IFREG),
-    S_ISDIR (S_IFREG),
-    S_ISFIFO (S_IFREG),
-    S_ISREG (S_IFREG),
-    S_ISLNK (S_IFREG),
-    S_ISSOCK (S_IFREG),
-    S_ISDOOR (S_IFREG),
-    S_ISMPB (S_IFREG),
-    S_ISMPX (S_IFREG),
-    S_ISNAM (S_IFREG),
-    S_ISNWK (S_IFREG),
-    S_ISPORT (S_IFREG),
-    S_ISCTG (S_IFREG),
-    S_ISOFD (S_IFREG),
-    S_ISOFL (S_IFREG),
-    S_ISWHT (S_IFREG)
-  };
-
-/* Sanity checks.  */
-
-static_assert (S_IRWXU == (S_IRUSR | S_IWUSR | S_IXUSR));
-static_assert (S_IRWXG == (S_IRGRP | S_IWGRP | S_IXGRP));
-static_assert (S_IRWXO == (S_IROTH | S_IWOTH | S_IXOTH));
-
-#ifdef S_IFBLK
-static_assert (S_ISBLK (S_IFBLK));
-#endif
-static_assert (!S_ISBLK (S_IFCHR));
-static_assert (!S_ISBLK (S_IFDIR));
-static_assert (!S_ISBLK (S_IFIFO));
-static_assert (!S_ISBLK (S_IFREG));
-#ifdef S_IFLNK
-static_assert (!S_ISBLK (S_IFLNK));
-#endif
-#ifdef S_IFSOCK
-static_assert (!S_ISBLK (S_IFSOCK));
-#endif
-
-#ifdef S_IFBLK
-static_assert (!S_ISCHR (S_IFBLK));
-#endif
-static_assert (S_ISCHR (S_IFCHR));
-static_assert (!S_ISCHR (S_IFDIR));
-static_assert (!S_ISCHR (S_IFIFO));
-static_assert (!S_ISCHR (S_IFREG));
-#ifdef S_IFLNK
-static_assert (!S_ISCHR (S_IFLNK));
-#endif
-#ifdef S_IFSOCK
-static_assert (!S_ISCHR (S_IFSOCK));
-#endif
-
-#ifdef S_IFBLK
-static_assert (!S_ISDIR (S_IFBLK));
-#endif
-static_assert (!S_ISDIR (S_IFCHR));
-static_assert (S_ISDIR (S_IFDIR));
-static_assert (!S_ISDIR (S_IFIFO));
-static_assert (!S_ISDIR (S_IFREG));
-#ifdef S_IFLNK
-static_assert (!S_ISDIR (S_IFLNK));
-#endif
-#ifdef S_IFSOCK
-static_assert (!S_ISDIR (S_IFSOCK));
-#endif
-
-#ifdef S_IFBLK
-static_assert (!S_ISFIFO (S_IFBLK));
-#endif
-static_assert (!S_ISFIFO (S_IFCHR));
-static_assert (!S_ISFIFO (S_IFDIR));
-static_assert (S_ISFIFO (S_IFIFO));
-static_assert (!S_ISFIFO (S_IFREG));
-#ifdef S_IFLNK
-static_assert (!S_ISFIFO (S_IFLNK));
-#endif
-#ifdef S_IFSOCK
-static_assert (!S_ISFIFO (S_IFSOCK));
-#endif
-
-#ifdef S_IFBLK
-static_assert (!S_ISREG (S_IFBLK));
-#endif
-static_assert (!S_ISREG (S_IFCHR));
-static_assert (!S_ISREG (S_IFDIR));
-static_assert (!S_ISREG (S_IFIFO));
-static_assert (S_ISREG (S_IFREG));
-#ifdef S_IFLNK
-static_assert (!S_ISREG (S_IFLNK));
-#endif
-#ifdef S_IFSOCK
-static_assert (!S_ISREG (S_IFSOCK));
-#endif
-
-#ifdef S_IFBLK
-static_assert (!S_ISLNK (S_IFBLK));
-#endif
-static_assert (!S_ISLNK (S_IFCHR));
-static_assert (!S_ISLNK (S_IFDIR));
-static_assert (!S_ISLNK (S_IFIFO));
-static_assert (!S_ISLNK (S_IFREG));
-#ifdef S_IFLNK
-static_assert (S_ISLNK (S_IFLNK));
-#endif
-#ifdef S_IFSOCK
-static_assert (!S_ISLNK (S_IFSOCK));
-#endif
-
-#ifdef S_IFBLK
-static_assert (!S_ISSOCK (S_IFBLK));
-#endif
-static_assert (!S_ISSOCK (S_IFCHR));
-static_assert (!S_ISSOCK (S_IFDIR));
-static_assert (!S_ISSOCK (S_IFIFO));
-static_assert (!S_ISSOCK (S_IFREG));
-#ifdef S_IFLNK
-static_assert (!S_ISSOCK (S_IFLNK));
-#endif
-#ifdef S_IFSOCK
-static_assert (S_ISSOCK (S_IFSOCK));
-#endif
-
-#ifdef S_IFBLK
-static_assert (!S_ISDOOR (S_IFBLK));
-#endif
-static_assert (!S_ISDOOR (S_IFCHR));
-static_assert (!S_ISDOOR (S_IFDIR));
-static_assert (!S_ISDOOR (S_IFIFO));
-static_assert (!S_ISDOOR (S_IFREG));
-#ifdef S_IFLNK
-static_assert (!S_ISDOOR (S_IFLNK));
-#endif
-#ifdef S_IFSOCK
-static_assert (!S_ISDOOR (S_IFSOCK));
-#endif
-
-#ifdef S_IFBLK
-static_assert (!S_ISMPB (S_IFBLK));
-#endif
-static_assert (!S_ISMPB (S_IFCHR));
-static_assert (!S_ISMPB (S_IFDIR));
-static_assert (!S_ISMPB (S_IFIFO));
-static_assert (!S_ISMPB (S_IFREG));
-#ifdef S_IFLNK
-static_assert (!S_ISMPB (S_IFLNK));
-#endif
-#ifdef S_IFSOCK
-static_assert (!S_ISMPB (S_IFSOCK));
-#endif
-
-#ifdef S_IFBLK
-static_assert (!S_ISMPX (S_IFBLK));
-#endif
-static_assert (!S_ISMPX (S_IFCHR));
-static_assert (!S_ISMPX (S_IFDIR));
-static_assert (!S_ISMPX (S_IFIFO));
-static_assert (!S_ISMPX (S_IFREG));
-#ifdef S_IFLNK
-static_assert (!S_ISMPX (S_IFLNK));
-#endif
-#ifdef S_IFSOCK
-static_assert (!S_ISMPX (S_IFSOCK));
-#endif
-
-#ifdef S_IFBLK
-static_assert (!S_ISNAM (S_IFBLK));
-#endif
-static_assert (!S_ISNAM (S_IFCHR));
-static_assert (!S_ISNAM (S_IFDIR));
-static_assert (!S_ISNAM (S_IFIFO));
-static_assert (!S_ISNAM (S_IFREG));
-#ifdef S_IFLNK
-static_assert (!S_ISNAM (S_IFLNK));
-#endif
-#ifdef S_IFSOCK
-static_assert (!S_ISNAM (S_IFSOCK));
-#endif
-
-#ifdef S_IFBLK
-static_assert (!S_ISNWK (S_IFBLK));
-#endif
-static_assert (!S_ISNWK (S_IFCHR));
-static_assert (!S_ISNWK (S_IFDIR));
-static_assert (!S_ISNWK (S_IFIFO));
-static_assert (!S_ISNWK (S_IFREG));
-#ifdef S_IFLNK
-static_assert (!S_ISNWK (S_IFLNK));
-#endif
-#ifdef S_IFSOCK
-static_assert (!S_ISNWK (S_IFSOCK));
-#endif
-
-#ifdef S_IFBLK
-static_assert (!S_ISPORT (S_IFBLK));
-#endif
-static_assert (!S_ISPORT (S_IFCHR));
-static_assert (!S_ISPORT (S_IFDIR));
-static_assert (!S_ISPORT (S_IFIFO));
-static_assert (!S_ISPORT (S_IFREG));
-#ifdef S_IFLNK
-static_assert (!S_ISPORT (S_IFLNK));
-#endif
-#ifdef S_IFSOCK
-static_assert (!S_ISPORT (S_IFSOCK));
-#endif
-
-#ifdef S_IFBLK
-static_assert (!S_ISCTG (S_IFBLK));
-#endif
-static_assert (!S_ISCTG (S_IFCHR));
-static_assert (!S_ISCTG (S_IFDIR));
-static_assert (!S_ISCTG (S_IFIFO));
-static_assert (!S_ISCTG (S_IFREG));
-#ifdef S_IFLNK
-static_assert (!S_ISCTG (S_IFLNK));
-#endif
-#ifdef S_IFSOCK
-static_assert (!S_ISCTG (S_IFSOCK));
-#endif
-
-#ifdef S_IFBLK
-static_assert (!S_ISOFD (S_IFBLK));
-#endif
-static_assert (!S_ISOFD (S_IFCHR));
-static_assert (!S_ISOFD (S_IFDIR));
-static_assert (!S_ISOFD (S_IFIFO));
-static_assert (!S_ISOFD (S_IFREG));
-#ifdef S_IFLNK
-static_assert (!S_ISOFD (S_IFLNK));
-#endif
-#ifdef S_IFSOCK
-static_assert (!S_ISOFD (S_IFSOCK));
-#endif
-
-#ifdef S_IFBLK
-static_assert (!S_ISOFL (S_IFBLK));
-#endif
-static_assert (!S_ISOFL (S_IFCHR));
-static_assert (!S_ISOFL (S_IFDIR));
-static_assert (!S_ISOFL (S_IFIFO));
-static_assert (!S_ISOFL (S_IFREG));
-#ifdef S_IFLNK
-static_assert (!S_ISOFL (S_IFLNK));
-#endif
-#ifdef S_IFSOCK
-static_assert (!S_ISOFL (S_IFSOCK));
-#endif
-
-#ifdef S_IFBLK
-static_assert (!S_ISWHT (S_IFBLK));
-#endif
-static_assert (!S_ISWHT (S_IFCHR));
-static_assert (!S_ISWHT (S_IFDIR));
-static_assert (!S_ISWHT (S_IFIFO));
-static_assert (!S_ISWHT (S_IFREG));
-#ifdef S_IFLNK
-static_assert (!S_ISWHT (S_IFLNK));
-#endif
-#ifdef S_IFSOCK
-static_assert (!S_ISWHT (S_IFSOCK));
-#endif
-
-/* POSIX 2008 requires traditional encoding of permission constants.  */
-static_assert (S_IRWXU == 00700);
-static_assert (S_IRUSR == 00400);
-static_assert (S_IWUSR == 00200);
-static_assert (S_IXUSR == 00100);
-static_assert (S_IRWXG == 00070);
-static_assert (S_IRGRP == 00040);
-static_assert (S_IWGRP == 00020);
-static_assert (S_IXGRP == 00010);
-static_assert (S_IRWXO == 00007);
-static_assert (S_IROTH == 00004);
-static_assert (S_IWOTH == 00002);
-static_assert (S_IXOTH == 00001);
-static_assert (S_ISUID == 04000);
-static_assert (S_ISGID == 02000);
-static_assert (S_ISVTX == 01000);
-
-#if ((0 <= UTIME_NOW && UTIME_NOW < 1000000000)           \
-     || (0 <= UTIME_OMIT && UTIME_OMIT < 1000000000)      \
-     || UTIME_NOW == UTIME_OMIT)
-invalid UTIME macros
-#endif
-
-/* Check the existence of some types.  */
-nlink_t t1;
-off_t t2;
-mode_t t3;
-
-struct timespec st;
-
-int
-main (void)
-{
-  return 0;
-}