tests: add signature checks
authorEric Blake <ebb9@byu.net>
Tue, 22 Dec 2009 17:57:14 +0000 (10:57 -0700)
committerEric Blake <ebb9@byu.net>
Thu, 24 Dec 2009 13:25:00 +0000 (06:25 -0700)
These tests will help catch problems similar to the one recently
fixed for cygwin declaring getsubopt and symlinkat in the wrong header.

* tests/signature.h (SIGNATURE_CHECK): New file.
* modules/atexit-tests (Files): Use it.
* modules/btowc-tests (Files): Likewise.
* modules/canonicalize-lgpl-tests (Files): Likewise.
* modules/ceilf-tests (Files): Likewise.
* modules/ceill-tests (Files): Likewise.
* modules/chown-tests (Files): Likewise.
* modules/dprintf-posix-tests (Files): Likewise.
* modules/dup2-tests (Files): Likewise.
* modules/dup3-tests (Files): Likewise.
* modules/duplocale-tests (Files): Likewise.
* modules/fchdir-tests (Files): Likewise.
* modules/fcntl-tests (Files): Likewise.
* modules/fdopendir-tests (Files): Likewise.
* modules/fflush-tests (Files): Likewise.
* modules/flock-tests (Files): Likewise.
* modules/floorf-tests (Files): Likewise.
* modules/floorl-tests (Files): Likewise.
* modules/fnmatch-tests (Files): Likewise.
* modules/fopen-tests (Files): Likewise.
* modules/fprintf-posix-tests (Files): Likewise.
* modules/freopen-tests (Files): Likewise.
* modules/frexp-nolibm-tests (Files): Likewise.
* modules/frexp-tests (Files): Likewise.
* modules/frexpl-nolibm-tests (Files): Likewise.
* modules/frexpl-tests (Files): Likewise.
* modules/fseek-tests (Files): Likewise.
* modules/fseeko-tests (Files): Likewise.
* modules/fsync-tests (Files): Likewise.
* modules/ftell-tests (Files): Likewise.
* modules/ftello-tests (Files): Likewise.
* modules/futimens-tests (Files): Likewise.
* modules/getaddrinfo-tests (Files): Likewise.
* modules/getcwd-tests (Files): Likewise.
* modules/getdelim-tests (Files): Likewise.
* modules/getdtablesize-tests (Files): Likewise.
* modules/getgroups-tests (Files): Likewise.
* modules/gethostname-tests (Files): Likewise.
* modules/getline-tests (Files): Likewise.
* modules/getopt-posix-tests (Files): Likewise.
* modules/gettimeofday-tests (Files): Likewise.
* modules/glob-tests (Files): Likewise.
* modules/iconv-tests (Files): Likewise.
* modules/inet_ntop-tests (Files): Likewise.
* modules/inet_pton-tests (Files): Likewise.
* modules/isblank-tests (Files): Likewise.
* modules/lchown-tests (Files): Likewise.
* modules/ldexpl-tests (Files): Likewise.
* modules/link-tests (Files): Likewise.
* modules/linkat-tests (Files): Likewise.
* modules/lseek-tests (Files): Likewise.
* modules/lstat-tests (Files): Likewise.
* modules/mbrtowc-tests (Files): Likewise.
* modules/mbsinit-tests (Files): Likewise.
* modules/mbsnrtowcs-tests (Files): Likewise.
* modules/mbsrtowcs-tests (Files): Likewise.
* modules/memchr-tests (Files): Likewise.
* modules/memcmp-tests (Files): Likewise.
* modules/memmem-tests (Files): Likewise.
* modules/memrchr-tests (Files): Likewise.
* modules/mkdir-tests (Files): Likewise.
* modules/mkfifo-tests (Files): Likewise.
* modules/mkfifoat-tests (Files): Likewise.
* modules/mknod-tests (Files): Likewise.
* modules/nanosleep-tests (Files): Likewise.
* modules/nl_langinfo-tests (Files): Likewise.
* modules/obstack-printf-tests (Files): Likewise.
* modules/open-tests (Files): Likewise.
* modules/openat-tests (Files): Likewise.
* modules/perror-tests (Files): Likewise.
* modules/pipe2-tests (Files): Likewise.
* modules/poll-tests (Files): Likewise.
* modules/popen-tests (Files): Likewise.
* modules/posix_spawn-tests (Files): Likewise.
* modules/posix_spawnp-tests (Files): Likewise.
* modules/pread-tests (Files): Likewise.
* modules/printf-posix-tests (Files): Likewise.
* modules/pty-tests (Files): Likewise.
* modules/random_r-tests (Files): Likewise.
* modules/rawmemchr-tests (Files): Likewise.
* modules/readlink-tests (Files): Likewise.
* modules/remove-tests (Files): Likewise.
* modules/rename-tests (Files): Likewise.
* modules/renameat-tests (Files): Likewise.
* modules/rmdir-tests (Files): Likewise.
* modules/round-tests (Files): Likewise.
* modules/roundf-tests (Files): Likewise.
* modules/roundl-tests (Files): Likewise.
* modules/select-tests (Files): Likewise.
* modules/setenv-tests (Files): Likewise.
* modules/sigaction-tests (Files): Likewise.
* modules/sleep-tests (Files): Likewise.
* modules/snprintf-posix-tests (Files): Likewise.
* modules/snprintf-tests (Files): Likewise.
* modules/sprintf-posix-tests (Files): Likewise.
* modules/stat-tests (Files): Likewise.
* modules/strcasestr-tests (Files): Likewise.
* modules/strchrnul-tests (Files): Likewise.
* modules/strerror-tests (Files): Likewise.
* modules/strsignal-tests (Files): Likewise.
* modules/strstr-tests (Files): Likewise.
* modules/strtod-tests (Files): Likewise.
* modules/strverscmp-tests (Files): Likewise.
* modules/symlink-tests (Files): Likewise.
* modules/symlinkat-tests (Files): Likewise.
* modules/times-tests (Files): Likewise.
* modules/trunc-tests (Files): Likewise.
* modules/truncf-tests (Files): Likewise.
* modules/truncl-tests (Files): Likewise.
* modules/tsearch-tests (Files): Likewise.
* modules/uname-tests (Files): Likewise.
* modules/unlink-tests (Files): Likewise.
* modules/unsetenv-tests (Files): Likewise.
* modules/usleep-tests (Files): Likewise.
* modules/utimensat-tests (Files): Likewise.
* modules/vasprintf-tests (Files): Likewise.
* modules/vdprintf-posix-tests (Files): Likewise.
* modules/vfprintf-posix-tests (Files): Likewise.
* modules/vprintf-posix-tests (Files): Likewise.
* modules/vsnprintf-posix-tests (Files): Likewise.
* modules/vsnprintf-tests (Files): Likewise.
* modules/vsprintf-posix-tests (Files): Likewise.
* modules/wcrtomb-tests (Files): Likewise.
* modules/wcsnrtombs-tests (Files): Likewise.
* modules/wcsrtombs-tests (Files): Likewise.
* modules/wcwidth-tests (Files): Likewise.
* tests/test-isfinite.c (isfinite): Ensure macro declaration.
* tests/test-isinf.c (isinf): Likewise.
* tests/test-isnan.c (isnan): Likewise.
* tests/test-signbit.c (signbit): Likewise.
* tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
declaration, either as macro or with correct signature.
(select): Ensure function under test is declared with correct
signature in correct header.
* tests/test-atexit.c (atexit): Likewise.
* tests/test-btowc.c (btowc): Likewise.
* tests/test-canonicalize-lgpl.c (realpath)
(canonicalize_file_name): Likewise.
* tests/test-ceilf1.c (ceilf): Likewise.
* tests/test-ceill.c (ceill): Likewise.
* tests/test-chown.c (chown): Likewise.
* tests/test-dprintf-posix.c (dprintf): Likewise.
* tests/test-dup2.c (dup2): Likewise.
* tests/test-dup3.c (dup3): Likewise.
* tests/test-duplocale.c (duplocale): Likewise.
* tests/test-fchdir.c (fchdir): Likewise.
* tests/test-fchownat.c (fchownat): Likewise.
* tests/test-fcntl.c (fcntl): Likewise.
* tests/test-fdopendir.c (fdopendir): Likewise.
* tests/test-fflush.c (fflush): Likewise.
* tests/test-flock.c (flock): Likewise.
* tests/test-floorf1.c (floorf): Likewise.
* tests/test-floorl.c (floorl): Likewise.
* tests/test-fnmatch.c (fnmatch): Likewise.
* tests/test-fopen.c (fopen): Likewise.
* tests/test-fprintf-posix.c (fprintf): Likewise.
* tests/test-freopen.c (freopen): Likewise.
* tests/test-frexp.c (frexp): Likewise.
* tests/test-frexpl.c (frexpl): Likewise.
* tests/test-fseek.c (fseek): Likewise.
* tests/test-fseeko.c (fseeko): Likewise.
* tests/test-fstatat.c (fstatat): Likewise.
* tests/test-fsync.c (fsync): Likewise.
* tests/test-ftell.c (ftell): Likewise.
* tests/test-ftello.c (ftello): Likewise.
* tests/test-futimens.c (futimens): Likewise.
* tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
(gai_strerror): Likewise.
* tests/test-getcwd.c (getcwd): Likewise.
* tests/test-getdelim.c (getdelim): Likewise.
* tests/test-getdtablesize.c (getdtablesize): Likewise.
* tests/test-getgroups.c (getgroups): Likewise.
* tests/test-gethostname.c (gethostname): Likewise.
* tests/test-getline.c (getline): Likewise.
* tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
Likewise.
* tests/test-gettimeofday.c (gettimeofday): Likewise.
* tests/test-glob.c (glob, globfree): Likewise.
* tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
* tests/test-inet_ntop.c (inet_ntop): Likewise.
* tests/test-inet_pton.c (inet_pton): Likewise.
* tests/test-isblank.c (isblank): Likewise.
* tests/test-lchown.c (lchown): Likewise.
* tests/test-ldexpl.c (ldexpl): Likewise.
* tests/test-link.c (link): Likewise.
* tests/test-linkat.c (linkat): Likewise.
* tests/test-lseek.c (lseek): Likewise.
* tests/test-lstat.c (lstat): Likewise.
* tests/test-mbrtowc.c (mbrtowc): Likewise.
* tests/test-mbsinit.c (mbsinit): Likewise.
* tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
* tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
* tests/test-memchr.c (memchr): Likewise.
* tests/test-memcmp.c (memcmp): Likewise.
* tests/test-memmem.c (memmem): Likewise.
* tests/test-memrchr.c (memrchr): Likewise.
* tests/test-mkdir.c (mkdir): Likewise.
* tests/test-mkdirat.c (mkdirat): Likewise.
* tests/test-mkfifo.c (mkfifo): Likewise.
* tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
* tests/test-mknod.c (mknod): Likewise.
* tests/test-nanosleep.c (nanosleep): Likewise.
* tests/test-nl_langinfo.c (nl_langinfo): Likewise.
* tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
Likewise.
* tests/test-open.c (open): Likewise.
* tests/test-openat.c (openat): Likewise.
* tests/test-perror.c (perror): Likewise.
* tests/test-pipe2.c (pipe2): Likewise.
* tests/test-poll.c (poll): Likewise.
* tests/test-popen.c (popen, pclose): Likewise.
* tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
(posix_spawnattr_destroy, posix_spawnattr_setsigmask)
(posix_spawnattr_setflags, posix_spawn_file_actions_init)
(posix_spawn_file_actions_destroy)
(posix_spawn_file_actions_addclose)
(posix_spawn_file_actions_addopen)
(posix_spawn_file_actions_adddup2): Likewise.
* tests/test-posix_spawn3.c (posix_spawn): Likewise.
* tests/test-pread.c (pread): Likewise.
* tests/test-printf-posix.c (printf): Likewise.
* tests/test-pty.c (openpty, forkpty): Likewise.
* tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
(random_r): Likewise.
* tests/test-rawmemchr.c (rawmemchr): Likewise.
* tests/test-readlink.c (readlink): Likewise.
* tests/test-remove.c (remove): Likewise.
* tests/test-rename.c (rename): Likewise.
* tests/test-renameat.c (renameat): Likewise.
* tests/test-rmdir.c (rmdir): Likewise.
* tests/test-round1.c (round): Likewise.
* tests/test-roundf1.c (roundf): Likewise.
* tests/test-roundl.c (roundl): Likewise.
* tests/test-setenv.c (setenv): Likewise.
* tests/test-sigaction.c (sigaction): Likewise.
* tests/test-sleep.c (sleep): Likewise.
* tests/test-snprintf.c (snprintf): Likewise.
* tests/test-sprintf-posix.c (sprintf): Likewise.
* tests/test-stat.c (stat): Likewise.
* tests/test-stpncpy.c (stpncpy): Likewise.
* tests/test-strcasestr.c (strcasestr): Likewise.
* tests/test-strchrnul.c (strchrnul): Likewise.
* tests/test-strerror.c (strerror): Likewise.
* tests/test-strsignal.c (strsignal): Likewise.
* tests/test-strstr.c (strstr): Likewise.
* tests/test-strtod.c (strtod): Likewise.
* tests/test-strverscmp.c (strverscmp): Likewise.
* tests/test-symlink.c (symlink): Likewise.
* tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
* tests/test-times.c (times): Likewise.
* tests/test-trunc1.c (trunc): Likewise.
* tests/test-truncf1.c (truncf): Likewise.
* tests/test-truncl.c (truncl): Likewise.
* tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
Likewise.
* tests/test-uname.c (uname): Likewise.
* tests/test-unlink.c (unlink): Likewise.
* tests/test-unlinkat.c (unlinkat): Likewise.
* tests/test-unsetenv.c (unsetenv): Likewise.
* tests/test-usleep.c (usleep): Likewise.
* tests/test-utimensat.c (utimensat): Likewise.
* tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
* tests/test-vdprintf-posix.c (vdprintf): Likewise.
* tests/test-vfprintf-posix.c (vfprintf): Likewise.
* tests/test-vprintf-posix.c (vprintf): Likewise.
* tests/test-vsnprintf.c (vsnprintf): Likewise.
* tests/test-vsprintf-posix.c (vsprintf): Likewise.
* tests/test-wcrtomb.c (wcrtomb): Likewise.
* tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
* tests/test-wcsrtombs.c (wcsrtombs): Likewise.
* tests/test-wcwidth.c (wcwidth): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
257 files changed:
ChangeLog
modules/atexit-tests
modules/btowc-tests
modules/canonicalize-lgpl-tests
modules/ceilf-tests
modules/ceill-tests
modules/chown-tests
modules/dprintf-posix-tests
modules/dup2-tests
modules/dup3-tests
modules/duplocale-tests
modules/fchdir-tests
modules/fcntl-tests
modules/fdopendir-tests
modules/fflush-tests
modules/flock-tests
modules/floorf-tests
modules/floorl-tests
modules/fnmatch-tests
modules/fopen-tests
modules/fprintf-posix-tests
modules/freopen-tests
modules/frexp-nolibm-tests
modules/frexp-tests
modules/frexpl-nolibm-tests
modules/frexpl-tests
modules/fseek-tests
modules/fseeko-tests
modules/fsync-tests
modules/ftell-tests
modules/ftello-tests
modules/futimens-tests
modules/getaddrinfo-tests
modules/getcwd-tests
modules/getdelim-tests
modules/getdtablesize-tests
modules/getgroups-tests
modules/gethostname-tests
modules/getline-tests
modules/getopt-posix-tests
modules/gettimeofday-tests
modules/glob-tests
modules/iconv-tests
modules/inet_ntop-tests
modules/inet_pton-tests
modules/isblank-tests
modules/lchown-tests
modules/ldexpl-tests
modules/link-tests
modules/linkat-tests
modules/lseek-tests
modules/lstat-tests
modules/mbrtowc-tests
modules/mbsinit-tests
modules/mbsnrtowcs-tests
modules/mbsrtowcs-tests
modules/memchr-tests
modules/memcmp-tests
modules/memmem-tests
modules/memrchr-tests
modules/mkdir-tests
modules/mkfifo-tests
modules/mkfifoat-tests
modules/mknod-tests
modules/nanosleep-tests
modules/nl_langinfo-tests
modules/obstack-printf-tests
modules/open-tests
modules/openat-tests
modules/perror-tests
modules/pipe2-tests
modules/poll-tests
modules/popen-tests
modules/posix_spawn-tests
modules/posix_spawnp-tests
modules/pread-tests
modules/printf-posix-tests
modules/pty-tests
modules/random_r-tests
modules/rawmemchr-tests
modules/readlink-tests
modules/remove-tests
modules/rename-tests
modules/renameat-tests
modules/rmdir-tests
modules/round-tests
modules/roundf-tests
modules/roundl-tests
modules/select-tests
modules/setenv-tests
modules/sigaction-tests
modules/sleep-tests
modules/snprintf-posix-tests
modules/snprintf-tests
modules/sprintf-posix-tests
modules/stat-tests
modules/strcasestr-tests
modules/strchrnul-tests
modules/strerror-tests
modules/strsignal-tests
modules/strstr-tests
modules/strtod-tests
modules/strverscmp-tests
modules/symlink-tests
modules/symlinkat-tests
modules/times-tests
modules/trunc-tests
modules/truncf-tests
modules/truncl-tests
modules/tsearch-tests
modules/uname-tests
modules/unlink-tests
modules/unsetenv-tests
modules/usleep-tests
modules/utimensat-tests
modules/vasprintf-tests
modules/vdprintf-posix-tests
modules/vfprintf-posix-tests
modules/vprintf-posix-tests
modules/vsnprintf-posix-tests
modules/vsnprintf-tests
modules/vsprintf-posix-tests
modules/wcrtomb-tests
modules/wcsnrtombs-tests
modules/wcsrtombs-tests
modules/wcwidth-tests
tests/signature.h [new file with mode: 0644]
tests/test-atexit.c
tests/test-btowc.c
tests/test-canonicalize-lgpl.c
tests/test-ceilf1.c
tests/test-ceill.c
tests/test-chown.c
tests/test-dprintf-posix.c
tests/test-dup2.c
tests/test-dup3.c
tests/test-duplocale.c
tests/test-fchdir.c
tests/test-fchownat.c
tests/test-fcntl.c
tests/test-fdopendir.c
tests/test-fflush.c
tests/test-flock.c
tests/test-floorf1.c
tests/test-floorl.c
tests/test-fnmatch.c
tests/test-fopen.c
tests/test-fprintf-posix.c
tests/test-freopen.c
tests/test-frexp.c
tests/test-frexpl.c
tests/test-fseek.c
tests/test-fseeko.c
tests/test-fstatat.c
tests/test-fsync.c
tests/test-ftell.c
tests/test-ftello.c
tests/test-futimens.c
tests/test-getaddrinfo.c
tests/test-getcwd.c
tests/test-getdelim.c
tests/test-getdtablesize.c
tests/test-getgroups.c
tests/test-gethostname.c
tests/test-getline.c
tests/test-getopt.c
tests/test-gettimeofday.c
tests/test-glob.c
tests/test-iconv.c
tests/test-inet_ntop.c
tests/test-inet_pton.c
tests/test-isblank.c
tests/test-isfinite.c
tests/test-isinf.c
tests/test-isnan.c
tests/test-lchown.c
tests/test-ldexpl.c
tests/test-link.c
tests/test-linkat.c
tests/test-lseek.c
tests/test-lstat.c
tests/test-mbrtowc.c
tests/test-mbsinit.c
tests/test-mbsnrtowcs.c
tests/test-mbsrtowcs.c
tests/test-memchr.c
tests/test-memcmp.c
tests/test-memmem.c
tests/test-memrchr.c
tests/test-mkdir.c
tests/test-mkdirat.c
tests/test-mkfifo.c
tests/test-mkfifoat.c
tests/test-mknod.c
tests/test-nanosleep.c
tests/test-nl_langinfo.c
tests/test-obstack-printf.c
tests/test-open.c
tests/test-openat.c
tests/test-perror.c
tests/test-pipe2.c
tests/test-poll.c
tests/test-popen.c
tests/test-posix_spawn1.c
tests/test-posix_spawn3.c
tests/test-pread.c
tests/test-printf-posix.c
tests/test-pty.c
tests/test-random_r.c
tests/test-rawmemchr.c
tests/test-readlink.c
tests/test-remove.c
tests/test-rename.c
tests/test-renameat.c
tests/test-rmdir.c
tests/test-round1.c
tests/test-roundf1.c
tests/test-roundl.c
tests/test-select.c
tests/test-setenv.c
tests/test-sigaction.c
tests/test-signbit.c
tests/test-sleep.c
tests/test-snprintf.c
tests/test-sprintf-posix.c
tests/test-stat.c
tests/test-stpncpy.c
tests/test-strcasestr.c
tests/test-strchrnul.c
tests/test-strerror.c
tests/test-strsignal.c
tests/test-strstr.c
tests/test-strtod.c
tests/test-strverscmp.c
tests/test-symlink.c
tests/test-symlinkat.c
tests/test-times.c
tests/test-trunc1.c
tests/test-truncf1.c
tests/test-truncl.c
tests/test-tsearch.c
tests/test-uname.c
tests/test-unlink.c
tests/test-unlinkat.c
tests/test-unsetenv.c
tests/test-usleep.c
tests/test-utimensat.c
tests/test-vasprintf.c
tests/test-vdprintf-posix.c
tests/test-vfprintf-posix.c
tests/test-vprintf-posix.c
tests/test-vsnprintf.c
tests/test-vsprintf-posix.c
tests/test-wcrtomb.c
tests/test-wcsnrtombs.c
tests/test-wcsrtombs.c
tests/test-wcwidth.c

