* 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 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.
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
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
Depends-on:
stdlib-h
-unistd
+unistd-h
configure.ac:
gl_FUNC__EXIT
m4/access.m4
Depends-on:
-unistd
+unistd-h
fcntl
stat
Depends-on:
file-has-acl-tests
read-file
-unistd
+unistd-h
xalloc
test-framework-sh
readlink
ssize_t
stdint-h
-unistd
+unistd-h
configure.ac:
openat-die
openat-h
save-cwd
-unistd
+unistd-h
configure.ac:
gl_MODULE_INDICATOR([areadlinkat-with-size])
intprops
open [case $host_os in mingw* | windows*) false;; *) :;; esac]
sys_stat-h
-unistd
+unistd-h
configure.ac:
AC_REQUIRE([AC_CANONICAL_HOST])
Depends-on:
test-framework-sh
-unistd
+unistd-h
configure.ac:
raise
sigsegv
stddef-h
-unistd
+unistd-h
configure.ac:
gl_C_STACK
stat
stdbool-h
sys_stat-h
-unistd
+unistd-h
xalloc-die
configure.ac:
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
limits-h
minmax
ssize_t
-unistd
+unistd-h
configure.ac:
AC_REQUIRE([AC_C_RESTRICT])
Files:
Depends-on:
-unistd
+unistd-h
configure.ac:
gl_UNISTD_MODULE_INDICATOR([chdir])
m4/pathmax.m4
Depends-on:
-unistd
+unistd-h
pathmax
chdir
assure [test $gl_cv_have_unlimited_file_name_length = no]
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]
clean-temp-simple
list
asyncsafe-spin
-unistd
+unistd-h
lock
thread-optim
error
stdbool-h
list
asyncsafe-spin
-unistd
+unistd-h
lock
once
thread-optim
m4/close.m4
Depends-on:
-unistd
+unistd-h
fd-hook [test $REPLACE_CLOSE = 1]
msvc-inval [test $REPLACE_CLOSE = 1]
gettext-h
gnulib-i18n
stdbool-h
-unistd
+unistd-h
configure.ac:
quotearg
exitfail
stdbool-h
-unistd
+unistd-h
configure.ac:
safe-read
stat-time
stdlib-h
-unistd
+unistd-h
utimens
configure.ac:
Depends-on:
largefile
-unistd
+unistd-h
configure.ac:
gl_FUNC_COPY_FILE_RANGE
stdio-h
stdlib-h
string-h
-unistd
+unistd-h
regex
setlocale
test-framework-sh
m4/dup.m4
Depends-on:
-unistd
+unistd-h
msvc-inval [test $REPLACE_DUP = 1]
configure.ac:
m4/dup2.m4
Depends-on:
-unistd
+unistd-h
msvc-inval [test $REPLACE_DUP2 = 1]
msvc-nothrow [test $REPLACE_DUP2 = 1]
m4/dup3.m4
Depends-on:
-unistd
+unistd-h
fcntl
binary-io
getdtablesize
Depends-on:
minmax
-unistd
+unistd-h
configure.ac:
m4/environ.m4
Depends-on:
-unistd
+unistd-h
extensions
configure.ac:
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:
m4/euidaccess.m4
Depends-on:
-unistd
+unistd-h
extensions
root-uid
fcntl-h
m4/execl.m4
Depends-on:
-unistd
+unistd-h
execv [test $REPLACE_EXECL = 1]
malloca [test $REPLACE_EXECL = 1]
m4/execle.m4
Depends-on:
-unistd
+unistd-h
execve [test $REPLACE_EXECLE = 1]
malloca [test $REPLACE_EXECLE = 1]
m4/execlp.m4
Depends-on:
-unistd
+unistd-h
execvp [test $REPLACE_EXECLP = 1]
malloca [test $REPLACE_EXECLP = 1]
stdbool-h
stdlib-h
sys_wait-h
-unistd
+unistd-h
wait-process
windows-spawn
xalloc-die
read-file
stdbool-h
stdint-h
-unistd
+unistd-h
configure.ac:
dnl Test for Linux system call close_range(), declared in <unistd.h>.
m4/execv.m4
Depends-on:
-unistd
+unistd-h
environ [test $REPLACE_EXECV = 1]
execve [test $REPLACE_EXECV = 1]
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]
m4/execvp.m4
Depends-on:
-unistd
+unistd-h
environ [test $REPLACE_EXECVP = 1]
execvpe [test $REPLACE_EXECVP = 1]
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]
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]
Depends-on:
c99
stdbool-h
-unistd
+unistd-h
sigaction
lock
once
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]
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]
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]
snippet/c++defs
snippet/warn-on-use
sys_types-h
-unistd
+unistd-h
configure.ac:
gl_FCNTL_H
lib/fd-hook.c
Depends-on:
-unistd
+unistd-h
configure.ac:
Depends-on:
fsync [test $HAVE_FDATASYNC = 0 || test $REPLACE_FDATASYNC = 1]
-unistd
+unistd-h
configure.ac:
gl_FUNC_FDATASYNC
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:
tests/macros.h
Depends-on:
-unistd
+unistd-h
fdopen
msvc-inval
tests/macros.h
Depends-on:
-unistd
+unistd-h
test-framework-sh
configure.ac:
tests/macros.h
Depends-on:
-unistd
+unistd-h
configure.ac:
xconcat-filename
access
stat
-unistd
+unistd-h
configure.ac:
gl_FINDPROG
stat
strdup-posix
malloc-posix
-unistd
+unistd-h
configure.ac:
gl_FINDPROG_IN
concat-filename
access
stat
-unistd
+unistd-h
configure.ac:
gl_FINDPROG
tests/macros.h
Depends-on:
-unistd
+unistd-h
test-xfail
configure.ac:
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]
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]
Depends-on:
pty-h
-unistd
+unistd-h
openpty
login_tty
tests/macros.h
Depends-on:
-unistd
+unistd-h
fdopen
msvc-inval
tests/macros.h
Depends-on:
-unistd
+unistd-h
fdopen
msvc-inval
Depends-on:
lseek
-unistd
+unistd-h
configure.ac:
Depends-on:
lseek
-unistd
+unistd-h
configure.ac:
tests/macros.h
Depends-on:
-unistd
+unistd-h
configure.ac:
tests/macros.h
Depends-on:
-unistd
+unistd-h
configure.ac:
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]
m4/fsync.m4
Depends-on:
-unistd
+unistd-h
msvc-nothrow [test $HAVE_FSYNC = 0]
configure.ac:
m4/ftruncate.m4
Depends-on:
-unistd
+unistd-h
sys_types-h
largefile
msvc-nothrow [test $HAVE_FTRUNCATE = 0 || test $REPLACE_FTRUNCATE = 1]
tests/macros.h
Depends-on:
-unistd
+unistd-h
fdopen
msvc-inval
Depends-on:
stdint-h
-unistd
+unistd-h
extensions
getpagesize
open
Depends-on:
stdint-h
-unistd
+unistd-h
extensions
getpagesize
vma-iter
Depends-on:
extensions
sys_types-h
-unistd
+unistd-h
open
configure.ac:
Depends-on:
extensions
-unistd
+unistd-h
open
configure.ac:
m4/pathmax.m4
Depends-on:
-unistd
+unistd-h
extensions
pathmax [test $REPLACE_GETCWD = 1]
msvc-inval [test $REPLACE_GETCWD = 1]
m4/getcwd.m4
Depends-on:
-unistd
+unistd-h
free-posix [test $REPLACE_GETCWD = 1]
strdup [test $REPLACE_GETCWD = 1]
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]
m4/getdtablesize.m4
Depends-on:
-unistd
+unistd-h
extensions
msvc-inval [test $HAVE_GETDTABLESIZE = 0]
Depends-on:
getrandom [test $HAVE_GETENTROPY = 0 || test $REPLACE_GETENTROPY = 1]
extensions
-unistd
+unistd-h
configure.ac:
gl_FUNC_GETENTROPY
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]
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]
m4/getlogin.m4
Depends-on:
-unistd
+unistd-h
configure.ac:
gl_FUNC_GETLOGIN
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]
dup2
setenv
stdbool-h
-unistd
+unistd-h
unsetenv
configure.ac:
m4/sys_cdefs_h.m4
Depends-on:
-unistd
+unistd-h
extensions
include_next
gen-header
dup2
setenv
stdbool-h
-unistd
+unistd-h
unsetenv
configure.ac:
m4/getpagesize.m4
Depends-on:
-unistd
+unistd-h
configure.ac:
gl_FUNC_GETPAGESIZE
m4/tcgetattr.m4
Depends-on:
-unistd
+unistd-h
extensions
fopen-gnu
fseeko
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]
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]
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:
m4/group-member.m4
Depends-on:
-unistd
+unistd-h
extensions
getgroups [test $HAVE_GROUP_MEMBER = 0]
malloc-gnu [test $HAVE_GROUP_MEMBER = 0]
m4/idpriv.m4
Depends-on:
-unistd
+unistd-h
extensions
configure.ac:
m4/idpriv.m4
Depends-on:
-unistd
+unistd-h
extensions
configure.ac:
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]
m4/isatty.m4
Depends-on:
-unistd
+unistd-h
msvc-inval [test $REPLACE_ISATTY = 1]
msvc-nothrow [test $REPLACE_ISATTY = 1]
tests/macros.h
Depends-on:
-unistd
+unistd-h
pipe-posix
configure.ac:
Depends-on:
stdbool-h
-unistd
+unistd-h
javaversion
execute
spawn-pipe
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
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]
libtextstyle
stdbool-h
stdio-h
-unistd
+unistd-h
fsync
vasprintf-posix
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]
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]
m4/lseek.m4
Depends-on:
-unistd
+unistd-h
sys_types-h
largefile
msvc-nothrow [test $REPLACE_LSEEK = 1]
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
stdbool-h
stdio-h
sys_socket-h
-unistd
+unistd-h
configure.ac:
gl_NONBLOCKING_IO
Depends-on:
stdbool-h
-unistd
+unistd-h
nonblocking
wait-process
pipe-posix
Depends-on:
stdbool-h
-unistd
+unistd-h
sys_socket-h
nonblocking
wait-process
c-ctype
extensions
minmax
-unistd
+unistd-h
configure.ac:
gl_NPROC
fcntl-h
stdbool-h
sys_stat-h
-unistd
+unistd-h
configure.ac:
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]
open
stdlib-h
xalloc
-unistd
+unistd-h
configure.ac:
gl_PAGEALIGN_ALLOC
m4/pathmax.m4
Depends-on:
-unistd
+unistd-h
configure.ac:
gl_PATHMAX
m4/physmem.m4
Depends-on:
-unistd
+unistd-h
full-read
configure.ac:
stdint-h
stdlib-h
sys_select-h
-unistd
+unistd-h
xalloc
configure.ac:
stdint-h
stdlib-h
sys_select-h
-unistd
+unistd-h
configure.ac:
AC_CHECK_FUNCS_ONCE([select])
m4/pipe.m4
Depends-on:
-unistd
+unistd-h
configure.ac:
gl_FUNC_PIPE
m4/pipe2.m4
Depends-on:
-unistd
+unistd-h
fcntl-h
binary-io
extensions
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]
posix_spawn_file_actions_addopen
posix_spawn_file_actions_destroy
stdbool-h
-unistd
+unistd-h
sys_wait-h
environ
fflush
posix_spawnattr_setflags
posix_spawnattr_destroy
stdbool-h
-unistd
+unistd-h
sys_wait-h
dup
environ
threads-h
time-h
uchar-h
-unistd
+unistd-h
utime-h
utmp
wchar
m4/pread.m4
Depends-on:
-unistd
+unistd-h
extensions
largefile
lseek [test $HAVE_PREAD = 0 || test $REPLACE_PREAD = 1]
stdbool-h
netinet_in-h
arpa_inet-h
-unistd
+unistd-h
sys_ioctl-h
extensions
inet_pton
m4/pwrite.m4
Depends-on:
-unistd
+unistd-h
extensions
largefile
lseek [test $HAVE_PWRITE = 0 || test $REPLACE_PWRITE = 1]
tests/macros.h
Depends-on:
-unistd
+unistd-h
configure.ac:
m4/read.m4
Depends-on:
-unistd
+unistd-h
msvc-inval [test $REPLACE_READ = 1]
msvc-nothrow [test $REPLACE_READ = 1]
m4/readlink.m4
Depends-on:
-unistd
+unistd-h
stat [test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1]
configure.ac:
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]
xreadlink
open
stdbool-h
-unistd
+unistd-h
memcmp
strdup
stdlib-h
string-h
sys_stat-h
-unistd
+unistd-h
xalloc-oversized
configure.ac-early:
m4/rmdir.m4
Depends-on:
-unistd
+unistd-h
filename [test $REPLACE_RMDIR = 1]
sys_stat-h [test $REPLACE_RMDIR = 1]
stdbool-h
stdlib-h
sys_wait-h
-unistd
+unistd-h
xalloc
configure.ac:
sys_socket-h
netinet_in-h
arpa_inet-h
-unistd
+unistd-h
sys_ioctl-h
extensions
inet_pton
openat-die
openat-h
save-cwd
-unistd
+unistd-h
configure.ac:
AC_CHECK_HEADERS([selinux/flask.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:
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]
signal-h
sigprocmask
stdio-h
-unistd
+unistd-h
configure.ac:
gl_SIGNAL_SIGPIPE
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]
posix_spawnattr_destroy
stdbool-h
stdlib-h
-unistd
+unistd-h
unistd-safer
wait-process
windows-spawn
nanosleep
stdckdint-h
time-h
-unistd
+unistd-h
xconcat-filename
xgetcwd
snippet/warn-on-use
snippet/_Noreturn
stddef-h
-unistd
+unistd-h
configure.ac:
gl_STDLIB_H
Depends-on:
fcntl
-unistd
+unistd-h
configure.ac:
m4/symlink.m4
Depends-on:
-unistd
+unistd-h
lstat [test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1]
configure.ac:
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]
include_next
snippet/c++defs
snippet/warn-on-use
-unistd
+unistd-h
configure.ac:
gl_SYS_IOCTL_H
Depends-on:
stdbool-h
-unistd
+unistd-h
popen
pclose
Depends-on:
stdbool-h
-unistd
+unistd-h
full-write
configure.ac:
Depends-on:
termcap-h
-unistd
+unistd-h
configure.ac:
Depends-on:
terminfo-h
-unistd
+unistd-h
configure.ac:
m4/truncate.m4
Depends-on:
-unistd
+unistd-h
sys_types-h
largefile
sys_stat-h
m4/ttyname_r.m4
Depends-on:
-unistd
+unistd-h
extensions
configure.ac:
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>
LGPLv2+
Maintainer:
-all
+++ /dev/null
-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
--- /dev/null
+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
--- /dev/null
+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
--- /dev/null
+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
Depends-on:
fcntl
-unistd
+unistd-h
pipe-posix
configure.ac:
+++ /dev/null
-Files:
-tests/test-unistd.c
-
-Depends-on:
-assert-h
-unistd-c++-tests
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-unistd
-check_PROGRAMS += test-unistd
m4/unlink.m4
Depends-on:
-unistd
+unistd-h
filename [test $REPLACE_UNLINK = 1]
lstat [test $REPLACE_UNLINK = 1]
malloc-posix [test $REPLACE_UNLINK = 1]
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]
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]
m4/usleep.m4
Depends-on:
-unistd
+unistd-h
extensions
sleep [test $HAVE_USLEEP = 0 || test $REPLACE_USLEEP = 1]
Depends-on:
stdint-h
-unistd
+unistd-h
extensions
getpagesize
open
stdbool-h
stdlib-h
sys_wait-h
-unistd
+unistd-h
atexit
waitpid
stdint-h
stdlib-h
strpbrk
-unistd
+unistd-h
malloc-posix
configure.ac:
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]
intprops
nanosleep
time-h
-unistd
+unistd-h
configure.ac:
gl_XNANOSLEEP
+++ /dev/null
-/* 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 ()
-{
-}
--- /dev/null
+/* 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 ()
+{
+}
--- /dev/null
+/* 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;
+}
+++ /dev/null
-/* 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;
-}