From 89ae4589dd58d12e7cbcf0e92c1d828c1e430f97 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 22 Dec 2009 10:57:14 -0700 Subject: [PATCH] tests: add signature checks 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 --- ChangeLog | 273 ++++++++++++++++++++++++++++++++++++++++ modules/atexit-tests | 1 + modules/btowc-tests | 1 + modules/canonicalize-lgpl-tests | 1 + modules/ceilf-tests | 1 + modules/ceill-tests | 1 + modules/chown-tests | 1 + modules/dprintf-posix-tests | 1 + modules/dup2-tests | 1 + modules/dup3-tests | 1 + modules/duplocale-tests | 1 + modules/fchdir-tests | 1 + modules/fcntl-tests | 1 + modules/fdopendir-tests | 1 + modules/fflush-tests | 1 + modules/flock-tests | 1 + modules/floorf-tests | 1 + modules/floorl-tests | 1 + modules/fnmatch-tests | 1 + modules/fopen-tests | 1 + modules/fprintf-posix-tests | 1 + modules/freopen-tests | 1 + modules/frexp-nolibm-tests | 1 + modules/frexp-tests | 1 + modules/frexpl-nolibm-tests | 1 + modules/frexpl-tests | 1 + modules/fseek-tests | 1 + modules/fseeko-tests | 1 + modules/fsync-tests | 1 + modules/ftell-tests | 1 + modules/ftello-tests | 1 + modules/futimens-tests | 1 + modules/getaddrinfo-tests | 1 + modules/getcwd-tests | 1 + modules/getdelim-tests | 1 + modules/getdtablesize-tests | 1 + modules/getgroups-tests | 1 + modules/gethostname-tests | 1 + modules/getline-tests | 1 + modules/getopt-posix-tests | 1 + modules/gettimeofday-tests | 1 + modules/glob-tests | 1 + modules/iconv-tests | 1 + modules/inet_ntop-tests | 1 + modules/inet_pton-tests | 1 + modules/isblank-tests | 1 + modules/lchown-tests | 1 + modules/ldexpl-tests | 1 + modules/link-tests | 1 + modules/linkat-tests | 1 + modules/lseek-tests | 1 + modules/lstat-tests | 1 + modules/mbrtowc-tests | 1 + modules/mbsinit-tests | 1 + modules/mbsnrtowcs-tests | 1 + modules/mbsrtowcs-tests | 1 + modules/memchr-tests | 1 + modules/memcmp-tests | 1 + modules/memmem-tests | 1 + modules/memrchr-tests | 1 + modules/mkdir-tests | 1 + modules/mkfifo-tests | 1 + modules/mkfifoat-tests | 1 + modules/mknod-tests | 1 + modules/nanosleep-tests | 1 + modules/nl_langinfo-tests | 1 + modules/obstack-printf-tests | 1 + modules/open-tests | 1 + modules/openat-tests | 1 + modules/perror-tests | 1 + modules/pipe2-tests | 1 + modules/poll-tests | 1 + modules/popen-tests | 1 + modules/posix_spawn-tests | 1 + modules/posix_spawnp-tests | 1 + modules/pread-tests | 1 + modules/printf-posix-tests | 1 + modules/pty-tests | 1 + modules/random_r-tests | 1 + modules/rawmemchr-tests | 1 + modules/readlink-tests | 1 + modules/remove-tests | 1 + modules/rename-tests | 1 + modules/renameat-tests | 1 + modules/rmdir-tests | 1 + modules/round-tests | 1 + modules/roundf-tests | 1 + modules/roundl-tests | 1 + modules/select-tests | 1 + modules/setenv-tests | 1 + modules/sigaction-tests | 1 + modules/sleep-tests | 1 + modules/snprintf-posix-tests | 1 + modules/snprintf-tests | 1 + modules/sprintf-posix-tests | 1 + modules/stat-tests | 1 + modules/strcasestr-tests | 1 + modules/strchrnul-tests | 1 + modules/strerror-tests | 1 + modules/strsignal-tests | 1 + modules/strstr-tests | 1 + modules/strtod-tests | 1 + modules/strverscmp-tests | 1 + modules/symlink-tests | 1 + modules/symlinkat-tests | 1 + modules/times-tests | 1 + modules/trunc-tests | 1 + modules/truncf-tests | 1 + modules/truncl-tests | 1 + modules/tsearch-tests | 1 + modules/uname-tests | 1 + modules/unlink-tests | 1 + modules/unsetenv-tests | 1 + modules/usleep-tests | 1 + modules/utimensat-tests | 1 + modules/vasprintf-tests | 1 + modules/vdprintf-posix-tests | 1 + modules/vfprintf-posix-tests | 1 + modules/vprintf-posix-tests | 1 + modules/vsnprintf-posix-tests | 1 + modules/vsnprintf-tests | 1 + modules/vsprintf-posix-tests | 1 + modules/wcrtomb-tests | 1 + modules/wcsnrtombs-tests | 1 + modules/wcsrtombs-tests | 1 + modules/wcwidth-tests | 1 + tests/signature.h | 48 +++++++ tests/test-atexit.c | 6 +- tests/test-btowc.c | 5 +- tests/test-canonicalize-lgpl.c | 4 + tests/test-ceilf1.c | 5 +- tests/test-ceill.c | 3 + tests/test-chown.c | 3 + tests/test-dprintf-posix.c | 3 + tests/test-dup2.c | 3 + tests/test-dup3.c | 3 + tests/test-duplocale.c | 3 + tests/test-fchdir.c | 3 + tests/test-fchownat.c | 3 + tests/test-fcntl.c | 3 + tests/test-fdopendir.c | 3 + tests/test-fflush.c | 4 + tests/test-flock.c | 3 + tests/test-floorf1.c | 5 +- tests/test-floorl.c | 3 + tests/test-fnmatch.c | 3 + tests/test-fopen.c | 3 + tests/test-fprintf-posix.c | 5 +- tests/test-freopen.c | 6 +- tests/test-frexp.c | 5 +- tests/test-frexpl.c | 3 + tests/test-fseek.c | 4 + tests/test-fseeko.c | 4 + tests/test-fstatat.c | 3 + tests/test-fsync.c | 3 + tests/test-ftell.c | 4 + tests/test-ftello.c | 4 + tests/test-futimens.c | 3 + tests/test-getaddrinfo.c | 8 ++ tests/test-getcwd.c | 3 + tests/test-getdelim.c | 4 + tests/test-getdtablesize.c | 5 +- tests/test-getgroups.c | 3 + tests/test-gethostname.c | 4 + tests/test-getline.c | 4 + tests/test-getopt.c | 16 +++ tests/test-gettimeofday.c | 4 + tests/test-glob.c | 5 + tests/test-iconv.c | 13 +- tests/test-inet_ntop.c | 4 + tests/test-inet_pton.c | 3 + tests/test-isblank.c | 3 + tests/test-isfinite.c | 5 + tests/test-isinf.c | 5 + tests/test-isnan.c | 5 + tests/test-lchown.c | 3 + tests/test-ldexpl.c | 3 + tests/test-link.c | 3 + tests/test-linkat.c | 3 + tests/test-lseek.c | 8 +- tests/test-lstat.c | 7 ++ tests/test-mbrtowc.c | 6 +- tests/test-mbsinit.c | 5 +- tests/test-mbsnrtowcs.c | 6 +- tests/test-mbsrtowcs.c | 6 +- tests/test-memchr.c | 3 + tests/test-memcmp.c | 3 + tests/test-memmem.c | 3 + tests/test-memrchr.c | 3 + tests/test-mkdir.c | 3 + tests/test-mkdirat.c | 3 + tests/test-mkfifo.c | 3 + tests/test-mkfifoat.c | 4 + tests/test-mknod.c | 3 + tests/test-nanosleep.c | 3 + tests/test-nl_langinfo.c | 3 + tests/test-obstack-printf.c | 5 + tests/test-open.c | 3 + tests/test-openat.c | 3 + tests/test-perror.c | 5 +- tests/test-pipe2.c | 3 + tests/test-poll.c | 6 +- tests/test-popen.c | 4 + tests/test-posix_spawn1.c | 22 ++++ tests/test-posix_spawn3.c | 5 + tests/test-pread.c | 3 + tests/test-printf-posix.c | 5 +- tests/test-pty.c | 6 + tests/test-random_r.c | 7 ++ tests/test-rawmemchr.c | 3 + tests/test-readlink.c | 3 + tests/test-remove.c | 3 + tests/test-rename.c | 6 +- tests/test-renameat.c | 3 + tests/test-rmdir.c | 3 + tests/test-round1.c | 5 +- tests/test-roundf1.c | 5 +- tests/test-roundl.c | 3 + tests/test-select.c | 18 +++ tests/test-setenv.c | 3 + tests/test-sigaction.c | 4 + tests/test-signbit.c | 5 + tests/test-sleep.c | 3 + tests/test-snprintf.c | 5 +- tests/test-sprintf-posix.c | 5 +- tests/test-stat.c | 7 ++ tests/test-stpncpy.c | 6 +- tests/test-strcasestr.c | 5 +- tests/test-strchrnul.c | 3 + tests/test-strerror.c | 3 + tests/test-strsignal.c | 3 + tests/test-strstr.c | 3 + tests/test-strtod.c | 3 + tests/test-strverscmp.c | 3 + tests/test-symlink.c | 3 + tests/test-symlinkat.c | 4 + tests/test-times.c | 6 +- tests/test-trunc1.c | 5 +- tests/test-truncf1.c | 5 +- tests/test-truncl.c | 3 + tests/test-tsearch.c | 12 +- tests/test-uname.c | 3 + tests/test-unlink.c | 3 + tests/test-unlinkat.c | 3 + tests/test-unsetenv.c | 3 + tests/test-usleep.c | 3 + tests/test-utimensat.c | 4 + tests/test-vasprintf.c | 6 +- tests/test-vdprintf-posix.c | 3 + tests/test-vfprintf-posix.c | 5 +- tests/test-vprintf-posix.c | 5 +- tests/test-vsnprintf.c | 5 +- tests/test-vsprintf-posix.c | 5 +- tests/test-wcrtomb.c | 5 +- tests/test-wcsnrtombs.c | 6 +- tests/test-wcsrtombs.c | 6 +- tests/test-wcwidth.c | 5 +- 257 files changed, 998 insertions(+), 39 deletions(-) create mode 100644 tests/signature.h diff --git a/ChangeLog b/ChangeLog index 43bf844e5..3cca24c25 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,278 @@ 2009-12-24 Eric Blake + 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. diff --git a/modules/atexit-tests b/modules/atexit-tests index 8ad8189ad..15de834c7 100644 --- a/modules/atexit-tests +++ b/modules/atexit-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-atexit.sh tests/test-atexit.c diff --git a/modules/btowc-tests b/modules/btowc-tests index b6980dd20..c5e73ce7e 100644 --- a/modules/btowc-tests +++ b/modules/btowc-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-btowc1.sh tests/test-btowc2.sh tests/test-btowc.c diff --git a/modules/canonicalize-lgpl-tests b/modules/canonicalize-lgpl-tests index 39c348440..5ddb1998c 100644 --- a/modules/canonicalize-lgpl-tests +++ b/modules/canonicalize-lgpl-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-canonicalize-lgpl.c Depends-on: diff --git a/modules/ceilf-tests b/modules/ceilf-tests index 8653c4760..2599ab11c 100644 --- a/modules/ceilf-tests +++ b/modules/ceilf-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-ceilf1.c tests/test-ceilf2.c tests/nan.h diff --git a/modules/ceill-tests b/modules/ceill-tests index ab10141d2..0d5f0fd1f 100644 --- a/modules/ceill-tests +++ b/modules/ceill-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-ceill.c tests/nan.h diff --git a/modules/chown-tests b/modules/chown-tests index d1add611c..a320328fa 100644 --- a/modules/chown-tests +++ b/modules/chown-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/nap.h tests/test-chown.h tests/test-chown.c diff --git a/modules/dprintf-posix-tests b/modules/dprintf-posix-tests index 652f2893d..5b865ce8b 100644 --- a/modules/dprintf-posix-tests +++ b/modules/dprintf-posix-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-dprintf-posix.sh tests/test-dprintf-posix.c tests/test-printf-posix.output diff --git a/modules/dup2-tests b/modules/dup2-tests index b02e2a23d..b24ef675f 100644 --- a/modules/dup2-tests +++ b/modules/dup2-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-dup2.c Depends-on: diff --git a/modules/dup3-tests b/modules/dup3-tests index 3f4d96fa5..2886d60fa 100644 --- a/modules/dup3-tests +++ b/modules/dup3-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-dup3.c Depends-on: diff --git a/modules/duplocale-tests b/modules/duplocale-tests index 61812b88d..f0e9064ce 100644 --- a/modules/duplocale-tests +++ b/modules/duplocale-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-duplocale.c Depends-on: diff --git a/modules/fchdir-tests b/modules/fchdir-tests index f3bb8b237..2e202f369 100644 --- a/modules/fchdir-tests +++ b/modules/fchdir-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-fchdir.c Depends-on: diff --git a/modules/fcntl-tests b/modules/fcntl-tests index e81a5e958..e47f2d639 100644 --- a/modules/fcntl-tests +++ b/modules/fcntl-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-fcntl.c Depends-on: diff --git a/modules/fdopendir-tests b/modules/fdopendir-tests index 9df5e293a..c0bafb6c1 100644 --- a/modules/fdopendir-tests +++ b/modules/fdopendir-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-fdopendir.c Depends-on: diff --git a/modules/fflush-tests b/modules/fflush-tests index da29805b8..db5a5c016 100644 --- a/modules/fflush-tests +++ b/modules/fflush-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-fflush.c tests/test-fflush2.sh tests/test-fflush2.c diff --git a/modules/flock-tests b/modules/flock-tests index b546594be..441e23e66 100644 --- a/modules/flock-tests +++ b/modules/flock-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-flock.c Depends-on: diff --git a/modules/floorf-tests b/modules/floorf-tests index e3f2b03fa..d6a8185c8 100644 --- a/modules/floorf-tests +++ b/modules/floorf-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-floorf1.c tests/test-floorf2.c tests/nan.h diff --git a/modules/floorl-tests b/modules/floorl-tests index ca7c7461f..10310923d 100644 --- a/modules/floorl-tests +++ b/modules/floorl-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-floorl.c tests/nan.h diff --git a/modules/fnmatch-tests b/modules/fnmatch-tests index f11bfa934..c83b905be 100644 --- a/modules/fnmatch-tests +++ b/modules/fnmatch-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-fnmatch.c Makefile.am: diff --git a/modules/fopen-tests b/modules/fopen-tests index fb0ee1d6a..208ec3b2e 100644 --- a/modules/fopen-tests +++ b/modules/fopen-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-fopen.h tests/test-fopen.c diff --git a/modules/fprintf-posix-tests b/modules/fprintf-posix-tests index a2eb7c903..4ac9a12ca 100644 --- a/modules/fprintf-posix-tests +++ b/modules/fprintf-posix-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-fprintf-posix.sh tests/test-fprintf-posix.c tests/test-fprintf-posix.h diff --git a/modules/freopen-tests b/modules/freopen-tests index dd232cf25..0f9ae2142 100644 --- a/modules/freopen-tests +++ b/modules/freopen-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-freopen.c Depends-on: diff --git a/modules/frexp-nolibm-tests b/modules/frexp-nolibm-tests index ae57fb42c..acbfec709 100644 --- a/modules/frexp-nolibm-tests +++ b/modules/frexp-nolibm-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-frexp.c Depends-on: diff --git a/modules/frexp-tests b/modules/frexp-tests index eee00fd02..e90189bbd 100644 --- a/modules/frexp-tests +++ b/modules/frexp-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-frexp.c tests/nan.h diff --git a/modules/frexpl-nolibm-tests b/modules/frexpl-nolibm-tests index 316d40c74..85799561b 100644 --- a/modules/frexpl-nolibm-tests +++ b/modules/frexpl-nolibm-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-frexpl.c Depends-on: diff --git a/modules/frexpl-tests b/modules/frexpl-tests index f5505b45d..5382cec73 100644 --- a/modules/frexpl-tests +++ b/modules/frexpl-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-frexpl.c tests/nan.h diff --git a/modules/fseek-tests b/modules/fseek-tests index 7f10d48a1..cd76a95dc 100644 --- a/modules/fseek-tests +++ b/modules/fseek-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-fseek.c tests/test-fseek.sh tests/test-fseek2.sh diff --git a/modules/fseeko-tests b/modules/fseeko-tests index b01ed5815..e2fb27ed5 100644 --- a/modules/fseeko-tests +++ b/modules/fseeko-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-fseeko.c tests/test-fseeko.sh tests/test-fseeko2.sh diff --git a/modules/fsync-tests b/modules/fsync-tests index c407dc2cf..a3db41919 100644 --- a/modules/fsync-tests +++ b/modules/fsync-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-fsync.c Depends-on: diff --git a/modules/ftell-tests b/modules/ftell-tests index ce5f47936..717b48edd 100644 --- a/modules/ftell-tests +++ b/modules/ftell-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-ftell.c tests/test-ftell.sh tests/test-ftell2.sh diff --git a/modules/ftello-tests b/modules/ftello-tests index cc7f46e27..c4937d076 100644 --- a/modules/ftello-tests +++ b/modules/ftello-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-ftello.c tests/test-ftello.sh tests/test-ftello2.sh diff --git a/modules/futimens-tests b/modules/futimens-tests index c768c330d..702dbc261 100644 --- a/modules/futimens-tests +++ b/modules/futimens-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/nap.h tests/test-futimens.h tests/test-utimens-common.h diff --git a/modules/getaddrinfo-tests b/modules/getaddrinfo-tests index a21fe6fa0..688d1f1bb 100644 --- a/modules/getaddrinfo-tests +++ b/modules/getaddrinfo-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-getaddrinfo.c Depends-on: diff --git a/modules/getcwd-tests b/modules/getcwd-tests index d7eee2b42..75897cbe1 100644 --- a/modules/getcwd-tests +++ b/modules/getcwd-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-getcwd.c Depends-on: diff --git a/modules/getdelim-tests b/modules/getdelim-tests index 33e04e38a..880c380ac 100644 --- a/modules/getdelim-tests +++ b/modules/getdelim-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-getdelim.c Depends-on: diff --git a/modules/getdtablesize-tests b/modules/getdtablesize-tests index d4c4af447..8bf1a2cc2 100644 --- a/modules/getdtablesize-tests +++ b/modules/getdtablesize-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-getdtablesize.c Depends-on: diff --git a/modules/getgroups-tests b/modules/getgroups-tests index 2a5262131..69e264742 100644 --- a/modules/getgroups-tests +++ b/modules/getgroups-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-getgroups.c Depends-on: diff --git a/modules/gethostname-tests b/modules/gethostname-tests index ea17aba2d..2d2d537de 100644 --- a/modules/gethostname-tests +++ b/modules/gethostname-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-gethostname.c Depends-on: diff --git a/modules/getline-tests b/modules/getline-tests index dae21bec9..676a04f20 100644 --- a/modules/getline-tests +++ b/modules/getline-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-getline.c Depends-on: diff --git a/modules/getopt-posix-tests b/modules/getopt-posix-tests index b2e372753..438b6e4c1 100644 --- a/modules/getopt-posix-tests +++ b/modules/getopt-posix-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-getopt.c tests/test-getopt.h tests/test-getopt_long.h diff --git a/modules/gettimeofday-tests b/modules/gettimeofday-tests index 6c2cef57b..996df8e71 100644 --- a/modules/gettimeofday-tests +++ b/modules/gettimeofday-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-gettimeofday.c Depends-on: diff --git a/modules/glob-tests b/modules/glob-tests index f1b5c383b..bedaef014 100644 --- a/modules/glob-tests +++ b/modules/glob-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-glob.c Makefile.am: diff --git a/modules/iconv-tests b/modules/iconv-tests index 47381d45b..46fcb1a12 100644 --- a/modules/iconv-tests +++ b/modules/iconv-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-iconv.c Depends-on: diff --git a/modules/inet_ntop-tests b/modules/inet_ntop-tests index fcb36e65a..e8236d6e0 100644 --- a/modules/inet_ntop-tests +++ b/modules/inet_ntop-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-inet_ntop.c Depends-on: diff --git a/modules/inet_pton-tests b/modules/inet_pton-tests index 6ad5fec77..1404e31f2 100644 --- a/modules/inet_pton-tests +++ b/modules/inet_pton-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-inet_pton.c Depends-on: diff --git a/modules/isblank-tests b/modules/isblank-tests index be5fbee13..cd140ee33 100644 --- a/modules/isblank-tests +++ b/modules/isblank-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-isblank.c Depends-on: diff --git a/modules/lchown-tests b/modules/lchown-tests index 7e4d50272..4fc7eaf87 100644 --- a/modules/lchown-tests +++ b/modules/lchown-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/nap.h tests/test-lchown.h tests/test-lchown.c diff --git a/modules/ldexpl-tests b/modules/ldexpl-tests index 0b1ba0490..7b76ff403 100644 --- a/modules/ldexpl-tests +++ b/modules/ldexpl-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-ldexpl.c tests/nan.h diff --git a/modules/link-tests b/modules/link-tests index d8e7b1a2d..2bdb3eefb 100644 --- a/modules/link-tests +++ b/modules/link-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-link.h tests/test-link.c diff --git a/modules/linkat-tests b/modules/linkat-tests index 1f9aafae2..72e8a51ff 100644 --- a/modules/linkat-tests +++ b/modules/linkat-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-link.h tests/test-linkat.c diff --git a/modules/lseek-tests b/modules/lseek-tests index 5f0a4f246..6b05a92eb 100644 --- a/modules/lseek-tests +++ b/modules/lseek-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-lseek.c tests/test-lseek.sh diff --git a/modules/lstat-tests b/modules/lstat-tests index 1a34c34f2..43ebd9429 100644 --- a/modules/lstat-tests +++ b/modules/lstat-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-lstat.h tests/test-lstat.c diff --git a/modules/mbrtowc-tests b/modules/mbrtowc-tests index 0fbd8b19b..0237acaf7 100644 --- a/modules/mbrtowc-tests +++ b/modules/mbrtowc-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-mbrtowc1.sh tests/test-mbrtowc2.sh tests/test-mbrtowc3.sh diff --git a/modules/mbsinit-tests b/modules/mbsinit-tests index 9dead7d9b..24777f965 100644 --- a/modules/mbsinit-tests +++ b/modules/mbsinit-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-mbsinit.sh tests/test-mbsinit.c m4/locale-fr.m4 diff --git a/modules/mbsnrtowcs-tests b/modules/mbsnrtowcs-tests index 2f9f2cb3e..ceb54796d 100644 --- a/modules/mbsnrtowcs-tests +++ b/modules/mbsnrtowcs-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-mbsnrtowcs1.sh tests/test-mbsnrtowcs2.sh tests/test-mbsnrtowcs3.sh diff --git a/modules/mbsrtowcs-tests b/modules/mbsrtowcs-tests index ead9965ba..7b65531a0 100644 --- a/modules/mbsrtowcs-tests +++ b/modules/mbsrtowcs-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-mbsrtowcs1.sh tests/test-mbsrtowcs2.sh tests/test-mbsrtowcs3.sh diff --git a/modules/memchr-tests b/modules/memchr-tests index 32cdd6d00..79d6f48b3 100644 --- a/modules/memchr-tests +++ b/modules/memchr-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-memchr.c tests/zerosize-ptr.h diff --git a/modules/memcmp-tests b/modules/memcmp-tests index 3f536d756..33d740d5c 100644 --- a/modules/memcmp-tests +++ b/modules/memcmp-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-memcmp.c tests/zerosize-ptr.h m4/mmap-anon.m4 diff --git a/modules/memmem-tests b/modules/memmem-tests index 45ef99181..88301edd2 100644 --- a/modules/memmem-tests +++ b/modules/memmem-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-memmem.c tests/zerosize-ptr.h m4/mmap-anon.m4 diff --git a/modules/memrchr-tests b/modules/memrchr-tests index 967f92b03..d5bc77329 100644 --- a/modules/memrchr-tests +++ b/modules/memrchr-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-memrchr.c tests/zerosize-ptr.h m4/mmap-anon.m4 diff --git a/modules/mkdir-tests b/modules/mkdir-tests index 4d5a9c2d5..5f22b238f 100644 --- a/modules/mkdir-tests +++ b/modules/mkdir-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-mkdir.h tests/test-mkdir.c diff --git a/modules/mkfifo-tests b/modules/mkfifo-tests index 87d6ce204..d3d088736 100644 --- a/modules/mkfifo-tests +++ b/modules/mkfifo-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-mkfifo.h tests/test-mkfifo.c diff --git a/modules/mkfifoat-tests b/modules/mkfifoat-tests index 730ac8546..ea8c4149b 100644 --- a/modules/mkfifoat-tests +++ b/modules/mkfifoat-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-mkfifo.h tests/test-mkfifoat.c diff --git a/modules/mknod-tests b/modules/mknod-tests index 9ee444537..3f4bbab92 100644 --- a/modules/mknod-tests +++ b/modules/mknod-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-mkfifo.h tests/test-mknod.c diff --git a/modules/nanosleep-tests b/modules/nanosleep-tests index 67e6d4ee8..ddc57c158 100644 --- a/modules/nanosleep-tests +++ b/modules/nanosleep-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-nanosleep.c Depends-on: diff --git a/modules/nl_langinfo-tests b/modules/nl_langinfo-tests index 89356294d..7c9ce9753 100644 --- a/modules/nl_langinfo-tests +++ b/modules/nl_langinfo-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-nl_langinfo.sh tests/test-nl_langinfo.c m4/locale-fr.m4 diff --git a/modules/obstack-printf-tests b/modules/obstack-printf-tests index c06be7d72..8bff6bdca 100644 --- a/modules/obstack-printf-tests +++ b/modules/obstack-printf-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-obstack-printf.c Depends-on: diff --git a/modules/open-tests b/modules/open-tests index 16d4a99ec..cb8affba4 100644 --- a/modules/open-tests +++ b/modules/open-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-open.h tests/test-open.c diff --git a/modules/openat-tests b/modules/openat-tests index 7265fd982..a3a08ac96 100644 --- a/modules/openat-tests +++ b/modules/openat-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/nap.h tests/test-chown.h tests/test-lchown.h diff --git a/modules/perror-tests b/modules/perror-tests index 52d30bd82..ca9a921a1 100644 --- a/modules/perror-tests +++ b/modules/perror-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-perror.c tests/test-perror.sh diff --git a/modules/pipe2-tests b/modules/pipe2-tests index 4d5e624bd..7ed4c8714 100644 --- a/modules/pipe2-tests +++ b/modules/pipe2-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-pipe2.c Depends-on: diff --git a/modules/poll-tests b/modules/poll-tests index 5f90f9778..1655fab14 100644 --- a/modules/poll-tests +++ b/modules/poll-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-poll.c Depends-on: diff --git a/modules/popen-tests b/modules/popen-tests index 9d22fca5b..c0d128cbd 100644 --- a/modules/popen-tests +++ b/modules/popen-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-popen.h tests/test-popen.c diff --git a/modules/posix_spawn-tests b/modules/posix_spawn-tests index fc62cea81..8a4055deb 100644 --- a/modules/posix_spawn-tests +++ b/modules/posix_spawn-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-posix_spawn3.c Depends-on: diff --git a/modules/posix_spawnp-tests b/modules/posix_spawnp-tests index f63fe4d80..61d0ba4bf 100644 --- a/modules/posix_spawnp-tests +++ b/modules/posix_spawnp-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-posix_spawn1.c tests/test-posix_spawn1.in.sh tests/test-posix_spawn2.c diff --git a/modules/pread-tests b/modules/pread-tests index 9b2a94ab2..415f9b9f7 100644 --- a/modules/pread-tests +++ b/modules/pread-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-pread.c tests/test-pread.sh tests/init.sh diff --git a/modules/printf-posix-tests b/modules/printf-posix-tests index 30ced6297..dfbb5e160 100644 --- a/modules/printf-posix-tests +++ b/modules/printf-posix-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-printf-posix.sh tests/test-printf-posix.c tests/test-printf-posix.h diff --git a/modules/pty-tests b/modules/pty-tests index 981ae1846..870d5182f 100644 --- a/modules/pty-tests +++ b/modules/pty-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-pty.c Makefile.am: diff --git a/modules/random_r-tests b/modules/random_r-tests index 814b150a2..72f54c0c3 100644 --- a/modules/random_r-tests +++ b/modules/random_r-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-random_r.c Depends-on: diff --git a/modules/rawmemchr-tests b/modules/rawmemchr-tests index dd1a6e60d..a63845994 100644 --- a/modules/rawmemchr-tests +++ b/modules/rawmemchr-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-rawmemchr.c Depends-on: diff --git a/modules/readlink-tests b/modules/readlink-tests index 84cc326a0..efadd0c1b 100644 --- a/modules/readlink-tests +++ b/modules/readlink-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-readlink.h tests/test-readlink.c diff --git a/modules/remove-tests b/modules/remove-tests index 665ebe435..ecdbcf30d 100644 --- a/modules/remove-tests +++ b/modules/remove-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-remove.c Depends-on: diff --git a/modules/rename-tests b/modules/rename-tests index be1b42386..52b69e2d0 100644 --- a/modules/rename-tests +++ b/modules/rename-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-rename.h tests/test-rename.c diff --git a/modules/renameat-tests b/modules/renameat-tests index 399ff08f3..982a8efe2 100644 --- a/modules/renameat-tests +++ b/modules/renameat-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-rename.h tests/test-renameat.c diff --git a/modules/rmdir-tests b/modules/rmdir-tests index 0fa5efee9..59b1211b7 100644 --- a/modules/rmdir-tests +++ b/modules/rmdir-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-rmdir.h tests/test-rmdir.c diff --git a/modules/round-tests b/modules/round-tests index 909910c95..79fe048fd 100644 --- a/modules/round-tests +++ b/modules/round-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-round1.c tests/test-round2.c tests/nan.h diff --git a/modules/roundf-tests b/modules/roundf-tests index c1ae0de5c..56baa29e5 100644 --- a/modules/roundf-tests +++ b/modules/roundf-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-roundf1.c tests/test-round2.c tests/test-roundf2.c diff --git a/modules/roundl-tests b/modules/roundl-tests index 442c279c7..0375176b1 100644 --- a/modules/roundl-tests +++ b/modules/roundl-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-roundl.c tests/nan.h diff --git a/modules/select-tests b/modules/select-tests index afa68fe6f..89415d5ad 100644 --- a/modules/select-tests +++ b/modules/select-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-select.c tests/test-select-fd.c tests/test-select-in.sh diff --git a/modules/setenv-tests b/modules/setenv-tests index 9c923ac92..09ebf6f3e 100644 --- a/modules/setenv-tests +++ b/modules/setenv-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-setenv.c Depends-on: diff --git a/modules/sigaction-tests b/modules/sigaction-tests index 5084e9e3f..6589ef4d7 100644 --- a/modules/sigaction-tests +++ b/modules/sigaction-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-sigaction.c Depends-on: diff --git a/modules/sleep-tests b/modules/sleep-tests index 0871d5117..7e975b7c3 100644 --- a/modules/sleep-tests +++ b/modules/sleep-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-sleep.c Depends-on: diff --git a/modules/snprintf-posix-tests b/modules/snprintf-posix-tests index f3c08c717..0658ea48b 100644 --- a/modules/snprintf-posix-tests +++ b/modules/snprintf-posix-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-snprintf-posix.c tests/test-snprintf-posix.h tests/test-snprintf.c diff --git a/modules/snprintf-tests b/modules/snprintf-tests index 638c9d945..4db5f4ac8 100644 --- a/modules/snprintf-tests +++ b/modules/snprintf-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-snprintf.c Depends-on: diff --git a/modules/sprintf-posix-tests b/modules/sprintf-posix-tests index 7ed1fb5da..354cf738f 100644 --- a/modules/sprintf-posix-tests +++ b/modules/sprintf-posix-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-sprintf-posix.c tests/test-sprintf-posix.h tests/nan.h diff --git a/modules/stat-tests b/modules/stat-tests index eb81446a0..489ff6482 100644 --- a/modules/stat-tests +++ b/modules/stat-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-stat.h tests/test-stat.c diff --git a/modules/strcasestr-tests b/modules/strcasestr-tests index e5262cca6..292c40d81 100644 --- a/modules/strcasestr-tests +++ b/modules/strcasestr-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-strcasestr.c Depends-on: diff --git a/modules/strchrnul-tests b/modules/strchrnul-tests index 642a93f1a..7ca1a58f2 100644 --- a/modules/strchrnul-tests +++ b/modules/strchrnul-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-strchrnul.c Depends-on: diff --git a/modules/strerror-tests b/modules/strerror-tests index 0341c12c5..0a6bc75cd 100644 --- a/modules/strerror-tests +++ b/modules/strerror-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-strerror.c Depends-on: diff --git a/modules/strsignal-tests b/modules/strsignal-tests index 2fa709d04..330a8a951 100644 --- a/modules/strsignal-tests +++ b/modules/strsignal-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-strsignal.c Depends-on: diff --git a/modules/strstr-tests b/modules/strstr-tests index 8f09e58f5..231e0ebf3 100644 --- a/modules/strstr-tests +++ b/modules/strstr-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-strstr.c tests/zerosize-ptr.h m4/mmap-anon.m4 diff --git a/modules/strtod-tests b/modules/strtod-tests index e40a274d6..ad5a560db 100644 --- a/modules/strtod-tests +++ b/modules/strtod-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-strtod.c Depends-on: diff --git a/modules/strverscmp-tests b/modules/strverscmp-tests index 343df258f..89b6795b9 100644 --- a/modules/strverscmp-tests +++ b/modules/strverscmp-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-strverscmp.c Depends-on: diff --git a/modules/symlink-tests b/modules/symlink-tests index 9858ade2a..ef18d47fd 100644 --- a/modules/symlink-tests +++ b/modules/symlink-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-symlink.h tests/test-symlink.c diff --git a/modules/symlinkat-tests b/modules/symlinkat-tests index a0dab9f53..436853769 100644 --- a/modules/symlinkat-tests +++ b/modules/symlinkat-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-readlink.h tests/test-symlink.h tests/test-symlinkat.c diff --git a/modules/times-tests b/modules/times-tests index 838eac001..3d90f1a60 100644 --- a/modules/times-tests +++ b/modules/times-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-times.c Makefile.am: diff --git a/modules/trunc-tests b/modules/trunc-tests index f986e3c09..c3d5243e5 100644 --- a/modules/trunc-tests +++ b/modules/trunc-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-trunc1.c tests/test-trunc2.c tests/nan.h diff --git a/modules/truncf-tests b/modules/truncf-tests index 0f56e7f4e..70ecb1f62 100644 --- a/modules/truncf-tests +++ b/modules/truncf-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-truncf1.c tests/test-truncf2.c tests/nan.h diff --git a/modules/truncl-tests b/modules/truncl-tests index 7ffc1cde6..3d92508fa 100644 --- a/modules/truncl-tests +++ b/modules/truncl-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-truncl.c tests/nan.h diff --git a/modules/tsearch-tests b/modules/tsearch-tests index b038c6af5..bc30be510 100644 --- a/modules/tsearch-tests +++ b/modules/tsearch-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-tsearch.sh tests/test-tsearch.c diff --git a/modules/uname-tests b/modules/uname-tests index 1a3ee1ff9..89d256c38 100644 --- a/modules/uname-tests +++ b/modules/uname-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-uname.c Depends-on: diff --git a/modules/unlink-tests b/modules/unlink-tests index b9be84224..d9c82ebc9 100644 --- a/modules/unlink-tests +++ b/modules/unlink-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-unlink.h tests/test-unlink.c diff --git a/modules/unsetenv-tests b/modules/unsetenv-tests index 94fc504ae..fddee906a 100644 --- a/modules/unsetenv-tests +++ b/modules/unsetenv-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-unsetenv.c Depends-on: diff --git a/modules/usleep-tests b/modules/usleep-tests index 762d64426..59d9c17cb 100644 --- a/modules/usleep-tests +++ b/modules/usleep-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-usleep.c Depends-on: diff --git a/modules/utimensat-tests b/modules/utimensat-tests index a56bb3e18..46ae13355 100644 --- a/modules/utimensat-tests +++ b/modules/utimensat-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/nap.h tests/test-lutimens.h tests/test-utimens.h diff --git a/modules/vasprintf-tests b/modules/vasprintf-tests index cfd7ddc5a..0fd058a1b 100644 --- a/modules/vasprintf-tests +++ b/modules/vasprintf-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-vasprintf.c Depends-on: diff --git a/modules/vdprintf-posix-tests b/modules/vdprintf-posix-tests index 221417c6f..aa1c015ea 100644 --- a/modules/vdprintf-posix-tests +++ b/modules/vdprintf-posix-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-vdprintf-posix.sh tests/test-vdprintf-posix.c tests/test-fprintf-posix.h diff --git a/modules/vfprintf-posix-tests b/modules/vfprintf-posix-tests index 52c62f8af..542372010 100644 --- a/modules/vfprintf-posix-tests +++ b/modules/vfprintf-posix-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-vfprintf-posix.sh tests/test-vfprintf-posix.c tests/test-fprintf-posix.h diff --git a/modules/vprintf-posix-tests b/modules/vprintf-posix-tests index 071b7a005..408948fc4 100644 --- a/modules/vprintf-posix-tests +++ b/modules/vprintf-posix-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-vprintf-posix.sh tests/test-vprintf-posix.c tests/test-printf-posix.h diff --git a/modules/vsnprintf-posix-tests b/modules/vsnprintf-posix-tests index f099bd6ce..816b2a984 100644 --- a/modules/vsnprintf-posix-tests +++ b/modules/vsnprintf-posix-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-vsnprintf-posix.c tests/test-snprintf-posix.h tests/test-vsnprintf.c diff --git a/modules/vsnprintf-tests b/modules/vsnprintf-tests index f92689f9a..4322d7b35 100644 --- a/modules/vsnprintf-tests +++ b/modules/vsnprintf-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-vsnprintf.c Depends-on: diff --git a/modules/vsprintf-posix-tests b/modules/vsprintf-posix-tests index 2d052e9ac..54a6cd5be 100644 --- a/modules/vsprintf-posix-tests +++ b/modules/vsprintf-posix-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-vsprintf-posix.c tests/test-sprintf-posix.h tests/nan.h diff --git a/modules/wcrtomb-tests b/modules/wcrtomb-tests index a730eff98..885c6c191 100644 --- a/modules/wcrtomb-tests +++ b/modules/wcrtomb-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-wcrtomb.sh tests/test-wcrtomb.c m4/locale-fr.m4 diff --git a/modules/wcsnrtombs-tests b/modules/wcsnrtombs-tests index d77e3befe..f18bda918 100644 --- a/modules/wcsnrtombs-tests +++ b/modules/wcsnrtombs-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-wcsnrtombs1.sh tests/test-wcsnrtombs2.sh tests/test-wcsnrtombs3.sh diff --git a/modules/wcsrtombs-tests b/modules/wcsrtombs-tests index 98fbbfd3e..68ab421e0 100644 --- a/modules/wcsrtombs-tests +++ b/modules/wcsrtombs-tests @@ -1,4 +1,5 @@ Files: +tests/signature.h tests/test-wcsrtombs1.sh tests/test-wcsrtombs2.sh tests/test-wcsrtombs3.sh diff --git a/modules/wcwidth-tests b/modules/wcwidth-tests index 956072f60..f12cc6ecd 100644 --- a/modules/wcwidth-tests +++ b/modules/wcwidth-tests @@ -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 index 000000000..bf1bb86e2 --- /dev/null +++ b/tests/signature.h @@ -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 . */ + +#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 + 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 + #include + #include "signature.h" + SIGNATURE_CHECK (foo, int, (char, float)); + #include + ... +*/ +# 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 */ diff --git a/tests/test-atexit.c b/tests/test-atexit.c index 97afff5f8..c815b2db0 100644 --- a/tests/test-atexit.c +++ b/tests/test-atexit.c @@ -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 @@ -19,6 +19,10 @@ #include #include + +#include "signature.h" +SIGNATURE_CHECK (atexit, int, (void (*) (void))); + #include #define TEMPFILE "t-atexit.tmp" diff --git a/tests/test-btowc.c b/tests/test-btowc.c index b447d05a1..4a1955331 100644 --- a/tests/test-btowc.c +++ b/tests/test-btowc.c @@ -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 +#include "signature.h" +SIGNATURE_CHECK (btowc, wint_t, (int)); + #include #include #include diff --git a/tests/test-canonicalize-lgpl.c b/tests/test-canonicalize-lgpl.c index 7667983da..4f4fca18b 100644 --- a/tests/test-canonicalize-lgpl.c +++ b/tests/test-canonicalize-lgpl.c @@ -20,6 +20,10 @@ #include +#include "signature.h" +SIGNATURE_CHECK (realpath, char *, (const char *, char *)); +SIGNATURE_CHECK (canonicalize_file_name, char *, (const char *)); + #include #include #include diff --git a/tests/test-ceilf1.c b/tests/test-ceilf1.c index 32419366b..e180e95f8 100644 --- a/tests/test-ceilf1.c +++ b/tests/test-ceilf1.c @@ -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 +#include "signature.h" +SIGNATURE_CHECK (ceilf, float, (float)); + #include #include diff --git a/tests/test-ceill.c b/tests/test-ceill.c index 764d2beaf..2ed005331 100644 --- a/tests/test-ceill.c +++ b/tests/test-ceill.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (ceill, long double, (long double)); + #include #include #include diff --git a/tests/test-chown.c b/tests/test-chown.c index 426597080..e7660707e 100644 --- a/tests/test-chown.c +++ b/tests/test-chown.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (chown, int, (char const *, uid_t, gid_t)); + #include #include #include diff --git a/tests/test-dprintf-posix.c b/tests/test-dprintf-posix.c index 384d1efaf..9cedc1c62 100644 --- a/tests/test-dprintf-posix.c +++ b/tests/test-dprintf-posix.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (dprintf, int, (int, const char *, ...)); + #include #include #include diff --git a/tests/test-dup2.c b/tests/test-dup2.c index b22d1e6a5..a4aca82df 100644 --- a/tests/test-dup2.c +++ b/tests/test-dup2.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (dup2, int, (int, int)); + #include #include #include diff --git a/tests/test-dup3.c b/tests/test-dup3.c index 41fc16ded..9133b7bf4 100644 --- a/tests/test-dup3.c +++ b/tests/test-dup3.c @@ -21,6 +21,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (dup3, int, (int, int, int)); + #include #include #include diff --git a/tests/test-duplocale.c b/tests/test-duplocale.c index 354e13e8f..a368c0742 100644 --- a/tests/test-duplocale.c +++ b/tests/test-duplocale.c @@ -22,6 +22,9 @@ #if HAVE_DUPLOCALE +#include "signature.h" +SIGNATURE_CHECK (duplocale, locale_t, (locale_t)); + #include #include #include diff --git a/tests/test-fchdir.c b/tests/test-fchdir.c index 75819ebe6..7ec675e7d 100644 --- a/tests/test-fchdir.c +++ b/tests/test-fchdir.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (fchdir, int, (int)); + #include #include #include diff --git a/tests/test-fchownat.c b/tests/test-fchownat.c index 2dbc857ec..c084ddf83 100644 --- a/tests/test-fchownat.c +++ b/tests/test-fchownat.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (fchownat, int, (int, char const *, uid_t, gid_t, int)); + #include #include #include diff --git a/tests/test-fcntl.c b/tests/test-fcntl.c index c06b41e61..77ac87006 100644 --- a/tests/test-fcntl.c +++ b/tests/test-fcntl.c @@ -21,6 +21,9 @@ /* Specification. */ #include +#include "signature.h" +SIGNATURE_CHECK (fcntl, int, (int, int, ...)); + /* Helpers. */ #include #include diff --git a/tests/test-fdopendir.c b/tests/test-fdopendir.c index 7e0b3ee9b..f6006d0b8 100644 --- a/tests/test-fdopendir.c +++ b/tests/test-fdopendir.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (fdopendir, DIR *, (int)); + #include #include #include diff --git a/tests/test-fflush.c b/tests/test-fflush.c index 8e33c9f0f..9962d1d18 100644 --- a/tests/test-fflush.c +++ b/tests/test-fflush.c @@ -19,6 +19,10 @@ #include #include + +#include "signature.h" +SIGNATURE_CHECK (fflush, int, (FILE *)); + #include int diff --git a/tests/test-flock.c b/tests/test-flock.c index babf6efea..a8a615e9a 100644 --- a/tests/test-flock.c +++ b/tests/test-flock.c @@ -18,6 +18,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (flock, int, (int, int)); + #include #include #include diff --git a/tests/test-floorf1.c b/tests/test-floorf1.c index 373724a46..e15673239 100644 --- a/tests/test-floorf1.c +++ b/tests/test-floorf1.c @@ -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 +#include "signature.h" +SIGNATURE_CHECK (floorf, float, (float)); + #include #include diff --git a/tests/test-floorl.c b/tests/test-floorl.c index 7afea04f2..a8080e58b 100644 --- a/tests/test-floorl.c +++ b/tests/test-floorl.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (floorl, long double, (long double)); + #include #include #include diff --git a/tests/test-fnmatch.c b/tests/test-fnmatch.c index 3e21d9d44..f9485afcf 100644 --- a/tests/test-fnmatch.c +++ b/tests/test-fnmatch.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (fnmatch, int, (char const *, char const *, int)); + #include #include diff --git a/tests/test-fopen.c b/tests/test-fopen.c index 29d783946..e7e777013 100644 --- a/tests/test-fopen.c +++ b/tests/test-fopen.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (fopen, FILE *, (char const *, char const *)); + #define BASE "test-fopen.t" #include "test-fopen.h" diff --git a/tests/test-fprintf-posix.c b/tests/test-fprintf-posix.c index 4133e40bd..21c626ee0 100644 --- a/tests/test-fprintf-posix.c +++ b/tests/test-fprintf-posix.c @@ -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 +#include "signature.h" +SIGNATURE_CHECK (fprintf, int, (FILE *, char const *, ...)); + #include #include #include diff --git a/tests/test-freopen.c b/tests/test-freopen.c index 23f2af512..bdb5de0fe 100644 --- a/tests/test-freopen.c +++ b/tests/test-freopen.c @@ -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 @@ -19,6 +19,10 @@ #include #include + +#include "signature.h" +SIGNATURE_CHECK (freopen, FILE *, (char const *, char const *, FILE *)); + #include #define ASSERT(expr) \ diff --git a/tests/test-frexp.c b/tests/test-frexp.c index 47ddab297..6b285c9a9 100644 --- a/tests/test-frexp.c +++ b/tests/test-frexp.c @@ -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 +#include "signature.h" +SIGNATURE_CHECK (frexp, double, (double, int *)); + #include #include #include diff --git a/tests/test-frexpl.c b/tests/test-frexpl.c index e4367f6ea..7b7ec5394 100644 --- a/tests/test-frexpl.c +++ b/tests/test-frexpl.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (frexpl, long double, (long double, int *)); + #include #include #include diff --git a/tests/test-fseek.c b/tests/test-fseek.c index 04fc96675..4447a9b6f 100644 --- a/tests/test-fseek.c +++ b/tests/test-fseek.c @@ -19,6 +19,10 @@ #include #include + +#include "signature.h" +SIGNATURE_CHECK (fseek, int, (FILE *, long, int)); + #include #define ASSERT(expr) \ diff --git a/tests/test-fseeko.c b/tests/test-fseeko.c index bdf025f5b..0d2f32199 100644 --- a/tests/test-fseeko.c +++ b/tests/test-fseeko.c @@ -26,6 +26,10 @@ #endif #include + +#include "signature.h" +SIGNATURE_CHECK (fseeko, int, (FILE *, off_t, int)); + #include #define ASSERT(expr) \ diff --git a/tests/test-fstatat.c b/tests/test-fstatat.c index e965997b2..552bf45f3 100644 --- a/tests/test-fstatat.c +++ b/tests/test-fstatat.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (fstatat, int, (int, char const *, struct stat *, int)); + #include #include #include diff --git a/tests/test-fsync.c b/tests/test-fsync.c index 4766eb06a..bf789a2aa 100644 --- a/tests/test-fsync.c +++ b/tests/test-fsync.c @@ -18,6 +18,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (fsync, int, (int)); + #include #include #include diff --git a/tests/test-ftell.c b/tests/test-ftell.c index 06628657a..d9723f593 100644 --- a/tests/test-ftell.c +++ b/tests/test-ftell.c @@ -19,6 +19,10 @@ #include #include + +#include "signature.h" +SIGNATURE_CHECK (ftell, long, (FILE *)); + #include #include "binary-io.h" diff --git a/tests/test-ftello.c b/tests/test-ftello.c index dfe5be02f..2af43f2bc 100644 --- a/tests/test-ftello.c +++ b/tests/test-ftello.c @@ -19,6 +19,10 @@ #include #include + +#include "signature.h" +SIGNATURE_CHECK (ftello, off_t, (FILE *)); + #include #include "binary-io.h" diff --git a/tests/test-futimens.c b/tests/test-futimens.c index 4e049bdff..5753c6b20 100644 --- a/tests/test-futimens.c +++ b/tests/test-futimens.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (futimens, int, (int, struct timespec const[2])); + #include #include #include diff --git a/tests/test-getaddrinfo.c b/tests/test-getaddrinfo.c index 7464ec217..a7e2381ec 100644 --- a/tests/test-getaddrinfo.c +++ b/tests/test-getaddrinfo.c @@ -18,8 +18,16 @@ /* Written by Simon Josefsson. */ #include + #include +#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 #include #include diff --git a/tests/test-getcwd.c b/tests/test-getcwd.c index debace7df..757018085 100644 --- a/tests/test-getcwd.c +++ b/tests/test-getcwd.c @@ -18,6 +18,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (getcwd, char *, (char *, size_t)); + #include #include #include diff --git a/tests/test-getdelim.c b/tests/test-getdelim.c index 8de43dbf6..dc40bddeb 100644 --- a/tests/test-getdelim.c +++ b/tests/test-getdelim.c @@ -20,6 +20,10 @@ #include #include + +#include "signature.h" +SIGNATURE_CHECK (getdelim, ssize_t, (char **, size_t *, int, FILE *)); + #include #include diff --git a/tests/test-getdtablesize.c b/tests/test-getdtablesize.c index 577d329ef..e587aa13d 100644 --- a/tests/test-getdtablesize.c +++ b/tests/test-getdtablesize.c @@ -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 +#include "signature.h" +SIGNATURE_CHECK (getdtablesize, int, (void)); + #include #include diff --git a/tests/test-getgroups.c b/tests/test-getgroups.c index 6d4a5140f..1d3ca98e3 100644 --- a/tests/test-getgroups.c +++ b/tests/test-getgroups.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (getgroups, int, (int, gid_t[])); + #include #include #include diff --git a/tests/test-gethostname.c b/tests/test-gethostname.c index af1293b88..a63839b2d 100644 --- a/tests/test-gethostname.c +++ b/tests/test-gethostname.c @@ -19,6 +19,10 @@ /* Get gethostname() declaration. */ #include + +#include "signature.h" +SIGNATURE_CHECK (gethostname, int, (char *, size_t)); + /* Get HOST_NAME_MAX definition. */ #include diff --git a/tests/test-getline.c b/tests/test-getline.c index cc40c5512..7564ece15 100644 --- a/tests/test-getline.c +++ b/tests/test-getline.c @@ -20,6 +20,10 @@ #include #include + +#include "signature.h" +SIGNATURE_CHECK (getline, ssize_t, (char **, size_t *, FILE *)); + #include #include diff --git a/tests/test-getopt.c b/tests/test-getopt.c index 6811a0205..9502a442e 100644 --- a/tests/test-getopt.c +++ b/tests/test-getopt.c @@ -27,9 +27,25 @@ #if GNULIB_GETOPT_GNU # include + +# 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 +#include "signature.h" +SIGNATURE_CHECK (getopt, int, (int, char * const[], char const *)); + #include #include #include diff --git a/tests/test-gettimeofday.c b/tests/test-gettimeofday.c index 3b858791a..bd6698d1c 100644 --- a/tests/test-gettimeofday.c +++ b/tests/test-gettimeofday.c @@ -18,6 +18,10 @@ #include #include + +#include "signature.h" +SIGNATURE_CHECK (gettimeofday, int, (struct timeval *, void *)); + #include #include diff --git a/tests/test-glob.c b/tests/test-glob.c index 750d9d887..d7a17dc03 100644 --- a/tests/test-glob.c +++ b/tests/test-glob.c @@ -20,6 +20,11 @@ #include +#include "signature.h" +SIGNATURE_CHECK (glob, int, (char const *, int, int (*) (char const *, int), + glob_t *)); +SIGNATURE_CHECK (globfree, void, (glob_t *)); + #include #include #include diff --git a/tests/test-iconv.c b/tests/test-iconv.c index e7e574245..566ddee62 100644 --- a/tests/test-iconv.c +++ b/tests/test-iconv.c @@ -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 @@ -20,6 +20,17 @@ #if HAVE_ICONV # include + +# 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 diff --git a/tests/test-inet_ntop.c b/tests/test-inet_ntop.c index 312163aab..849562034 100644 --- a/tests/test-inet_ntop.c +++ b/tests/test-inet_ntop.c @@ -20,6 +20,10 @@ #include +#include "signature.h" +SIGNATURE_CHECK (inet_ntop, char const *, (int, void const *, char *, + socklen_t)); + #include #include #include diff --git a/tests/test-inet_pton.c b/tests/test-inet_pton.c index dc6401e1f..b1dbb052b 100644 --- a/tests/test-inet_pton.c +++ b/tests/test-inet_pton.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (inet_pton, int, (int, const char *, void *)); + #include #include #include diff --git a/tests/test-isblank.c b/tests/test-isblank.c index f25d26d05..d29fc6333 100644 --- a/tests/test-isblank.c +++ b/tests/test-isblank.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (isblank, int, (int)); + #include #include #include diff --git a/tests/test-isfinite.c b/tests/test-isfinite.c index 2d718e2cc..fc2f23c0d 100644 --- a/tests/test-isfinite.c +++ b/tests/test-isfinite.c @@ -21,6 +21,11 @@ #include +/* isfinite must be a macro. */ +#ifndef isfinite +# error missing declaration +#endif + #include #include #include diff --git a/tests/test-isinf.c b/tests/test-isinf.c index c1a83d30e..d81ee7afc 100644 --- a/tests/test-isinf.c +++ b/tests/test-isinf.c @@ -21,6 +21,11 @@ #include +/* isinf must be a macro. */ +#ifndef isinf +# error missing declaration +#endif + #include #include #include diff --git a/tests/test-isnan.c b/tests/test-isnan.c index e9dd5e321..74bb9d981 100644 --- a/tests/test-isnan.c +++ b/tests/test-isnan.c @@ -21,6 +21,11 @@ #include +/* isnan must be a macro. */ +#ifndef isnan +# error missing declaration +#endif + #include #include #include diff --git a/tests/test-lchown.c b/tests/test-lchown.c index 78c294081..b9091028d 100644 --- a/tests/test-lchown.c +++ b/tests/test-lchown.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (lchown, int, (char const *, uid_t, gid_t)); + #include #include #include diff --git a/tests/test-ldexpl.c b/tests/test-ldexpl.c index 42faf6071..0fe4f8619 100644 --- a/tests/test-ldexpl.c +++ b/tests/test-ldexpl.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (ldexpl, long double, (long double, int)); + #include #include #include diff --git a/tests/test-link.c b/tests/test-link.c index dd7df2e01..d2ff679d2 100644 --- a/tests/test-link.c +++ b/tests/test-link.c @@ -18,6 +18,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (link, int, (char const *, char const *)); + #include #include #include diff --git a/tests/test-linkat.c b/tests/test-linkat.c index 11233fe13..c827a27d9 100644 --- a/tests/test-linkat.c +++ b/tests/test-linkat.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (linkat, int, (int, char const *, int, char const *, int)); + #include #include #include diff --git a/tests/test-lseek.c b/tests/test-lseek.c index e474a0b01..a57443db2 100644 --- a/tests/test-lseek.c +++ b/tests/test-lseek.c @@ -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 @@ -18,9 +18,13 @@ #include +#include + +#include "signature.h" +SIGNATURE_CHECK (lseek, off_t, (int, off_t, int)); + #include #include -#include #define ASSERT(expr) \ do \ diff --git a/tests/test-lstat.c b/tests/test-lstat.c index 8c62bc135..74a4fd2ac 100644 --- a/tests/test-lstat.c +++ b/tests/test-lstat.c @@ -20,6 +20,13 @@ #include +/* 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 #include #include diff --git a/tests/test-mbrtowc.c b/tests/test-mbrtowc.c index 178e2106c..916427308 100644 --- a/tests/test-mbrtowc.c +++ b/tests/test-mbrtowc.c @@ -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 @@ -20,6 +20,10 @@ #include +#include "signature.h" +SIGNATURE_CHECK (mbrtowc, size_t, (wchar_t *, char const *, size_t, + mbstate_t *)); + #include #include #include diff --git a/tests/test-mbsinit.c b/tests/test-mbsinit.c index 392b8535f..2732693bc 100644 --- a/tests/test-mbsinit.c +++ b/tests/test-mbsinit.c @@ -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 +#include "signature.h" +SIGNATURE_CHECK (mbsinit, int, (const mbstate_t *)); + #include #include #include diff --git a/tests/test-mbsnrtowcs.c b/tests/test-mbsnrtowcs.c index 60a8e1882..471c17b8b 100644 --- a/tests/test-mbsnrtowcs.c +++ b/tests/test-mbsnrtowcs.c @@ -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 @@ -20,6 +20,10 @@ #include +#include "signature.h" +SIGNATURE_CHECK (mbsnrtowcs, size_t, (wchar_t *, char const **, size_t, size_t, + mbstate_t *)); + #include #include #include diff --git a/tests/test-mbsrtowcs.c b/tests/test-mbsrtowcs.c index 49cb78ae4..4a01d4a59 100644 --- a/tests/test-mbsrtowcs.c +++ b/tests/test-mbsrtowcs.c @@ -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 @@ -20,6 +20,10 @@ #include +#include "signature.h" +SIGNATURE_CHECK (mbsrtowcs, size_t, (wchar_t *, char const **, size_t, + mbstate_t *)); + #include #include #include diff --git a/tests/test-memchr.c b/tests/test-memchr.c index 582df89fa..2ec37b65a 100644 --- a/tests/test-memchr.c +++ b/tests/test-memchr.c @@ -19,6 +19,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (memchr, void *, (void const *, int, size_t)); + #include #include diff --git a/tests/test-memcmp.c b/tests/test-memcmp.c index 87403161e..463ca0c98 100644 --- a/tests/test-memcmp.c +++ b/tests/test-memcmp.c @@ -19,6 +19,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (memcmp, int, (void const *, void const *, size_t)); + #include #include diff --git a/tests/test-memmem.c b/tests/test-memmem.c index 75a2505b7..3c71a2e26 100644 --- a/tests/test-memmem.c +++ b/tests/test-memmem.c @@ -19,6 +19,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (memmem, void *, (void const *, size_t, void const *, size_t)); + #include #include #include diff --git a/tests/test-memrchr.c b/tests/test-memrchr.c index 17bc1f6f2..d9128e76e 100644 --- a/tests/test-memrchr.c +++ b/tests/test-memrchr.c @@ -19,6 +19,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (memrchr, void *, (void const *, int, size_t)); + #include #include diff --git a/tests/test-mkdir.c b/tests/test-mkdir.c index 6a19c3003..1531e25c5 100644 --- a/tests/test-mkdir.c +++ b/tests/test-mkdir.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (mkdir, int, (char const *, mode_t)); + #include #include #include diff --git a/tests/test-mkdirat.c b/tests/test-mkdirat.c index 9b59f17a4..c11b1654d 100644 --- a/tests/test-mkdirat.c +++ b/tests/test-mkdirat.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (mkdirat, int, (int, char const *, mode_t)); + #include #include #include diff --git a/tests/test-mkfifo.c b/tests/test-mkfifo.c index 3a0336c33..df002ed74 100644 --- a/tests/test-mkfifo.c +++ b/tests/test-mkfifo.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (mkfifo, int, (char const *, mode_t)); + #include #include #include diff --git a/tests/test-mkfifoat.c b/tests/test-mkfifoat.c index fca3411b3..1c6656e14 100644 --- a/tests/test-mkfifoat.c +++ b/tests/test-mkfifoat.c @@ -20,6 +20,10 @@ #include +#include "signature.h" +SIGNATURE_CHECK (mkfifoat, int, (int, char const *, mode_t)); +SIGNATURE_CHECK (mknodat, int, (int, char const *, mode_t, dev_t)); + #include #include #include diff --git a/tests/test-mknod.c b/tests/test-mknod.c index 2e308833f..b00cd2842 100644 --- a/tests/test-mknod.c +++ b/tests/test-mknod.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (mknod, int, (char const *, mode_t, dev_t)); + #include #include #include diff --git a/tests/test-nanosleep.c b/tests/test-nanosleep.c index 426ea999f..e4e723164 100644 --- a/tests/test-nanosleep.c +++ b/tests/test-nanosleep.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (nanosleep, int, (struct timespec const *, struct timepec *)); + #include #include #include diff --git a/tests/test-nl_langinfo.c b/tests/test-nl_langinfo.c index 337e6ecc9..a2f5f6825 100644 --- a/tests/test-nl_langinfo.c +++ b/tests/test-nl_langinfo.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (nl_langinfo, char *, (nl_item)); + #include #include #include diff --git a/tests/test-obstack-printf.c b/tests/test-obstack-printf.c index fdbdcfad3..ca07f4752 100644 --- a/tests/test-obstack-printf.c +++ b/tests/test-obstack-printf.c @@ -20,6 +20,11 @@ #include +#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" diff --git a/tests/test-open.c b/tests/test-open.c index 37109a58a..4bdf31431 100644 --- a/tests/test-open.c +++ b/tests/test-open.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (open, int, (char const *, int, ...)); + #include #include #include diff --git a/tests/test-openat.c b/tests/test-openat.c index 77185cc45..5eb9deb27 100644 --- a/tests/test-openat.c +++ b/tests/test-openat.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (openat, int, (int, char const *, int, ...)); + #include #include #include diff --git a/tests/test-perror.c b/tests/test-perror.c index 2faa8aeaf..a045f1911 100644 --- a/tests/test-perror.c +++ b/tests/test-perror.c @@ -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 +#include "signature.h" +SIGNATURE_CHECK (perror, void, (char const *)); + #include int diff --git a/tests/test-pipe2.c b/tests/test-pipe2.c index 049af5d5a..5eb5ec328 100644 --- a/tests/test-pipe2.c +++ b/tests/test-pipe2.c @@ -19,6 +19,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (pipe2, int, (int[2], int)); + #include #include diff --git a/tests/test-poll.c b/tests/test-poll.c index ed9bd9e91..3f884df0c 100644 --- a/tests/test-poll.c +++ b/tests/test-poll.c @@ -19,12 +19,16 @@ #include +#include + +#include "signature.h" +SIGNATURE_CHECK (poll, int, (struct pollfd[], nfds_t, int)); + #include #include #include #include #include -#include #include #include #include diff --git a/tests/test-popen.c b/tests/test-popen.c index 342e36304..914eea85d 100644 --- a/tests/test-popen.c +++ b/tests/test-popen.c @@ -21,4 +21,8 @@ /* Specification. */ #include +#include "signature.h" +SIGNATURE_CHECK (popen, FILE *, (char const *, char const *)); +SIGNATURE_CHECK (pclose, int, (FILE *)); + #include "test-popen.h" diff --git a/tests/test-posix_spawn1.c b/tests/test-posix_spawn1.c index 896c7c9d4..27f426ef9 100644 --- a/tests/test-posix_spawn1.c +++ b/tests/test-posix_spawn1.c @@ -20,6 +20,28 @@ #include +#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 #include #include diff --git a/tests/test-posix_spawn3.c b/tests/test-posix_spawn3.c index af71068fe..c8f8398f4 100644 --- a/tests/test-posix_spawn3.c +++ b/tests/test-posix_spawn3.c @@ -23,6 +23,11 @@ #include +#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 #include #include diff --git a/tests/test-pread.c b/tests/test-pread.c index 0ef387d9f..d5a86ad2a 100644 --- a/tests/test-pread.c +++ b/tests/test-pread.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (pread, ssize_t, (int, void *, size_t, off_t)); + #include #include #include diff --git a/tests/test-printf-posix.c b/tests/test-printf-posix.c index 51f1bf787..c09b1883f 100644 --- a/tests/test-printf-posix.c +++ b/tests/test-printf-posix.c @@ -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 +#include "signature.h" +SIGNATURE_CHECK (printf, int, (char const *, ...)); + #include #include #include diff --git a/tests/test-pty.c b/tests/test-pty.c index cd24f0d5e..1c77166aa 100644 --- a/tests/test-pty.c +++ b/tests/test-pty.c @@ -20,6 +20,12 @@ #include +#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 int diff --git a/tests/test-random_r.c b/tests/test-random_r.c index 88deda036..391d98c6c 100644 --- a/tests/test-random_r.c +++ b/tests/test-random_r.c @@ -18,6 +18,13 @@ #include +#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 #include diff --git a/tests/test-rawmemchr.c b/tests/test-rawmemchr.c index eece65fbf..f1eef2c27 100644 --- a/tests/test-rawmemchr.c +++ b/tests/test-rawmemchr.c @@ -19,6 +19,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (rawmemchr, void *, (void const *, int)); + #include #include diff --git a/tests/test-readlink.c b/tests/test-readlink.c index 5e51cb6d7..61f8f6bb7 100644 --- a/tests/test-readlink.c +++ b/tests/test-readlink.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (readlink, ssize_t, (char const *, char *, size_t)); + #include #include #include diff --git a/tests/test-remove.c b/tests/test-remove.c index 7781dfc33..1a92f6c0d 100644 --- a/tests/test-remove.c +++ b/tests/test-remove.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (remove, int, (char const *)); + #include #include #include diff --git a/tests/test-rename.c b/tests/test-rename.c index 0d51140d8..1cd2e8fc0 100644 --- a/tests/test-rename.c +++ b/tests/test-rename.c @@ -16,12 +16,14 @@ #include -#include +#include + +#include "signature.h" +SIGNATURE_CHECK (rename, int, (char const *, char const *)); #include #include #include -#include #include #include #include diff --git a/tests/test-renameat.c b/tests/test-renameat.c index 7cde7be10..3293d52c3 100644 --- a/tests/test-renameat.c +++ b/tests/test-renameat.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (renameat, int, (int, char const *, int, char const *)); + #include #include #include diff --git a/tests/test-rmdir.c b/tests/test-rmdir.c index 908b0e666..44f5d7204 100644 --- a/tests/test-rmdir.c +++ b/tests/test-rmdir.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (rmdir, int, (char const *)); + #include #include #include diff --git a/tests/test-round1.c b/tests/test-round1.c index 8e9e0ef9c..6f2795ecd 100644 --- a/tests/test-round1.c +++ b/tests/test-round1.c @@ -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 +#include "signature.h" +SIGNATURE_CHECK (round, double, (double)); + #include #include diff --git a/tests/test-roundf1.c b/tests/test-roundf1.c index cbf3f9edb..98edc4a7e 100644 --- a/tests/test-roundf1.c +++ b/tests/test-roundf1.c @@ -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 +#include "signature.h" +SIGNATURE_CHECK (roundf, float, (float)); + #include #include diff --git a/tests/test-roundl.c b/tests/test-roundl.c index c4fcf0cbb..048aa8b9f 100644 --- a/tests/test-roundl.c +++ b/tests/test-roundl.c @@ -22,6 +22,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (roundl, long double, (long double)); + #include #include #include diff --git a/tests/test-select.c b/tests/test-select.c index 5ce7c7fae..5b413d564 100644 --- a/tests/test-select.c +++ b/tests/test-select.c @@ -20,6 +20,24 @@ #include +#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 #include #include diff --git a/tests/test-setenv.c b/tests/test-setenv.c index eb1fe3336..b23d296e3 100644 --- a/tests/test-setenv.c +++ b/tests/test-setenv.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (setenv, int, (char const *, char const *, int)); + #include #include #include diff --git a/tests/test-sigaction.c b/tests/test-sigaction.c index 55da288b4..63dfd7ad4 100644 --- a/tests/test-sigaction.c +++ b/tests/test-sigaction.c @@ -20,6 +20,10 @@ #include +#include "signature.h" +SIGNATURE_CHECK (sigaction, int, (int, struct sigaction const *, + struct sigaction *)); + #include #include diff --git a/tests/test-signbit.c b/tests/test-signbit.c index acca7fd98..4acb04546 100644 --- a/tests/test-signbit.c +++ b/tests/test-signbit.c @@ -20,6 +20,11 @@ #include +/* signbit must be a macro. */ +#ifndef signbit +# error missing declaration +#endif + #include #include #include diff --git a/tests/test-sleep.c b/tests/test-sleep.c index 8840142ac..4abca334c 100644 --- a/tests/test-sleep.c +++ b/tests/test-sleep.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (sleep, unsigned int, (unsigned int)); + #include #include #include diff --git a/tests/test-snprintf.c b/tests/test-snprintf.c index 55bca339b..6f1e34cec 100644 --- a/tests/test-snprintf.c +++ b/tests/test-snprintf.c @@ -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 +#include "signature.h" +SIGNATURE_CHECK (snprintf, int, (char *, size_t, char const *, ...)); + #include #include diff --git a/tests/test-sprintf-posix.c b/tests/test-sprintf-posix.c index e5dab357c..47bbaa08c 100644 --- a/tests/test-sprintf-posix.c +++ b/tests/test-sprintf-posix.c @@ -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 +#include "signature.h" +SIGNATURE_CHECK (sprintf, int, (char *, char const *, ...)); + #include #include #include diff --git a/tests/test-stat.c b/tests/test-stat.c index fc1173146..9e52a4a7a 100644 --- a/tests/test-stat.c +++ b/tests/test-stat.c @@ -20,6 +20,13 @@ #include +/* 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 #include #include diff --git a/tests/test-stpncpy.c b/tests/test-stpncpy.c index 128bee316..d3f10b69f 100644 --- a/tests/test-stpncpy.c +++ b/tests/test-stpncpy.c @@ -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 @@ -17,6 +17,10 @@ #include #include + +#include "signature.h" +SIGNATURE_CHECK (stpncpy, char *, (char *, char const *, size_t)); + #include int diff --git a/tests/test-strcasestr.c b/tests/test-strcasestr.c index 8ecd3a9ad..7c2832abe 100644 --- a/tests/test-strcasestr.c +++ b/tests/test-strcasestr.c @@ -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 +#include "signature.h" +SIGNATURE_CHECK (strcasestr, char *, (char const *, char const *)); + #include #include #include diff --git a/tests/test-strchrnul.c b/tests/test-strchrnul.c index ea882e554..f2f341f6b 100644 --- a/tests/test-strchrnul.c +++ b/tests/test-strchrnul.c @@ -19,6 +19,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (strchrnul, char *, (char const *, int)); + #include #include diff --git a/tests/test-strerror.c b/tests/test-strerror.c index 22e9f5ad9..986f75aa6 100644 --- a/tests/test-strerror.c +++ b/tests/test-strerror.c @@ -21,6 +21,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (strerror, char *, (int)); + #include #include #include diff --git a/tests/test-strsignal.c b/tests/test-strsignal.c index 6f06d8eca..bf97dc683 100644 --- a/tests/test-strsignal.c +++ b/tests/test-strsignal.c @@ -21,6 +21,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (strsignal, char *, (int)); + #include #include #include diff --git a/tests/test-strstr.c b/tests/test-strstr.c index c89a1ace4..6bffc1324 100644 --- a/tests/test-strstr.c +++ b/tests/test-strstr.c @@ -19,6 +19,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (strstr, char *, (char const *, char const *)); + #include #include #include diff --git a/tests/test-strtod.c b/tests/test-strtod.c index 14f73b9ca..affd52cd5 100644 --- a/tests/test-strtod.c +++ b/tests/test-strtod.c @@ -19,6 +19,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (strtod, double, (char const *, char **)); + #include #include #include diff --git a/tests/test-strverscmp.c b/tests/test-strverscmp.c index 220f2d6f6..72b574d0f 100644 --- a/tests/test-strverscmp.c +++ b/tests/test-strverscmp.c @@ -21,6 +21,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (strverscmp, int, (const char *, const char *)); + #include #include diff --git a/tests/test-symlink.c b/tests/test-symlink.c index 4b593b653..c84e0064b 100644 --- a/tests/test-symlink.c +++ b/tests/test-symlink.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (symlink, int, (char const *, char const *)); + #include #include #include diff --git a/tests/test-symlinkat.c b/tests/test-symlinkat.c index c76244f31..67f0adf66 100644 --- a/tests/test-symlinkat.c +++ b/tests/test-symlinkat.c @@ -20,6 +20,10 @@ #include +#include "signature.h" +SIGNATURE_CHECK (symlinkat, int, (char const *, int, char const *)); +SIGNATURE_CHECK (readlinkat, ssize_t, (int, char const *, char *, size_t)); + #include #include #include diff --git a/tests/test-times.c b/tests/test-times.c index 496b9a825..c86916598 100644 --- a/tests/test-times.c +++ b/tests/test-times.c @@ -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 @@ -19,6 +19,10 @@ #include #include + +#include "signature.h" +SIGNATURE_CHECK (times, clock_t, (struct tms *)); + #include #include #include diff --git a/tests/test-trunc1.c b/tests/test-trunc1.c index 671d3f5b5..0c92cc6e2 100644 --- a/tests/test-trunc1.c +++ b/tests/test-trunc1.c @@ -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 +#include "signature.h" +SIGNATURE_CHECK (trunc, double, (double)); + #include #include diff --git a/tests/test-truncf1.c b/tests/test-truncf1.c index 834899b58..44fd8c11f 100644 --- a/tests/test-truncf1.c +++ b/tests/test-truncf1.c @@ -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 +#include "signature.h" +SIGNATURE_CHECK (truncf, float, (float)); + #include #include diff --git a/tests/test-truncl.c b/tests/test-truncl.c index 7e3dd1793..3b36ea7c4 100644 --- a/tests/test-truncl.c +++ b/tests/test-truncl.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (truncl, long double, (long double)); + #include #include #include diff --git a/tests/test-tsearch.c b/tests/test-tsearch.c index 273f3ab31..c799f8ff8 100644 --- a/tests/test-tsearch.c +++ b/tests/test-tsearch.c @@ -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 @@ -19,6 +19,16 @@ #include +#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 #include #include diff --git a/tests/test-uname.c b/tests/test-uname.c index a458698a6..b37ae9b4d 100644 --- a/tests/test-uname.c +++ b/tests/test-uname.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (uname, int, (struct utsname *)); + #include #include #include diff --git a/tests/test-unlink.c b/tests/test-unlink.c index 447a01473..ffc360da0 100644 --- a/tests/test-unlink.c +++ b/tests/test-unlink.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (unlink, int, (char const *)); + #include #include #include diff --git a/tests/test-unlinkat.c b/tests/test-unlinkat.c index a98dc8dc4..313cf1ebf 100644 --- a/tests/test-unlinkat.c +++ b/tests/test-unlinkat.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (unlinkat, int, (int, char const *, int)); + #include #include #include diff --git a/tests/test-unsetenv.c b/tests/test-unsetenv.c index bd312a04b..6f8075178 100644 --- a/tests/test-unsetenv.c +++ b/tests/test-unsetenv.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (unsetenv, int, (char const *)); + #include #include #include diff --git a/tests/test-usleep.c b/tests/test-usleep.c index d6e62ebe4..a79218833 100644 --- a/tests/test-usleep.c +++ b/tests/test-usleep.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (usleep, int, (useconds_t)); + #include #include #include diff --git a/tests/test-utimensat.c b/tests/test-utimensat.c index 35fd1bfac..b1dc94012 100644 --- a/tests/test-utimensat.c +++ b/tests/test-utimensat.c @@ -20,6 +20,10 @@ #include +#include "signature.h" +SIGNATURE_CHECK (utimensat, int, (int, char const *, struct timespec const[2], + int)); + #include #include #include diff --git a/tests/test-vasprintf.c b/tests/test-vasprintf.c index a85ff8ec4..46483e458 100644 --- a/tests/test-vasprintf.c +++ b/tests/test-vasprintf.c @@ -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 @@ -20,6 +20,10 @@ #include +#include "signature.h" +SIGNATURE_CHECK (asprintf, int, (char **, char const *, ...)); +SIGNATURE_CHECK (vasprintf, int, (char **, char const *, va_list)); + #include #include #include diff --git a/tests/test-vdprintf-posix.c b/tests/test-vdprintf-posix.c index 949665e0c..932d289bb 100644 --- a/tests/test-vdprintf-posix.c +++ b/tests/test-vdprintf-posix.c @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (vdprintf, int, (int, char const *, va_list)); + #include #include #include diff --git a/tests/test-vfprintf-posix.c b/tests/test-vfprintf-posix.c index ae94fa7b9..94c8ceab7 100644 --- a/tests/test-vfprintf-posix.c +++ b/tests/test-vfprintf-posix.c @@ -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 +#include "signature.h" +SIGNATURE_CHECK (vfprintf, int, (FILE *, char const *, va_list)); + #include #include #include diff --git a/tests/test-vprintf-posix.c b/tests/test-vprintf-posix.c index 85222831c..ec6368481 100644 --- a/tests/test-vprintf-posix.c +++ b/tests/test-vprintf-posix.c @@ -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 +#include "signature.h" +SIGNATURE_CHECK (vprintf, int, (char const *, va_list)); + #include #include #include diff --git a/tests/test-vsnprintf.c b/tests/test-vsnprintf.c index f0d08edbe..baaae6f28 100644 --- a/tests/test-vsnprintf.c +++ b/tests/test-vsnprintf.c @@ -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 +#include "signature.h" +SIGNATURE_CHECK (vsnprintf, int, (char *, size_t, char const *, va_list)); + #include #include #include diff --git a/tests/test-vsprintf-posix.c b/tests/test-vsprintf-posix.c index 3bb457fb5..49a134781 100644 --- a/tests/test-vsprintf-posix.c +++ b/tests/test-vsprintf-posix.c @@ -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 +#include "signature.h" +SIGNATURE_CHECK (vsprintf, int, (char *, char const *, va_list)); + #include #include #include diff --git a/tests/test-wcrtomb.c b/tests/test-wcrtomb.c index 4fe972b46..3ac33e0f4 100644 --- a/tests/test-wcrtomb.c +++ b/tests/test-wcrtomb.c @@ -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 +#include "signature.h" +SIGNATURE_CHECK (wcrtomb, size_t, (char *, wchar_t, mbstate_t *)); + #include #include #include diff --git a/tests/test-wcsnrtombs.c b/tests/test-wcsnrtombs.c index 38c0441b4..f16dafe40 100644 --- a/tests/test-wcsnrtombs.c +++ b/tests/test-wcsnrtombs.c @@ -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 @@ -20,6 +20,10 @@ #include +#include "signature.h" +SIGNATURE_CHECK (wcsnrtombs, size_t, (char *, wchar_t const **, size_t, size_t, + mbstate_t *)); + #include #include #include diff --git a/tests/test-wcsrtombs.c b/tests/test-wcsrtombs.c index 3ceb7c0f6..4fad01fa1 100644 --- a/tests/test-wcsrtombs.c +++ b/tests/test-wcsrtombs.c @@ -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 @@ -20,6 +20,10 @@ #include +#include "signature.h" +SIGNATURE_CHECK (wcsrtombs, size_t, (char *, wchar_t const **, size_t, + mbstate_t *)); + #include #include #include diff --git a/tests/test-wcwidth.c b/tests/test-wcwidth.c index 5087b088d..f1a89d144 100644 --- a/tests/test-wcwidth.c +++ b/tests/test-wcwidth.c @@ -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 +#include "signature.h" +SIGNATURE_CHECK (wcwidth, int, (wchar_t)); + #include #include #include -- 2.11.0