index 43bf844..3cca24c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,278 @@
 2009-12-24  Eric Blake  <ebb9@byu.net>
 
+       tests: add signature checks
+       * tests/signature.h (SIGNATURE_CHECK): New file.
+       * modules/atexit-tests (Files): Use it.
+       * modules/btowc-tests (Files): Likewise.
+       * modules/canonicalize-lgpl-tests (Files): Likewise.
+       * modules/ceilf-tests (Files): Likewise.
+       * modules/ceill-tests (Files): Likewise.
+       * modules/chown-tests (Files): Likewise.
+       * modules/dprintf-posix-tests (Files): Likewise.
+       * modules/dup2-tests (Files): Likewise.
+       * modules/dup3-tests (Files): Likewise.
+       * modules/duplocale-tests (Files): Likewise.
+       * modules/fchdir-tests (Files): Likewise.
+       * modules/fcntl-tests (Files): Likewise.
+       * modules/fdopendir-tests (Files): Likewise.
+       * modules/fflush-tests (Files): Likewise.
+       * modules/flock-tests (Files): Likewise.
+       * modules/floorf-tests (Files): Likewise.
+       * modules/floorl-tests (Files): Likewise.
+       * modules/fnmatch-tests (Files): Likewise.
+       * modules/fopen-tests (Files): Likewise.
+       * modules/fprintf-posix-tests (Files): Likewise.
+       * modules/freopen-tests (Files): Likewise.
+       * modules/frexp-nolibm-tests (Files): Likewise.
+       * modules/frexp-tests (Files): Likewise.
+       * modules/frexpl-nolibm-tests (Files): Likewise.
+       * modules/frexpl-tests (Files): Likewise.
+       * modules/fseek-tests (Files): Likewise.
+       * modules/fseeko-tests (Files): Likewise.
+       * modules/fsync-tests (Files): Likewise.
+       * modules/ftell-tests (Files): Likewise.
+       * modules/ftello-tests (Files): Likewise.
+       * modules/futimens-tests (Files): Likewise.
+       * modules/getaddrinfo-tests (Files): Likewise.
+       * modules/getcwd-tests (Files): Likewise.
+       * modules/getdelim-tests (Files): Likewise.
+       * modules/getdtablesize-tests (Files): Likewise.
+       * modules/getgroups-tests (Files): Likewise.
+       * modules/gethostname-tests (Files): Likewise.
+       * modules/getline-tests (Files): Likewise.
+       * modules/getopt-posix-tests (Files): Likewise.
+       * modules/gettimeofday-tests (Files): Likewise.
+       * modules/glob-tests (Files): Likewise.
+       * modules/iconv-tests (Files): Likewise.
+       * modules/inet_ntop-tests (Files): Likewise.
+       * modules/inet_pton-tests (Files): Likewise.
+       * modules/isblank-tests (Files): Likewise.
+       * modules/lchown-tests (Files): Likewise.
+       * modules/ldexpl-tests (Files): Likewise.
+       * modules/link-tests (Files): Likewise.
+       * modules/linkat-tests (Files): Likewise.
+       * modules/lseek-tests (Files): Likewise.
+       * modules/lstat-tests (Files): Likewise.
+       * modules/mbrtowc-tests (Files): Likewise.
+       * modules/mbsinit-tests (Files): Likewise.
+       * modules/mbsnrtowcs-tests (Files): Likewise.
+       * modules/mbsrtowcs-tests (Files): Likewise.
+       * modules/memchr-tests (Files): Likewise.
+       * modules/memcmp-tests (Files): Likewise.
+       * modules/memmem-tests (Files): Likewise.
+       * modules/memrchr-tests (Files): Likewise.
+       * modules/mkdir-tests (Files): Likewise.
+       * modules/mkfifo-tests (Files): Likewise.
+       * modules/mkfifoat-tests (Files): Likewise.
+       * modules/mknod-tests (Files): Likewise.
+       * modules/nanosleep-tests (Files): Likewise.
+       * modules/nl_langinfo-tests (Files): Likewise.
+       * modules/obstack-printf-tests (Files): Likewise.
+       * modules/open-tests (Files): Likewise.
+       * modules/openat-tests (Files): Likewise.
+       * modules/perror-tests (Files): Likewise.
+       * modules/pipe2-tests (Files): Likewise.
+       * modules/poll-tests (Files): Likewise.
+       * modules/popen-tests (Files): Likewise.
+       * modules/posix_spawn-tests (Files): Likewise.
+       * modules/posix_spawnp-tests (Files): Likewise.
+       * modules/pread-tests (Files): Likewise.
+       * modules/printf-posix-tests (Files): Likewise.
+       * modules/pty-tests (Files): Likewise.
+       * modules/random_r-tests (Files): Likewise.
+       * modules/rawmemchr-tests (Files): Likewise.
+       * modules/readlink-tests (Files): Likewise.
+       * modules/remove-tests (Files): Likewise.
+       * modules/rename-tests (Files): Likewise.
+       * modules/renameat-tests (Files): Likewise.
+       * modules/rmdir-tests (Files): Likewise.
+       * modules/round-tests (Files): Likewise.
+       * modules/roundf-tests (Files): Likewise.
+       * modules/roundl-tests (Files): Likewise.
+       * modules/select-tests (Files): Likewise.
+       * modules/setenv-tests (Files): Likewise.
+       * modules/sigaction-tests (Files): Likewise.
+       * modules/sleep-tests (Files): Likewise.
+       * modules/snprintf-posix-tests (Files): Likewise.
+       * modules/snprintf-tests (Files): Likewise.
+       * modules/sprintf-posix-tests (Files): Likewise.
+       * modules/stat-tests (Files): Likewise.
+       * modules/strcasestr-tests (Files): Likewise.
+       * modules/strchrnul-tests (Files): Likewise.
+       * modules/strerror-tests (Files): Likewise.
+       * modules/strsignal-tests (Files): Likewise.
+       * modules/strstr-tests (Files): Likewise.
+       * modules/strtod-tests (Files): Likewise.
+       * modules/strverscmp-tests (Files): Likewise.
+       * modules/symlink-tests (Files): Likewise.
+       * modules/symlinkat-tests (Files): Likewise.
+       * modules/times-tests (Files): Likewise.
+       * modules/trunc-tests (Files): Likewise.
+       * modules/truncf-tests (Files): Likewise.
+       * modules/truncl-tests (Files): Likewise.
+       * modules/tsearch-tests (Files): Likewise.
+       * modules/uname-tests (Files): Likewise.
+       * modules/unlink-tests (Files): Likewise.
+       * modules/unsetenv-tests (Files): Likewise.
+       * modules/usleep-tests (Files): Likewise.
+       * modules/utimensat-tests (Files): Likewise.
+       * modules/vasprintf-tests (Files): Likewise.
+       * modules/vdprintf-posix-tests (Files): Likewise.
+       * modules/vfprintf-posix-tests (Files): Likewise.
+       * modules/vprintf-posix-tests (Files): Likewise.
+       * modules/vsnprintf-posix-tests (Files): Likewise.
+       * modules/vsnprintf-tests (Files): Likewise.
+       * modules/vsprintf-posix-tests (Files): Likewise.
+       * modules/wcrtomb-tests (Files): Likewise.
+       * modules/wcsnrtombs-tests (Files): Likewise.
+       * modules/wcsrtombs-tests (Files): Likewise.
+       * modules/wcwidth-tests (Files): Likewise.
+       * tests/test-isfinite.c (isfinite): Ensure macro declaration.
+       * tests/test-isinf.c (isinf): Likewise.
+       * tests/test-isnan.c (isnan): Likewise.
+       * tests/test-signbit.c (signbit): Likewise.
+       * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
+       declaration, either as macro or with correct signature.
+       (select): Ensure function under test is declared with correct
+       signature in correct header.
+       * tests/test-atexit.c (atexit): Likewise.
+       * tests/test-btowc.c (btowc): Likewise.
+       * tests/test-canonicalize-lgpl.c (realpath)
+       (canonicalize_file_name): Likewise.
+       * tests/test-ceilf1.c (ceilf): Likewise.
+       * tests/test-ceill.c (ceill): Likewise.
+       * tests/test-chown.c (chown): Likewise.
+       * tests/test-dprintf-posix.c (dprintf): Likewise.
+       * tests/test-dup2.c (dup2): Likewise.
+       * tests/test-dup3.c (dup3): Likewise.
+       * tests/test-duplocale.c (duplocale): Likewise.
+       * tests/test-fchdir.c (fchdir): Likewise.
+       * tests/test-fchownat.c (fchownat): Likewise.
+       * tests/test-fcntl.c (fcntl): Likewise.
+       * tests/test-fdopendir.c (fdopendir): Likewise.
+       * tests/test-fflush.c (fflush): Likewise.
+       * tests/test-flock.c (flock): Likewise.
+       * tests/test-floorf1.c (floorf): Likewise.
+       * tests/test-floorl.c (floorl): Likewise.
+       * tests/test-fnmatch.c (fnmatch): Likewise.
+       * tests/test-fopen.c (fopen): Likewise.
+       * tests/test-fprintf-posix.c (fprintf): Likewise.
+       * tests/test-freopen.c (freopen): Likewise.
+       * tests/test-frexp.c (frexp): Likewise.
+       * tests/test-frexpl.c (frexpl): Likewise.
+       * tests/test-fseek.c (fseek): Likewise.
+       * tests/test-fseeko.c (fseeko): Likewise.
+       * tests/test-fstatat.c (fstatat): Likewise.
+       * tests/test-fsync.c (fsync): Likewise.
+       * tests/test-ftell.c (ftell): Likewise.
+       * tests/test-ftello.c (ftello): Likewise.
+       * tests/test-futimens.c (futimens): Likewise.
+       * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
+       (gai_strerror): Likewise.
+       * tests/test-getcwd.c (getcwd): Likewise.
+       * tests/test-getdelim.c (getdelim): Likewise.
+       * tests/test-getdtablesize.c (getdtablesize): Likewise.
+       * tests/test-getgroups.c (getgroups): Likewise.
+       * tests/test-gethostname.c (gethostname): Likewise.
+       * tests/test-getline.c (getline): Likewise.
+       * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
+       Likewise.
+       * tests/test-gettimeofday.c (gettimeofday): Likewise.
+       * tests/test-glob.c (glob, globfree): Likewise.
+       * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
+       * tests/test-inet_ntop.c (inet_ntop): Likewise.
+       * tests/test-inet_pton.c (inet_pton): Likewise.
+       * tests/test-isblank.c (isblank): Likewise.
+       * tests/test-lchown.c (lchown): Likewise.
+       * tests/test-ldexpl.c (ldexpl): Likewise.
+       * tests/test-link.c (link): Likewise.
+       * tests/test-linkat.c (linkat): Likewise.
+       * tests/test-lseek.c (lseek): Likewise.
+       * tests/test-lstat.c (lstat): Likewise.
+       * tests/test-mbrtowc.c (mbrtowc): Likewise.
+       * tests/test-mbsinit.c (mbsinit): Likewise.
+       * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
+       * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
+       * tests/test-memchr.c (memchr): Likewise.
+       * tests/test-memcmp.c (memcmp): Likewise.
+       * tests/test-memmem.c (memmem): Likewise.
+       * tests/test-memrchr.c (memrchr): Likewise.
+       * tests/test-mkdir.c (mkdir): Likewise.
+       * tests/test-mkdirat.c (mkdirat): Likewise.
+       * tests/test-mkfifo.c (mkfifo): Likewise.
+       * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
+       * tests/test-mknod.c (mknod): Likewise.
+       * tests/test-nanosleep.c (nanosleep): Likewise.
+       * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
+       * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
+       Likewise.
+       * tests/test-open.c (open): Likewise.
+       * tests/test-openat.c (openat): Likewise.
+       * tests/test-perror.c (perror): Likewise.
+       * tests/test-pipe2.c (pipe2): Likewise.
+       * tests/test-poll.c (poll): Likewise.
+       * tests/test-popen.c (popen, pclose): Likewise.
+       * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
+       (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
+       (posix_spawnattr_setflags, posix_spawn_file_actions_init)
+       (posix_spawn_file_actions_destroy)
+       (posix_spawn_file_actions_addclose)
+       (posix_spawn_file_actions_addopen)
+       (posix_spawn_file_actions_adddup2): Likewise.
+       * tests/test-posix_spawn3.c (posix_spawn): Likewise.
+       * tests/test-pread.c (pread): Likewise.
+       * tests/test-printf-posix.c (printf): Likewise.
+       * tests/test-pty.c (openpty, forkpty): Likewise.
+       * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
+       (random_r): Likewise.
+       * tests/test-rawmemchr.c (rawmemchr): Likewise.
+       * tests/test-readlink.c (readlink): Likewise.
+       * tests/test-remove.c (remove): Likewise.
+       * tests/test-rename.c (rename): Likewise.
+       * tests/test-renameat.c (renameat): Likewise.
+       * tests/test-rmdir.c (rmdir): Likewise.
+       * tests/test-round1.c (round): Likewise.
+       * tests/test-roundf1.c (roundf): Likewise.
+       * tests/test-roundl.c (roundl): Likewise.
+       * tests/test-setenv.c (setenv): Likewise.
+       * tests/test-sigaction.c (sigaction): Likewise.
+       * tests/test-sleep.c (sleep): Likewise.
+       * tests/test-snprintf.c (snprintf): Likewise.
+       * tests/test-sprintf-posix.c (sprintf): Likewise.
+       * tests/test-stat.c (stat): Likewise.
+       * tests/test-stpncpy.c (stpncpy): Likewise.
+       * tests/test-strcasestr.c (strcasestr): Likewise.
+       * tests/test-strchrnul.c (strchrnul): Likewise.
+       * tests/test-strerror.c (strerror): Likewise.
+       * tests/test-strsignal.c (strsignal): Likewise.
+       * tests/test-strstr.c (strstr): Likewise.
+       * tests/test-strtod.c (strtod): Likewise.
+       * tests/test-strverscmp.c (strverscmp): Likewise.
+       * tests/test-symlink.c (symlink): Likewise.
+       * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
+       * tests/test-times.c (times): Likewise.
+       * tests/test-trunc1.c (trunc): Likewise.
+       * tests/test-truncf1.c (truncf): Likewise.
+       * tests/test-truncl.c (truncl): Likewise.
+       * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
+       Likewise.
+       * tests/test-uname.c (uname): Likewise.
+       * tests/test-unlink.c (unlink): Likewise.
+       * tests/test-unlinkat.c (unlinkat): Likewise.
+       * tests/test-unsetenv.c (unsetenv): Likewise.
+       * tests/test-usleep.c (usleep): Likewise.
+       * tests/test-utimensat.c (utimensat): Likewise.
+       * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
+       * tests/test-vdprintf-posix.c (vdprintf): Likewise.
+       * tests/test-vfprintf-posix.c (vfprintf): Likewise.
+       * tests/test-vprintf-posix.c (vprintf): Likewise.
+       * tests/test-vsnprintf.c (vsnprintf): Likewise.
+       * tests/test-vsprintf-posix.c (vsprintf): Likewise.
+       * tests/test-wcrtomb.c (wcrtomb): Likewise.
+       * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
+       * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
+       * tests/test-wcwidth.c (wcwidth): Likewise.
+
        build: pull in conditional headers during GNULIB_POSIXCHECK
        * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
        definitions from any conditionally-included headers.
index 8ad8189..15de834 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-atexit.sh
 tests/test-atexit.c
 
index b6980dd..c5e73ce 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-btowc1.sh
 tests/test-btowc2.sh
 tests/test-btowc.c
index 39c3484..5ddb199 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-canonicalize-lgpl.c
 
 Depends-on:
index 8653c47..2599ab1 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-ceilf1.c
 tests/test-ceilf2.c
 tests/nan.h
index ab10141..0d5f0fd 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-ceill.c
 tests/nan.h
 
index d1add61..a320328 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/nap.h
 tests/test-chown.h
 tests/test-chown.c
index 652f289..5b865ce 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-dprintf-posix.sh
 tests/test-dprintf-posix.c
 tests/test-printf-posix.output
index b02e2a2..b24ef67 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-dup2.c
 
 Depends-on:
index 3f4d96f..2886d60 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-dup3.c
 
 Depends-on:
index 61812b8..f0e9064 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-duplocale.c
 
 Depends-on:
index f3bb8b2..2e202f3 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-fchdir.c
 
 Depends-on:
index e81a5e9..e47f2d6 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-fcntl.c
 
 Depends-on:
index 9df5e29..c0bafb6 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-fdopendir.c
 
 Depends-on:
index da29805..db5a5c0 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-fflush.c
 tests/test-fflush2.sh
 tests/test-fflush2.c
index b546594..441e23e 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-flock.c
 
 Depends-on:
index e3f2b03..d6a8185 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-floorf1.c
 tests/test-floorf2.c
 tests/nan.h
index ca7c746..1031092 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-floorl.c
 tests/nan.h
 
index f11bfa9..c83b905 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-fnmatch.c
 
 Makefile.am:
index fb0ee1d..208ec3b 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-fopen.h
 tests/test-fopen.c
 
index a2eb7c9..4ac9a12 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-fprintf-posix.sh
 tests/test-fprintf-posix.c
 tests/test-fprintf-posix.h
index dd232cf..0f9ae21 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-freopen.c
 
 Depends-on:
index ae57fb4..acbfec7 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-frexp.c
 
 Depends-on:
index eee00fd..e90189b 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-frexp.c
 tests/nan.h
 
index 316d40c..8579956 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-frexpl.c
 
 Depends-on:
index f5505b4..5382cec 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-frexpl.c
 tests/nan.h
 
index 7f10d48..cd76a95 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-fseek.c
 tests/test-fseek.sh
 tests/test-fseek2.sh
index b01ed58..e2fb27e 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-fseeko.c
 tests/test-fseeko.sh
 tests/test-fseeko2.sh
index c407dc2..a3db419 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-fsync.c
 
 Depends-on:
index ce5f479..717b48e 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-ftell.c
 tests/test-ftell.sh
 tests/test-ftell2.sh
index cc7f46e..c4937d0 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-ftello.c
 tests/test-ftello.sh
 tests/test-ftello2.sh
index c768c33..702dbc2 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/nap.h
 tests/test-futimens.h
 tests/test-utimens-common.h
index a21fe6f..688d1f1 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-getaddrinfo.c
 
 Depends-on:
index d7eee2b..75897cb 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-getcwd.c
 
 Depends-on:
index 33e04e3..880c380 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-getdelim.c
 
 Depends-on:
index d4c4af4..8bf1a2c 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-getdtablesize.c
 
 Depends-on:
index 2a52621..69e2647 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-getgroups.c
 
 Depends-on:
index ea17aba..2d2d537 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-gethostname.c
 
 Depends-on:
index dae21be..676a04f 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-getline.c
 
 Depends-on:
index b2e3727..438b6e4 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-getopt.c
 tests/test-getopt.h
 tests/test-getopt_long.h
index 6c2cef5..996df8e 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-gettimeofday.c
 
 Depends-on:
index f1b5c38..bedaef0 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-glob.c
 
 Makefile.am:
index 47381d4..46fcb1a 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-iconv.c
 
 Depends-on:
index fcb36e6..e8236d6 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-inet_ntop.c
 
 Depends-on:
index 6ad5fec..1404e31 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-inet_pton.c
 
 Depends-on:
index be5fbee..cd140ee 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-isblank.c
 
 Depends-on:
index 7e4d502..4fc7eaf 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/nap.h
 tests/test-lchown.h
 tests/test-lchown.c
index 0b1ba04..7b76ff4 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-ldexpl.c
 tests/nan.h
 
index d8e7b1a..2bdb3ee 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-link.h
 tests/test-link.c
 
index 1f9aafa..72e8a51 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-link.h
 tests/test-linkat.c
 
index 5f0a4f2..6b05a92 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-lseek.c
 tests/test-lseek.sh
 
index 1a34c34..43ebd94 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-lstat.h
 tests/test-lstat.c
 
index 0fbd8b1..0237aca 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-mbrtowc1.sh
 tests/test-mbrtowc2.sh
 tests/test-mbrtowc3.sh
index 9dead7d..24777f9 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-mbsinit.sh
 tests/test-mbsinit.c
 m4/locale-fr.m4
index 2f9f2cb..ceb5479 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-mbsnrtowcs1.sh
 tests/test-mbsnrtowcs2.sh
 tests/test-mbsnrtowcs3.sh
index ead9965..7b65531 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-mbsrtowcs1.sh
 tests/test-mbsrtowcs2.sh
 tests/test-mbsrtowcs3.sh
index 32cdd6d..79d6f48 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-memchr.c
 tests/zerosize-ptr.h
 
index 3f536d7..33d740d 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-memcmp.c
 tests/zerosize-ptr.h
 m4/mmap-anon.m4
index 45ef991..88301ed 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-memmem.c
 tests/zerosize-ptr.h
 m4/mmap-anon.m4
index 967f92b..d5bc773 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-memrchr.c
 tests/zerosize-ptr.h
 m4/mmap-anon.m4
index 4d5a9c2..5f22b23 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-mkdir.h
 tests/test-mkdir.c
 
index 87d6ce2..d3d0887 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-mkfifo.h
 tests/test-mkfifo.c
 
index 730ac85..ea8c414 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-mkfifo.h
 tests/test-mkfifoat.c
 
index 9ee4445..3f4bbab 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-mkfifo.h
 tests/test-mknod.c
 
index 67e6d4e..ddc57c1 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-nanosleep.c
 
 Depends-on:
index 8935629..7c9ce97 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-nl_langinfo.sh
 tests/test-nl_langinfo.c
 m4/locale-fr.m4
index c06be7d..8bff6bd 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-obstack-printf.c
 
 Depends-on:
index 16d4a99..cb8affb 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-open.h
 tests/test-open.c
 
index 7265fd9..a3a08ac 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/nap.h
 tests/test-chown.h
 tests/test-lchown.h
index 52d30bd..ca9a921 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-perror.c
 tests/test-perror.sh
 
index 4d5e624..7ed4c87 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-pipe2.c
 
 Depends-on:
index 5f90f97..1655fab 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-poll.c
 
 Depends-on:
index 9d22fca..c0d128c 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-popen.h
 tests/test-popen.c
 
index fc62cea..8a4055d 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-posix_spawn3.c
 
 Depends-on:
index f63fe4d..61d0ba4 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-posix_spawn1.c
 tests/test-posix_spawn1.in.sh
 tests/test-posix_spawn2.c
index 9b2a94a..415f9b9 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-pread.c
 tests/test-pread.sh
 tests/init.sh
index 30ced62..dfbb5e1 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-printf-posix.sh
 tests/test-printf-posix.c
 tests/test-printf-posix.h
index 981ae18..870d518 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-pty.c
 
 Makefile.am:
index 814b150..72f54c0 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-random_r.c
 
 Depends-on:
index dd1a6e6..a638459 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-rawmemchr.c
 
 Depends-on:
index 84cc326..efadd0c 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-readlink.h
 tests/test-readlink.c
 
index 665ebe4..ecdbcf3 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-remove.c
 
 Depends-on:
index be1b423..52b69e2 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-rename.h
 tests/test-rename.c
 
index 399ff08..982a8ef 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-rename.h
 tests/test-renameat.c
 
index 0fa5efe..59b1211 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-rmdir.h
 tests/test-rmdir.c
 
index 909910c..79fe048 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-round1.c
 tests/test-round2.c
 tests/nan.h
index c1ae0de..56baa29 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-roundf1.c
 tests/test-round2.c
 tests/test-roundf2.c
index 442c279..0375176 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-roundl.c
 tests/nan.h
 
index afa68fe..89415d5 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-select.c
 tests/test-select-fd.c
 tests/test-select-in.sh
index 9c923ac..09ebf6f 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-setenv.c
 
 Depends-on:
index 5084e9e..6589ef4 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-sigaction.c
 
 Depends-on:
index 0871d51..7e975b7 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-sleep.c
 
 Depends-on:
index f3c08c7..0658ea4 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-snprintf-posix.c
 tests/test-snprintf-posix.h
 tests/test-snprintf.c
index 638c9d9..4db5f4a 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-snprintf.c
 
 Depends-on:
index 7ed1fb5..354cf73 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-sprintf-posix.c
 tests/test-sprintf-posix.h
 tests/nan.h
index eb81446..489ff64 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-stat.h
 tests/test-stat.c
 
index e5262cc..292c40d 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-strcasestr.c
 
 Depends-on:
index 642a93f..7ca1a58 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-strchrnul.c
 
 Depends-on:
index 0341c12..0a6bc75 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-strerror.c
 
 Depends-on:
index 2fa709d..330a8a9 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-strsignal.c
 
 Depends-on:
index 8f09e58..231e0eb 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-strstr.c
 tests/zerosize-ptr.h
 m4/mmap-anon.m4
index e40a274..ad5a560 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-strtod.c
 
 Depends-on:
index 343df25..89b6795 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-strverscmp.c
 
 Depends-on:
index 9858ade..ef18d47 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-symlink.h
 tests/test-symlink.c
 
index a0dab9f..4368537 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-readlink.h
 tests/test-symlink.h
 tests/test-symlinkat.c
index 838eac0..3d90f1a 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-times.c
 
 Makefile.am:
index f986e3c..c3d5243 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-trunc1.c
 tests/test-trunc2.c
 tests/nan.h
index 0f56e7f..70ecb1f 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-truncf1.c
 tests/test-truncf2.c
 tests/nan.h
index 7ffc1cd..3d92508 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-truncl.c
 tests/nan.h
 
index b038c6a..bc30be5 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-tsearch.sh
 tests/test-tsearch.c
 
index 1a3ee1f..89d256c 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-uname.c
 
 Depends-on:
index b9be842..d9c82eb 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-unlink.h
 tests/test-unlink.c
 
index 94fc504..fddee90 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-unsetenv.c
 
 Depends-on:
index 762d644..59d9c17 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-usleep.c
 
 Depends-on:
index a56bb3e..46ae133 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/nap.h
 tests/test-lutimens.h
 tests/test-utimens.h
index cfd7ddc..0fd058a 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-vasprintf.c
 
 Depends-on:
index 221417c..aa1c015 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-vdprintf-posix.sh
 tests/test-vdprintf-posix.c
 tests/test-fprintf-posix.h
index 52c62f8..5423720 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-vfprintf-posix.sh
 tests/test-vfprintf-posix.c
 tests/test-fprintf-posix.h
index 071b7a0..408948f 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-vprintf-posix.sh
 tests/test-vprintf-posix.c
 tests/test-printf-posix.h
index f099bd6..816b2a9 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-vsnprintf-posix.c
 tests/test-snprintf-posix.h
 tests/test-vsnprintf.c
index f92689f..4322d7b 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-vsnprintf.c
 
 Depends-on:
index 2d052e9..54a6cd5 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-vsprintf-posix.c
 tests/test-sprintf-posix.h
 tests/nan.h
index a730eff..885c6c1 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-wcrtomb.sh
 tests/test-wcrtomb.c
 m4/locale-fr.m4
index d77e3be..f18bda9 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-wcsnrtombs1.sh
 tests/test-wcsnrtombs2.sh
 tests/test-wcsnrtombs3.sh
index 98fbbfd..68ab421 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-wcsrtombs1.sh
 tests/test-wcsrtombs2.sh
 tests/test-wcsrtombs3.sh
index 956072f..f12cc6e 100644 (file)
@@ -1,4 +1,5 @@
 Files:
+tests/signature.h
 tests/test-wcwidth.c
 
 Depends-on:
diff --git a/tests/signature.h b/tests/signature.h
new file mode 100644 (file)
index 0000000..bf1bb86
--- /dev/null
@@ -0,0 +1,48 @@
+/* Macro for checking that a function declaration is compliant.
+   Copyright (C) 2009 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 <http://www.gnu.org/licenses/>.  */
+
+#ifndef SIGNATURE_CHECK
+
+/* Check that the function FN takes the specified arguments ARGS with
+   a return type of RET.  This header is designed to be included after
+   <config.h> and the one system header that is supposed to contain
+   the function being checked, but prior to any other system headers
+   that are necessary for the unit test.  Therefore, this file does
+   not include any system headers, nor reference anything outside of
+   the macro arguments.  For an example, if foo.h should provide:
+
+   extern int foo (char, float);
+
+   then the unit test named test-foo.c would start out with:
+
+   #include <config.h>
+   #include <foo.h>
+   #include "signature.h"
+   SIGNATURE_CHECK (foo, int, (char, float));
+   #include <other.h>
+   ...
+*/
+# define SIGNATURE_CHECK(fn, ret, args) \
+  SIGNATURE_CHECK1 (fn, ret, args, __LINE__)
+
+/* Necessary to allow multiple SIGNATURE_CHECK lines in a unit test.
+   Note that the checks must not occupy the same line.  */
+# define SIGNATURE_CHECK1(fn, ret, args, id) \
+  SIGNATURE_CHECK2 (fn, ret, args, id) /* macroexpand line */
+# define SIGNATURE_CHECK2(fn, ret, args, id) \
+  static ret (* _GL_UNUSED signature_check ## id) args = fn
+
+#endif /* SIGNATURE_CHECK */
index 97afff5..c815b2d 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of execution of program termination handlers.
-   Copyright (C) 2007 Free Software Foundation, Inc.
+   Copyright (C) 2007, 2009 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
 #include <config.h>
 
 #include <stdlib.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (atexit, int, (void (*) (void)));
+
 #include <unistd.h>
 
 #define TEMPFILE "t-atexit.tmp"
index b447d05..4a19553 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of conversion of unibyte character to wide character.
-   Copyright (C) 2008 Free Software Foundation, Inc.
+   Copyright (C) 2008, 2009 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
@@ -20,6 +20,9 @@
 
 #include <wchar.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (btowc, wint_t, (int));
+
 #include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
index 7667983..4f4fca1 100644 (file)
 
 #include <stdlib.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (realpath, char *, (const char *, char *));
+SIGNATURE_CHECK (canonicalize_file_name, char *, (const char *));
+
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
index 3241936..e180e95 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of rounding towards positive infinity.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2009 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
@@ -20,6 +20,9 @@
 
 #include <math.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (ceilf, float, (float));
+
 #include <stdio.h>
 #include <stdlib.h>
 
index 764d2be..2ed0053 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <math.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (ceill, long double, (long double));
+
 #include <float.h>
 #include <stdio.h>
 #include <stdlib.h>
index 4265970..e766070 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (chown, int, (char const *, uid_t, gid_t));
+
 #include <fcntl.h>
 #include <errno.h>
 #include <stdbool.h>
index 384d1ef..9cedc1c 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <stdio.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (dprintf, int, (int, const char *, ...));
+
 #include <stddef.h>
 #include <stdint.h>
 #include <stdlib.h>
index b22d1e6..a4aca82 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (dup2, int, (int, int));
+
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
index 41fc16d..9133b7b 100644 (file)
@@ -21,6 +21,9 @@
 
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (dup3, int, (int, int, int));
+
 #include <errno.h>
 #include <fcntl.h>
 #include <stdbool.h>
index 354e13e..a368c07 100644 (file)
@@ -22,6 +22,9 @@
 
 #if HAVE_DUPLOCALE
 
+#include "signature.h"
+SIGNATURE_CHECK (duplocale, locale_t, (locale_t));
+
 #include <langinfo.h>
 #include <monetary.h>
 #include <stdio.h>
index 75819eb..7ec675e 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (fchdir, int, (int));
+
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
index 2dbc857..c084ddf 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (fchownat, int, (int, char const *, uid_t, gid_t, int));
+
 #include <fcntl.h>
 #include <errno.h>
 #include <stdbool.h>
index c06b41e..77ac870 100644 (file)
@@ -21,6 +21,9 @@
 /* Specification.  */
 #include <fcntl.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (fcntl, int, (int, int, ...));
+
 /* Helpers.  */
 #include <errno.h>
 #include <stdarg.h>
index 7e0b3ee..f6006d0 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <dirent.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (fdopendir, DIR *, (int));
+
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
index 8e33c9f..9962d1d 100644 (file)
 #include <config.h>
 
 #include <stdio.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (fflush, int, (FILE *));
+
 #include <unistd.h>
 
 int
index babf6ef..a8a615e 100644 (file)
@@ -18,6 +18,9 @@
 
 #include <sys/file.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (flock, int, (int, int));
+
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
index 373724a..e156732 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of rounding towards negative infinity.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2009 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
@@ -20,6 +20,9 @@
 
 #include <math.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (floorf, float, (float));
+
 #include <stdio.h>
 #include <stdlib.h>
 
index 7afea04..a8080e5 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <math.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (floorl, long double, (long double));
+
 #include <float.h>
 #include <stdio.h>
 #include <stdlib.h>
index 3e21d9d..f9485af 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <fnmatch.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (fnmatch, int, (char const *, char const *, int));
+
 #include <stdio.h>
 #include <stdlib.h>
 
index 29d7839..e7e7770 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <stdio.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (fopen, FILE *, (char const *, char const *));
+
 #define BASE "test-fopen.t"
 
 #include "test-fopen.h"
index 4133e40..21c626e 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of POSIX compatible fprintf() function.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2009 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
@@ -20,6 +20,9 @@
 
 #include <stdio.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (fprintf, int, (FILE *, char const *, ...));
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <stdint.h>
index 23f2af5..bdb5de0 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of opening a file stream.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2009 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
 #include <config.h>
 
 #include <stdio.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (freopen, FILE *, (char const *, char const *, FILE *));
+
 #include <stdlib.h>
 
 #define ASSERT(expr) \
index 47ddab2..6b285c9 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of splitting a double into fraction and mantissa.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2009 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
@@ -20,6 +20,9 @@
 
 #include <math.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (frexp, double, (double, int *));
+
 #include <float.h>
 #include <stdio.h>
 #include <stdlib.h>
index e4367f6..7b7ec53 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <math.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (frexpl, long double, (long double, int *));
+
 #include <float.h>
 #include <stdio.h>
 #include <stdlib.h>
index 04fc966..4447a9b 100644 (file)
 #include <config.h>
 
 #include <stdio.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (fseek, int, (FILE *, long, int));
+
 #include <stdlib.h>
 
 #define ASSERT(expr) \
index bdf025f..0d2f321 100644 (file)
 #endif
 
 #include <stdio.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (fseeko, int, (FILE *, off_t, int));
+
 #include <stdlib.h>
 
 #define ASSERT(expr) \
index e965997..552bf45 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <sys/stat.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (fstatat, int, (int, char const *, struct stat *, int));
+
 #include <fcntl.h>
 #include <errno.h>
 #include <stdbool.h>
index 4766eb0..bf789a2 100644 (file)
@@ -18,6 +18,9 @@
 
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (fsync, int, (int));
+
 #include <errno.h>
 #include <stdio.h>
 #include <fcntl.h>
index 0662865..d9723f5 100644 (file)
 #include <config.h>
 
 #include <stdio.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (ftell, long, (FILE *));
+
 #include <stdlib.h>
 
 #include "binary-io.h"
index dfe5be0..2af43f2 100644 (file)
 #include <config.h>
 
 #include <stdio.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (ftello, off_t, (FILE *));
+
 #include <stdlib.h>
 
 #include "binary-io.h"
index 4e049bd..5753c6b 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <sys/stat.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (futimens, int, (int, struct timespec const[2]));
+
 #include <fcntl.h>
 #include <errno.h>
 #include <stdbool.h>
index 7464ec2..a7e2381 100644 (file)
 /* Written by Simon Josefsson.  */
 
 #include <config.h>
+
 #include <netdb.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (freeaddrinfo, void, (struct addrinfo *));
+SIGNATURE_CHECK (gai_strerror, char const *, (int));
+SIGNATURE_CHECK (getaddrinfo, int, (char const *, char const *,
+                                    struct addrinfo const *,
+                                    struct addrinfo **));
+
 #include <arpa/inet.h>
 #include <errno.h>
 #include <netinet/in.h>
index debace7..7570180 100644 (file)
@@ -18,6 +18,9 @@
 
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (getcwd, char *, (char *, size_t));
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 8de43db..dc40bdd 100644 (file)
 #include <config.h>
 
 #include <stdio.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (getdelim, ssize_t, (char **, size_t *, int, FILE *));
+
 #include <stdlib.h>
 #include <string.h>
 
index 577d329..e587aa1 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of getdtablesize() function.
-   Copyright (C) 2008 Free Software Foundation, Inc.
+   Copyright (C) 2008, 2009 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
@@ -20,6 +20,9 @@
 
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (getdtablesize, int, (void));
+
 #include <stdio.h>
 #include <stdlib.h>
 
index 6d4a514..1d3ca98 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (getgroups, int, (int, gid_t[]));
+
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
index af1293b..a63839b 100644 (file)
 
 /* Get gethostname() declaration.  */
 #include <unistd.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (gethostname, int, (char *, size_t));
+
 /* Get HOST_NAME_MAX definition.  */
 #include <limits.h>
 
index cc40c55..7564ece 100644 (file)
 #include <config.h>
 
 #include <stdio.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (getline, ssize_t, (char **, size_t *, FILE *));
+
 #include <stdlib.h>
 #include <string.h>
 
index 6811a02..9502a44 100644 (file)
 
 #if GNULIB_GETOPT_GNU
 # include <getopt.h>
+
+# ifndef __getopt_argv_const
+#  define __getopt_argv_const const
+# endif
+# include "signature.h"
+SIGNATURE_CHECK (getopt_long, int, (int, char *__getopt_argv_const *,
+                                    char const *, struct option const *,
+                                    int *));
+SIGNATURE_CHECK (getopt_long_only, int, (int, char *__getopt_argv_const *,
+                                         char const *, struct option const *,
+                                         int *));
+
 #endif
+
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (getopt, int, (int, char * const[], char const *));
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 3b85879..bd6698d 100644 (file)
 #include <config.h>
 
 #include <sys/time.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (gettimeofday, int, (struct timeval *, void *));
+
 #include <time.h>
 
 #include <stdio.h>
index 750d9d8..d7a17dc 100644 (file)
 
 #include <glob.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (glob, int, (char const *, int, int (*) (char const *, int),
+                             glob_t *));
+SIGNATURE_CHECK (globfree, void, (glob_t *));
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index e7e5742..566ddee 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of character set conversion.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2009 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
 
 #if HAVE_ICONV
 # include <iconv.h>
