Rename module unistd to unistd-h.
authorBruno Haible <bruno@clisp.org>
Fri, 27 Dec 2024 22:41:53 +0000 (23:41 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 27 Dec 2024 22:42:32 +0000 (23:42 +0100)
* modules/unistd-h: Renamed from modules/unistd.
* modules/unistd-h-tests: Renamed from modules/unistd-tests.
* modules/unistd-h-c++-tests: Renamed from modules/unistd-c++-tests.
* tests/test-unistd-h.c: Renamed from tests/test-unistd.c.
* tests/test-unistd-h-c++.cc: Renamed from tests/test-unistd-c++.cc.
* doc/posix-headers/unistd.texi: Update.
* doc/posix-functions/_exit.texi: Update.
* modules/* (Depends-on): Update.
* modules/unistd: New file.

172 files changed:
ChangeLog
doc/posix-functions/_exit.texi
doc/posix-headers/unistd.texi
modules/_Exit
modules/access
modules/acl-tests
modules/areadlink-with-size
modules/areadlinkat-with-size
modules/at-internal
modules/atexit-tests
modules/c-stack
modules/canonicalize
modules/canonicalize-lgpl
modules/careadlinkat
modules/chdir
modules/chdir-long
modules/chown
modules/clean-temp
modules/clean-temp-simple
modules/close
modules/closein
modules/closeout
modules/copy-file
modules/copy-file-range
modules/dfa-tests
modules/dup
modules/dup2
modules/dup3
modules/eloop-threshold
modules/environ
modules/error
modules/euidaccess
modules/execl
modules/execle
modules/execlp
modules/execute
modules/execute-tests
modules/execv
modules/execve
modules/execvp
modules/execvpe
modules/faccessat
modules/fatal-signal
modules/fchdir
modules/fchmodat
modules/fchownat
modules/fcntl-h
modules/fd-hook
modules/fdatasync
modules/fflush
modules/fgetc-tests
modules/file-has-acl-tests
modules/filemode-tests
modules/findprog
modules/findprog-in
modules/findprog-lgpl
modules/flock-tests
modules/fopen
modules/fopen-gnu
modules/forkpty
modules/fputc-tests
modules/fread-tests
modules/freadahead-tests
modules/freadptr-tests
modules/freadseek-tests
modules/free-posix-tests
modules/fstat
modules/fsync
modules/ftruncate
modules/fwrite-tests
modules/get-rusage-as
modules/get-rusage-data
modules/get_ppid_of
modules/get_progname_of
modules/getcwd
modules/getcwd-lgpl
modules/getdomainname
modules/getdtablesize
modules/getentropy
modules/getgroups
modules/gethostname
modules/getlogin
modules/getlogin_r
modules/getopt-gnu-tests
modules/getopt-posix
modules/getopt-posix-tests
modules/getpagesize
modules/getpass
modules/getumask
modules/getusershell
modules/glob
modules/group-member
modules/idpriv-drop
modules/idpriv-droptemp
modules/isapipe
modules/isatty
modules/isatty-tests
modules/javacomp
modules/lchmod
modules/lchown
modules/libtextstyle-optional
modules/link
modules/linkat
modules/lseek
modules/mkdirat
modules/nonblocking
modules/nonblocking-pipe-tests
modules/nonblocking-socket-tests
modules/nproc
modules/openat-h
modules/opendir
modules/pagealign_alloc
modules/pathmax
modules/physmem
modules/pipe-filter-gi
modules/pipe-filter-ii
modules/pipe-posix
modules/pipe2
modules/posix_spawn-internal
modules/posix_spawn-tests
modules/posix_spawnp-tests
modules/posixcheck
modules/pread
modules/pselect-tests
modules/pwrite
modules/raise-tests
modules/read
modules/readlink
modules/readlinkat
modules/relocatable-prog
modules/relocatable-prog-wrapper
modules/rmdir
modules/savewd
modules/select-tests
modules/selinux-at
modules/setenv
modules/sethostname
modules/sigpipe
modules/sleep
modules/spawn-pipe
modules/stat-time-tests
modules/stdlib-h
modules/stdopen
modules/symlink
modules/symlinkat
modules/sys_ioctl-h
modules/system-quote-tests
modules/term-style-control-tests
modules/termcap-tests
modules/terminfo-tests
modules/truncate
modules/ttyname_r
modules/unistd
modules/unistd-c++-tests [deleted file]
modules/unistd-h [new file with mode: 0644]
modules/unistd-h-c++-tests [new file with mode: 0644]
modules/unistd-h-tests [new file with mode: 0644]
modules/unistd-safer
modules/unistd-tests [deleted file]
modules/unlink
modules/unlinkat
modules/unsetenv
modules/usleep
modules/vma-iter
modules/wait-process
modules/windows-spawn
modules/write
modules/xnanosleep
tests/test-unistd-c++.cc [deleted file]
tests/test-unistd-h-c++.cc [new file with mode: 0644]
tests/test-unistd-h.c [new file with mode: 0644]
tests/test-unistd.c [deleted file]

index bd47146e5c645948198faf132a68a617388bfbdf..d672709aa8d7496f4966b2dec24c21ecf69ef3f9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2024-12-27  Bruno Haible  <bruno@clisp.org>
+
+       Rename module unistd to unistd-h.
+       * modules/unistd-h: Renamed from modules/unistd.
+       * modules/unistd-h-tests: Renamed from modules/unistd-tests.
+       * modules/unistd-h-c++-tests: Renamed from modules/unistd-c++-tests.
+       * tests/test-unistd-h.c: Renamed from tests/test-unistd.c.
+       * tests/test-unistd-h-c++.cc: Renamed from tests/test-unistd-c++.cc.
+       * doc/posix-headers/unistd.texi: Update.
+       * doc/posix-functions/_exit.texi: Update.
+       * modules/* (Depends-on): Update.
+       * modules/unistd: New file.
+
 2024-12-27  Bruno Haible  <bruno@clisp.org>
 
        Rename module uchar-c23 to uchar-h-c23.
index 1673102849a16efface649db110b7a3c4e401613..1647a8126324b1ce0b16012983f2ecdc47c1e451 100644 (file)
@@ -4,8 +4,8 @@
 
 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/functions/_exit.html}
 
-Gnulib module: unistd
-@mindex unistd
+Gnulib module: unistd-h
+@mindex unistd-h
 
 Portability problems fixed by Gnulib:
 @itemize
index 9e7d49e732db69a08f2e451aacd8acc251496c7e..70c9a87154387674d3440e4d7f144c08f9151fe7 100644 (file)
@@ -3,8 +3,8 @@
 
 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/unistd.h.html}
 
-Gnulib module: unistd
-@mindex unistd
+Gnulib module: unistd-h
+@mindex unistd-h
 
 Portability problems fixed by Gnulib:
 @itemize
index 3258de89576dae37b5c191a2ae60fabae4f67917..21f2ca173f9f9a3f62b0633c6dc5c68c1bd998fe 100644 (file)
@@ -7,7 +7,7 @@ m4/_Exit.m4
 
 Depends-on:
 stdlib-h
-unistd
+unistd-h
 
 configure.ac:
 gl_FUNC__EXIT
index 543857a1faec723b99cc860d5bfdb1e02a0a70b2..fd03060252a3698cd8ae32fea1786bd1d3ac87a2 100644 (file)
@@ -6,7 +6,7 @@ lib/access.c
 m4/access.m4
 
 Depends-on:
-unistd
+unistd-h
 fcntl
 stat
 
index 7cb39e975897d2bfe0ece070359a9e34eeb661d3..5add9405bc356bfac7a17b95360341366d8575a0 100644 (file)
@@ -13,7 +13,7 @@ tests/macros.h
 Depends-on:
 file-has-acl-tests
 read-file
-unistd
+unistd-h
 xalloc
 test-framework-sh
 
index ff2c7872bde99681057912bdd0016908de86e950..5fa73c4a6a7d8ac181b3c7deb95f9ef158b90639 100644 (file)
@@ -11,7 +11,7 @@ limits-h
 readlink
 ssize_t
 stdint-h
-unistd
+unistd-h
 
 configure.ac:
 
index b0a1cdefa6e7f6f6572d6414eba694df4a49dbdc..1834d024840a2c216b258228a45609b89b6b0dfe 100644 (file)
@@ -21,7 +21,7 @@ limits-h
 openat-die
 openat-h
 save-cwd
-unistd
+unistd-h
 
 configure.ac:
 gl_MODULE_INDICATOR([areadlinkat-with-size])
index 4b70b1f61abfd97738943a677171564cee27107c..56e884e1e8a31bdc1f3ce14ff6ae366fd408abb3 100644 (file)
@@ -11,7 +11,7 @@ fcntl-h
 intprops
 open       [case $host_os in mingw* | windows*) false;; *) :;; esac]
 sys_stat-h
-unistd
+unistd-h
 
 configure.ac:
 AC_REQUIRE([AC_CANONICAL_HOST])
index 815fce08d2faefb2033c716ee10cdbbb4629a613..922dcd56a8420251066437e882e13f245f28cfac 100644 (file)
@@ -5,7 +5,7 @@ tests/test-atexit.c
 
 Depends-on:
 test-framework-sh
-unistd
+unistd-h
 
 configure.ac:
 
index a9d0805e26251f64115538ecd864364a876939d1..fcb6bf9651612c7988e28062e4ace8a1e25e66f4 100644 (file)
@@ -20,7 +20,7 @@ mempcpy
 raise
 sigsegv
 stddef-h
-unistd
+unistd-h
 
 configure.ac:
 gl_C_STACK
index 6abcde32cbcbb243df217b1087e23cb3429f2297..1c263e8bce32ce4f9d3db9a8b13e93f75d74bb1c 100644 (file)
@@ -28,7 +28,7 @@ glibc-internal/scratch_buffer
 stat
 stdbool-h
 sys_stat-h
-unistd
+unistd-h
 xalloc-die
 
 configure.ac:
index 04d68e55630bbc6382ff2a3ebd184571e78fc677..bc99dd8d1f8e9fdf06feec6582ad7961167e5e86 100644 (file)
@@ -28,7 +28,7 @@ glibc-internal/scratch_buffer [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $RE
 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-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]
+unistd-h                      [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
 
 configure.ac:
 gl_CANONICALIZE_LGPL
index 05e54e88298bd6f285ab47a0a89e826e7b1d65e7..557fc6d1591df584251695a9fc6403193d070a5c 100644 (file)
@@ -11,7 +11,7 @@ idx
 limits-h
 minmax
 ssize_t
-unistd
+unistd-h
 
 configure.ac:
 AC_REQUIRE([AC_C_RESTRICT])
index caa9c2cdfb6763d5f9231550bf20a0880769b340..350418728c7461aa204504bd7b7de0f298a25f55 100644 (file)
@@ -4,7 +4,7 @@ chdir() function: switch to another current directory
 Files:
 
 Depends-on:
-unistd
+unistd-h
 
 configure.ac:
 gl_UNISTD_MODULE_INDICATOR([chdir])
index 3eee2c2b1ae5089e18d29c1a5e9b803789d37fcd..a533331a1db606c613e12cb0adfa788fd1d35952 100644 (file)
@@ -8,7 +8,7 @@ m4/chdir-long.m4
 m4/pathmax.m4
 
 Depends-on:
-unistd
+unistd-h
 pathmax
 chdir
 assure          [test $gl_cv_have_unlimited_file_name_length = no]
index 2ab3c3fd973237c5932539f0e4869507ef1d7450..4f9163e43bd5ad9b5c4bfe493e81c4d128fb2561 100644 (file)
@@ -7,7 +7,7 @@ lib/fchown-stub.c
 m4/chown.m4
 
 Depends-on:
-unistd
+unistd-h
 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]
index 6bb95be065f928b5b240b6cdf9d4f841bf9efe1f..3309ac348171cdab21d6e34f3ad972ecbc86dcb0 100644 (file)
@@ -11,7 +11,7 @@ stdbool-h
 clean-temp-simple
 list
 asyncsafe-spin
-unistd
+unistd-h
 lock
 thread-optim
 error
index b7feaee80935eabf37a5292bbe2abce8a73a3530..e56b1b03d0ac8e3ad42c6ccf73d5e3006d41f0e0 100644 (file)
@@ -11,7 +11,7 @@ c99
 stdbool-h
 list
 asyncsafe-spin
-unistd
+unistd-h
 lock
 once
 thread-optim
index fbb54063c6bc989b68254894450c3ae800601aa0..45b3a29062a0981fdda65e712ad7805b333920c5 100644 (file)
@@ -6,7 +6,7 @@ lib/close.c
 m4/close.m4
 
 Depends-on:
-unistd
+unistd-h
 fd-hook         [test $REPLACE_CLOSE = 1]
 msvc-inval      [test $REPLACE_CLOSE = 1]
 
index 1c135ba9c250ba142c39aa1561d5c01001339f07..8374fe15539647cd550f628d9ea2812eb8664ebf 100644 (file)
@@ -12,7 +12,7 @@ fflush
 gettext-h
 gnulib-i18n
 stdbool-h
-unistd
+unistd-h
 
 configure.ac:
 
index 3a5596b5fcce7321bcd106d030c689f69a2e4fac..1022680becccd106fba624d64657f3c61837bc6e 100644 (file)
@@ -13,7 +13,7 @@ error
 quotearg
 exitfail
 stdbool-h
-unistd
+unistd-h
 
 configure.ac:
 
index d72de05328d3afa5577ed921c985e78e73d44e15..c63bba9a77cba9cd2bd225a91937d5d2810805eb 100644 (file)
@@ -24,7 +24,7 @@ quote
 safe-read
 stat-time
 stdlib-h
-unistd
+unistd-h
 utimens
 
 configure.ac:
index 4707f9756199d924997cd135ebb9d05ffdcbc1d2..12b6fcb86eabfaf60015c60ac9e3d7265b34fb4e 100644 (file)
@@ -7,7 +7,7 @@ m4/copy-file-range.m4
 
 Depends-on:
 largefile
-unistd
+unistd-h
 
 configure.ac:
 gl_FUNC_COPY_FILE_RANGE
index 6cdacf985f4f40ede7fe1ecca22c13982e1e8e6f..8ae462bda6c0c4e4cc04ded44e1570d801eecd45 100644 (file)
@@ -9,7 +9,7 @@ binary-io
 stdio-h
 stdlib-h
 string-h
-unistd
+unistd-h
 regex
 setlocale
 test-framework-sh
index 2f42e07356f895aa345219fa5c3ce7ff23401fdc..a6bdf37ba733064bc51745a259d1eeb29648fccb 100644 (file)
@@ -6,7 +6,7 @@ lib/dup.c
 m4/dup.m4
 
 Depends-on:
-unistd
+unistd-h
 msvc-inval      [test $REPLACE_DUP = 1]
 
 configure.ac:
index acbc017069befd558726f7dd9fb4dc442145c3d2..c297a625ab4831fa2e114e40845a055a2bb6f731 100644 (file)
@@ -6,7 +6,7 @@ lib/dup2.c
 m4/dup2.m4
 
 Depends-on:
-unistd
+unistd-h
 msvc-inval      [test $REPLACE_DUP2 = 1]
 msvc-nothrow    [test $REPLACE_DUP2 = 1]
 
index c007e7258c7d6b684003c69d950aeb3fbdd37d0d..966cbd27253b10665b0d5b76d041959fe8a45630 100644 (file)
@@ -6,7 +6,7 @@ lib/dup3.c
 m4/dup3.m4
 
 Depends-on:
-unistd
+unistd-h
 fcntl
 binary-io
 getdtablesize
index 60433e530c0122f0fc1f20ccf090d5031e7a3c52..3cb5834cc63ead54064d86dd8424c7fe9da8318d 100644 (file)
@@ -6,7 +6,7 @@ lib/eloop-threshold.h
 
 Depends-on:
 minmax
-unistd
+unistd-h
 
 configure.ac:
 
index 5c9c8363139858a6ca47f560923d64146e3144bf..fe5bf39ddd48a326a0e2d11bfc4536e08e3c3bd3 100644 (file)
@@ -5,7 +5,7 @@ Files:
 m4/environ.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 
 configure.ac:
index e3b8a654498ca15272a7d14a1db22dbe77e73019..f7fbfa6347734c0d921f6579c29a9b3fc810ad1d 100644 (file)
@@ -13,7 +13,7 @@ getprogname     [test $COMPILE_ERROR_C = 1]
 gettext-h       [test $COMPILE_ERROR_C = 1]
 gnulib-i18n     [test $COMPILE_ERROR_C = 1]
 strerror        [test $COMPILE_ERROR_C = 1]
-unistd          [test $COMPILE_ERROR_C = 1]
+unistd-h        [test $COMPILE_ERROR_C = 1]
 msvc-nothrow    [test $COMPILE_ERROR_C = 1]
 
 configure.ac:
index 5fa0e3dc4a668afb2fc43a647c45cf9eb4f3cb01..566667cabfb7a1fbfddcf7d81fd4ee7e83832ea6 100644 (file)
@@ -6,7 +6,7 @@ lib/euidaccess.c
 m4/euidaccess.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 root-uid
 fcntl-h
index 8465221c67d9fe7257e7591195843f5e2c89f1ca..611b47c18cd12b5ad7c70a53acbb886b181c0a89 100644 (file)
@@ -6,7 +6,7 @@ lib/execl.c
 m4/execl.m4
 
 Depends-on:
-unistd
+unistd-h
 execv           [test $REPLACE_EXECL = 1]
 malloca         [test $REPLACE_EXECL = 1]
 
index 586efa177c2561c8de0a8f147c9e1f9db95a2132..b8426e81344cafa6e0a19336f6331dff67a760cf 100644 (file)
@@ -6,7 +6,7 @@ lib/execle.c
 m4/execle.m4
 
 Depends-on:
-unistd
+unistd-h
 execve          [test $REPLACE_EXECLE = 1]
 malloca         [test $REPLACE_EXECLE = 1]
 
index 769b3f452837bfcc5a7e33b7e650aac5253d53de..81708a86fcf58bcbb11ecf7f9c8bb617b2ad601e 100644 (file)
@@ -6,7 +6,7 @@ lib/execlp.c
 m4/execlp.m4
 
 Depends-on:
-unistd
+unistd-h
 execvp          [test $REPLACE_EXECLP = 1]
 malloca         [test $REPLACE_EXECLP = 1]
 
index c847eddf27b907bc232299c28aebbc7a968a8a03..80f102c4d7e69459c7e3d722666a19b90be6b853 100644 (file)
@@ -32,7 +32,7 @@ posix_spawnattr_destroy
 stdbool-h
 stdlib-h
 sys_wait-h
-unistd
+unistd-h
 wait-process
 windows-spawn
 xalloc-die
index 8f6bdd15ccda82d892221c83f0190f48d64de21c..60bcbe7c78206f8e231c5c15f8b2ac16f0c7a5c9 100644 (file)
@@ -17,7 +17,7 @@ msvc-inval
 read-file
 stdbool-h
 stdint-h
-unistd
+unistd-h
 
 configure.ac:
 dnl Test for Linux system call close_range(), declared in <unistd.h>.
index 244d79405f5166b26ba11ca542ab440f6f995e38..c303be2ae26da33acd858818fb177b2ea3dae22e 100644 (file)
@@ -6,7 +6,7 @@ lib/execv.c
 m4/execv.m4
 
 Depends-on:
-unistd
+unistd-h
 environ         [test $REPLACE_EXECV = 1]
 execve          [test $REPLACE_EXECV = 1]
 
index f9f034d1dd139f7c86553c7c72cb315adf2d1080..39a981df8b0101fe0aabc09c5d0e529879a89e26 100644 (file)
@@ -6,7 +6,7 @@ lib/execve.c
 m4/execve.m4
 
 Depends-on:
-unistd
+unistd-h
 posix_spawn     [test $REPLACE_EXECVE = 1]
 close           [test $REPLACE_EXECVE = 1]
 sys_wait-h      [test $REPLACE_EXECVE = 1]
index 0436444d8c53b7eac2d8f56faa75ff4d0c3301da..3f396156f793130fb13dcb7d2e57a63bbea0dabe 100644 (file)
@@ -6,7 +6,7 @@ lib/execvp.c
 m4/execvp.m4
 
 Depends-on:
-unistd
+unistd-h
 environ         [test $REPLACE_EXECVP = 1]
 execvpe         [test $REPLACE_EXECVP = 1]
 
index b15df01cc71b4f8859624d1390a66f57613aa6bc..7ca8859dbe3b0a64d9d364151e061d927f507dd5 100644 (file)
@@ -6,7 +6,7 @@ lib/execvpe.c
 m4/execvpe.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 free-posix      [test $HAVE_EXECVPE = 0 || test $REPLACE_EXECVPE = 1]
 stdbool-h       [test $HAVE_EXECVPE = 0 || test $REPLACE_EXECVPE = 1]
index 90513909f2e7e8f5942c81b22d4727fc3feb13f5..ed2a338a53894a4ee2938165ac665aae5bc22df3 100644 (file)
@@ -7,7 +7,7 @@ lib/at-func.c
 m4/faccessat.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 at-internal     [test $HAVE_FACCESSAT = 0 || test $REPLACE_FACCESSAT = 1]
 errno-h         [test $HAVE_FACCESSAT = 0 || test $REPLACE_FACCESSAT = 1]
index 8c847a1096dcebef43dc7543ef44062a96cfb714..25e7cfa81ca2d550cc99f7d64fcd24662513f31c 100644 (file)
@@ -10,7 +10,7 @@ m4/sig_atomic_t.m4
 Depends-on:
 c99
 stdbool-h
-unistd
+unistd-h
 sigaction
 lock
 once
index e9430bcc7204247795baa74af812f5860f930677..986b231d7af55363a77951bd4fabf76add3ebd56 100644 (file)
@@ -7,7 +7,7 @@ m4/fchdir.m4
 
 Depends-on:
 dirent-h
-unistd
+unistd-h
 assure           [test $HAVE_FCHDIR = 0 || test $REPLACE_FCHDIR = 1]
 chdir            [test $HAVE_FCHDIR = 0 || test $REPLACE_FCHDIR = 1]
 close            [test $HAVE_FCHDIR = 0 || test $REPLACE_FCHDIR = 1]
index c99baf63c3566580c926981fe4e01168ac50ac6f..3afd0efd3035397d56dc159d4e31d346e4a0b383 100644 (file)
@@ -11,7 +11,7 @@ sys_stat-h
 extensions
 errno-h         [test $HAVE_FCHMODAT = 0 || test $REPLACE_FCHMODAT = 1]
 fcntl-h         [test $HAVE_FCHMODAT = 0 || test $REPLACE_FCHMODAT = 1]
-unistd          [test $HAVE_FCHMODAT = 0 || test $REPLACE_FCHMODAT = 1]
+unistd-h        [test $HAVE_FCHMODAT = 0 || test $REPLACE_FCHMODAT = 1]
 intprops        [test $HAVE_FCHMODAT = 0 || test $REPLACE_FCHMODAT = 1]
 c99             [test $REPLACE_FCHMODAT = 1]
 at-internal     [test $HAVE_FCHMODAT = 0]
index 44d5cfc9b6ef4fb549981075612d81f9d7bfcaa4..e373463d0e1e10ef5d3bfa9176851ae332d83f8d 100644 (file)
@@ -7,7 +7,7 @@ lib/at-func.c
 m4/fchownat.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 at-internal     [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1]
 errno-h         [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1]
index 9ea889dfd975f5bd7eba833fadc66d9c5eab4549..2f383ff0c8b46512e2e0de84683443c369c6d9d3 100644 (file)
@@ -15,7 +15,7 @@ snippet/arg-nonnull
 snippet/c++defs
 snippet/warn-on-use
 sys_types-h
-unistd
+unistd-h
 
 configure.ac:
 gl_FCNTL_H
index ea99919c5fe5e3d9a73b17c25651b19e0e4f2cb5..38cab56f73eda15367ed56b7612f5d4580c41615 100644 (file)
@@ -6,7 +6,7 @@ lib/fd-hook.h
 lib/fd-hook.c
 
 Depends-on:
-unistd
+unistd-h
 
 configure.ac:
 
index 4d13a97cdb53a0b4cf80a402e59d3cbeda00558c..d8f2efabb05565d28719fc08034cec6e0cc41bf1 100644 (file)
@@ -7,7 +7,7 @@ m4/fdatasync.m4
 
 Depends-on:
 fsync         [test $HAVE_FDATASYNC = 0 || test $REPLACE_FDATASYNC = 1]
-unistd
+unistd-h
 
 configure.ac:
 gl_FUNC_FDATASYNC
index 0f76f0d6699722b9015bc21e2ae331fac83e0a2c..e2521abc38ada89532df1188e697bffbd508b536 100644 (file)
@@ -12,7 +12,7 @@ fpurge                    [test $REPLACE_FFLUSH = 1]
 ftello                    [test $REPLACE_FFLUSH = 1]
 freading                  [test $REPLACE_FFLUSH = 1]
 lseek                     [test $REPLACE_FFLUSH = 1]
-unistd                    [test $REPLACE_FFLUSH = 1]
+unistd-h                  [test $REPLACE_FFLUSH = 1]
 fseeko                    [test $REPLACE_FFLUSH = 1]
 
 configure.ac-early:
index 9e2934d97b13154e3cf8c3eff41330dfba6873a9..b3d4e5856ef58e86c2bde0123c5b50563067ec00 100644 (file)
@@ -4,7 +4,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
-unistd
+unistd-h
 fdopen
 msvc-inval
 
index 843d55b515c176fced3e6d53c17aed9137d6a170..f34d8733f92c354dedd7d4775015cf3a2791d25b 100644 (file)
@@ -6,7 +6,7 @@ tests/test-file-has-acl.c
 tests/macros.h
 
 Depends-on:
-unistd
+unistd-h
 test-framework-sh
 
 configure.ac:
index 985de902720861cc0bf60ca6a70fa2dfb84d69d7..da025e981eee65be63947fff041b6f327e8a16e8 100644 (file)
@@ -3,7 +3,7 @@ tests/test-filemode.c
 tests/macros.h
 
 Depends-on:
-unistd
+unistd-h
 
 configure.ac:
 
index dd35034b75c05db15523bebf483fbdc4fb8ba863..da9d51c221a7d0f05e331b4661f58eb0d8c235ec 100644 (file)
@@ -14,7 +14,7 @@ xalloc
 xconcat-filename
 access
 stat
-unistd
+unistd-h
 
 configure.ac:
 gl_FINDPROG
index 9710899134cdda21968ace5c8cb8d80622f9db55..f4ff89587a5b46959e5216254dab4305473dd8af 100644 (file)
@@ -16,7 +16,7 @@ access
 stat
 strdup-posix
 malloc-posix
-unistd
+unistd-h
 
 configure.ac:
 gl_FINDPROG_IN
index 98301787ba6dc57d896e6b5f63efc09fe570701f..e7d273a2e13090db5060e71ad737acfeab89666c 100644 (file)
@@ -15,7 +15,7 @@ strdup
 concat-filename
 access
 stat
-unistd
+unistd-h
 
 configure.ac:
 gl_FINDPROG
index 27670e92aa43dca81ee406d13db9176348f437b1..a1bb790efac6c54fdb89853b52d3b233e007966b 100644 (file)
@@ -4,7 +4,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
-unistd
+unistd-h
 test-xfail
 
 configure.ac:
index 6bfb4c08c524f516ff3b6c6019edfc1a0ee4e1b2..ad06df283d664e5f37f017929a88d7f2c4569bd5 100644 (file)
@@ -12,7 +12,7 @@ stdio-h
 largefile
 fcntl-h         [test $REPLACE_FOPEN = 1]
 stdbool-h       [test $REPLACE_FOPEN = 1]
-unistd          [test $REPLACE_FOPEN = 1]
+unistd-h        [test $REPLACE_FOPEN = 1]
 close           [test $REPLACE_FOPEN = 1]
 fstat           [test $REPLACE_FOPEN = 1]
 
index 7ee83015d184a8a8710c53b1a0cd666377704513..65ff96c9a89eb23bd9c781f961241ed15e034b01 100644 (file)
@@ -9,7 +9,7 @@ fopen
 open            [test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1]
 fcntl-h         [test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1]
 stdbool-h       [test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1]
-unistd          [test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1]
+unistd-h        [test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1]
 close           [test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1]
 fstat           [test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1]
 
index 0ff4bc750b28da698d4adf82c7397cb8f7b18cc6..31bf3d0fd9af7425444460f34f291b8e7a81a3cf 100644 (file)
@@ -8,7 +8,7 @@ m4/pty.m4
 
 Depends-on:
 pty-h
-unistd
+unistd-h
 openpty
 login_tty
 
index 6d99adfcf6d161a4b1d6be4889c48e5c43958500..ffe76ca763bb01b0794c35a2b01284560bfa40c7 100644 (file)
@@ -4,7 +4,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
-unistd
+unistd-h
 fdopen
 msvc-inval
 
index 0423ffc297e95be589ff832b6f88b3a470b22556..adb4ffc1b20e4824b269bbd09dec213cbf1c4e5f 100644 (file)
@@ -4,7 +4,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
-unistd
+unistd-h
 fdopen
 msvc-inval
 
index 1b53268a156229daff3b74ed3358d8dd8b56ffd8..1dd73ef310b094beedfe3c5e7fca8c72b5afa771 100644 (file)
@@ -5,7 +5,7 @@ tests/macros.h
 
 Depends-on:
 lseek
-unistd
+unistd-h
 
 configure.ac:
 
index f8bf1bc57d35b3d7512705f3a7cfebf2eb09e743..fdb44af0418956b207932b73fc511db9389d8d89 100644 (file)
@@ -7,7 +7,7 @@ tests/macros.h
 
 Depends-on:
 lseek
-unistd
+unistd-h
 
 configure.ac:
 
index d101582d22e0228257bfb3ff4dc5ad1c6cfc9149..86dfeebd7e3438e6715207cb0571a5afb7d37d73 100644 (file)
@@ -4,7 +4,7 @@ tests/test-freadseek.sh
 tests/macros.h
 
 Depends-on:
-unistd
+unistd-h
 
 configure.ac:
 
index 8e81c22149e9b350a1221a1f0d866ec0c475384f..8745445f56113826fdabc1a0dd28524eb78b7827 100644 (file)
@@ -3,7 +3,7 @@ tests/test-free.c
 tests/macros.h
 
 Depends-on:
-unistd
+unistd-h
 
 configure.ac:
 
index f7468dbc1b2bd436a3e76ebac72151f58bb7606e..432742e97937e099e019aa0e17fa20dbaa229bc1 100644 (file)
@@ -13,7 +13,7 @@ largefile
 pathmax         [test $REPLACE_FSTAT = 1]
 stat            [test $REPLACE_FSTAT = 1]
 stat-time       [test $REPLACE_FSTAT = 1]
-unistd          [test $REPLACE_FSTAT = 1]
+unistd-h        [test $REPLACE_FSTAT = 1]
 assert-h        [test $REPLACE_FSTAT = 1]
 msvc-nothrow    [test $REPLACE_FSTAT = 1]
 
index 34759335795dfd837c36fa28093c9fac43d038b5..27285ddaed2dff765e3bbc59d0b2b93af8de02b8 100644 (file)
@@ -6,7 +6,7 @@ lib/fsync.c
 m4/fsync.m4
 
 Depends-on:
-unistd
+unistd-h
 msvc-nothrow    [test $HAVE_FSYNC = 0]
 
 configure.ac:
index be79ee513e6d97eac7eb039ee3ed7fc9c39aa519..d1f51d5e5f0c6877dc2635e5c996186ceac8f605 100644 (file)
@@ -6,7 +6,7 @@ lib/ftruncate.c
 m4/ftruncate.m4
 
 Depends-on:
-unistd
+unistd-h
 sys_types-h
 largefile
 msvc-nothrow    [test $HAVE_FTRUNCATE = 0 || test $REPLACE_FTRUNCATE = 1]
index 1b7bf2f8be89e512fd497f17f6960c0c76984ad0..63f2bb50ae6b249823df43a7245d31b0a2d74b72 100644 (file)
@@ -4,7 +4,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
-unistd
+unistd-h
 fdopen
 msvc-inval
 
index 41796a1de7b7b797dca43243ecc6c5abbab40ca6..ecb41e1b2a04179b7518c7d2878b1bd41685e4fb 100644 (file)
@@ -8,7 +8,7 @@ m4/mmap-anon.m4
 
 Depends-on:
 stdint-h
-unistd
+unistd-h
 extensions
 getpagesize
 open
index 1b8e40171c8decd453e248232937c9282835a3be..1a7bf899035f31c806e66c268d01eee133ed2f3e 100644 (file)
@@ -8,7 +8,7 @@ m4/mmap-anon.m4
 
 Depends-on:
 stdint-h
-unistd
+unistd-h
 extensions
 getpagesize
 vma-iter
index bc38b8c2141e5a790808348f8429abc7266ad83a..361a375f2b9f756d7c3df0e3afedc3a697c35af1 100644 (file)
@@ -8,7 +8,7 @@ lib/get_ppid_of.c
 Depends-on:
 extensions
 sys_types-h
-unistd
+unistd-h
 open
 
 configure.ac:
index 51cef7ef4207dfe9e30d87e004e4711d35c97580..252f86ac9a30f4d960b52e5ec795ee7449408fd0 100644 (file)
@@ -7,7 +7,7 @@ lib/get_progname_of.c
 
 Depends-on:
 extensions
-unistd
+unistd-h
 open
 
 configure.ac:
index 954b371e319e5265bfa9a9f680625281ab193afd..95e2b5462706ac9fce91f18ebb1894137dc56e0d 100644 (file)
@@ -9,7 +9,7 @@ m4/getcwd.m4
 m4/pathmax.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 pathmax         [test $REPLACE_GETCWD = 1]
 msvc-inval      [test $REPLACE_GETCWD = 1]
index ae11d286b467104ecd02ecca81dd282d48fd9b3c..099b7755d321c523e594905da1a21b912ebe4ef0 100644 (file)
@@ -6,7 +6,7 @@ lib/getcwd-lgpl.c
 m4/getcwd.m4
 
 Depends-on:
-unistd
+unistd-h
 free-posix      [test $REPLACE_GETCWD = 1]
 strdup          [test $REPLACE_GETCWD = 1]
 
index 80f1112f0d90cec1abb38bf6d2b54f99a876c4cc..b1f50486a5a64655bc384c2005143e56800ee9d9 100644 (file)
@@ -6,7 +6,7 @@ lib/getdomainname.c
 m4/getdomainname.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 netdb-h         [test $HAVE_DECL_GETDOMAINNAME = 0 || test $REPLACE_GETDOMAINNAME = 1]
 sys_socket-h    [test $HAVE_DECL_GETDOMAINNAME = 0 || test $REPLACE_GETDOMAINNAME = 1]
index fa0392400b05464fb8af2cc02fb842c7745b9d04..6087c4bf50fd63cd44116f9f343eddb49487ba9e 100644 (file)
@@ -6,7 +6,7 @@ lib/getdtablesize.c
 m4/getdtablesize.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 msvc-inval      [test $HAVE_GETDTABLESIZE = 0]
 
index 3b0c434547a69c444ffdc1ae0ff9f6d77c3f5725..ac2020916394778e8164b7fdef84e6c6f21e82aa 100644 (file)
@@ -8,7 +8,7 @@ m4/getentropy.m4
 Depends-on:
 getrandom      [test $HAVE_GETENTROPY = 0 || test $REPLACE_GETENTROPY = 1]
 extensions
-unistd
+unistd-h
 
 configure.ac:
 gl_FUNC_GETENTROPY
index eef80a4a78fc024367ac599dae3724b85f9170ba..8d8f4d1e38619727de3c271c50c54bb216d2ac75 100644 (file)
@@ -6,7 +6,7 @@ lib/getgroups.c
 m4/getgroups.m4
 
 Depends-on:
-unistd
+unistd-h
 free-posix      [test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1]
 malloc-posix    [test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1]
 stdint-h        [test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1]
index 0ba26342189ed461a957d5a496229299df67823d..0e4cc30f14ce0f87f72f2c32aba3f1b0e9eb8c82 100644 (file)
@@ -7,7 +7,7 @@ m4/gethostname.m4
 lib/w32sock.h
 
 Depends-on:
-unistd
+unistd-h
 sys_socket-h    [test $HAVE_GETHOSTNAME = 0]
 errno-h         [test $HAVE_GETHOSTNAME = 0]
 sockets         [test $HAVE_GETHOSTNAME = 0]
index c73b2a9a2edc009ed1a40fb97cdd660d1d98f905..8725a7031efce41f437083b469c5252c13da07bc 100644 (file)
@@ -6,7 +6,7 @@ lib/getlogin.c
 m4/getlogin.m4
 
 Depends-on:
-unistd
+unistd-h
 
 configure.ac:
 gl_FUNC_GETLOGIN
index 843bcde19c62648ffd65ef0cc2a9ff441d257d9e..de85572dc9d8332711bc25542c9c97001cba77f1 100644 (file)
@@ -7,7 +7,7 @@ m4/getlogin_r.m4
 m4/getlogin.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 malloca         [test $HAVE_GETLOGIN_R = 0 || test $REPLACE_GETLOGIN_R = 1]
 memchr          [test $HAVE_GETLOGIN_R = 0 || test $REPLACE_GETLOGIN_R = 1]
index 67cbe8a0645874c93b7b02b9ead3141255a53229..3f930657943b52a195f817e3f40a2f012db68155 100644 (file)
@@ -10,7 +10,7 @@ Depends-on:
 dup2
 setenv
 stdbool-h
-unistd
+unistd-h
 unsetenv
 
 configure.ac:
index d8d628ab5632f7010f8cb8d912461a9a3fcdf648..28ab405471d5d090430dcb017cfc80b2c11dc317 100644 (file)
@@ -15,7 +15,7 @@ m4/getopt.m4
 m4/sys_cdefs_h.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 include_next
 gen-header
index 6b36c1e738c0af7ce0d02ca976cc3ffa382634c2..d7020c24ae711a69ecc9614962a728011ad7638c 100644 (file)
@@ -9,7 +9,7 @@ Depends-on:
 dup2
 setenv
 stdbool-h
-unistd
+unistd-h
 unsetenv
 
 configure.ac:
index a883edf06794cf3fb599eb5e9bbfeba37eac4f4d..3148cbcaca2d7841dacb502c121e33a8c13cce61 100644 (file)
@@ -6,7 +6,7 @@ lib/getpagesize.c
 m4/getpagesize.m4
 
 Depends-on:
-unistd
+unistd-h
 
 configure.ac:
 gl_FUNC_GETPAGESIZE
index 24b4214afff7b31a34acfd785f407cb95e96dd1e..0c575f0984e9744f5f10e46dcec8c4635171018a 100644 (file)
@@ -8,7 +8,7 @@ m4/getpass.m4
 m4/tcgetattr.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 fopen-gnu
 fseeko
index 8484c4b15de8279ddd19ac4aa4abe336a0557f65..5c475a2003e48b556d89d649848642c5b57331c9 100644 (file)
@@ -9,7 +9,7 @@ Depends-on:
 sys_stat-h
 extensions
 c99             [test $HAVE_GETUMASK = 0]
-unistd          [test $HAVE_GETUMASK = 0]
+unistd-h        [test $HAVE_GETUMASK = 0]
 clean-temp      [test $HAVE_GETUMASK = 0]
 tempname        [test $HAVE_GETUMASK = 0]
 
index c9ef576e25e50b14cddc7e1afe4d904e1651a6a3..a9f7fc99767e0075f26316bdb0e93fae510bea84 100644 (file)
@@ -6,7 +6,7 @@ lib/getusershell.c
 m4/getusershell.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 fopen                [test $HAVE_GETUSERSHELL = 0 || test $REPLACE_GETUSERSHELL = 1]
 getline              [test $HAVE_GETUSERSHELL = 0 || test $REPLACE_GETUSERSHELL = 1]
index 20bf5cddba60f4a9e9c2903b4e91e7f9766114d4..a1a13295303c65ed597916e572580d092a8c8bd2 100644 (file)
@@ -32,7 +32,7 @@ stdbool-h                     [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
 stdckdint-h                   [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
 stdint-h                      [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
 strdup                        [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
-unistd                        [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
+unistd-h                      [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
 malloc-posix                  [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1]
 
 configure.ac:
index 619b6318efadc7218938f112dd4c47d25fb0ec78..f058d88419094401fdf506d33169bcada9d5ae3a 100644 (file)
@@ -6,7 +6,7 @@ lib/group-member.c
 m4/group-member.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 getgroups        [test $HAVE_GROUP_MEMBER = 0]
 malloc-gnu       [test $HAVE_GROUP_MEMBER = 0]
index e7f0a1d7debe4fb630d2942db238ebb16d237843..60ed6500e7b8de94c6c6ddcb7252d55fb5d43916 100644 (file)
@@ -7,7 +7,7 @@ lib/idpriv-drop.c
 m4/idpriv.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 
 configure.ac:
index bbc9961de0e193e83f70c10396f2ff059f690084..abe2ec07e1f15236d56c95280a6cae105ae1a348 100644 (file)
@@ -7,7 +7,7 @@ lib/idpriv-droptemp.c
 m4/idpriv.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 
 configure.ac:
index 5e401bfcf00ecfe09ec4b72c426e1058cf7eff51..afea7ae4f95a998394600b1211797de9479835c0 100644 (file)
@@ -9,7 +9,7 @@ m4/isapipe.m4
 Depends-on:
 stdbool-h       [test $HAVE_ISAPIPE = 0]
 sys_stat-h      [test $HAVE_ISAPIPE = 0]
-unistd          [test $HAVE_ISAPIPE = 0]
+unistd-h        [test $HAVE_ISAPIPE = 0]
 msvc-nothrow    [test $HAVE_ISAPIPE = 0]
 fstat           [test $HAVE_ISAPIPE = 0]
 
index dce8551c9fa6e84d95912f47388fd9806641efa1..e2fd7f09cd0fa3a7b39ea4cde62498c715e983b8 100644 (file)
@@ -6,7 +6,7 @@ lib/isatty.c
 m4/isatty.m4
 
 Depends-on:
-unistd
+unistd-h
 msvc-inval      [test $REPLACE_ISATTY = 1]
 msvc-nothrow    [test $REPLACE_ISATTY = 1]
 
index dff2d1723afbc392817dec2f6554ecd977126c77..005a9016b578ee2d033080e43d8f48a8ab9d2d51 100644 (file)
@@ -4,7 +4,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
-unistd
+unistd-h
 pipe-posix
 
 configure.ac:
index e966b07d0c6f80a6acd6be2b4bc36d6430c4bde5..722414095f57a8f84c0c346aeb210822a7fd67c2 100644 (file)
@@ -7,7 +7,7 @@ lib/javacomp.c
 
 Depends-on:
 stdbool-h
-unistd
+unistd-h
 javaversion
 execute
 spawn-pipe
index c6a529b8dc8fb1d214cb5141c7ded20d61fe5b09..c087bfa00cd47ddeb9c1f3c83bdee92efe64968e 100644 (file)
@@ -14,7 +14,7 @@ intprops      [test $HAVE_LCHMOD = 0]
 lstat         [test $HAVE_LCHMOD = 0]
 readlink      [test $HAVE_LCHMOD = 0]
 sys_stat-h
-unistd        [test $HAVE_LCHMOD = 0]
+unistd-h      [test $HAVE_LCHMOD = 0]
 
 configure.ac:
 gl_FUNC_LCHMOD
index e0d20324d0955be2b85b7df4831cf33a02fa0202..f817226ceb69e3b8707d2a121db98b7d3b322099 100644 (file)
@@ -6,7 +6,7 @@ lib/lchown.c
 m4/lchown.m4
 
 Depends-on:
-unistd
+unistd-h
 readlink        [test $HAVE_LCHOWN = 0]
 chown           [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
 errno-h         [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
index 8f757224be2bcf2f7e9562970cd294671c45441f..96c864aaa4255178aa1ebe1f443b9f9aaf0816ea 100644 (file)
@@ -10,7 +10,7 @@ gen-header
 libtextstyle
 stdbool-h
 stdio-h
-unistd
+unistd-h
 fsync
 vasprintf-posix
 
index a0aaf1bf4e17117fcd6ebb4afaed2614e2c3ac9f..f7097b62d7ba768caa46041bb1151d32022d6f34 100644 (file)
@@ -6,7 +6,7 @@ lib/link.c
 m4/link.m4
 
 Depends-on:
-unistd
+unistd-h
 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]
index 4b0fcf1e6e69c3125fbe3bc9a1caa2254e15796e..ae53d9fddf7d4b00b138989748280729313d515c 100644 (file)
@@ -7,7 +7,7 @@ lib/linkat.c
 m4/linkat.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 areadlink        [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
 at-internal      [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
index a00d9beeb931bc1c0b1e54dd48254efb90567e78..9491d973dabaa6cecefa29b427659db94c5e1517 100644 (file)
@@ -6,7 +6,7 @@ lib/lseek.c
 m4/lseek.m4
 
 Depends-on:
-unistd
+unistd-h
 sys_types-h
 largefile
 msvc-nothrow    [test $REPLACE_LSEEK = 1]
index 71be95ce36c77649c6ce96bf2139465b65081e09..0471bf396a6ecc569d2ad73ca6b482bc5864eb81 100644 (file)
@@ -18,7 +18,7 @@ mkdir           [test $HAVE_MKDIRAT = 0]
 openat-die      [test $HAVE_MKDIRAT = 0]
 openat-h        [test $HAVE_MKDIRAT = 0]
 save-cwd        [test $HAVE_MKDIRAT = 0]
-unistd          [test $HAVE_MKDIRAT = 0]
+unistd-h        [test $HAVE_MKDIRAT = 0]
 
 configure.ac:
 gl_FUNC_MKDIRAT
index 6d059d4aaabc0e2a5906c61b00e0f4b53a3898f4..4e4eccb5d5a587b379518e23b7730b336a09574d 100644 (file)
@@ -16,7 +16,7 @@ msvc-nothrow
 stdbool-h
 stdio-h
 sys_socket-h
-unistd
+unistd-h
 
 configure.ac:
 gl_NONBLOCKING_IO
index e03332648ed9449c734f515643da8410138bef55..f4ab7226d4174a2a9d25ca0af134385a0371932e 100644 (file)
@@ -10,7 +10,7 @@ tests/macros.h
 
 Depends-on:
 stdbool-h
-unistd
+unistd-h
 nonblocking
 wait-process
 pipe-posix
index bd206098071db9fb71582e4090a421f41b4183c9..f70ad9795c34ef66bbec2a692cee70a4212dbfc3 100644 (file)
@@ -12,7 +12,7 @@ tests/macros.h
 
 Depends-on:
 stdbool-h
-unistd
+unistd-h
 sys_socket-h
 nonblocking
 wait-process
index 525957942793cb7f7ea751c3f80fa2027696f354..1081f7b778abd55d805bbd320a46ab81f184e417 100644 (file)
@@ -10,7 +10,7 @@ Depends-on:
 c-ctype
 extensions
 minmax
-unistd
+unistd-h
 
 configure.ac:
 gl_NPROC
index e2b58ddbb32eb5b093da282f11ddc89254d8a15d..61b3a998fd2f476ad66281af7a5add6a2f687adc 100644 (file)
@@ -9,7 +9,7 @@ extern-inline
 fcntl-h
 stdbool-h
 sys_stat-h
-unistd
+unistd-h
 
 configure.ac:
 
index 17df7ad399d58e5ba4c55be908972d61220e52e6..b9a6dfe2d7e773e6b413abdd4ebd84c61d52ecad 100644 (file)
@@ -10,7 +10,7 @@ Depends-on:
 dirent-h
 largefile
 filename        [test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1]
-unistd          [test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1]
+unistd-h        [test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1]
 closedir        [test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1]
 dirfd           [test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1]
 
index edc7422c4b59b115cfb84ba9e62e30a99da5b94f..59afe866de924c92d2fe667eaab281df39cf054d 100644 (file)
@@ -16,7 +16,7 @@ gnulib-i18n
 open
 stdlib-h
 xalloc
-unistd
+unistd-h
 
 configure.ac:
 gl_PAGEALIGN_ALLOC
index 27ca4908f9e44ea362cd7889a6cad4e318925757..be1ebdcbbddb9d906dda8b62d4d5f7be12260b10 100644 (file)
@@ -6,7 +6,7 @@ lib/pathmax.h
 m4/pathmax.m4
 
 Depends-on:
-unistd
+unistd-h
 
 configure.ac:
 gl_PATHMAX
index e1a4a7670045d2e4a1d0a1eb62e61ae3691fe82b..0a9acb007d9d6b16b6b484221bb773e5fed575c5 100644 (file)
@@ -7,7 +7,7 @@ lib/physmem.c
 m4/physmem.m4
 
 Depends-on:
-unistd
+unistd-h
 full-read
 
 configure.ac:
index 6841bdd7e083a167b5b7ecb39e6b123b8547139d..6799276b497f7403d0fcbcc377c0b1285eb24a52 100644 (file)
@@ -20,7 +20,7 @@ stdbool-h
 stdint-h
 stdlib-h
 sys_select-h
-unistd
+unistd-h
 xalloc
 
 configure.ac:
index c01d406f8c1201233ea3f386ed22f7022f1be67e..ce911331a0c0e601f21e1cd45b34abb0b27d1433 100644 (file)
@@ -19,7 +19,7 @@ stdbool-h
 stdint-h
 stdlib-h
 sys_select-h
-unistd
+unistd-h
 
 configure.ac:
 AC_CHECK_FUNCS_ONCE([select])
index aaf19c2bf13a9c1e0b3ef9dcb47bcfba9e4639d1..20f24a66a468303603e75691e974c4edf33e7b10 100644 (file)
@@ -6,7 +6,7 @@ lib/pipe.c
 m4/pipe.m4
 
 Depends-on:
-unistd
+unistd-h
 
 configure.ac:
 gl_FUNC_PIPE
index a933d626f014d2317a082db29405b22557de5b53..d77988a9649c81250eacd9602ef7da97cc20a89e 100644 (file)
@@ -6,7 +6,7 @@ lib/pipe2.c
 m4/pipe2.m4
 
 Depends-on:
-unistd
+unistd-h
 fcntl-h
 binary-io
 extensions
index 192e765dcb21328198722f9a11ab0df562cd6639..8940a4b1abfd8efd2fa4f36501c178f54d686b0b 100644 (file)
@@ -14,7 +14,7 @@ errno-h
 open
 sh-filename
 strchrnul
-unistd
+unistd-h
 filename        [test $HAVE_POSIX_SPAWN = 0]
 concat-filename [test $HAVE_POSIX_SPAWN = 0]
 findprog-in     [test $HAVE_POSIX_SPAWN = 0]
index 84c1e560b3a853f2283613e0fb404ac77f37f3f0..801b42658e839f30b68b4f20fee4f8013ce5a886 100644 (file)
@@ -15,7 +15,7 @@ posix_spawn_file_actions_init
 posix_spawn_file_actions_addopen
 posix_spawn_file_actions_destroy
 stdbool-h
-unistd
+unistd-h
 sys_wait-h
 environ
 fflush
index c3350464227f89cf1dc9ff0dae3cdb1c39f27ccc..dddf6478a0c2d81814915e798ebf2c20f06b6763 100644 (file)
@@ -21,7 +21,7 @@ posix_spawnattr_setsigmask
 posix_spawnattr_setflags
 posix_spawnattr_destroy
 stdbool-h
-unistd
+unistd-h
 sys_wait-h
 dup
 environ
index a7fd34fa0efa92036df2556c3f3b77276adfacfd..ba980e62431733e4890031e8f4db47dd59a26bdd 100644 (file)
@@ -47,7 +47,7 @@ termios-h
 threads-h
 time-h
 uchar-h
-unistd
+unistd-h
 utime-h
 utmp
 wchar
index 3494cd8d9ea89e246f4ca1db832faf737098b8a9..2d9be148883d8084f6b5c4d1152d32acea3cd71b 100644 (file)
@@ -6,7 +6,7 @@ lib/pread.c
 m4/pread.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 largefile
 lseek           [test $HAVE_PREAD = 0 || test $REPLACE_PREAD = 1]
index c90a5d12cd8db35f14157483da77ae5e94fac861..298fbb5561144d9f27b2b364e7ecb244427dd7cf 100644 (file)
@@ -8,7 +8,7 @@ Depends-on:
 stdbool-h
 netinet_in-h
 arpa_inet-h
-unistd
+unistd-h
 sys_ioctl-h
 extensions
 inet_pton
index 78e602f0e9abe449f7e8912adf7f8ef05014362c..53aedb769643c9c99f6ae43ff3ac573142163553 100644 (file)
@@ -6,7 +6,7 @@ lib/pwrite.c
 m4/pwrite.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 largefile
 lseek           [test $HAVE_PWRITE = 0 || test $REPLACE_PWRITE = 1]
index 4804cad38d0d783e4f3f9d9cb8e69fb1606cf823..93a6b99a3708990041ba3af321534c027cb8325d 100644 (file)
@@ -4,7 +4,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
-unistd
+unistd-h
 
 configure.ac:
 
index 494506559c3ba20d5035aa2ddd0349e98a75fd8e..d0b601a3c2f35fc2281823c781956acfd49d70b5 100644 (file)
@@ -6,7 +6,7 @@ lib/read.c
 m4/read.m4
 
 Depends-on:
-unistd
+unistd-h
 msvc-inval      [test $REPLACE_READ = 1]
 msvc-nothrow    [test $REPLACE_READ = 1]
 
index 35d65bdd5dc011f91b39e0005cd62c0281f9e029..be981c06c8e264cd1e09c99837f2bb4ef506e941 100644 (file)
@@ -6,7 +6,7 @@ lib/readlink.c
 m4/readlink.m4
 
 Depends-on:
-unistd
+unistd-h
 stat            [test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1]
 
 configure.ac:
index cf52690b7b198af2633a2c33fe36a107825ac706..a5e2b3e2134c83514db835919f7ddfae0a99dcc4 100644 (file)
@@ -7,7 +7,7 @@ lib/at-func.c
 m4/readlinkat.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 at-internal     [test $HAVE_READLINKAT = 0 || test $REPLACE_READLINKAT = 1]
 errno-h         [test $HAVE_READLINKAT = 0 || test $REPLACE_READLINKAT = 1]
index 22ac5cda4f33b8631909a4168d83c2bfd4eb0562..23b0fef895f51a3e4d1bba68c62df501d63e7d8c 100644 (file)
@@ -23,7 +23,7 @@ xalloc
 xreadlink
 open
 stdbool-h
-unistd
+unistd-h
 memcmp
 strdup
 
index 66f385df3150370ad71d5e90a2f236d346db9fa4..bf2535933ef34ee27a578ef8d5a1f28e7a339f7c 100644 (file)
@@ -76,7 +76,7 @@ stdint-h
 stdlib-h
 string-h
 sys_stat-h
-unistd
+unistd-h
 xalloc-oversized
 
 configure.ac-early:
index 66557f34b9338df0be4cf3f5065270fd7486dfb3..6789480e225a8ed17c5c0b103683b7f39d6063cb 100644 (file)
@@ -6,7 +6,7 @@ lib/rmdir.c
 m4/rmdir.m4
 
 Depends-on:
-unistd
+unistd-h
 filename        [test $REPLACE_RMDIR = 1]
 sys_stat-h      [test $REPLACE_RMDIR = 1]
 
index 750d7cf64799df4e13a87a39c7e3953de232e4fe..4a2c5d7cdc1219a7e8adbcb7b349d6e33eaa7983 100644 (file)
@@ -19,7 +19,7 @@ raise
 stdbool-h
 stdlib-h
 sys_wait-h
-unistd
+unistd-h
 xalloc
 
 configure.ac:
index f3a6ef01d2aa7457f4cccab5d3d447f8d8e07f8f..25f493f5b216d54aa7315564b6d5437b9e1c3485 100644 (file)
@@ -13,7 +13,7 @@ stdbool-h
 sys_socket-h
 netinet_in-h
 arpa_inet-h
-unistd
+unistd-h
 sys_ioctl-h
 extensions
 inet_pton
index b1d6e84926563a34ebaabfe4a54ec5f8fa354910..84bf7e49825a573351e3e3cf2450088368fbfb06 100644 (file)
@@ -17,7 +17,7 @@ filename
 openat-die
 openat-h
 save-cwd
-unistd
+unistd-h
 
 configure.ac:
 AC_CHECK_HEADERS([selinux/flask.h])
index 26517c0262e84a2b2a0d8723ed5e3dc16a81dd68..df5b9c014df327b205b71e4283096d9db1020974 100644 (file)
@@ -10,7 +10,7 @@ stdlib-h
 malloca         [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1]
 alloca-opt      [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1]
 malloc-posix    [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1]
-unistd          [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1]
+unistd-h        [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1]
 environ         [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1]
 
 configure.ac:
index 1dfa64e551c47b5c59ebe1216e8c8805e4c62fc3..33b581f58d3d36817a84a01d1cebc8d2b1cdafc0 100644 (file)
@@ -7,7 +7,7 @@ m4/sethostname.m4
 m4/gethostname.m4
 
 Depends-on:
-unistd
+unistd-h
 errno-h         [test $HAVE_SETHOSTNAME = 0 || test $REPLACE_SETHOSTNAME = 1]
 fopen-gnu       [test $HAVE_SETHOSTNAME = 0 || test $REPLACE_SETHOSTNAME = 1]
 
index 2e67f072185c12ae48c4d66447835de8ab0e84a9..857a8cb285ac0a485a68cfde72d26e64d2dacfb0 100644 (file)
@@ -17,7 +17,7 @@ raise
 signal-h
 sigprocmask
 stdio-h
-unistd
+unistd-h
 
 configure.ac:
 gl_SIGNAL_SIGPIPE
index b733b4f2ee2a1e87395c58c369ed7e6d9d14268f..716cdedaf69b342844de3dca2785fb72d22bc195 100644 (file)
@@ -6,7 +6,7 @@ lib/sleep.c
 m4/sleep.m4
 
 Depends-on:
-unistd
+unistd-h
 assert-h        [test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1]
 stdint-h        [test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1]
 
index 1e82681dfeb3284ef1c2d4b77914b13aba0bc7d9..0ad87102e352a6a9654e76ef7968ef686e641e8a 100644 (file)
@@ -39,7 +39,7 @@ posix_spawnattr_setflags
 posix_spawnattr_destroy
 stdbool-h
 stdlib-h
-unistd
+unistd-h
 unistd-safer
 wait-process
 windows-spawn
index 5107493c6efc624acefd9d2b408264bcae1a3373..e38fb2d19a14b1011de216a613bbaab1c2d947b4 100644 (file)
@@ -7,7 +7,7 @@ Depends-on:
 nanosleep
 stdckdint-h
 time-h
-unistd
+unistd-h
 xconcat-filename
 xgetcwd
 
index e1fe525665a99fd11e99dcdbb878961aca8bc416..10fb93b700026d6b4450cac5b8b7c54ab1310ff2 100644 (file)
@@ -17,7 +17,7 @@ snippet/c++defs
 snippet/warn-on-use
 snippet/_Noreturn
 stddef-h
-unistd
+unistd-h
 
 configure.ac:
 gl_STDLIB_H
index 81de5765b8ecd065ad6bad542c8fb480fe78d4fb..e3bc75aa417437999107a22e72c3e9b40ce77386 100644 (file)
@@ -7,7 +7,7 @@ lib/stdopen.h
 
 Depends-on:
 fcntl
-unistd
+unistd-h
 
 configure.ac:
 
index a54e4e2ab3fea32fa24346a58df82469b7843d7c..804c611eee2b88603e8b218292f0ebadda91cd9e 100644 (file)
@@ -6,7 +6,7 @@ lib/symlink.c
 m4/symlink.m4
 
 Depends-on:
-unistd
+unistd-h
 lstat           [test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1]
 
 configure.ac:
index 4f6ea3b9cd30e426a38629640a4cdc058baf10de..797b961ee04783f227ead4a57c9516d369fc0d95 100644 (file)
@@ -7,7 +7,7 @@ lib/at-func.c
 m4/symlinkat.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 fcntl-h         [test $HAVE_SYMLINKAT = 0 || test $REPLACE_SYMLINKAT = 1]
 at-internal     [test $HAVE_SYMLINKAT = 0]
index cf99b56252abf0ed21ee7d89466944c04f465f7f..7f988b151c4a515b3698e71932a28ac8a55ff8c6 100644 (file)
@@ -10,7 +10,7 @@ gen-header
 include_next
 snippet/c++defs
 snippet/warn-on-use
-unistd
+unistd-h
 
 configure.ac:
 gl_SYS_IOCTL_H
index 02e18e454d7190f7d10d8c36783e4cda88541b63..7776ef8a255f46acded05e028c03cd9a03f2ce05 100644 (file)
@@ -9,7 +9,7 @@ tests/macros.h
 
 Depends-on:
 stdbool-h
-unistd
+unistd-h
 popen
 pclose
 
index c051966a42f1d2861199e12d1eb43fe805b8143b..e6fc895e5c7cefc95d68ef5e2d50ce0c5565650b 100644 (file)
@@ -4,7 +4,7 @@ tests/test-term-style-control-yes.c
 
 Depends-on:
 stdbool-h
-unistd
+unistd-h
 full-write
 
 configure.ac:
index bbe285458020150fde7faa00c68138489fecf5b9..df13cc9326c4f84bf754b997fe00c540494d3f48 100644 (file)
@@ -3,7 +3,7 @@ tests/test-termcap.c
 
 Depends-on:
 termcap-h
-unistd
+unistd-h
 
 configure.ac:
 
index 50d7a45d7405c9ada01122169ea04568af093f2b..fec31878b8ac26ccb5984e927b7901211de68424 100644 (file)
@@ -3,7 +3,7 @@ tests/test-terminfo.c
 
 Depends-on:
 terminfo-h
-unistd
+unistd-h
 
 configure.ac:
 
index 1baee02cdaab06f172601f649798f08f7d0bcd97..6b80e9c74f710be134c9d8e6966ef1b9e6a143f9 100644 (file)
@@ -6,7 +6,7 @@ lib/truncate.c
 m4/truncate.m4
 
 Depends-on:
-unistd
+unistd-h
 sys_types-h
 largefile
 sys_stat-h
index 6417d30395a17ebf3c1172ffc86f695bb2f929c2..eb9f35ec7190b0330bb9c0843a8aedb2dde2c765 100644 (file)
@@ -6,7 +6,7 @@ lib/ttyname_r.c
 m4/ttyname_r.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 
 configure.ac:
index af7fda5944c7a2bb268f6223c02685bf6c8785a8..20cef458f7a6644332ab179f1de349eab76bb64d 100644 (file)
 Description:
 A GNU-like <unistd.h>.
 
+Status:
+deprecated
+
+Notice:
+This module is deprecated. Use the module 'unistd-h' instead.
+
 Files:
-m4/unistd_h.m4
-lib/unistd.c
-lib/unistd.in.h
-m4/off_t.m4
-m4/pid_t.m4
 
 Depends-on:
-extern-inline
-gen-header
-include_next
-snippet/arg-nonnull
-snippet/c++defs
-snippet/warn-on-use
-ssize_t
-stddef-h
-sys_types-h
+unistd-h
 
 configure.ac:
-gl_UNISTD_H
-gl_UNISTD_H_REQUIRE_DEFAULTS
-AC_PROG_MKDIR_P
 
 Makefile.am:
-BUILT_SOURCES += unistd.h
-lib_SOURCES += unistd.c
-
-# We need the following in order to create an empty placeholder for
-# <unistd.h> when the system doesn't have one.
-unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
-@NMD@  $(AM_V_GEN)$(MKDIR_P) '%reldir%'
-       $(gl_V_at)$(SED_HEADER_STDOUT) \
-             -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
-             -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|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_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \
-             -e 's|@''WINDOWS_64_BIT_OFF_T''@|$(WINDOWS_64_BIT_OFF_T)|g' \
-             -e 's/@''GNULIB_ACCESS''@/$(GNULIB_ACCESS)/g' \
-             -e 's/@''GNULIB_CHDIR''@/$(GNULIB_CHDIR)/g' \
-             -e 's/@''GNULIB_CHOWN''@/$(GNULIB_CHOWN)/g' \
-             -e 's/@''GNULIB_CLOSE''@/$(GNULIB_CLOSE)/g' \
-             -e 's/@''GNULIB_COPY_FILE_RANGE''@/$(GNULIB_COPY_FILE_RANGE)/g' \
-             -e 's/@''GNULIB_DUP''@/$(GNULIB_DUP)/g' \
-             -e 's/@''GNULIB_DUP2''@/$(GNULIB_DUP2)/g' \
-             -e 's/@''GNULIB_DUP3''@/$(GNULIB_DUP3)/g' \
-             -e 's/@''GNULIB_ENVIRON''@/$(GNULIB_ENVIRON)/g' \
-             -e 's/@''GNULIB_EUIDACCESS''@/$(GNULIB_EUIDACCESS)/g' \
-             -e 's/@''GNULIB_EXECL''@/$(GNULIB_EXECL)/g' \
-             -e 's/@''GNULIB_EXECLE''@/$(GNULIB_EXECLE)/g' \
-             -e 's/@''GNULIB_EXECLP''@/$(GNULIB_EXECLP)/g' \
-             -e 's/@''GNULIB_EXECV''@/$(GNULIB_EXECV)/g' \
-             -e 's/@''GNULIB_EXECVE''@/$(GNULIB_EXECVE)/g' \
-             -e 's/@''GNULIB_EXECVP''@/$(GNULIB_EXECVP)/g' \
-             -e 's/@''GNULIB_EXECVPE''@/$(GNULIB_EXECVPE)/g' \
-             -e 's/@''GNULIB_FACCESSAT''@/$(GNULIB_FACCESSAT)/g' \
-             -e 's/@''GNULIB_FCHDIR''@/$(GNULIB_FCHDIR)/g' \
-             -e 's/@''GNULIB_FCHOWNAT''@/$(GNULIB_FCHOWNAT)/g' \
-             -e 's/@''GNULIB_FDATASYNC''@/$(GNULIB_FDATASYNC)/g' \
-             -e 's/@''GNULIB_FSYNC''@/$(GNULIB_FSYNC)/g' \
-             -e 's/@''GNULIB_FTRUNCATE''@/$(GNULIB_FTRUNCATE)/g' \
-             < $(srcdir)/unistd.in.h > $@-t1
-       $(AM_V_at)sed \
-             -e 's/@''GNULIB_GETCWD''@/$(GNULIB_GETCWD)/g' \
-             -e 's/@''GNULIB_GETDOMAINNAME''@/$(GNULIB_GETDOMAINNAME)/g' \
-             -e 's/@''GNULIB_GETDTABLESIZE''@/$(GNULIB_GETDTABLESIZE)/g' \
-             -e 's/@''GNULIB_GETENTROPY''@/$(GNULIB_GETENTROPY)/g' \
-             -e 's/@''GNULIB_GETGROUPS''@/$(GNULIB_GETGROUPS)/g' \
-             -e 's/@''GNULIB_GETHOSTNAME''@/$(GNULIB_GETHOSTNAME)/g' \
-             -e 's/@''GNULIB_GETLOGIN''@/$(GNULIB_GETLOGIN)/g' \
-             -e 's/@''GNULIB_GETLOGIN_R''@/$(GNULIB_GETLOGIN_R)/g' \
-             -e 's/@''GNULIB_GETOPT_POSIX''@/$(GNULIB_GETOPT_POSIX)/g' \
-             -e 's/@''GNULIB_GETPAGESIZE''@/$(GNULIB_GETPAGESIZE)/g' \
-             -e 's/@''GNULIB_GETPASS''@/$(GNULIB_GETPASS)/g' \
-             -e 's/@''GNULIB_GETPASS_GNU''@/$(GNULIB_GETPASS_GNU)/g' \
-             -e 's/@''GNULIB_GETUSERSHELL''@/$(GNULIB_GETUSERSHELL)/g' \
-             -e 's/@''GNULIB_GROUP_MEMBER''@/$(GNULIB_GROUP_MEMBER)/g' \
-             -e 's/@''GNULIB_ISATTY''@/$(GNULIB_ISATTY)/g' \
-             -e 's/@''GNULIB_LCHOWN''@/$(GNULIB_LCHOWN)/g' \
-             -e 's/@''GNULIB_LINK''@/$(GNULIB_LINK)/g' \
-             -e 's/@''GNULIB_LINKAT''@/$(GNULIB_LINKAT)/g' \
-             -e 's/@''GNULIB_LSEEK''@/$(GNULIB_LSEEK)/g' \
-             -e 's/@''GNULIB_PIPE''@/$(GNULIB_PIPE)/g' \
-             -e 's/@''GNULIB_PIPE2''@/$(GNULIB_PIPE2)/g' \
-             -e 's/@''GNULIB_PREAD''@/$(GNULIB_PREAD)/g' \
-             -e 's/@''GNULIB_PWRITE''@/$(GNULIB_PWRITE)/g' \
-             -e 's/@''GNULIB_READ''@/$(GNULIB_READ)/g' \
-             -e 's/@''GNULIB_READLINK''@/$(GNULIB_READLINK)/g' \
-             -e 's/@''GNULIB_READLINKAT''@/$(GNULIB_READLINKAT)/g' \
-             -e 's/@''GNULIB_RMDIR''@/$(GNULIB_RMDIR)/g' \
-             -e 's/@''GNULIB_SETHOSTNAME''@/$(GNULIB_SETHOSTNAME)/g' \
-             -e 's/@''GNULIB_SLEEP''@/$(GNULIB_SLEEP)/g' \
-             -e 's/@''GNULIB_SYMLINK''@/$(GNULIB_SYMLINK)/g' \
-             -e 's/@''GNULIB_SYMLINKAT''@/$(GNULIB_SYMLINKAT)/g' \
-             -e 's/@''GNULIB_TRUNCATE''@/$(GNULIB_TRUNCATE)/g' \
-             -e 's/@''GNULIB_TTYNAME_R''@/$(GNULIB_TTYNAME_R)/g' \
-             -e 's/@''GNULIB_UNISTD_H_GETOPT''@/0$(GNULIB_UNISTD_H_GETOPT)/g' \
-             -e 's/@''GNULIB_UNISTD_H_NONBLOCKING''@/$(GNULIB_UNISTD_H_NONBLOCKING)/g' \
-             -e 's/@''GNULIB_UNISTD_H_SIGPIPE''@/$(GNULIB_UNISTD_H_SIGPIPE)/g' \
-             -e 's/@''GNULIB_UNLINK''@/$(GNULIB_UNLINK)/g' \
-             -e 's/@''GNULIB_UNLINKAT''@/$(GNULIB_UNLINKAT)/g' \
-             -e 's/@''GNULIB_USLEEP''@/$(GNULIB_USLEEP)/g' \
-             -e 's/@''GNULIB_WRITE''@/$(GNULIB_WRITE)/g' \
-             -e 's/@''GNULIB_MDA_ACCESS''@/$(GNULIB_MDA_ACCESS)/g' \
-             -e 's/@''GNULIB_MDA_CHDIR''@/$(GNULIB_MDA_CHDIR)/g' \
-             -e 's/@''GNULIB_MDA_CLOSE''@/$(GNULIB_MDA_CLOSE)/g' \
-             -e 's/@''GNULIB_MDA_DUP''@/$(GNULIB_MDA_DUP)/g' \
-             -e 's/@''GNULIB_MDA_DUP2''@/$(GNULIB_MDA_DUP2)/g' \
-             -e 's/@''GNULIB_MDA_EXECL''@/$(GNULIB_MDA_EXECL)/g' \
-             -e 's/@''GNULIB_MDA_EXECLE''@/$(GNULIB_MDA_EXECLE)/g' \
-             -e 's/@''GNULIB_MDA_EXECLP''@/$(GNULIB_MDA_EXECLP)/g' \
-             -e 's/@''GNULIB_MDA_EXECV''@/$(GNULIB_MDA_EXECV)/g' \
-             -e 's/@''GNULIB_MDA_EXECVE''@/$(GNULIB_MDA_EXECVE)/g' \
-             -e 's/@''GNULIB_MDA_EXECVP''@/$(GNULIB_MDA_EXECVP)/g' \
-             -e 's/@''GNULIB_MDA_EXECVPE''@/$(GNULIB_MDA_EXECVPE)/g' \
-             -e 's/@''GNULIB_MDA_GETCWD''@/$(GNULIB_MDA_GETCWD)/g' \
-             -e 's/@''GNULIB_MDA_GETPID''@/$(GNULIB_MDA_GETPID)/g' \
-             -e 's/@''GNULIB_MDA_ISATTY''@/$(GNULIB_MDA_ISATTY)/g' \
-             -e 's/@''GNULIB_MDA_LSEEK''@/$(GNULIB_MDA_LSEEK)/g' \
-             -e 's/@''GNULIB_MDA_READ''@/$(GNULIB_MDA_READ)/g' \
-             -e 's/@''GNULIB_MDA_RMDIR''@/$(GNULIB_MDA_RMDIR)/g' \
-             -e 's/@''GNULIB_MDA_SWAB''@/$(GNULIB_MDA_SWAB)/g' \
-             -e 's/@''GNULIB_MDA_UNLINK''@/$(GNULIB_MDA_UNLINK)/g' \
-             -e 's/@''GNULIB_MDA_WRITE''@/$(GNULIB_MDA_WRITE)/g' \
-             < $@-t1 > $@-t2
-       $(AM_V_at)sed \
-             -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \
-             -e 's|@''HAVE_COPY_FILE_RANGE''@|$(HAVE_COPY_FILE_RANGE)|g' \
-             -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \
-             -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \
-             -e 's|@''HAVE_EXECVPE''@|$(HAVE_EXECVPE)|g' \
-             -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \
-             -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \
-             -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \
-             -e 's|@''HAVE_FDATASYNC''@|$(HAVE_FDATASYNC)|g' \
-             -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \
-             -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \
-             -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \
-             -e 's|@''HAVE_GETENTROPY''@|$(HAVE_GETENTROPY)|g' \
-             -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \
-             -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \
-             -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \
-             -e 's|@''HAVE_GETPASS''@|$(HAVE_GETPASS)|g' \
-             -e 's|@''HAVE_GROUP_MEMBER''@|$(HAVE_GROUP_MEMBER)|g' \
-             -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \
-             -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \
-             -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \
-             -e 's|@''HAVE_PIPE''@|$(HAVE_PIPE)|g' \
-             -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \
-             -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \
-             -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \
-             -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \
-             -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \
-             -e 's|@''HAVE_SETHOSTNAME''@|$(HAVE_SETHOSTNAME)|g' \
-             -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \
-             -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \
-             -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \
-             -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \
-             -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \
-             -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \
-             -e 's|@''HAVE_DECL_EXECVPE''@|$(HAVE_DECL_EXECVPE)|g' \
-             -e 's|@''HAVE_DECL_FCHDIR''@|$(HAVE_DECL_FCHDIR)|g' \
-             -e 's|@''HAVE_DECL_FDATASYNC''@|$(HAVE_DECL_FDATASYNC)|g' \
-             -e 's|@''HAVE_DECL_GETDOMAINNAME''@|$(HAVE_DECL_GETDOMAINNAME)|g' \
-             -e 's|@''HAVE_DECL_GETLOGIN''@|$(HAVE_DECL_GETLOGIN)|g' \
-             -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \
-             -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \
-             -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \
-             -e 's|@''HAVE_DECL_SETHOSTNAME''@|$(HAVE_DECL_SETHOSTNAME)|g' \
-             -e 's|@''HAVE_DECL_TRUNCATE''@|$(HAVE_DECL_TRUNCATE)|g' \
-             -e 's|@''HAVE_DECL_TTYNAME_R''@|$(HAVE_DECL_TTYNAME_R)|g' \
-             -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
-             -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
-             < $@-t2 > $@-t3
-       $(AM_V_at)sed \
-             -e 's|@''REPLACE_ACCESS''@|$(REPLACE_ACCESS)|g' \
-             -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
-             -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
-             -e 's|@''REPLACE_COPY_FILE_RANGE''@|$(REPLACE_COPY_FILE_RANGE)|g' \
-             -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \
-             -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \
-             -e 's|@''REPLACE_DUP3''@|$(REPLACE_DUP3)|g' \
-             -e 's|@''REPLACE_EXECL''@|$(REPLACE_EXECL)|g' \
-             -e 's|@''REPLACE_EXECLE''@|$(REPLACE_EXECLE)|g' \
-             -e 's|@''REPLACE_EXECLP''@|$(REPLACE_EXECLP)|g' \
-             -e 's|@''REPLACE_EXECV''@|$(REPLACE_EXECV)|g' \
-             -e 's|@''REPLACE_EXECVE''@|$(REPLACE_EXECVE)|g' \
-             -e 's|@''REPLACE_EXECVP''@|$(REPLACE_EXECVP)|g' \
-             -e 's|@''REPLACE_EXECVPE''@|$(REPLACE_EXECVPE)|g' \
-             -e 's|@''REPLACE_FACCESSAT''@|$(REPLACE_FACCESSAT)|g' \
-             -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \
-             -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \
-             -e 's|@''REPLACE_FDATASYNC''@|$(REPLACE_FDATASYNC)|g' \
-             -e 's|@''REPLACE_FTRUNCATE''@|$(REPLACE_FTRUNCATE)|g' \
-             -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \
-             -e 's|@''REPLACE_GETDOMAINNAME''@|$(REPLACE_GETDOMAINNAME)|g' \
-             -e 's|@''REPLACE_GETDTABLESIZE''@|$(REPLACE_GETDTABLESIZE)|g' \
-             -e 's|@''REPLACE_GETENTROPY''@|$(REPLACE_GETENTROPY)|g' \
-             -e 's|@''REPLACE_GETLOGIN_R''@|$(REPLACE_GETLOGIN_R)|g' \
-             -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \
-             -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \
-             -e 's|@''REPLACE_GETPASS''@|$(REPLACE_GETPASS)|g' \
-             -e 's|@''REPLACE_GETPASS_FOR_GETPASS_GNU''@|$(REPLACE_GETPASS_FOR_GETPASS_GNU)|g' \
-             -e 's|@''REPLACE_GETUSERSHELL''@|$(REPLACE_GETUSERSHELL)|g' \
-             -e 's|@''REPLACE_ISATTY''@|$(REPLACE_ISATTY)|g' \
-             -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \
-             -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \
-             -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \
-             -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \
-             -e 's|@''REPLACE_PIPE2''@|$(REPLACE_PIPE2)|g' \
-             -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \
-             -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \
-             -e 's|@''REPLACE_READ''@|$(REPLACE_READ)|g' \
-             -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \
-             -e 's|@''REPLACE_READLINKAT''@|$(REPLACE_READLINKAT)|g' \
-             -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \
-             -e 's|@''REPLACE_SETHOSTNAME''@|$(REPLACE_SETHOSTNAME)|g' \
-             -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \
-             -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \
-             -e 's|@''REPLACE_SYMLINKAT''@|$(REPLACE_SYMLINKAT)|g' \
-             -e 's|@''REPLACE_TRUNCATE''@|$(REPLACE_TRUNCATE)|g' \
-             -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \
-             -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \
-             -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \
-             -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \
-             -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \
-             -e 's|@''UNISTD_H_HAVE_SYS_RANDOM_H''@|$(UNISTD_H_HAVE_SYS_RANDOM_H)|g' \
-             -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \
-             -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|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)' \
-             < $@-t3 > $@-t4
-       $(AM_V_at)rm -f $@-t1 $@-t2 $@-t3
-       $(AM_V_at)mv $@-t4 $@
-MOSTLYCLEANFILES += unistd.h unistd.h-t1 unistd.h-t2 unistd.h-t3 unistd.h-t4
 
 Include:
 <unistd.h>
@@ -246,4 +23,3 @@ License:
 LGPLv2+
 
 Maintainer:
-all
diff --git a/modules/unistd-c++-tests b/modules/unistd-c++-tests
deleted file mode 100644 (file)
index 7a82baa..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-Files:
-tests/test-unistd-c++.cc
-tests/signature.h
-
-Status:
-c++-test
-
-Depends-on:
-ansi-c++-opt
-
-configure.ac:
-
-Makefile.am:
-if ANSICXX
-TESTS += test-unistd-c++
-check_PROGRAMS += test-unistd-c++
-test_unistd_c___SOURCES = test-unistd-c++.cc
-test_unistd_c___LDADD = $(LDADD) $(LIBINTL) $(CLOCK_TIME_LIB) $(EUIDACCESS_LIBGEN) $(LIBSOCKET) $(GETLOGIN_LIB) $(GETRANDOM_LIB)
-endif
diff --git a/modules/unistd-h b/modules/unistd-h
new file mode 100644 (file)
index 0000000..af7fda5
--- /dev/null
@@ -0,0 +1,249 @@
+Description:
+A GNU-like <unistd.h>.
+
+Files:
+m4/unistd_h.m4
+lib/unistd.c
+lib/unistd.in.h
+m4/off_t.m4
+m4/pid_t.m4
+
+Depends-on:
+extern-inline
+gen-header
+include_next
+snippet/arg-nonnull
+snippet/c++defs
+snippet/warn-on-use
+ssize_t
+stddef-h
+sys_types-h
+
+configure.ac:
+gl_UNISTD_H
+gl_UNISTD_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
+
+Makefile.am:
+BUILT_SOURCES += unistd.h
+lib_SOURCES += unistd.c
+
+# We need the following in order to create an empty placeholder for
+# <unistd.h> when the system doesn't have one.
+unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
+@NMD@  $(AM_V_GEN)$(MKDIR_P) '%reldir%'
+       $(gl_V_at)$(SED_HEADER_STDOUT) \
+             -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
+             -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|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_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \
+             -e 's|@''WINDOWS_64_BIT_OFF_T''@|$(WINDOWS_64_BIT_OFF_T)|g' \
+             -e 's/@''GNULIB_ACCESS''@/$(GNULIB_ACCESS)/g' \
+             -e 's/@''GNULIB_CHDIR''@/$(GNULIB_CHDIR)/g' \
+             -e 's/@''GNULIB_CHOWN''@/$(GNULIB_CHOWN)/g' \
+             -e 's/@''GNULIB_CLOSE''@/$(GNULIB_CLOSE)/g' \
+             -e 's/@''GNULIB_COPY_FILE_RANGE''@/$(GNULIB_COPY_FILE_RANGE)/g' \
+             -e 's/@''GNULIB_DUP''@/$(GNULIB_DUP)/g' \
+             -e 's/@''GNULIB_DUP2''@/$(GNULIB_DUP2)/g' \
+             -e 's/@''GNULIB_DUP3''@/$(GNULIB_DUP3)/g' \
+             -e 's/@''GNULIB_ENVIRON''@/$(GNULIB_ENVIRON)/g' \
+             -e 's/@''GNULIB_EUIDACCESS''@/$(GNULIB_EUIDACCESS)/g' \
+             -e 's/@''GNULIB_EXECL''@/$(GNULIB_EXECL)/g' \
+             -e 's/@''GNULIB_EXECLE''@/$(GNULIB_EXECLE)/g' \
+             -e 's/@''GNULIB_EXECLP''@/$(GNULIB_EXECLP)/g' \
+             -e 's/@''GNULIB_EXECV''@/$(GNULIB_EXECV)/g' \
+             -e 's/@''GNULIB_EXECVE''@/$(GNULIB_EXECVE)/g' \
+             -e 's/@''GNULIB_EXECVP''@/$(GNULIB_EXECVP)/g' \
+             -e 's/@''GNULIB_EXECVPE''@/$(GNULIB_EXECVPE)/g' \
+             -e 's/@''GNULIB_FACCESSAT''@/$(GNULIB_FACCESSAT)/g' \
+             -e 's/@''GNULIB_FCHDIR''@/$(GNULIB_FCHDIR)/g' \
+             -e 's/@''GNULIB_FCHOWNAT''@/$(GNULIB_FCHOWNAT)/g' \
+             -e 's/@''GNULIB_FDATASYNC''@/$(GNULIB_FDATASYNC)/g' \
+             -e 's/@''GNULIB_FSYNC''@/$(GNULIB_FSYNC)/g' \
+             -e 's/@''GNULIB_FTRUNCATE''@/$(GNULIB_FTRUNCATE)/g' \
+             < $(srcdir)/unistd.in.h > $@-t1
+       $(AM_V_at)sed \
+             -e 's/@''GNULIB_GETCWD''@/$(GNULIB_GETCWD)/g' \
+             -e 's/@''GNULIB_GETDOMAINNAME''@/$(GNULIB_GETDOMAINNAME)/g' \
+             -e 's/@''GNULIB_GETDTABLESIZE''@/$(GNULIB_GETDTABLESIZE)/g' \
+             -e 's/@''GNULIB_GETENTROPY''@/$(GNULIB_GETENTROPY)/g' \
+             -e 's/@''GNULIB_GETGROUPS''@/$(GNULIB_GETGROUPS)/g' \
+             -e 's/@''GNULIB_GETHOSTNAME''@/$(GNULIB_GETHOSTNAME)/g' \
+             -e 's/@''GNULIB_GETLOGIN''@/$(GNULIB_GETLOGIN)/g' \
+             -e 's/@''GNULIB_GETLOGIN_R''@/$(GNULIB_GETLOGIN_R)/g' \
+             -e 's/@''GNULIB_GETOPT_POSIX''@/$(GNULIB_GETOPT_POSIX)/g' \
+             -e 's/@''GNULIB_GETPAGESIZE''@/$(GNULIB_GETPAGESIZE)/g' \
+             -e 's/@''GNULIB_GETPASS''@/$(GNULIB_GETPASS)/g' \
+             -e 's/@''GNULIB_GETPASS_GNU''@/$(GNULIB_GETPASS_GNU)/g' \
+             -e 's/@''GNULIB_GETUSERSHELL''@/$(GNULIB_GETUSERSHELL)/g' \
+             -e 's/@''GNULIB_GROUP_MEMBER''@/$(GNULIB_GROUP_MEMBER)/g' \
+             -e 's/@''GNULIB_ISATTY''@/$(GNULIB_ISATTY)/g' \
+             -e 's/@''GNULIB_LCHOWN''@/$(GNULIB_LCHOWN)/g' \
+             -e 's/@''GNULIB_LINK''@/$(GNULIB_LINK)/g' \
+             -e 's/@''GNULIB_LINKAT''@/$(GNULIB_LINKAT)/g' \
+             -e 's/@''GNULIB_LSEEK''@/$(GNULIB_LSEEK)/g' \
+             -e 's/@''GNULIB_PIPE''@/$(GNULIB_PIPE)/g' \
+             -e 's/@''GNULIB_PIPE2''@/$(GNULIB_PIPE2)/g' \
+             -e 's/@''GNULIB_PREAD''@/$(GNULIB_PREAD)/g' \
+             -e 's/@''GNULIB_PWRITE''@/$(GNULIB_PWRITE)/g' \
+             -e 's/@''GNULIB_READ''@/$(GNULIB_READ)/g' \
+             -e 's/@''GNULIB_READLINK''@/$(GNULIB_READLINK)/g' \
+             -e 's/@''GNULIB_READLINKAT''@/$(GNULIB_READLINKAT)/g' \
+             -e 's/@''GNULIB_RMDIR''@/$(GNULIB_RMDIR)/g' \
+             -e 's/@''GNULIB_SETHOSTNAME''@/$(GNULIB_SETHOSTNAME)/g' \
+             -e 's/@''GNULIB_SLEEP''@/$(GNULIB_SLEEP)/g' \
+             -e 's/@''GNULIB_SYMLINK''@/$(GNULIB_SYMLINK)/g' \
+             -e 's/@''GNULIB_SYMLINKAT''@/$(GNULIB_SYMLINKAT)/g' \
+             -e 's/@''GNULIB_TRUNCATE''@/$(GNULIB_TRUNCATE)/g' \
+             -e 's/@''GNULIB_TTYNAME_R''@/$(GNULIB_TTYNAME_R)/g' \
+             -e 's/@''GNULIB_UNISTD_H_GETOPT''@/0$(GNULIB_UNISTD_H_GETOPT)/g' \
+             -e 's/@''GNULIB_UNISTD_H_NONBLOCKING''@/$(GNULIB_UNISTD_H_NONBLOCKING)/g' \
+             -e 's/@''GNULIB_UNISTD_H_SIGPIPE''@/$(GNULIB_UNISTD_H_SIGPIPE)/g' \
+             -e 's/@''GNULIB_UNLINK''@/$(GNULIB_UNLINK)/g' \
+             -e 's/@''GNULIB_UNLINKAT''@/$(GNULIB_UNLINKAT)/g' \
+             -e 's/@''GNULIB_USLEEP''@/$(GNULIB_USLEEP)/g' \
+             -e 's/@''GNULIB_WRITE''@/$(GNULIB_WRITE)/g' \
+             -e 's/@''GNULIB_MDA_ACCESS''@/$(GNULIB_MDA_ACCESS)/g' \
+             -e 's/@''GNULIB_MDA_CHDIR''@/$(GNULIB_MDA_CHDIR)/g' \
+             -e 's/@''GNULIB_MDA_CLOSE''@/$(GNULIB_MDA_CLOSE)/g' \
+             -e 's/@''GNULIB_MDA_DUP''@/$(GNULIB_MDA_DUP)/g' \
+             -e 's/@''GNULIB_MDA_DUP2''@/$(GNULIB_MDA_DUP2)/g' \
+             -e 's/@''GNULIB_MDA_EXECL''@/$(GNULIB_MDA_EXECL)/g' \
+             -e 's/@''GNULIB_MDA_EXECLE''@/$(GNULIB_MDA_EXECLE)/g' \
+             -e 's/@''GNULIB_MDA_EXECLP''@/$(GNULIB_MDA_EXECLP)/g' \
+             -e 's/@''GNULIB_MDA_EXECV''@/$(GNULIB_MDA_EXECV)/g' \
+             -e 's/@''GNULIB_MDA_EXECVE''@/$(GNULIB_MDA_EXECVE)/g' \
+             -e 's/@''GNULIB_MDA_EXECVP''@/$(GNULIB_MDA_EXECVP)/g' \
+             -e 's/@''GNULIB_MDA_EXECVPE''@/$(GNULIB_MDA_EXECVPE)/g' \
+             -e 's/@''GNULIB_MDA_GETCWD''@/$(GNULIB_MDA_GETCWD)/g' \
+             -e 's/@''GNULIB_MDA_GETPID''@/$(GNULIB_MDA_GETPID)/g' \
+             -e 's/@''GNULIB_MDA_ISATTY''@/$(GNULIB_MDA_ISATTY)/g' \
+             -e 's/@''GNULIB_MDA_LSEEK''@/$(GNULIB_MDA_LSEEK)/g' \
+             -e 's/@''GNULIB_MDA_READ''@/$(GNULIB_MDA_READ)/g' \
+             -e 's/@''GNULIB_MDA_RMDIR''@/$(GNULIB_MDA_RMDIR)/g' \
+             -e 's/@''GNULIB_MDA_SWAB''@/$(GNULIB_MDA_SWAB)/g' \
+             -e 's/@''GNULIB_MDA_UNLINK''@/$(GNULIB_MDA_UNLINK)/g' \
+             -e 's/@''GNULIB_MDA_WRITE''@/$(GNULIB_MDA_WRITE)/g' \
+             < $@-t1 > $@-t2
+       $(AM_V_at)sed \
+             -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \
+             -e 's|@''HAVE_COPY_FILE_RANGE''@|$(HAVE_COPY_FILE_RANGE)|g' \
+             -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \
+             -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \
+             -e 's|@''HAVE_EXECVPE''@|$(HAVE_EXECVPE)|g' \
+             -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \
+             -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \
+             -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \
+             -e 's|@''HAVE_FDATASYNC''@|$(HAVE_FDATASYNC)|g' \
+             -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \
+             -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \
+             -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \
+             -e 's|@''HAVE_GETENTROPY''@|$(HAVE_GETENTROPY)|g' \
+             -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \
+             -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \
+             -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \
+             -e 's|@''HAVE_GETPASS''@|$(HAVE_GETPASS)|g' \
+             -e 's|@''HAVE_GROUP_MEMBER''@|$(HAVE_GROUP_MEMBER)|g' \
+             -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \
+             -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \
+             -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \
+             -e 's|@''HAVE_PIPE''@|$(HAVE_PIPE)|g' \
+             -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \
+             -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \
+             -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \
+             -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \
+             -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \
+             -e 's|@''HAVE_SETHOSTNAME''@|$(HAVE_SETHOSTNAME)|g' \
+             -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \
+             -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \
+             -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \
+             -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \
+             -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \
+             -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \
+             -e 's|@''HAVE_DECL_EXECVPE''@|$(HAVE_DECL_EXECVPE)|g' \
+             -e 's|@''HAVE_DECL_FCHDIR''@|$(HAVE_DECL_FCHDIR)|g' \
+             -e 's|@''HAVE_DECL_FDATASYNC''@|$(HAVE_DECL_FDATASYNC)|g' \
+             -e 's|@''HAVE_DECL_GETDOMAINNAME''@|$(HAVE_DECL_GETDOMAINNAME)|g' \
+             -e 's|@''HAVE_DECL_GETLOGIN''@|$(HAVE_DECL_GETLOGIN)|g' \
+             -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \
+             -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \
+             -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \
+             -e 's|@''HAVE_DECL_SETHOSTNAME''@|$(HAVE_DECL_SETHOSTNAME)|g' \
+             -e 's|@''HAVE_DECL_TRUNCATE''@|$(HAVE_DECL_TRUNCATE)|g' \
+             -e 's|@''HAVE_DECL_TTYNAME_R''@|$(HAVE_DECL_TTYNAME_R)|g' \
+             -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
+             -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
+             < $@-t2 > $@-t3
+       $(AM_V_at)sed \
+             -e 's|@''REPLACE_ACCESS''@|$(REPLACE_ACCESS)|g' \
+             -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
+             -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
+             -e 's|@''REPLACE_COPY_FILE_RANGE''@|$(REPLACE_COPY_FILE_RANGE)|g' \
+             -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \
+             -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \
+             -e 's|@''REPLACE_DUP3''@|$(REPLACE_DUP3)|g' \
+             -e 's|@''REPLACE_EXECL''@|$(REPLACE_EXECL)|g' \
+             -e 's|@''REPLACE_EXECLE''@|$(REPLACE_EXECLE)|g' \
+             -e 's|@''REPLACE_EXECLP''@|$(REPLACE_EXECLP)|g' \
+             -e 's|@''REPLACE_EXECV''@|$(REPLACE_EXECV)|g' \
+             -e 's|@''REPLACE_EXECVE''@|$(REPLACE_EXECVE)|g' \
+             -e 's|@''REPLACE_EXECVP''@|$(REPLACE_EXECVP)|g' \
+             -e 's|@''REPLACE_EXECVPE''@|$(REPLACE_EXECVPE)|g' \
+             -e 's|@''REPLACE_FACCESSAT''@|$(REPLACE_FACCESSAT)|g' \
+             -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \
+             -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \
+             -e 's|@''REPLACE_FDATASYNC''@|$(REPLACE_FDATASYNC)|g' \
+             -e 's|@''REPLACE_FTRUNCATE''@|$(REPLACE_FTRUNCATE)|g' \
+             -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \
+             -e 's|@''REPLACE_GETDOMAINNAME''@|$(REPLACE_GETDOMAINNAME)|g' \
+             -e 's|@''REPLACE_GETDTABLESIZE''@|$(REPLACE_GETDTABLESIZE)|g' \
+             -e 's|@''REPLACE_GETENTROPY''@|$(REPLACE_GETENTROPY)|g' \
+             -e 's|@''REPLACE_GETLOGIN_R''@|$(REPLACE_GETLOGIN_R)|g' \
+             -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \
+             -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \
+             -e 's|@''REPLACE_GETPASS''@|$(REPLACE_GETPASS)|g' \
+             -e 's|@''REPLACE_GETPASS_FOR_GETPASS_GNU''@|$(REPLACE_GETPASS_FOR_GETPASS_GNU)|g' \
+             -e 's|@''REPLACE_GETUSERSHELL''@|$(REPLACE_GETUSERSHELL)|g' \
+             -e 's|@''REPLACE_ISATTY''@|$(REPLACE_ISATTY)|g' \
+             -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \
+             -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \
+             -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \
+             -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \
+             -e 's|@''REPLACE_PIPE2''@|$(REPLACE_PIPE2)|g' \
+             -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \
+             -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \
+             -e 's|@''REPLACE_READ''@|$(REPLACE_READ)|g' \
+             -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \
+             -e 's|@''REPLACE_READLINKAT''@|$(REPLACE_READLINKAT)|g' \
+             -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \
+             -e 's|@''REPLACE_SETHOSTNAME''@|$(REPLACE_SETHOSTNAME)|g' \
+             -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \
+             -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \
+             -e 's|@''REPLACE_SYMLINKAT''@|$(REPLACE_SYMLINKAT)|g' \
+             -e 's|@''REPLACE_TRUNCATE''@|$(REPLACE_TRUNCATE)|g' \
+             -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \
+             -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \
+             -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \
+             -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \
+             -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \
+             -e 's|@''UNISTD_H_HAVE_SYS_RANDOM_H''@|$(UNISTD_H_HAVE_SYS_RANDOM_H)|g' \
+             -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \
+             -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|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)' \
+             < $@-t3 > $@-t4
+       $(AM_V_at)rm -f $@-t1 $@-t2 $@-t3
+       $(AM_V_at)mv $@-t4 $@
+MOSTLYCLEANFILES += unistd.h unistd.h-t1 unistd.h-t2 unistd.h-t3 unistd.h-t4
+
+Include:
+<unistd.h>
+
+License:
+LGPLv2+
+
+Maintainer:
+all
diff --git a/modules/unistd-h-c++-tests b/modules/unistd-h-c++-tests
new file mode 100644 (file)
index 0000000..a252919
--- /dev/null
@@ -0,0 +1,19 @@
+Files:
+tests/test-unistd-h-c++.cc
+tests/signature.h
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-unistd-h-c++
+check_PROGRAMS += test-unistd-h-c++
+test_unistd_h_c___SOURCES = test-unistd-h-c++.cc
+test_unistd_h_c___LDADD = $(LDADD) $(LIBINTL) $(CLOCK_TIME_LIB) $(EUIDACCESS_LIBGEN) $(LIBSOCKET) $(GETLOGIN_LIB) $(GETRANDOM_LIB)
+endif
diff --git a/modules/unistd-h-tests b/modules/unistd-h-tests
new file mode 100644 (file)
index 0000000..cd934ee
--- /dev/null
@@ -0,0 +1,12 @@
+Files:
+tests/test-unistd-h.c
+
+Depends-on:
+assert-h
+unistd-h-c++-tests
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-unistd-h
+check_PROGRAMS += test-unistd-h
index 81bf2300e52bc2def1b70909ddfb56ec93a27a0a..da7646831f02c1bb6c3aaa81c4f2d18391fa04f2 100644 (file)
@@ -11,7 +11,7 @@ m4/unistd-safer.m4
 
 Depends-on:
 fcntl
-unistd
+unistd-h
 pipe-posix
 
 configure.ac:
diff --git a/modules/unistd-tests b/modules/unistd-tests
deleted file mode 100644 (file)
index e9ce6e0..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-Files:
-tests/test-unistd.c
-
-Depends-on:
-assert-h
-unistd-c++-tests
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-unistd
-check_PROGRAMS += test-unistd
index 119ed9faed8322b2fa5f03690618352c9ff66311..d9612b438fbb4e5ed44fb4e14173eb641153ecfc 100644 (file)
@@ -6,7 +6,7 @@ lib/unlink.c
 m4/unlink.m4
 
 Depends-on:
-unistd
+unistd-h
 filename        [test $REPLACE_UNLINK = 1]
 lstat           [test $REPLACE_UNLINK = 1]
 malloc-posix    [test $REPLACE_UNLINK = 1]
index 8bae1c22633853be6948856cc5552e08d9f87e5c..2e914d2fefbbd0f752b5d19d0bb4aed2319175da 100644 (file)
@@ -8,7 +8,7 @@ m4/unlinkat.m4
 m4/lstat.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 fcntl-h         [test $HAVE_UNLINKAT = 0 || test $REPLACE_UNLINKAT = 1]
 openat-h        [test $HAVE_UNLINKAT = 0 || test $REPLACE_UNLINKAT = 1]
index 04f906dce5d129e2f1d49e6a9908c52a6a34a550..f9da07ebba78bbea7c9bbef5f2b1984ff119b561 100644 (file)
@@ -7,7 +7,7 @@ m4/setenv.m4
 
 Depends-on:
 stdlib-h
-unistd          [test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1]
+unistd-h        [test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1]
 environ         [test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1]
 free-posix      [test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1]
 malloc-posix    [test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1]
index 1e842347fa36d10c8932d3f7aadea3e31a1bc929..c22fa83a012997e616bcdad361f39b71fc573872 100644 (file)
@@ -6,7 +6,7 @@ lib/usleep.c
 m4/usleep.m4
 
 Depends-on:
-unistd
+unistd-h
 extensions
 sleep           [test $HAVE_USLEEP = 0 || test $REPLACE_USLEEP = 1]
 
index f41e4cd3f3015b1240810fc63c3b2142daf94e33..57022a33abe9edc5295a66718e41b3f208780955 100644 (file)
@@ -8,7 +8,7 @@ m4/mmap-anon.m4
 
 Depends-on:
 stdint-h
-unistd
+unistd-h
 extensions
 getpagesize
 open
index fd7a7f132fd65411dffa8060fafd44769111cc13..62efbb61a49531f429a46656ca1e454fa894ce60 100644 (file)
@@ -17,7 +17,7 @@ gnulib-i18n
 stdbool-h
 stdlib-h
 sys_wait-h
-unistd
+unistd-h
 atexit
 waitpid
 
index a0bdde7424dfdba2793951be8fd870833090c7f2..296a908641ef0f528b913f0306d793b3ceadcaeb 100644 (file)
@@ -15,7 +15,7 @@ stdbool-h
 stdint-h
 stdlib-h
 strpbrk
-unistd
+unistd-h
 malloc-posix
 
 configure.ac:
index f32cbc7076d28a60e5ef1e37c5108ff0ba5afa10..f82667331660485545ed6deb22a4f7ad328329dc 100644 (file)
@@ -6,7 +6,7 @@ lib/write.c
 m4/write.m4
 
 Depends-on:
-unistd
+unistd-h
 raise           [test $REPLACE_WRITE = 1]
 msvc-inval      [test $REPLACE_WRITE = 1]
 msvc-nothrow    [test $REPLACE_WRITE = 1]
index 80e6a3aa159ed600fe50310ffce45f435e475b54..8affc39e76347f8e8d53e92b1f14e86ff8a442f9 100644 (file)
@@ -12,7 +12,7 @@ dtotimespec
 intprops
 nanosleep
 time-h
-unistd
+unistd-h
 
 configure.ac:
 gl_XNANOSLEEP
diff --git a/tests/test-unistd-c++.cc b/tests/test-unistd-c++.cc
deleted file mode 100644 (file)
index d4eef36..0000000
+++ /dev/null
@@ -1,280 +0,0 @@
-/* Test of <unistd.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 <unistd.h>
-
-#include "signature.h"
-
-
-#if GNULIB_TEST_ACCESS
-SIGNATURE_CHECK (GNULIB_NAMESPACE::access, int, (const char *, int));
-#endif
-
-#if GNULIB_TEST_CHDIR
-SIGNATURE_CHECK (GNULIB_NAMESPACE::chdir, int, (const char *));
-#endif
-
-#if GNULIB_TEST_CHOWN
-SIGNATURE_CHECK (GNULIB_NAMESPACE::chown, int, (const char *, uid_t, gid_t));
-#endif
-
-#if GNULIB_TEST_CLOSE
-SIGNATURE_CHECK (GNULIB_NAMESPACE::close, int, (int));
-#endif
-
-#if GNULIB_TEST_DUP
-SIGNATURE_CHECK (GNULIB_NAMESPACE::dup, int, (int));
-#endif
-
-#if GNULIB_TEST_DUP2
-SIGNATURE_CHECK (GNULIB_NAMESPACE::dup2, int, (int, int));
-#endif
-
-#if GNULIB_TEST_DUP3
-SIGNATURE_CHECK (GNULIB_NAMESPACE::dup3, int, (int, int, int));
-#endif
-
-#if GNULIB_TEST_EXECL
-SIGNATURE_CHECK (GNULIB_NAMESPACE::execl, int,
-                 (const char *, const char *, ...));
-#endif
-
-#if GNULIB_TEST_EXECLE
-SIGNATURE_CHECK (GNULIB_NAMESPACE::execle, int,
-                 (const char *, const char *, ...));
-#endif
-
-#if GNULIB_TEST_EXECLP
-SIGNATURE_CHECK (GNULIB_NAMESPACE::execlp, int,
-                 (const char *, const char *, ...));
-#endif
-
-#if GNULIB_TEST_EXECV
-SIGNATURE_CHECK (GNULIB_NAMESPACE::execv, int,
-                 (const char *, char * const *));
-#endif
-
-#if GNULIB_TEST_EXECVE
-SIGNATURE_CHECK (GNULIB_NAMESPACE::execve, int,
-                 (const char *, char * const *, char * const *));
-#endif
-
-#if GNULIB_TEST_EXECVP
-SIGNATURE_CHECK (GNULIB_NAMESPACE::execvp, int,
-                 (const char *, char * const *));
-#endif
-
-#if GNULIB_TEST_EXECVPE
-SIGNATURE_CHECK (GNULIB_NAMESPACE::execvpe, int,
-                 (const char *, char * const *, char * const *));
-#endif
-
-#if GNULIB_TEST_EUIDACCESS
-SIGNATURE_CHECK (GNULIB_NAMESPACE::euidaccess, int, (const char *, int));
-#endif
-
-#if GNULIB_TEST_FACCESSAT
-SIGNATURE_CHECK (GNULIB_NAMESPACE::faccessat, int,
-                 (int, char const *, int, int));
-#endif
-
-#if GNULIB_TEST_FCHDIR
-SIGNATURE_CHECK (GNULIB_NAMESPACE::fchdir, int, (int));
-#endif
-
-#if GNULIB_TEST_FCHOWNAT
-SIGNATURE_CHECK (GNULIB_NAMESPACE::fchownat, int,
-                 (int, char const *, uid_t, gid_t, int));
-#endif
-
-#if GNULIB_TEST_FDATASYNC
-SIGNATURE_CHECK (GNULIB_NAMESPACE::fdatasync, int, (int));
-#endif
-
-#if GNULIB_TEST_FSYNC
-SIGNATURE_CHECK (GNULIB_NAMESPACE::fsync, int, (int));
-#endif
-
-#if GNULIB_TEST_FTRUNCATE
-SIGNATURE_CHECK (GNULIB_NAMESPACE::ftruncate, int, (int, off_t));
-#endif
-
-#if GNULIB_TEST_GETCWD
-SIGNATURE_CHECK (GNULIB_NAMESPACE::getcwd, char *, (char *, size_t));
-#endif
-
-#if GNULIB_TEST_GETDOMAINNAME
-SIGNATURE_CHECK (GNULIB_NAMESPACE::getdomainname, int, (char *, size_t));
-#endif
-
-#if GNULIB_TEST_GETDTABLESIZE
-SIGNATURE_CHECK (GNULIB_NAMESPACE::getdtablesize, int, (void));
-#endif
-
-#if GNULIB_TEST_GETENTROPY
-SIGNATURE_CHECK (GNULIB_NAMESPACE::getentropy, int, (void *, size_t));
-#endif
-
-#if GNULIB_TEST_GETGROUPS
-SIGNATURE_CHECK (GNULIB_NAMESPACE::getgroups, int, (int, gid_t *));
-#endif
-
-#if GNULIB_TEST_GETHOSTNAME
-SIGNATURE_CHECK (GNULIB_NAMESPACE::gethostname, int, (char *, size_t));
-#endif
-
-#if GNULIB_TEST_GETLOGIN
-SIGNATURE_CHECK (GNULIB_NAMESPACE::getlogin, char *, (void));
-#endif
-
-#if GNULIB_TEST_GETLOGIN_R
-SIGNATURE_CHECK (GNULIB_NAMESPACE::getlogin_r, int, (char *, size_t));
-#endif
-
-#if GNULIB_TEST_GETPAGESIZE
-SIGNATURE_CHECK (GNULIB_NAMESPACE::getpagesize, int, (void));
-#endif
-
-#if GNULIB_TEST_GETPASS
-SIGNATURE_CHECK (GNULIB_NAMESPACE::getpass, char *, (const char *));
-#endif
-
-#if GNULIB_TEST_GETUSERSHELL
-SIGNATURE_CHECK (GNULIB_NAMESPACE::getusershell, char *, (void));
-#endif
-
-#if GNULIB_TEST_GETUSERSHELL
-SIGNATURE_CHECK (GNULIB_NAMESPACE::setusershell, void, (void));
-#endif
-
-#if GNULIB_TEST_GETUSERSHELL
-SIGNATURE_CHECK (GNULIB_NAMESPACE::endusershell, void, (void));
-#endif
-
-#if GNULIB_TEST_GROUP_MEMBER
-SIGNATURE_CHECK (GNULIB_NAMESPACE::group_member, int, (gid_t));
-#endif
-
-#if GNULIB_TEST_ISATTY
-SIGNATURE_CHECK (GNULIB_NAMESPACE::isatty, int, (int));
-#endif
-
-#if GNULIB_TEST_LCHOWN
-SIGNATURE_CHECK (GNULIB_NAMESPACE::lchown, int, (char const *, uid_t, gid_t));
-#endif
-
-#if GNULIB_TEST_LINK
-SIGNATURE_CHECK (GNULIB_NAMESPACE::link, int, (const char *, const char *));
-#endif
-
-#if GNULIB_TEST_LINKAT
-SIGNATURE_CHECK (GNULIB_NAMESPACE::linkat, int,
-                 (int, const char *, int, const char *, int));
-#endif
-
-#if GNULIB_TEST_LSEEK
-SIGNATURE_CHECK (GNULIB_NAMESPACE::lseek, off_t, (int, off_t, int));
-#endif
-
-#if GNULIB_TEST_PIPE
-SIGNATURE_CHECK (GNULIB_NAMESPACE::pipe, int, (int[2]));
-#endif
-
-#if GNULIB_TEST_PIPE2
-SIGNATURE_CHECK (GNULIB_NAMESPACE::pipe2, int, (int[2], int));
-#endif
-
-#if GNULIB_TEST_PREAD
-SIGNATURE_CHECK (GNULIB_NAMESPACE::pread, ssize_t,
-                 (int, void *, size_t, off_t));
-#endif
-
-#if GNULIB_TEST_PWRITE
-SIGNATURE_CHECK (GNULIB_NAMESPACE::pwrite, ssize_t,
-                 (int, const void *, size_t, off_t));
-#endif
-
-#if GNULIB_TEST_READ
-SIGNATURE_CHECK (GNULIB_NAMESPACE::read, ssize_t, (int, void *, size_t));
-#endif
-
-#if GNULIB_TEST_READLINK
-SIGNATURE_CHECK (GNULIB_NAMESPACE::readlink, ssize_t,
-                 (const char *, char *, size_t));
-#endif
-
-#if GNULIB_TEST_READLINKAT
-SIGNATURE_CHECK (GNULIB_NAMESPACE::readlinkat, ssize_t,
-                 (int, char const *, char *, size_t));
-#endif
-
-#if GNULIB_TEST_RMDIR
-SIGNATURE_CHECK (GNULIB_NAMESPACE::rmdir, int, (char const *));
-#endif
-
-#if GNULIB_TEST_SETHOSTNAME
-SIGNATURE_CHECK (GNULIB_NAMESPACE::sethostname, int, (const char *, size_t));
-#endif
-
-#if GNULIB_TEST_SLEEP
-SIGNATURE_CHECK (GNULIB_NAMESPACE::sleep, unsigned int, (unsigned int));
-#endif
-
-#if GNULIB_TEST_SYMLINK
-SIGNATURE_CHECK (GNULIB_NAMESPACE::symlink, int, (char const *, char const *));
-#endif
-
-#if GNULIB_TEST_SYMLINKAT
-SIGNATURE_CHECK (GNULIB_NAMESPACE::symlinkat, int,
-                 (char const *, int, char const *));
-#endif
-
-#if GNULIB_TEST_TRUNCATE
-SIGNATURE_CHECK (GNULIB_NAMESPACE::truncate, int, (const char *, off_t));
-#endif
-
-#if GNULIB_TEST_TTYNAME_R
-SIGNATURE_CHECK (GNULIB_NAMESPACE::ttyname_r, int,
-                 (int fd, char *buf, size_t buflen));
-#endif
-
-#if GNULIB_TEST_UNLINK
-SIGNATURE_CHECK (GNULIB_NAMESPACE::unlink, int, (char const *));
-#endif
-
-#if GNULIB_TEST_UNLINKAT
-SIGNATURE_CHECK (GNULIB_NAMESPACE::unlinkat, int, (int, char const *, int));
-#endif
-
-#if GNULIB_TEST_USLEEP
-SIGNATURE_CHECK (GNULIB_NAMESPACE::usleep, int, (useconds_t));
-#endif
-
-#if GNULIB_TEST_WRITE
-SIGNATURE_CHECK (GNULIB_NAMESPACE::write, ssize_t,
-                 (int, const void *, size_t));
-#endif
-
-
-int
-main ()
-{
-}
diff --git a/tests/test-unistd-h-c++.cc b/tests/test-unistd-h-c++.cc
new file mode 100644 (file)
index 0000000..d4eef36
--- /dev/null
@@ -0,0 +1,280 @@
+/* Test of <unistd.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 <unistd.h>
+
+#include "signature.h"
+
+
+#if GNULIB_TEST_ACCESS
+SIGNATURE_CHECK (GNULIB_NAMESPACE::access, int, (const char *, int));
+#endif
+
+#if GNULIB_TEST_CHDIR
+SIGNATURE_CHECK (GNULIB_NAMESPACE::chdir, int, (const char *));
+#endif
+
+#if GNULIB_TEST_CHOWN
+SIGNATURE_CHECK (GNULIB_NAMESPACE::chown, int, (const char *, uid_t, gid_t));
+#endif
+
+#if GNULIB_TEST_CLOSE
+SIGNATURE_CHECK (GNULIB_NAMESPACE::close, int, (int));
+#endif
+
+#if GNULIB_TEST_DUP
+SIGNATURE_CHECK (GNULIB_NAMESPACE::dup, int, (int));
+#endif
+
+#if GNULIB_TEST_DUP2
+SIGNATURE_CHECK (GNULIB_NAMESPACE::dup2, int, (int, int));
+#endif
+
+#if GNULIB_TEST_DUP3
+SIGNATURE_CHECK (GNULIB_NAMESPACE::dup3, int, (int, int, int));
+#endif
+
+#if GNULIB_TEST_EXECL
+SIGNATURE_CHECK (GNULIB_NAMESPACE::execl, int,
+                 (const char *, const char *, ...));
+#endif
+
+#if GNULIB_TEST_EXECLE
+SIGNATURE_CHECK (GNULIB_NAMESPACE::execle, int,
+                 (const char *, const char *, ...));
+#endif
+
+#if GNULIB_TEST_EXECLP
+SIGNATURE_CHECK (GNULIB_NAMESPACE::execlp, int,
+                 (const char *, const char *, ...));
+#endif
+
+#if GNULIB_TEST_EXECV
+SIGNATURE_CHECK (GNULIB_NAMESPACE::execv, int,
+                 (const char *, char * const *));
+#endif
+
+#if GNULIB_TEST_EXECVE
+SIGNATURE_CHECK (GNULIB_NAMESPACE::execve, int,
+                 (const char *, char * const *, char * const *));
+#endif
+
+#if GNULIB_TEST_EXECVP
+SIGNATURE_CHECK (GNULIB_NAMESPACE::execvp, int,
+                 (const char *, char * const *));
+#endif
+
+#if GNULIB_TEST_EXECVPE
+SIGNATURE_CHECK (GNULIB_NAMESPACE::execvpe, int,
+                 (const char *, char * const *, char * const *));
+#endif
+
+#if GNULIB_TEST_EUIDACCESS
+SIGNATURE_CHECK (GNULIB_NAMESPACE::euidaccess, int, (const char *, int));
+#endif
+
+#if GNULIB_TEST_FACCESSAT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::faccessat, int,
+                 (int, char const *, int, int));
+#endif
+
+#if GNULIB_TEST_FCHDIR
+SIGNATURE_CHECK (GNULIB_NAMESPACE::fchdir, int, (int));
+#endif
+
+#if GNULIB_TEST_FCHOWNAT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::fchownat, int,
+                 (int, char const *, uid_t, gid_t, int));
+#endif
+
+#if GNULIB_TEST_FDATASYNC
+SIGNATURE_CHECK (GNULIB_NAMESPACE::fdatasync, int, (int));
+#endif
+
+#if GNULIB_TEST_FSYNC
+SIGNATURE_CHECK (GNULIB_NAMESPACE::fsync, int, (int));
+#endif
+
+#if GNULIB_TEST_FTRUNCATE
+SIGNATURE_CHECK (GNULIB_NAMESPACE::ftruncate, int, (int, off_t));
+#endif
+
+#if GNULIB_TEST_GETCWD
+SIGNATURE_CHECK (GNULIB_NAMESPACE::getcwd, char *, (char *, size_t));
+#endif
+
+#if GNULIB_TEST_GETDOMAINNAME
+SIGNATURE_CHECK (GNULIB_NAMESPACE::getdomainname, int, (char *, size_t));
+#endif
+
+#if GNULIB_TEST_GETDTABLESIZE
+SIGNATURE_CHECK (GNULIB_NAMESPACE::getdtablesize, int, (void));
+#endif
+
+#if GNULIB_TEST_GETENTROPY
+SIGNATURE_CHECK (GNULIB_NAMESPACE::getentropy, int, (void *, size_t));
+#endif
+
+#if GNULIB_TEST_GETGROUPS
+SIGNATURE_CHECK (GNULIB_NAMESPACE::getgroups, int, (int, gid_t *));
+#endif
+
+#if GNULIB_TEST_GETHOSTNAME
+SIGNATURE_CHECK (GNULIB_NAMESPACE::gethostname, int, (char *, size_t));
+#endif
+
+#if GNULIB_TEST_GETLOGIN
+SIGNATURE_CHECK (GNULIB_NAMESPACE::getlogin, char *, (void));
+#endif
+
+#if GNULIB_TEST_GETLOGIN_R
+SIGNATURE_CHECK (GNULIB_NAMESPACE::getlogin_r, int, (char *, size_t));
+#endif
+
+#if GNULIB_TEST_GETPAGESIZE
+SIGNATURE_CHECK (GNULIB_NAMESPACE::getpagesize, int, (void));
+#endif
+
+#if GNULIB_TEST_GETPASS
+SIGNATURE_CHECK (GNULIB_NAMESPACE::getpass, char *, (const char *));
+#endif
+
+#if GNULIB_TEST_GETUSERSHELL
+SIGNATURE_CHECK (GNULIB_NAMESPACE::getusershell, char *, (void));
+#endif
+
+#if GNULIB_TEST_GETUSERSHELL
+SIGNATURE_CHECK (GNULIB_NAMESPACE::setusershell, void, (void));
+#endif
+
+#if GNULIB_TEST_GETUSERSHELL
+SIGNATURE_CHECK (GNULIB_NAMESPACE::endusershell, void, (void));
+#endif
+
+#if GNULIB_TEST_GROUP_MEMBER
+SIGNATURE_CHECK (GNULIB_NAMESPACE::group_member, int, (gid_t));
+#endif
+
+#if GNULIB_TEST_ISATTY
+SIGNATURE_CHECK (GNULIB_NAMESPACE::isatty, int, (int));
+#endif
+
+#if GNULIB_TEST_LCHOWN
+SIGNATURE_CHECK (GNULIB_NAMESPACE::lchown, int, (char const *, uid_t, gid_t));
+#endif
+
+#if GNULIB_TEST_LINK
+SIGNATURE_CHECK (GNULIB_NAMESPACE::link, int, (const char *, const char *));
+#endif
+
+#if GNULIB_TEST_LINKAT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::linkat, int,
+                 (int, const char *, int, const char *, int));
+#endif
+
+#if GNULIB_TEST_LSEEK
+SIGNATURE_CHECK (GNULIB_NAMESPACE::lseek, off_t, (int, off_t, int));
+#endif
+
+#if GNULIB_TEST_PIPE
+SIGNATURE_CHECK (GNULIB_NAMESPACE::pipe, int, (int[2]));
+#endif
+
+#if GNULIB_TEST_PIPE2
+SIGNATURE_CHECK (GNULIB_NAMESPACE::pipe2, int, (int[2], int));
+#endif
+
+#if GNULIB_TEST_PREAD
+SIGNATURE_CHECK (GNULIB_NAMESPACE::pread, ssize_t,
+                 (int, void *, size_t, off_t));
+#endif
+
+#if GNULIB_TEST_PWRITE
+SIGNATURE_CHECK (GNULIB_NAMESPACE::pwrite, ssize_t,
+                 (int, const void *, size_t, off_t));
+#endif
+
+#if GNULIB_TEST_READ
+SIGNATURE_CHECK (GNULIB_NAMESPACE::read, ssize_t, (int, void *, size_t));
+#endif
+
+#if GNULIB_TEST_READLINK
+SIGNATURE_CHECK (GNULIB_NAMESPACE::readlink, ssize_t,
+                 (const char *, char *, size_t));
+#endif
+
+#if GNULIB_TEST_READLINKAT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::readlinkat, ssize_t,
+                 (int, char const *, char *, size_t));
+#endif
+
+#if GNULIB_TEST_RMDIR
+SIGNATURE_CHECK (GNULIB_NAMESPACE::rmdir, int, (char const *));
+#endif
+
+#if GNULIB_TEST_SETHOSTNAME
+SIGNATURE_CHECK (GNULIB_NAMESPACE::sethostname, int, (const char *, size_t));
+#endif
+
+#if GNULIB_TEST_SLEEP
+SIGNATURE_CHECK (GNULIB_NAMESPACE::sleep, unsigned int, (unsigned int));
+#endif
+
+#if GNULIB_TEST_SYMLINK
+SIGNATURE_CHECK (GNULIB_NAMESPACE::symlink, int, (char const *, char const *));
+#endif
+
+#if GNULIB_TEST_SYMLINKAT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::symlinkat, int,
+                 (char const *, int, char const *));
+#endif
+
+#if GNULIB_TEST_TRUNCATE
+SIGNATURE_CHECK (GNULIB_NAMESPACE::truncate, int, (const char *, off_t));
+#endif
+
+#if GNULIB_TEST_TTYNAME_R
+SIGNATURE_CHECK (GNULIB_NAMESPACE::ttyname_r, int,
+                 (int fd, char *buf, size_t buflen));
+#endif
+
+#if GNULIB_TEST_UNLINK
+SIGNATURE_CHECK (GNULIB_NAMESPACE::unlink, int, (char const *));
+#endif
+
+#if GNULIB_TEST_UNLINKAT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::unlinkat, int, (int, char const *, int));
+#endif
+
+#if GNULIB_TEST_USLEEP
+SIGNATURE_CHECK (GNULIB_NAMESPACE::usleep, int, (useconds_t));
+#endif
+
+#if GNULIB_TEST_WRITE
+SIGNATURE_CHECK (GNULIB_NAMESPACE::write, ssize_t,
+                 (int, const void *, size_t));
+#endif
+
+
+int
+main ()
+{
+}
diff --git a/tests/test-unistd-h.c b/tests/test-unistd-h.c
new file mode 100644 (file)
index 0000000..e131302
--- /dev/null
@@ -0,0 +1,55 @@
+/* Test of <unistd.h> substitute.
+   Copyright (C) 2007, 2009-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 <unistd.h>
+
+/* Check that NULL can be passed through varargs as a pointer type,
+   per POSIX 2008.  */
+static_assert (sizeof NULL == sizeof (void *));
+
+/* Check that the various SEEK_* macros are defined.  */
+int sk[] = { SEEK_CUR, SEEK_END, SEEK_SET };
+
+/* Check that the various *_FILENO macros are defined.  */
+#if ! (defined STDIN_FILENO                                     \
+       && (STDIN_FILENO + STDOUT_FILENO + STDERR_FILENO == 3))
+missing or broken *_FILENO macros
+#endif
+
+/* Check that the types are all defined.  */
+size_t t1;
+ssize_t t2;
+#ifdef TODO /* Not implemented in gnulib yet */
+uid_t t3;
+gid_t t4;
+#endif
+off_t t5;
+pid_t t6;
+#ifdef TODO
+useconds_t t7;
+intptr_t t8;
+#endif
+off64_t t9;
+
+int
+main (void)
+{
+  return 0;
+}
diff --git a/tests/test-unistd.c b/tests/test-unistd.c
deleted file mode 100644 (file)
index e131302..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/* Test of <unistd.h> substitute.
-   Copyright (C) 2007, 2009-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 <unistd.h>
-
-/* Check that NULL can be passed through varargs as a pointer type,
-   per POSIX 2008.  */
-static_assert (sizeof NULL == sizeof (void *));
-
-/* Check that the various SEEK_* macros are defined.  */
-int sk[] = { SEEK_CUR, SEEK_END, SEEK_SET };
-
-/* Check that the various *_FILENO macros are defined.  */
-#if ! (defined STDIN_FILENO                                     \
-       && (STDIN_FILENO + STDOUT_FILENO + STDERR_FILENO == 3))
-missing or broken *_FILENO macros
-#endif
-
-/* Check that the types are all defined.  */
-size_t t1;
-ssize_t t2;
-#ifdef TODO /* Not implemented in gnulib yet */
-uid_t t3;
-gid_t t4;
-#endif
-off_t t5;
-pid_t t6;
-#ifdef TODO
-useconds_t t7;
-intptr_t t8;
-#endif
-off64_t t9;
-
-int
-main (void)
-{
-  return 0;
-}