+
+# ifndef ICONV_CONST
+#  define ICONV_CONST /* empty */
+# endif
+
+#include "signature.h"
+SIGNATURE_CHECK (iconv, size_t, (iconv_t, ICONV_CONST char **, size_t *,
+                                 char **, size_t *));
+SIGNATURE_CHECK (iconv_close, int, (iconv_t x));
+SIGNATURE_CHECK (iconv_open, iconv_t, (char const *, char const *));
+
 #endif
 
 #include <errno.h>
index 312163a..8495620 100644 (file)
 
 #include <arpa/inet.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (inet_ntop, char const *, (int, void const *, char *,
+                                           socklen_t));
+
 #include <netinet/in.h>
 #include <sys/socket.h>
 #include <stdio.h>
index dc6401e..b1dbb05 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <arpa/inet.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (inet_pton, int, (int, const char *, void *));
+
 #include <netinet/in.h>
 #include <sys/socket.h>
 #include <stdio.h>
index f25d26d..d29fc63 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <ctype.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (isblank, int, (int));
+
 #include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>
index 2d718e2..fc2f23c 100644 (file)
 
 #include <math.h>
 
+/* isfinite must be a macro.  */
+#ifndef isfinite
+# error missing declaration
+#endif
+
 #include <float.h>
 #include <limits.h>
 #include <stdio.h>
index c1a83d3..d81ee7a 100644 (file)
 
 #include <math.h>
 
+/* isinf must be a macro.  */
+#ifndef isinf
+# error missing declaration
+#endif
+
 #include <float.h>
 #include <limits.h>
 #include <stdio.h>
index e9dd5e3..74bb9d9 100644 (file)
 
 #include <math.h>
 
+/* isnan must be a macro.  */
+#ifndef isnan
+# error missing declaration
+#endif
+
 #include <float.h>
 #include <limits.h>
 #include <stdio.h>
index 78c2940..b909102 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (lchown, int, (char const *, uid_t, gid_t));
+
 #include <fcntl.h>
 #include <errno.h>
 #include <stdbool.h>
index 42faf60..0fe4f86 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <math.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (ldexpl, long double, (long double, int));
+
 #include <float.h>
 #include <stdio.h>
 #include <stdlib.h>
index dd7df2e..d2ff679 100644 (file)
@@ -18,6 +18,9 @@
 
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (link, int, (char const *, char const *));
+
 #include <errno.h>
 #include <fcntl.h>
 #include <stdbool.h>
index 11233fe..c827a27 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (linkat, int, (int, char const *, int, char const *, int));
+
 #include <fcntl.h>
 #include <errno.h>
 #include <stdbool.h>
index e474a0b..a57443d 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of lseek() function.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2009 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
 
 #include <config.h>
 
+#include <unistd.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (lseek, off_t, (int, off_t, int));
+
 #include <errno.h>
 #include <stdio.h>
-#include <unistd.h>
 
 #define ASSERT(expr) \
   do                                                                         \
index 8c62bc1..74a4fd2 100644 (file)
 
 #include <sys/stat.h>
 
+/* Caution: lstat may be a function-like macro.  Although this
+   signature check must pass, it may be the signature of the real (and
+   broken) lstat rather than rpl_lstat.  Most code should not use the
+   address of lstat.  */
+#include "signature.h"
+SIGNATURE_CHECK (lstat, int, (char const *, struct stat *));
+
 #include <fcntl.h>
 #include <errno.h>
 #include <stdbool.h>
index 178e210..9164273 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of conversion of multibyte character to wide character.
-   Copyright (C) 2008 Free Software Foundation, Inc.
+   Copyright (C) 2008, 2009 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
 
 #include <wchar.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (mbrtowc, size_t, (wchar_t *, char const *, size_t,
+                                   mbstate_t *));
+
 #include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
index 392b853..2732693 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of test for initial conversion state.
-   Copyright (C) 2008 Free Software Foundation, Inc.
+   Copyright (C) 2008, 2009 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
@@ -20,6 +20,9 @@
 
 #include <wchar.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (mbsinit, int, (const mbstate_t *));
+
 #include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
index 60a8e18..471c17b 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of conversion of string to wide string.
-   Copyright (C) 2008 Free Software Foundation, Inc.
+   Copyright (C) 2008, 2009 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
 
 #include <wchar.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (mbsnrtowcs, size_t, (wchar_t *, char const **, size_t, size_t,
+                                      mbstate_t *));
+
 #include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
index 49cb78a..4a01d4a 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of conversion of string to wide string.
-   Copyright (C) 2008 Free Software Foundation, Inc.
+   Copyright (C) 2008, 2009 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
 
 #include <wchar.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (mbsrtowcs, size_t, (wchar_t *, char const **, size_t,
+                                     mbstate_t *));
+
 #include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
index 582df89..2ec37b6 100644 (file)
@@ -19,6 +19,9 @@
 
 #include <string.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (memchr, void *, (void const *, int, size_t));
+
 #include <stdio.h>
 #include <stdlib.h>
 
index 8740316..463ca0c 100644 (file)
@@ -19,6 +19,9 @@
 
 #include <string.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (memcmp, int, (void const *, void const *, size_t));
+
 #include <stdio.h>
 #include <stdlib.h>
 
index 75a2505..3c71a2e 100644 (file)
@@ -19,6 +19,9 @@
 
 #include <string.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (memmem, void *, (void const *, size_t, void const *, size_t));
+
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
index 17bc1f6..d9128e7 100644 (file)
@@ -19,6 +19,9 @@
 
 #include <string.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (memrchr, void *, (void const *, int, size_t));
+
 #include <stdio.h>
 #include <stdlib.h>
 
index 6a19c30..1531e25 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <sys/stat.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (mkdir, int, (char const *, mode_t));
+
 #include <fcntl.h>
 #include <errno.h>
 #include <stdbool.h>
index 9b59f17..c11b165 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <sys/stat.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (mkdirat, int, (int, char const *, mode_t));
+
 #include <fcntl.h>
 #include <errno.h>
 #include <stdbool.h>
index 3a0336c..df002ed 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <sys/stat.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (mkfifo, int, (char const *, mode_t));
+
 #include <fcntl.h>
 #include <errno.h>
 #include <stdbool.h>
index fca3411..1c6656e 100644 (file)
 
 #include <sys/stat.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (mkfifoat, int, (int, char const *, mode_t));
+SIGNATURE_CHECK (mknodat, int, (int, char const *, mode_t, dev_t));
+
 #include <fcntl.h>
 #include <errno.h>
 #include <stdbool.h>
index 2e30883..b00cd28 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <sys/stat.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (mknod, int, (char const *, mode_t, dev_t));
+
 #include <fcntl.h>
 #include <errno.h>
 #include <stdbool.h>
index 426ea99..e4e7231 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <time.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (nanosleep, int, (struct timespec const *, struct timepec *));
+
 #include <errno.h>
 #include <signal.h>
 #include <stdio.h>
index 337e6ec..a2f5f68 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <langinfo.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (nl_langinfo, char *, (nl_item));
+
 #include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
index fdbdcfa..ca07f47 100644 (file)
 
 #include <stdio.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (obstack_printf, int, (struct obstack *, char const *, ...));
+SIGNATURE_CHECK (obstack_vprintf, int, (struct obstack *, char const *,
+                                        va_list));
+
 #include "obstack.h"
 #include "xalloc.h"
 
index 37109a5..4bdf314 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <fcntl.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (open, int, (char const *, int, ...));
+
 #include <errno.h>
 #include <stdbool.h>
 #include <stdio.h>
index 77185cc..5eb9deb 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <fcntl.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (openat, int, (int, char const *, int, ...));
+
 #include <errno.h>
 #include <stdarg.h>
 #include <stdbool.h>
index 2faa8ae..a045f19 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of perror() function.
-   Copyright (C) 2008 Free Software Foundation, Inc.
+   Copyright (C) 2008, 2009 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
@@ -19,6 +19,9 @@
 
 #include <stdio.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (perror, void, (char const *));
+
 #include <errno.h>
 
 int
index 049af5d..5eb5ec3 100644 (file)
@@ -19,6 +19,9 @@
 
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (pipe2, int, (int[2], int));
+
 #include <fcntl.h>
 #include <stdbool.h>
 
index ed9bd9e..3f884df 100644 (file)
 
 #include <config.h>
 
+#include <poll.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (poll, int, (struct pollfd[], nfds_t, int));
+
 #include <stdio.h>
 #include <string.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
-#include <poll.h>
 #include <fcntl.h>
 #include <stdlib.h>
 #include <stdbool.h>
index 342e363..914eea8 100644 (file)
@@ -21,4 +21,8 @@
 /* Specification.  */
 #include <stdio.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (popen, FILE *, (char const *, char const *));
+SIGNATURE_CHECK (pclose, int, (FILE *));
+
 #include "test-popen.h"
index 896c7c9..27f426e 100644 (file)
 
 #include <spawn.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (posix_spawnp, int, (pid_t *, char const *,
+                                     posix_spawn_file_actions_t const *,
+                                     posix_spawnattr_t const *,
+                                     char *const[], char *const[]));
+SIGNATURE_CHECK (posix_spawnattr_init, int, (posix_spawnattr_t *));
+SIGNATURE_CHECK (posix_spawnattr_destroy, int, (posix_spawnattr_t *));
+SIGNATURE_CHECK (posix_spawnattr_setsigmask, int, (posix_spawnattr_t *,
+                                                   sigset_t const *));
+SIGNATURE_CHECK (posix_spawnattr_setflags, int, (posix_spawnattr_t *, short));
+SIGNATURE_CHECK (posix_spawn_file_actions_init, int,
+                 (posix_spawn_file_actions_t *));
+SIGNATURE_CHECK (posix_spawn_file_actions_destroy, int,
+                 (posix_spawn_file_actions_t *));
+SIGNATURE_CHECK (posix_spawn_file_actions_addclose, int,
+                 (posix_spawn_file_actions_t *, int));
+SIGNATURE_CHECK (posix_spawn_file_actions_addopen, int,
+                 (posix_spawn_file_actions_t *, int, char const *, int,
+                  mode_t));
+SIGNATURE_CHECK (posix_spawn_file_actions_adddup2, int,
+                 (posix_spawn_file_actions_t *, int, int));
+
 #include <errno.h>
 #include <fcntl.h>
 #include <signal.h>
index af71068..c8f8398 100644 (file)
 
 #include <spawn.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (posix_spawn, int, (pid_t *, char const *,
+                                    posix_spawn_file_actions_t const *,
+                                    posix_spawnattr_t const *,
+                                    char *const[], char *const[]));
 #include <errno.h>
 #include <fcntl.h>
 #include <signal.h>
index 0ef387d..d5a86ad 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (pread, ssize_t, (int, void *, size_t, off_t));
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/types.h>
index 51f1bf7..c09b188 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of POSIX compatible printf() function.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2009 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
@@ -20,6 +20,9 @@
 
 #include <stdio.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (printf, int, (char const *, ...));
+
 #include <stddef.h>
 #include <stdint.h>
 #include <stdlib.h>
index cd24f0d..1c77166 100644 (file)
 
 #include <pty.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (forkpty, int, (int *, char *, struct termios *,
+                                struct winsize *));
+SIGNATURE_CHECK (openpty, int, (int *, int *, char *, struct termios *,
+                                struct winsize *));
+
 #include <stdio.h>
 
 int
index 88deda0..391d98c 100644 (file)
 
 #include <stdlib.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (srandom_r, int, (unsigned int, struct random_data *));
+SIGNATURE_CHECK (initstate_r, int, (unsigned int, char *, size_t,
+                                    struct random_data *));
+SIGNATURE_CHECK (setstate_r, int, (char *, struct random_data *));
+SIGNATURE_CHECK (random_r, int, (struct random_data *, int32_t *));
+
 #include <stdio.h>
 #include <time.h>
 
index eece65f..f1eef2c 100644 (file)
@@ -19,6 +19,9 @@
 
 #include <string.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (rawmemchr, void *, (void const *, int));
+
 #include <stdio.h>
 #include <stdlib.h>
 
index 5e51cb6..61f8f6b 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (readlink, ssize_t, (char const *, char *, size_t));
+
 #include <fcntl.h>
 #include <errno.h>
 #include <stdbool.h>
index 7781dfc..1a92f6c 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <stdio.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (remove, int, (char const *));
+
 #include <fcntl.h>
 #include <errno.h>
 #include <stdlib.h>
index 0d51140..1cd2e8f 100644 (file)
 
 #include <config.h>
 
-#include <unistd.h>
+#include <stdio.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (rename, int, (char const *, char const *));
 
 #include <errno.h>
 #include <fcntl.h>
 #include <stdbool.h>
-#include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <sys/stat.h>
index 7cde7be..3293d52 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <stdio.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (renameat, int, (int, char const *, int, char const *));
+
 #include <fcntl.h>
 #include <errno.h>
 #include <stdbool.h>
index 908b0e6..44f5d72 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (rmdir, int, (char const *));
+
 #include <fcntl.h>
 #include <errno.h>
 #include <stdbool.h>
index 8e9e0ef..6f2795e 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of rounding to nearest, breaking ties away from zero.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2009 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
@@ -22,6 +22,9 @@
 
 #include <math.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (round, double, (double));
+
 #include <stdio.h>
 #include <stdlib.h>
 
index cbf3f9e..98edc4a 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of rounding to nearest, breaking ties away from zero.
-   Copyright (C) 2007, 2008 Free Software Foundation, Inc.
+   Copyright (C) 2007, 2008, 2009 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
@@ -22,6 +22,9 @@
 
 #include <math.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (roundf, float, (float));
+
 #include <stdio.h>
 #include <stdlib.h>
 
index c4fcf0c..048aa8b 100644 (file)
@@ -22,6 +22,9 @@
 
 #include <math.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (roundl, long double, (long double));
+
 #include <float.h>
 #include <stdio.h>
 #include <stdlib.h>
index 5ce7c7f..5b413d5 100644 (file)
 
 #include <sys/select.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (select, int, (int, fd_set *, fd_set *, fd_set *,
+                               struct timeval *));
+/* The following may be macros without underlying functions, so only
+   check signature if they are not macros.  */
+#ifndef FD_CLR
+SIGNATURE_CHECK (FD_CLR, void, (int, fd_set *));
+#endif
+#ifndef FD_ISSET
+SIGNATURE_CHECK (FD_ISSET, void, (int, fd_set *));
+#endif
+#ifndef FD_SET
+SIGNATURE_CHECK (FD_SET, int, (int, fd_set *));
+#endif
+#ifndef FD_ZERO
+SIGNATURE_CHECK (FD_ZERO, void, (fd_set *));
+#endif
+
 #include <stdio.h>
 #include <string.h>
 #include <netinet/in.h>
index eb1fe33..b23d296 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <stdlib.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (setenv, int, (char const *, char const *, int));
+
 #include <errno.h>
 #include <stdio.h>
 #include <string.h>
index 55da288..63dfd7a 100644 (file)
 
 #include <signal.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (sigaction, int, (int, struct sigaction const *,
+                                  struct sigaction *));
+
 #include <stdio.h>
 #include <stdlib.h>
 
index acca7fd..4acb045 100644 (file)
 
 #include <math.h>
 
+/* signbit must be a macro.  */
+#ifndef signbit
+# error missing declaration
+#endif
+
 #include <float.h>
 #include <limits.h>
 #include <stdio.h>
index 8840142..4abca33 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (sleep, unsigned int, (unsigned int));
+
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
index 55bca33..6f1e34c 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of snprintf() function.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2009 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
@@ -20,6 +20,9 @@
 
 #include <stdio.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (snprintf, int, (char *, size_t, char const *, ...));
+
 #include <stdlib.h>
 #include <string.h>
 
index e5dab35..47bbaa0 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of POSIX compatible sprintf() function.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2009 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
@@ -20,6 +20,9 @@
 
 #include <stdio.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (sprintf, int, (char *, char const *, ...));
+
 #include <float.h>
 #include <stddef.h>
 #include <stdint.h>
index fc11731..9e52a4a 100644 (file)
 
 #include <sys/stat.h>
 
+/* Caution: stat may be a function-like macro.  Although this
+   signature check must pass, it may be the signature of the real (and
+   broken) stat rather than rpl_stat.  Most code should not use the
+   address of stat.  */
+#include "signature.h"
+SIGNATURE_CHECK (stat, int, (char const *, struct stat *));
+
 #include <fcntl.h>
 #include <errno.h>
 #include <stdbool.h>
index 128bee3..d3f10b6 100644 (file)
@@ -1,5 +1,5 @@
 /* Test the system defined function stpncpy().
-   Copyright (C) 2003, 2008 Free Software Foundation, Inc.
+   Copyright (C) 2003, 2008, 2009 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
 #include <config.h>
 
 #include <string.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (stpncpy, char *, (char *, char const *, size_t));
+
 #include <stdio.h>
 
 int
index 8ecd3a9..7c2832a 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of case-insensitive searching in a string.
-   Copyright (C) 2007, 2008 Free Software Foundation, Inc.
+   Copyright (C) 2007, 2008, 2009 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
@@ -20,6 +20,9 @@
 
 #include <string.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (strcasestr, char *, (char const *, char const *));
+
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
index ea882e5..f2f341f 100644 (file)
@@ -19,6 +19,9 @@
 
 #include <string.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (strchrnul, char *, (char const *, int));
+
 #include <stdio.h>
 #include <stdlib.h>
 
index 22e9f5a..986f75a 100644 (file)
@@ -21,6 +21,9 @@
 
 #include <string.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (strerror, char *, (int));
+
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
index 6f06d8e..bf97dc6 100644 (file)
@@ -21,6 +21,9 @@
 
 #include <string.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (strsignal, char *, (int));
+
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
index c89a1ac..6bffc13 100644 (file)
@@ -19,6 +19,9 @@
 
 #include <string.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (strstr, char *, (char const *, char const *));
+
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
index 14f73b9..affd52c 100644 (file)
@@ -19,6 +19,9 @@
 
 #include <stdlib.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (strtod, double, (char const *, char **));
+
 #include <errno.h>
 #include <float.h>
 #include <math.h>
index 220f2d6..72b574d 100644 (file)
@@ -21,6 +21,9 @@
 
 #include <string.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (strverscmp, int, (const char *, const char *));
+
 #include <stdio.h>
 #include <stdlib.h>
 
index 4b593b6..c84e006 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (symlink, int, (char const *, char const *));
+
 #include <fcntl.h>
 #include <errno.h>
 #include <stdbool.h>
index c76244f..67f0adf 100644 (file)
 
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (symlinkat, int, (char const *, int, char const *));
+SIGNATURE_CHECK (readlinkat, ssize_t, (int, char const *, char *, size_t));
+
 #include <fcntl.h>
 #include <errno.h>
 #include <stdbool.h>
index 496b9a8..c869165 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of times function.
-   Copyright (C) 2008 Free Software Foundation, Inc.
+   Copyright (C) 2008, 2009 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
 #include <config.h>
 
 #include <sys/times.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (times, clock_t, (struct tms *));
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdint.h>
index 671d3f5..0c92cc6 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of rounding towards zero.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2009 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
@@ -20,6 +20,9 @@
 
 #include <math.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (trunc, double, (double));
+
 #include <stdio.h>
 #include <stdlib.h>
 
index 834899b..44fd8c1 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of rounding towards zero.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2009 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
@@ -20,6 +20,9 @@
 
 #include <math.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (truncf, float, (float));
+
 #include <stdio.h>
 #include <stdlib.h>
 
index 7e3dd17..3b36ea7 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <math.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (truncl, long double, (long double));
+
 #include <float.h>
 #include <stdio.h>
 #include <stdlib.h>
index 273f3ab..c799f8f 100644 (file)
@@ -1,5 +1,5 @@
 /* Test program for tsearch et al.
-   Copyright (C) 1997, 2000-2001, 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 1997, 2000-2001, 2007-2009 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software: you can redistribute it and/or
 
 #include <search.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (tdelete, void *, (void const *, void **,
+                                   int (*) (void const *, void const *)));
+SIGNATURE_CHECK (tfind, void *, (void const *, void * const *,
+                                 int (*) (void const *, void const *)));
+SIGNATURE_CHECK (tsearch, void *, (void const *, void **,
+                                   int (*) (void const *, void const *)));
+SIGNATURE_CHECK (twalk, void, (void const *,
+                               void (*) (void const *, VISIT, int)));
+
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
index a458698..b37ae9b 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <sys/utsname.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (uname, int, (struct utsname *));
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 447a014..ffc360d 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (unlink, int, (char const *));
+
 #include <fcntl.h>
 #include <errno.h>
 #include <stdbool.h>
index a98dc8d..313cf1e 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (unlinkat, int, (int, char const *, int));
+
 #include <fcntl.h>
 #include <errno.h>
 #include <stdbool.h>
index bd312a0..6f80751 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <stdlib.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (unsetenv, int, (char const *));
+
 #include <errno.h>
 #include <stdio.h>
 #include <string.h>
index d6e62eb..a792188 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <unistd.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (usleep, int, (useconds_t));
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <time.h>
index 35fd1bf..b1dc940 100644 (file)
 
 #include <sys/stat.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (utimensat, int, (int, char const *, struct timespec const[2],
+                                  int));
+
 #include <fcntl.h>
 #include <errno.h>
 #include <stdbool.h>
index a85ff8e..46483e4 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of vasprintf() and asprintf() functions.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2009 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
 
 #include <stdio.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (asprintf, int, (char **, char const *, ...));
+SIGNATURE_CHECK (vasprintf, int, (char **, char const *, va_list));
+
 #include <stdarg.h>
 #include <stdlib.h>
 #include <string.h>
index 949665e..932d289 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <stdio.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (vdprintf, int, (int, char const *, va_list));
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <stdint.h>
index ae94fa7..94c8cea 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of POSIX compatible vfprintf() function.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2009 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
@@ -20,6 +20,9 @@
 
 #include <stdio.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (vfprintf, int, (FILE *, char const *, va_list));
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <stdint.h>
index 8522283..ec63684 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of POSIX compatible vfprintf() function.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2009 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
@@ -20,6 +20,9 @@
 
 #include <stdio.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (vprintf, int, (char const *, va_list));
+
 #include <stdarg.h>
 #include <stddef.h>
 #include <stdint.h>
index f0d08ed..baaae6f 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of vsnprintf() function.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2009 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
@@ -20,6 +20,9 @@
 
 #include <stdio.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (vsnprintf, int, (char *, size_t, char const *, va_list));
+
 #include <stdarg.h>
 #include <stdlib.h>
 #include <string.h>
index 3bb457f..49a1347 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of POSIX compatible vsprintf() function.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2009 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
@@ -20,6 +20,9 @@
 
 #include <stdio.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (vsprintf, int, (char *, char const *, va_list));
+
 #include <float.h>
 #include <stdarg.h>
 #include <stddef.h>
index 4fe972b..3ac33e0 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of conversion of wide character to multibyte character.
-   Copyright (C) 2008 Free Software Foundation, Inc.
+   Copyright (C) 2008, 2009 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
@@ -20,6 +20,9 @@
 
 #include <wchar.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (wcrtomb, size_t, (char *, wchar_t, mbstate_t *));
+
 #include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
index 38c0441..f16dafe 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of conversion of wide string to string.
-   Copyright (C) 2008 Free Software Foundation, Inc.
+   Copyright (C) 2008, 2009 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
 
 #include <wchar.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (wcsnrtombs, size_t, (char *, wchar_t const **, size_t, size_t,
+                                      mbstate_t *));
+
 #include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
index 3ceb7c0..4fad01f 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of conversion of wide string to string.
-   Copyright (C) 2008 Free Software Foundation, Inc.
+   Copyright (C) 2008, 2009 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
 
 #include <wchar.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (wcsrtombs, size_t, (char *, wchar_t const **, size_t,
+                                     mbstate_t *));
+
 #include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
index 5087b08..f1a89d1 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of wcwidth() function.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2009 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
@@ -20,6 +20,9 @@
 
 #include <wchar.h>
 
+#include "signature.h"
+SIGNATURE_CHECK (wcwidth, int, (wchar_t));
+
 #include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>