2009-12-24 Eric Blake <ebb9@byu.net>
+ tests: add signature checks
+ * tests/signature.h (SIGNATURE_CHECK): New file.
+ * modules/atexit-tests (Files): Use it.
+ * modules/btowc-tests (Files): Likewise.
+ * modules/canonicalize-lgpl-tests (Files): Likewise.
+ * modules/ceilf-tests (Files): Likewise.
+ * modules/ceill-tests (Files): Likewise.
+ * modules/chown-tests (Files): Likewise.
+ * modules/dprintf-posix-tests (Files): Likewise.
+ * modules/dup2-tests (Files): Likewise.
+ * modules/dup3-tests (Files): Likewise.
+ * modules/duplocale-tests (Files): Likewise.
+ * modules/fchdir-tests (Files): Likewise.
+ * modules/fcntl-tests (Files): Likewise.
+ * modules/fdopendir-tests (Files): Likewise.
+ * modules/fflush-tests (Files): Likewise.
+ * modules/flock-tests (Files): Likewise.
+ * modules/floorf-tests (Files): Likewise.
+ * modules/floorl-tests (Files): Likewise.
+ * modules/fnmatch-tests (Files): Likewise.
+ * modules/fopen-tests (Files): Likewise.
+ * modules/fprintf-posix-tests (Files): Likewise.
+ * modules/freopen-tests (Files): Likewise.
+ * modules/frexp-nolibm-tests (Files): Likewise.
+ * modules/frexp-tests (Files): Likewise.
+ * modules/frexpl-nolibm-tests (Files): Likewise.
+ * modules/frexpl-tests (Files): Likewise.
+ * modules/fseek-tests (Files): Likewise.
+ * modules/fseeko-tests (Files): Likewise.
+ * modules/fsync-tests (Files): Likewise.
+ * modules/ftell-tests (Files): Likewise.
+ * modules/ftello-tests (Files): Likewise.
+ * modules/futimens-tests (Files): Likewise.
+ * modules/getaddrinfo-tests (Files): Likewise.
+ * modules/getcwd-tests (Files): Likewise.
+ * modules/getdelim-tests (Files): Likewise.
+ * modules/getdtablesize-tests (Files): Likewise.
+ * modules/getgroups-tests (Files): Likewise.
+ * modules/gethostname-tests (Files): Likewise.
+ * modules/getline-tests (Files): Likewise.
+ * modules/getopt-posix-tests (Files): Likewise.
+ * modules/gettimeofday-tests (Files): Likewise.
+ * modules/glob-tests (Files): Likewise.
+ * modules/iconv-tests (Files): Likewise.
+ * modules/inet_ntop-tests (Files): Likewise.
+ * modules/inet_pton-tests (Files): Likewise.
+ * modules/isblank-tests (Files): Likewise.
+ * modules/lchown-tests (Files): Likewise.
+ * modules/ldexpl-tests (Files): Likewise.
+ * modules/link-tests (Files): Likewise.
+ * modules/linkat-tests (Files): Likewise.
+ * modules/lseek-tests (Files): Likewise.
+ * modules/lstat-tests (Files): Likewise.
+ * modules/mbrtowc-tests (Files): Likewise.
+ * modules/mbsinit-tests (Files): Likewise.
+ * modules/mbsnrtowcs-tests (Files): Likewise.
+ * modules/mbsrtowcs-tests (Files): Likewise.
+ * modules/memchr-tests (Files): Likewise.
+ * modules/memcmp-tests (Files): Likewise.
+ * modules/memmem-tests (Files): Likewise.
+ * modules/memrchr-tests (Files): Likewise.
+ * modules/mkdir-tests (Files): Likewise.
+ * modules/mkfifo-tests (Files): Likewise.
+ * modules/mkfifoat-tests (Files): Likewise.
+ * modules/mknod-tests (Files): Likewise.
+ * modules/nanosleep-tests (Files): Likewise.
+ * modules/nl_langinfo-tests (Files): Likewise.
+ * modules/obstack-printf-tests (Files): Likewise.
+ * modules/open-tests (Files): Likewise.
+ * modules/openat-tests (Files): Likewise.
+ * modules/perror-tests (Files): Likewise.
+ * modules/pipe2-tests (Files): Likewise.
+ * modules/poll-tests (Files): Likewise.
+ * modules/popen-tests (Files): Likewise.
+ * modules/posix_spawn-tests (Files): Likewise.
+ * modules/posix_spawnp-tests (Files): Likewise.
+ * modules/pread-tests (Files): Likewise.
+ * modules/printf-posix-tests (Files): Likewise.
+ * modules/pty-tests (Files): Likewise.
+ * modules/random_r-tests (Files): Likewise.
+ * modules/rawmemchr-tests (Files): Likewise.
+ * modules/readlink-tests (Files): Likewise.
+ * modules/remove-tests (Files): Likewise.
+ * modules/rename-tests (Files): Likewise.
+ * modules/renameat-tests (Files): Likewise.
+ * modules/rmdir-tests (Files): Likewise.
+ * modules/round-tests (Files): Likewise.
+ * modules/roundf-tests (Files): Likewise.
+ * modules/roundl-tests (Files): Likewise.
+ * modules/select-tests (Files): Likewise.
+ * modules/setenv-tests (Files): Likewise.
+ * modules/sigaction-tests (Files): Likewise.
+ * modules/sleep-tests (Files): Likewise.
+ * modules/snprintf-posix-tests (Files): Likewise.
+ * modules/snprintf-tests (Files): Likewise.
+ * modules/sprintf-posix-tests (Files): Likewise.
+ * modules/stat-tests (Files): Likewise.
+ * modules/strcasestr-tests (Files): Likewise.
+ * modules/strchrnul-tests (Files): Likewise.
+ * modules/strerror-tests (Files): Likewise.
+ * modules/strsignal-tests (Files): Likewise.
+ * modules/strstr-tests (Files): Likewise.
+ * modules/strtod-tests (Files): Likewise.
+ * modules/strverscmp-tests (Files): Likewise.
+ * modules/symlink-tests (Files): Likewise.
+ * modules/symlinkat-tests (Files): Likewise.
+ * modules/times-tests (Files): Likewise.
+ * modules/trunc-tests (Files): Likewise.
+ * modules/truncf-tests (Files): Likewise.
+ * modules/truncl-tests (Files): Likewise.
+ * modules/tsearch-tests (Files): Likewise.
+ * modules/uname-tests (Files): Likewise.
+ * modules/unlink-tests (Files): Likewise.
+ * modules/unsetenv-tests (Files): Likewise.
+ * modules/usleep-tests (Files): Likewise.
+ * modules/utimensat-tests (Files): Likewise.
+ * modules/vasprintf-tests (Files): Likewise.
+ * modules/vdprintf-posix-tests (Files): Likewise.
+ * modules/vfprintf-posix-tests (Files): Likewise.
+ * modules/vprintf-posix-tests (Files): Likewise.
+ * modules/vsnprintf-posix-tests (Files): Likewise.
+ * modules/vsnprintf-tests (Files): Likewise.
+ * modules/vsprintf-posix-tests (Files): Likewise.
+ * modules/wcrtomb-tests (Files): Likewise.
+ * modules/wcsnrtombs-tests (Files): Likewise.
+ * modules/wcsrtombs-tests (Files): Likewise.
+ * modules/wcwidth-tests (Files): Likewise.
+ * tests/test-isfinite.c (isfinite): Ensure macro declaration.
+ * tests/test-isinf.c (isinf): Likewise.
+ * tests/test-isnan.c (isnan): Likewise.
+ * tests/test-signbit.c (signbit): Likewise.
+ * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
+ declaration, either as macro or with correct signature.
+ (select): Ensure function under test is declared with correct
+ signature in correct header.
+ * tests/test-atexit.c (atexit): Likewise.
+ * tests/test-btowc.c (btowc): Likewise.
+ * tests/test-canonicalize-lgpl.c (realpath)
+ (canonicalize_file_name): Likewise.
+ * tests/test-ceilf1.c (ceilf): Likewise.
+ * tests/test-ceill.c (ceill): Likewise.
+ * tests/test-chown.c (chown): Likewise.
+ * tests/test-dprintf-posix.c (dprintf): Likewise.
+ * tests/test-dup2.c (dup2): Likewise.
+ * tests/test-dup3.c (dup3): Likewise.
+ * tests/test-duplocale.c (duplocale): Likewise.
+ * tests/test-fchdir.c (fchdir): Likewise.
+ * tests/test-fchownat.c (fchownat): Likewise.
+ * tests/test-fcntl.c (fcntl): Likewise.
+ * tests/test-fdopendir.c (fdopendir): Likewise.
+ * tests/test-fflush.c (fflush): Likewise.
+ * tests/test-flock.c (flock): Likewise.
+ * tests/test-floorf1.c (floorf): Likewise.
+ * tests/test-floorl.c (floorl): Likewise.
+ * tests/test-fnmatch.c (fnmatch): Likewise.
+ * tests/test-fopen.c (fopen): Likewise.
+ * tests/test-fprintf-posix.c (fprintf): Likewise.
+ * tests/test-freopen.c (freopen): Likewise.
+ * tests/test-frexp.c (frexp): Likewise.
+ * tests/test-frexpl.c (frexpl): Likewise.
+ * tests/test-fseek.c (fseek): Likewise.
+ * tests/test-fseeko.c (fseeko): Likewise.
+ * tests/test-fstatat.c (fstatat): Likewise.
+ * tests/test-fsync.c (fsync): Likewise.
+ * tests/test-ftell.c (ftell): Likewise.
+ * tests/test-ftello.c (ftello): Likewise.
+ * tests/test-futimens.c (futimens): Likewise.
+ * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
+ (gai_strerror): Likewise.
+ * tests/test-getcwd.c (getcwd): Likewise.
+ * tests/test-getdelim.c (getdelim): Likewise.
+ * tests/test-getdtablesize.c (getdtablesize): Likewise.
+ * tests/test-getgroups.c (getgroups): Likewise.
+ * tests/test-gethostname.c (gethostname): Likewise.
+ * tests/test-getline.c (getline): Likewise.
+ * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
+ Likewise.
+ * tests/test-gettimeofday.c (gettimeofday): Likewise.
+ * tests/test-glob.c (glob, globfree): Likewise.
+ * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
+ * tests/test-inet_ntop.c (inet_ntop): Likewise.
+ * tests/test-inet_pton.c (inet_pton): Likewise.
+ * tests/test-isblank.c (isblank): Likewise.
+ * tests/test-lchown.c (lchown): Likewise.
+ * tests/test-ldexpl.c (ldexpl): Likewise.
+ * tests/test-link.c (link): Likewise.
+ * tests/test-linkat.c (linkat): Likewise.
+ * tests/test-lseek.c (lseek): Likewise.
+ * tests/test-lstat.c (lstat): Likewise.
+ * tests/test-mbrtowc.c (mbrtowc): Likewise.
+ * tests/test-mbsinit.c (mbsinit): Likewise.
+ * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
+ * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
+ * tests/test-memchr.c (memchr): Likewise.
+ * tests/test-memcmp.c (memcmp): Likewise.
+ * tests/test-memmem.c (memmem): Likewise.
+ * tests/test-memrchr.c (memrchr): Likewise.
+ * tests/test-mkdir.c (mkdir): Likewise.
+ * tests/test-mkdirat.c (mkdirat): Likewise.
+ * tests/test-mkfifo.c (mkfifo): Likewise.
+ * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
+ * tests/test-mknod.c (mknod): Likewise.
+ * tests/test-nanosleep.c (nanosleep): Likewise.
+ * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
+ * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
+ Likewise.
+ * tests/test-open.c (open): Likewise.
+ * tests/test-openat.c (openat): Likewise.
+ * tests/test-perror.c (perror): Likewise.
+ * tests/test-pipe2.c (pipe2): Likewise.
+ * tests/test-poll.c (poll): Likewise.
+ * tests/test-popen.c (popen, pclose): Likewise.
+ * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
+ (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
+ (posix_spawnattr_setflags, posix_spawn_file_actions_init)
+ (posix_spawn_file_actions_destroy)
+ (posix_spawn_file_actions_addclose)
+ (posix_spawn_file_actions_addopen)
+ (posix_spawn_file_actions_adddup2): Likewise.
+ * tests/test-posix_spawn3.c (posix_spawn): Likewise.
+ * tests/test-pread.c (pread): Likewise.
+ * tests/test-printf-posix.c (printf): Likewise.
+ * tests/test-pty.c (openpty, forkpty): Likewise.
+ * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
+ (random_r): Likewise.
+ * tests/test-rawmemchr.c (rawmemchr): Likewise.
+ * tests/test-readlink.c (readlink): Likewise.
+ * tests/test-remove.c (remove): Likewise.
+ * tests/test-rename.c (rename): Likewise.
+ * tests/test-renameat.c (renameat): Likewise.
+ * tests/test-rmdir.c (rmdir): Likewise.
+ * tests/test-round1.c (round): Likewise.
+ * tests/test-roundf1.c (roundf): Likewise.
+ * tests/test-roundl.c (roundl): Likewise.
+ * tests/test-setenv.c (setenv): Likewise.
+ * tests/test-sigaction.c (sigaction): Likewise.
+ * tests/test-sleep.c (sleep): Likewise.
+ * tests/test-snprintf.c (snprintf): Likewise.
+ * tests/test-sprintf-posix.c (sprintf): Likewise.
+ * tests/test-stat.c (stat): Likewise.
+ * tests/test-stpncpy.c (stpncpy): Likewise.
+ * tests/test-strcasestr.c (strcasestr): Likewise.
+ * tests/test-strchrnul.c (strchrnul): Likewise.
+ * tests/test-strerror.c (strerror): Likewise.
+ * tests/test-strsignal.c (strsignal): Likewise.
+ * tests/test-strstr.c (strstr): Likewise.
+ * tests/test-strtod.c (strtod): Likewise.
+ * tests/test-strverscmp.c (strverscmp): Likewise.
+ * tests/test-symlink.c (symlink): Likewise.
+ * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
+ * tests/test-times.c (times): Likewise.
+ * tests/test-trunc1.c (trunc): Likewise.
+ * tests/test-truncf1.c (truncf): Likewise.
+ * tests/test-truncl.c (truncl): Likewise.
+ * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
+ Likewise.
+ * tests/test-uname.c (uname): Likewise.
+ * tests/test-unlink.c (unlink): Likewise.
+ * tests/test-unlinkat.c (unlinkat): Likewise.
+ * tests/test-unsetenv.c (unsetenv): Likewise.
+ * tests/test-usleep.c (usleep): Likewise.
+ * tests/test-utimensat.c (utimensat): Likewise.
+ * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
+ * tests/test-vdprintf-posix.c (vdprintf): Likewise.
+ * tests/test-vfprintf-posix.c (vfprintf): Likewise.
+ * tests/test-vprintf-posix.c (vprintf): Likewise.
+ * tests/test-vsnprintf.c (vsnprintf): Likewise.
+ * tests/test-vsprintf-posix.c (vsprintf): Likewise.
+ * tests/test-wcrtomb.c (wcrtomb): Likewise.
+ * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
+ * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
+ * tests/test-wcwidth.c (wcwidth): Likewise.
+
build: pull in conditional headers during GNULIB_POSIXCHECK
* lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
definitions from any conditionally-included headers.
Files:
+tests/signature.h
tests/test-atexit.sh
tests/test-atexit.c
Files:
+tests/signature.h
tests/test-btowc1.sh
tests/test-btowc2.sh
tests/test-btowc.c
Files:
+tests/signature.h
tests/test-canonicalize-lgpl.c
Depends-on:
Files:
+tests/signature.h
tests/test-ceilf1.c
tests/test-ceilf2.c
tests/nan.h
Files:
+tests/signature.h
tests/test-ceill.c
tests/nan.h
Files:
+tests/signature.h
tests/nap.h
tests/test-chown.h
tests/test-chown.c
Files:
+tests/signature.h
tests/test-dprintf-posix.sh
tests/test-dprintf-posix.c
tests/test-printf-posix.output
Files:
+tests/signature.h
tests/test-dup2.c
Depends-on:
Files:
+tests/signature.h
tests/test-dup3.c
Depends-on:
Files:
+tests/signature.h
tests/test-duplocale.c
Depends-on:
Files:
+tests/signature.h
tests/test-fchdir.c
Depends-on:
Files:
+tests/signature.h
tests/test-fcntl.c
Depends-on:
Files:
+tests/signature.h
tests/test-fdopendir.c
Depends-on:
Files:
+tests/signature.h
tests/test-fflush.c
tests/test-fflush2.sh
tests/test-fflush2.c
Files:
+tests/signature.h
tests/test-flock.c
Depends-on:
Files:
+tests/signature.h
tests/test-floorf1.c
tests/test-floorf2.c
tests/nan.h
Files:
+tests/signature.h
tests/test-floorl.c
tests/nan.h
Files:
+tests/signature.h
tests/test-fnmatch.c
Makefile.am:
Files:
+tests/signature.h
tests/test-fopen.h
tests/test-fopen.c
Files:
+tests/signature.h
tests/test-fprintf-posix.sh
tests/test-fprintf-posix.c
tests/test-fprintf-posix.h
Files:
+tests/signature.h
tests/test-freopen.c
Depends-on:
Files:
+tests/signature.h
tests/test-frexp.c
Depends-on:
Files:
+tests/signature.h
tests/test-frexp.c
tests/nan.h
Files:
+tests/signature.h
tests/test-frexpl.c
Depends-on:
Files:
+tests/signature.h
tests/test-frexpl.c
tests/nan.h
Files:
+tests/signature.h
tests/test-fseek.c
tests/test-fseek.sh
tests/test-fseek2.sh
Files:
+tests/signature.h
tests/test-fseeko.c
tests/test-fseeko.sh
tests/test-fseeko2.sh
Files:
+tests/signature.h
tests/test-fsync.c
Depends-on:
Files:
+tests/signature.h
tests/test-ftell.c
tests/test-ftell.sh
tests/test-ftell2.sh
Files:
+tests/signature.h
tests/test-ftello.c
tests/test-ftello.sh
tests/test-ftello2.sh
Files:
+tests/signature.h
tests/nap.h
tests/test-futimens.h
tests/test-utimens-common.h
Files:
+tests/signature.h
tests/test-getaddrinfo.c
Depends-on:
Files:
+tests/signature.h
tests/test-getcwd.c
Depends-on:
Files:
+tests/signature.h
tests/test-getdelim.c
Depends-on:
Files:
+tests/signature.h
tests/test-getdtablesize.c
Depends-on:
Files:
+tests/signature.h
tests/test-getgroups.c
Depends-on:
Files:
+tests/signature.h
tests/test-gethostname.c
Depends-on:
Files:
+tests/signature.h
tests/test-getline.c
Depends-on:
Files:
+tests/signature.h
tests/test-getopt.c
tests/test-getopt.h
tests/test-getopt_long.h
Files:
+tests/signature.h
tests/test-gettimeofday.c
Depends-on:
Files:
+tests/signature.h
tests/test-glob.c
Makefile.am:
Files:
+tests/signature.h
tests/test-iconv.c
Depends-on:
Files:
+tests/signature.h
tests/test-inet_ntop.c
Depends-on:
Files:
+tests/signature.h
tests/test-inet_pton.c
Depends-on:
Files:
+tests/signature.h
tests/test-isblank.c
Depends-on:
Files:
+tests/signature.h
tests/nap.h
tests/test-lchown.h
tests/test-lchown.c
Files:
+tests/signature.h
tests/test-ldexpl.c
tests/nan.h
Files:
+tests/signature.h
tests/test-link.h
tests/test-link.c
Files:
+tests/signature.h
tests/test-link.h
tests/test-linkat.c
Files:
+tests/signature.h
tests/test-lseek.c
tests/test-lseek.sh
Files:
+tests/signature.h
tests/test-lstat.h
tests/test-lstat.c
Files:
+tests/signature.h
tests/test-mbrtowc1.sh
tests/test-mbrtowc2.sh
tests/test-mbrtowc3.sh
Files:
+tests/signature.h
tests/test-mbsinit.sh
tests/test-mbsinit.c
m4/locale-fr.m4
Files:
+tests/signature.h
tests/test-mbsnrtowcs1.sh
tests/test-mbsnrtowcs2.sh
tests/test-mbsnrtowcs3.sh
Files:
+tests/signature.h
tests/test-mbsrtowcs1.sh
tests/test-mbsrtowcs2.sh
tests/test-mbsrtowcs3.sh
Files:
+tests/signature.h
tests/test-memchr.c
tests/zerosize-ptr.h
Files:
+tests/signature.h
tests/test-memcmp.c
tests/zerosize-ptr.h
m4/mmap-anon.m4
Files:
+tests/signature.h
tests/test-memmem.c
tests/zerosize-ptr.h
m4/mmap-anon.m4
Files:
+tests/signature.h
tests/test-memrchr.c
tests/zerosize-ptr.h
m4/mmap-anon.m4
Files:
+tests/signature.h
tests/test-mkdir.h
tests/test-mkdir.c
Files:
+tests/signature.h
tests/test-mkfifo.h
tests/test-mkfifo.c
Files:
+tests/signature.h
tests/test-mkfifo.h
tests/test-mkfifoat.c
Files:
+tests/signature.h
tests/test-mkfifo.h
tests/test-mknod.c
Files:
+tests/signature.h
tests/test-nanosleep.c
Depends-on:
Files:
+tests/signature.h
tests/test-nl_langinfo.sh
tests/test-nl_langinfo.c
m4/locale-fr.m4
Files:
+tests/signature.h
tests/test-obstack-printf.c
Depends-on:
Files:
+tests/signature.h
tests/test-open.h
tests/test-open.c
Files:
+tests/signature.h
tests/nap.h
tests/test-chown.h
tests/test-lchown.h
Files:
+tests/signature.h
tests/test-perror.c
tests/test-perror.sh
Files:
+tests/signature.h
tests/test-pipe2.c
Depends-on:
Files:
+tests/signature.h
tests/test-poll.c
Depends-on:
Files:
+tests/signature.h
tests/test-popen.h
tests/test-popen.c
Files:
+tests/signature.h
tests/test-posix_spawn3.c
Depends-on:
Files:
+tests/signature.h
tests/test-posix_spawn1.c
tests/test-posix_spawn1.in.sh
tests/test-posix_spawn2.c
Files:
+tests/signature.h
tests/test-pread.c
tests/test-pread.sh
tests/init.sh
Files:
+tests/signature.h
tests/test-printf-posix.sh
tests/test-printf-posix.c
tests/test-printf-posix.h
Files:
+tests/signature.h
tests/test-pty.c
Makefile.am:
Files:
+tests/signature.h
tests/test-random_r.c
Depends-on:
Files:
+tests/signature.h
tests/test-rawmemchr.c
Depends-on:
Files:
+tests/signature.h
tests/test-readlink.h
tests/test-readlink.c
Files:
+tests/signature.h
tests/test-remove.c
Depends-on:
Files:
+tests/signature.h
tests/test-rename.h
tests/test-rename.c
Files:
+tests/signature.h
tests/test-rename.h
tests/test-renameat.c
Files:
+tests/signature.h
tests/test-rmdir.h
tests/test-rmdir.c
Files:
+tests/signature.h
tests/test-round1.c
tests/test-round2.c
tests/nan.h
Files:
+tests/signature.h
tests/test-roundf1.c
tests/test-round2.c
tests/test-roundf2.c
Files:
+tests/signature.h
tests/test-roundl.c
tests/nan.h
Files:
+tests/signature.h
tests/test-select.c
tests/test-select-fd.c
tests/test-select-in.sh
Files:
+tests/signature.h
tests/test-setenv.c
Depends-on:
Files:
+tests/signature.h
tests/test-sigaction.c
Depends-on:
Files:
+tests/signature.h
tests/test-sleep.c
Depends-on:
Files:
+tests/signature.h
tests/test-snprintf-posix.c
tests/test-snprintf-posix.h
tests/test-snprintf.c
Files:
+tests/signature.h
tests/test-snprintf.c
Depends-on:
Files:
+tests/signature.h
tests/test-sprintf-posix.c
tests/test-sprintf-posix.h
tests/nan.h
Files:
+tests/signature.h
tests/test-stat.h
tests/test-stat.c
Files:
+tests/signature.h
tests/test-strcasestr.c
Depends-on:
Files:
+tests/signature.h
tests/test-strchrnul.c
Depends-on:
Files:
+tests/signature.h
tests/test-strerror.c
Depends-on:
Files:
+tests/signature.h
tests/test-strsignal.c
Depends-on:
Files:
+tests/signature.h
tests/test-strstr.c
tests/zerosize-ptr.h
m4/mmap-anon.m4
Files:
+tests/signature.h
tests/test-strtod.c
Depends-on:
Files:
+tests/signature.h
tests/test-strverscmp.c
Depends-on:
Files:
+tests/signature.h
tests/test-symlink.h
tests/test-symlink.c
Files:
+tests/signature.h
tests/test-readlink.h
tests/test-symlink.h
tests/test-symlinkat.c
Files:
+tests/signature.h
tests/test-times.c
Makefile.am:
Files:
+tests/signature.h
tests/test-trunc1.c
tests/test-trunc2.c
tests/nan.h
Files:
+tests/signature.h
tests/test-truncf1.c
tests/test-truncf2.c
tests/nan.h
Files:
+tests/signature.h
tests/test-truncl.c
tests/nan.h
Files:
+tests/signature.h
tests/test-tsearch.sh
tests/test-tsearch.c
Files:
+tests/signature.h
tests/test-uname.c
Depends-on:
Files:
+tests/signature.h
tests/test-unlink.h
tests/test-unlink.c
Files:
+tests/signature.h
tests/test-unsetenv.c
Depends-on:
Files:
+tests/signature.h
tests/test-usleep.c
Depends-on:
Files:
+tests/signature.h
tests/nap.h
tests/test-lutimens.h
tests/test-utimens.h
Files:
+tests/signature.h
tests/test-vasprintf.c
Depends-on:
Files:
+tests/signature.h
tests/test-vdprintf-posix.sh
tests/test-vdprintf-posix.c
tests/test-fprintf-posix.h
Files:
+tests/signature.h
tests/test-vfprintf-posix.sh
tests/test-vfprintf-posix.c
tests/test-fprintf-posix.h
Files:
+tests/signature.h
tests/test-vprintf-posix.sh
tests/test-vprintf-posix.c
tests/test-printf-posix.h
Files:
+tests/signature.h
tests/test-vsnprintf-posix.c
tests/test-snprintf-posix.h
tests/test-vsnprintf.c
Files:
+tests/signature.h
tests/test-vsnprintf.c
Depends-on:
Files:
+tests/signature.h
tests/test-vsprintf-posix.c
tests/test-sprintf-posix.h
tests/nan.h
Files:
+tests/signature.h
tests/test-wcrtomb.sh
tests/test-wcrtomb.c
m4/locale-fr.m4
Files:
+tests/signature.h
tests/test-wcsnrtombs1.sh
tests/test-wcsnrtombs2.sh
tests/test-wcsnrtombs3.sh
Files:
+tests/signature.h
tests/test-wcsrtombs1.sh
tests/test-wcsrtombs2.sh
tests/test-wcsrtombs3.sh
Files:
+tests/signature.h
tests/test-wcwidth.c
Depends-on:
--- /dev/null
+/* Macro for checking that a function declaration is compliant.
+ Copyright (C) 2009 Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+#ifndef SIGNATURE_CHECK
+
+/* Check that the function FN takes the specified arguments ARGS with
+ a return type of RET. This header is designed to be included after
+ <config.h> and the one system header that is supposed to contain
+ the function being checked, but prior to any other system headers
+ that are necessary for the unit test. Therefore, this file does
+ not include any system headers, nor reference anything outside of
+ the macro arguments. For an example, if foo.h should provide:
+
+ extern int foo (char, float);
+
+ then the unit test named test-foo.c would start out with:
+
+ #include <config.h>
+ #include <foo.h>
+ #include "signature.h"
+ SIGNATURE_CHECK (foo, int, (char, float));
+ #include <other.h>
+ ...
+*/
+# define SIGNATURE_CHECK(fn, ret, args) \
+ SIGNATURE_CHECK1 (fn, ret, args, __LINE__)
+
+/* Necessary to allow multiple SIGNATURE_CHECK lines in a unit test.
+ Note that the checks must not occupy the same line. */
+# define SIGNATURE_CHECK1(fn, ret, args, id) \
+ SIGNATURE_CHECK2 (fn, ret, args, id) /* macroexpand line */
+# define SIGNATURE_CHECK2(fn, ret, args, id) \
+ static ret (* _GL_UNUSED signature_check ## id) args = fn
+
+#endif /* SIGNATURE_CHECK */
/* Test of execution of program termination handlers.
- Copyright (C) 2007 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <config.h>
#include <stdlib.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (atexit, int, (void (*) (void)));
+
#include <unistd.h>
#define TEMPFILE "t-atexit.tmp"
/* 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
#include <wchar.h>
+#include "signature.h"
+SIGNATURE_CHECK (btowc, wint_t, (int));
+
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
+#include "signature.h"
+SIGNATURE_CHECK (realpath, char *, (const char *, char *));
+SIGNATURE_CHECK (canonicalize_file_name, char *, (const char *));
+
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
/* 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
#include <math.h>
+#include "signature.h"
+SIGNATURE_CHECK (ceilf, float, (float));
+
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
+#include "signature.h"
+SIGNATURE_CHECK (ceill, long double, (long double));
+
#include <float.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (chown, int, (char const *, uid_t, gid_t));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
+#include "signature.h"
+SIGNATURE_CHECK (dprintf, int, (int, const char *, ...));
+
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (dup2, int, (int, int));
+
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (dup3, int, (int, int, int));
+
#include <errno.h>
#include <fcntl.h>
#include <stdbool.h>
#if HAVE_DUPLOCALE
+#include "signature.h"
+SIGNATURE_CHECK (duplocale, locale_t, (locale_t));
+
#include <langinfo.h>
#include <monetary.h>
#include <stdio.h>
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (fchdir, int, (int));
+
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (fchownat, int, (int, char const *, uid_t, gid_t, int));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
/* Specification. */
#include <fcntl.h>
+#include "signature.h"
+SIGNATURE_CHECK (fcntl, int, (int, int, ...));
+
/* Helpers. */
#include <errno.h>
#include <stdarg.h>
#include <dirent.h>
+#include "signature.h"
+SIGNATURE_CHECK (fdopendir, DIR *, (int));
+
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <config.h>
#include <stdio.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (fflush, int, (FILE *));
+
#include <unistd.h>
int
#include <sys/file.h>
+#include "signature.h"
+SIGNATURE_CHECK (flock, int, (int, int));
+
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
/* 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
#include <math.h>
+#include "signature.h"
+SIGNATURE_CHECK (floorf, float, (float));
+
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
+#include "signature.h"
+SIGNATURE_CHECK (floorl, long double, (long double));
+
#include <float.h>
#include <stdio.h>
#include <stdlib.h>
#include <fnmatch.h>
+#include "signature.h"
+SIGNATURE_CHECK (fnmatch, int, (char const *, char const *, int));
+
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
+#include "signature.h"
+SIGNATURE_CHECK (fopen, FILE *, (char const *, char const *));
+
#define BASE "test-fopen.t"
#include "test-fopen.h"
/* 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
#include <stdio.h>
+#include "signature.h"
+SIGNATURE_CHECK (fprintf, int, (FILE *, char const *, ...));
+
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
/* Test of opening a file stream.
- Copyright (C) 2007-2008 Free Software Foundation, Inc.
+ Copyright (C) 2007-2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <config.h>
#include <stdio.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (freopen, FILE *, (char const *, char const *, FILE *));
+
#include <stdlib.h>
#define ASSERT(expr) \
/* 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
#include <math.h>
+#include "signature.h"
+SIGNATURE_CHECK (frexp, double, (double, int *));
+
#include <float.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
+#include "signature.h"
+SIGNATURE_CHECK (frexpl, long double, (long double, int *));
+
#include <float.h>
#include <stdio.h>
#include <stdlib.h>
#include <config.h>
#include <stdio.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (fseek, int, (FILE *, long, int));
+
#include <stdlib.h>
#define ASSERT(expr) \
#endif
#include <stdio.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (fseeko, int, (FILE *, off_t, int));
+
#include <stdlib.h>
#define ASSERT(expr) \
#include <sys/stat.h>
+#include "signature.h"
+SIGNATURE_CHECK (fstatat, int, (int, char const *, struct stat *, int));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (fsync, int, (int));
+
#include <errno.h>
#include <stdio.h>
#include <fcntl.h>
#include <config.h>
#include <stdio.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (ftell, long, (FILE *));
+
#include <stdlib.h>
#include "binary-io.h"
#include <config.h>
#include <stdio.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (ftello, off_t, (FILE *));
+
#include <stdlib.h>
#include "binary-io.h"
#include <sys/stat.h>
+#include "signature.h"
+SIGNATURE_CHECK (futimens, int, (int, struct timespec const[2]));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
/* Written by Simon Josefsson. */
#include <config.h>
+
#include <netdb.h>
+#include "signature.h"
+SIGNATURE_CHECK (freeaddrinfo, void, (struct addrinfo *));
+SIGNATURE_CHECK (gai_strerror, char const *, (int));
+SIGNATURE_CHECK (getaddrinfo, int, (char const *, char const *,
+ struct addrinfo const *,
+ struct addrinfo **));
+
#include <arpa/inet.h>
#include <errno.h>
#include <netinet/in.h>
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (getcwd, char *, (char *, size_t));
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <config.h>
#include <stdio.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (getdelim, ssize_t, (char **, size_t *, int, FILE *));
+
#include <stdlib.h>
#include <string.h>
/* 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
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (getdtablesize, int, (void));
+
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (getgroups, int, (int, gid_t[]));
+
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
/* Get gethostname() declaration. */
#include <unistd.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (gethostname, int, (char *, size_t));
+
/* Get HOST_NAME_MAX definition. */
#include <limits.h>
#include <config.h>
#include <stdio.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (getline, ssize_t, (char **, size_t *, FILE *));
+
#include <stdlib.h>
#include <string.h>
#if GNULIB_GETOPT_GNU
# include <getopt.h>
+
+# ifndef __getopt_argv_const
+# define __getopt_argv_const const
+# endif
+# include "signature.h"
+SIGNATURE_CHECK (getopt_long, int, (int, char *__getopt_argv_const *,
+ char const *, struct option const *,
+ int *));
+SIGNATURE_CHECK (getopt_long_only, int, (int, char *__getopt_argv_const *,
+ char const *, struct option const *,
+ int *));
+
#endif
+
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (getopt, int, (int, char * const[], char const *));
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <config.h>
#include <sys/time.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (gettimeofday, int, (struct timeval *, void *));
+
#include <time.h>
#include <stdio.h>
#include <glob.h>
+#include "signature.h"
+SIGNATURE_CHECK (glob, int, (char const *, int, int (*) (char const *, int),
+ glob_t *));
+SIGNATURE_CHECK (globfree, void, (glob_t *));
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* Test of character set conversion.
- Copyright (C) 2007-2008 Free Software Foundation, Inc.
+ Copyright (C) 2007-2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#if HAVE_ICONV
# include <iconv.h>
+
+# ifndef ICONV_CONST
+# define ICONV_CONST /* empty */
+# endif
+
+#include "signature.h"
+SIGNATURE_CHECK (iconv, size_t, (iconv_t, ICONV_CONST char **, size_t *,
+ char **, size_t *));
+SIGNATURE_CHECK (iconv_close, int, (iconv_t x));
+SIGNATURE_CHECK (iconv_open, iconv_t, (char const *, char const *));
+
#endif
#include <errno.h>
#include <arpa/inet.h>
+#include "signature.h"
+SIGNATURE_CHECK (inet_ntop, char const *, (int, void const *, char *,
+ socklen_t));
+
#include <netinet/in.h>
#include <sys/socket.h>
#include <stdio.h>
#include <arpa/inet.h>
+#include "signature.h"
+SIGNATURE_CHECK (inet_pton, int, (int, const char *, void *));
+
#include <netinet/in.h>
#include <sys/socket.h>
#include <stdio.h>
#include <ctype.h>
+#include "signature.h"
+SIGNATURE_CHECK (isblank, int, (int));
+
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
+/* isfinite must be a macro. */
+#ifndef isfinite
+# error missing declaration
+#endif
+
#include <float.h>
#include <limits.h>
#include <stdio.h>
#include <math.h>
+/* isinf must be a macro. */
+#ifndef isinf
+# error missing declaration
+#endif
+
#include <float.h>
#include <limits.h>
#include <stdio.h>
#include <math.h>
+/* isnan must be a macro. */
+#ifndef isnan
+# error missing declaration
+#endif
+
#include <float.h>
#include <limits.h>
#include <stdio.h>
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (lchown, int, (char const *, uid_t, gid_t));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
#include <math.h>
+#include "signature.h"
+SIGNATURE_CHECK (ldexpl, long double, (long double, int));
+
#include <float.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (link, int, (char const *, char const *));
+
#include <errno.h>
#include <fcntl.h>
#include <stdbool.h>
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (linkat, int, (int, char const *, int, char const *, int));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
/* Test of lseek() function.
- Copyright (C) 2007-2008 Free Software Foundation, Inc.
+ Copyright (C) 2007-2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <config.h>
+#include <unistd.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (lseek, off_t, (int, off_t, int));
+
#include <errno.h>
#include <stdio.h>
-#include <unistd.h>
#define ASSERT(expr) \
do \
#include <sys/stat.h>
+/* Caution: lstat may be a function-like macro. Although this
+ signature check must pass, it may be the signature of the real (and
+ broken) lstat rather than rpl_lstat. Most code should not use the
+ address of lstat. */
+#include "signature.h"
+SIGNATURE_CHECK (lstat, int, (char const *, struct stat *));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
/* Test of conversion of multibyte character to wide character.
- Copyright (C) 2008 Free Software Foundation, Inc.
+ Copyright (C) 2008, 2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <wchar.h>
+#include "signature.h"
+SIGNATURE_CHECK (mbrtowc, size_t, (wchar_t *, char const *, size_t,
+ mbstate_t *));
+
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
/* 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
#include <wchar.h>
+#include "signature.h"
+SIGNATURE_CHECK (mbsinit, int, (const mbstate_t *));
+
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
/* Test of conversion of string to wide string.
- Copyright (C) 2008 Free Software Foundation, Inc.
+ Copyright (C) 2008, 2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <wchar.h>
+#include "signature.h"
+SIGNATURE_CHECK (mbsnrtowcs, size_t, (wchar_t *, char const **, size_t, size_t,
+ mbstate_t *));
+
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
/* Test of conversion of string to wide string.
- Copyright (C) 2008 Free Software Foundation, Inc.
+ Copyright (C) 2008, 2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <wchar.h>
+#include "signature.h"
+SIGNATURE_CHECK (mbsrtowcs, size_t, (wchar_t *, char const **, size_t,
+ mbstate_t *));
+
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "signature.h"
+SIGNATURE_CHECK (memchr, void *, (void const *, int, size_t));
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "signature.h"
+SIGNATURE_CHECK (memcmp, int, (void const *, void const *, size_t));
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "signature.h"
+SIGNATURE_CHECK (memmem, void *, (void const *, size_t, void const *, size_t));
+
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "signature.h"
+SIGNATURE_CHECK (memrchr, void *, (void const *, int, size_t));
+
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
+#include "signature.h"
+SIGNATURE_CHECK (mkdir, int, (char const *, mode_t));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
#include <sys/stat.h>
+#include "signature.h"
+SIGNATURE_CHECK (mkdirat, int, (int, char const *, mode_t));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
#include <sys/stat.h>
+#include "signature.h"
+SIGNATURE_CHECK (mkfifo, int, (char const *, mode_t));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
#include <sys/stat.h>
+#include "signature.h"
+SIGNATURE_CHECK (mkfifoat, int, (int, char const *, mode_t));
+SIGNATURE_CHECK (mknodat, int, (int, char const *, mode_t, dev_t));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
#include <sys/stat.h>
+#include "signature.h"
+SIGNATURE_CHECK (mknod, int, (char const *, mode_t, dev_t));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
#include <time.h>
+#include "signature.h"
+SIGNATURE_CHECK (nanosleep, int, (struct timespec const *, struct timepec *));
+
#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <langinfo.h>
+#include "signature.h"
+SIGNATURE_CHECK (nl_langinfo, char *, (nl_item));
+
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
+#include "signature.h"
+SIGNATURE_CHECK (obstack_printf, int, (struct obstack *, char const *, ...));
+SIGNATURE_CHECK (obstack_vprintf, int, (struct obstack *, char const *,
+ va_list));
+
#include "obstack.h"
#include "xalloc.h"
#include <fcntl.h>
+#include "signature.h"
+SIGNATURE_CHECK (open, int, (char const *, int, ...));
+
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <fcntl.h>
+#include "signature.h"
+SIGNATURE_CHECK (openat, int, (int, char const *, int, ...));
+
#include <errno.h>
#include <stdarg.h>
#include <stdbool.h>
/* 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
#include <stdio.h>
+#include "signature.h"
+SIGNATURE_CHECK (perror, void, (char const *));
+
#include <errno.h>
int
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (pipe2, int, (int[2], int));
+
#include <fcntl.h>
#include <stdbool.h>
#include <config.h>
+#include <poll.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (poll, int, (struct pollfd[], nfds_t, int));
+
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <poll.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdbool.h>
/* Specification. */
#include <stdio.h>
+#include "signature.h"
+SIGNATURE_CHECK (popen, FILE *, (char const *, char const *));
+SIGNATURE_CHECK (pclose, int, (FILE *));
+
#include "test-popen.h"
#include <spawn.h>
+#include "signature.h"
+SIGNATURE_CHECK (posix_spawnp, int, (pid_t *, char const *,
+ posix_spawn_file_actions_t const *,
+ posix_spawnattr_t const *,
+ char *const[], char *const[]));
+SIGNATURE_CHECK (posix_spawnattr_init, int, (posix_spawnattr_t *));
+SIGNATURE_CHECK (posix_spawnattr_destroy, int, (posix_spawnattr_t *));
+SIGNATURE_CHECK (posix_spawnattr_setsigmask, int, (posix_spawnattr_t *,
+ sigset_t const *));
+SIGNATURE_CHECK (posix_spawnattr_setflags, int, (posix_spawnattr_t *, short));
+SIGNATURE_CHECK (posix_spawn_file_actions_init, int,
+ (posix_spawn_file_actions_t *));
+SIGNATURE_CHECK (posix_spawn_file_actions_destroy, int,
+ (posix_spawn_file_actions_t *));
+SIGNATURE_CHECK (posix_spawn_file_actions_addclose, int,
+ (posix_spawn_file_actions_t *, int));
+SIGNATURE_CHECK (posix_spawn_file_actions_addopen, int,
+ (posix_spawn_file_actions_t *, int, char const *, int,
+ mode_t));
+SIGNATURE_CHECK (posix_spawn_file_actions_adddup2, int,
+ (posix_spawn_file_actions_t *, int, int));
+
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <spawn.h>
+#include "signature.h"
+SIGNATURE_CHECK (posix_spawn, int, (pid_t *, char const *,
+ posix_spawn_file_actions_t const *,
+ posix_spawnattr_t const *,
+ char *const[], char *const[]));
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (pread, ssize_t, (int, void *, size_t, off_t));
+
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
/* 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
#include <stdio.h>
+#include "signature.h"
+SIGNATURE_CHECK (printf, int, (char const *, ...));
+
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <pty.h>
+#include "signature.h"
+SIGNATURE_CHECK (forkpty, int, (int *, char *, struct termios *,
+ struct winsize *));
+SIGNATURE_CHECK (openpty, int, (int *, int *, char *, struct termios *,
+ struct winsize *));
+
#include <stdio.h>
int
#include <stdlib.h>
+#include "signature.h"
+SIGNATURE_CHECK (srandom_r, int, (unsigned int, struct random_data *));
+SIGNATURE_CHECK (initstate_r, int, (unsigned int, char *, size_t,
+ struct random_data *));
+SIGNATURE_CHECK (setstate_r, int, (char *, struct random_data *));
+SIGNATURE_CHECK (random_r, int, (struct random_data *, int32_t *));
+
#include <stdio.h>
#include <time.h>
#include <string.h>
+#include "signature.h"
+SIGNATURE_CHECK (rawmemchr, void *, (void const *, int));
+
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (readlink, ssize_t, (char const *, char *, size_t));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
+#include "signature.h"
+SIGNATURE_CHECK (remove, int, (char const *));
+
#include <fcntl.h>
#include <errno.h>
#include <stdlib.h>
#include <config.h>
-#include <unistd.h>
+#include <stdio.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (rename, int, (char const *, char const *));
#include <errno.h>
#include <fcntl.h>
#include <stdbool.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <stdio.h>
+#include "signature.h"
+SIGNATURE_CHECK (renameat, int, (int, char const *, int, char const *));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (rmdir, int, (char const *));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
/* 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
#include <math.h>
+#include "signature.h"
+SIGNATURE_CHECK (round, double, (double));
+
#include <stdio.h>
#include <stdlib.h>
/* 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
#include <math.h>
+#include "signature.h"
+SIGNATURE_CHECK (roundf, float, (float));
+
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
+#include "signature.h"
+SIGNATURE_CHECK (roundl, long double, (long double));
+
#include <float.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/select.h>
+#include "signature.h"
+SIGNATURE_CHECK (select, int, (int, fd_set *, fd_set *, fd_set *,
+ struct timeval *));
+/* The following may be macros without underlying functions, so only
+ check signature if they are not macros. */
+#ifndef FD_CLR
+SIGNATURE_CHECK (FD_CLR, void, (int, fd_set *));
+#endif
+#ifndef FD_ISSET
+SIGNATURE_CHECK (FD_ISSET, void, (int, fd_set *));
+#endif
+#ifndef FD_SET
+SIGNATURE_CHECK (FD_SET, int, (int, fd_set *));
+#endif
+#ifndef FD_ZERO
+SIGNATURE_CHECK (FD_ZERO, void, (fd_set *));
+#endif
+
#include <stdio.h>
#include <string.h>
#include <netinet/in.h>
#include <stdlib.h>
+#include "signature.h"
+SIGNATURE_CHECK (setenv, int, (char const *, char const *, int));
+
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <signal.h>
+#include "signature.h"
+SIGNATURE_CHECK (sigaction, int, (int, struct sigaction const *,
+ struct sigaction *));
+
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
+/* signbit must be a macro. */
+#ifndef signbit
+# error missing declaration
+#endif
+
#include <float.h>
#include <limits.h>
#include <stdio.h>
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (sleep, unsigned int, (unsigned int));
+
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
/* 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
#include <stdio.h>
+#include "signature.h"
+SIGNATURE_CHECK (snprintf, int, (char *, size_t, char const *, ...));
+
#include <stdlib.h>
#include <string.h>
/* 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
#include <stdio.h>
+#include "signature.h"
+SIGNATURE_CHECK (sprintf, int, (char *, char const *, ...));
+
#include <float.h>
#include <stddef.h>
#include <stdint.h>
#include <sys/stat.h>
+/* Caution: stat may be a function-like macro. Although this
+ signature check must pass, it may be the signature of the real (and
+ broken) stat rather than rpl_stat. Most code should not use the
+ address of stat. */
+#include "signature.h"
+SIGNATURE_CHECK (stat, int, (char const *, struct stat *));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
/* Test the system defined function stpncpy().
- Copyright (C) 2003, 2008 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2008, 2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <config.h>
#include <string.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (stpncpy, char *, (char *, char const *, size_t));
+
#include <stdio.h>
int
/* 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
#include <string.h>
+#include "signature.h"
+SIGNATURE_CHECK (strcasestr, char *, (char const *, char const *));
+
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "signature.h"
+SIGNATURE_CHECK (strchrnul, char *, (char const *, int));
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "signature.h"
+SIGNATURE_CHECK (strerror, char *, (int));
+
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "signature.h"
+SIGNATURE_CHECK (strsignal, char *, (int));
+
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "signature.h"
+SIGNATURE_CHECK (strstr, char *, (char const *, char const *));
+
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
+#include "signature.h"
+SIGNATURE_CHECK (strtod, double, (char const *, char **));
+
#include <errno.h>
#include <float.h>
#include <math.h>
#include <string.h>
+#include "signature.h"
+SIGNATURE_CHECK (strverscmp, int, (const char *, const char *));
+
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (symlink, int, (char const *, char const *));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (symlinkat, int, (char const *, int, char const *));
+SIGNATURE_CHECK (readlinkat, ssize_t, (int, char const *, char *, size_t));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
/* Test of times function.
- Copyright (C) 2008 Free Software Foundation, Inc.
+ Copyright (C) 2008, 2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <config.h>
#include <sys/times.h>
+
+#include "signature.h"
+SIGNATURE_CHECK (times, clock_t, (struct tms *));
+
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
/* 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
#include <math.h>
+#include "signature.h"
+SIGNATURE_CHECK (trunc, double, (double));
+
#include <stdio.h>
#include <stdlib.h>
/* 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
#include <math.h>
+#include "signature.h"
+SIGNATURE_CHECK (truncf, float, (float));
+
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
+#include "signature.h"
+SIGNATURE_CHECK (truncl, long double, (long double));
+
#include <float.h>
#include <stdio.h>
#include <stdlib.h>
/* Test program for tsearch et al.
- Copyright (C) 1997, 2000-2001, 2007-2008 Free Software Foundation, Inc.
+ Copyright (C) 1997, 2000-2001, 2007-2009 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software: you can redistribute it and/or
#include <search.h>
+#include "signature.h"
+SIGNATURE_CHECK (tdelete, void *, (void const *, void **,
+ int (*) (void const *, void const *)));
+SIGNATURE_CHECK (tfind, void *, (void const *, void * const *,
+ int (*) (void const *, void const *)));
+SIGNATURE_CHECK (tsearch, void *, (void const *, void **,
+ int (*) (void const *, void const *)));
+SIGNATURE_CHECK (twalk, void, (void const *,
+ void (*) (void const *, VISIT, int)));
+
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/utsname.h>
+#include "signature.h"
+SIGNATURE_CHECK (uname, int, (struct utsname *));
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (unlink, int, (char const *));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (unlinkat, int, (int, char const *, int));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
#include <stdlib.h>
+#include "signature.h"
+SIGNATURE_CHECK (unsetenv, int, (char const *));
+
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (usleep, int, (useconds_t));
+
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/stat.h>
+#include "signature.h"
+SIGNATURE_CHECK (utimensat, int, (int, char const *, struct timespec const[2],
+ int));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
/* Test of vasprintf() and asprintf() functions.
- Copyright (C) 2007-2008 Free Software Foundation, Inc.
+ Copyright (C) 2007-2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <stdio.h>
+#include "signature.h"
+SIGNATURE_CHECK (asprintf, int, (char **, char const *, ...));
+SIGNATURE_CHECK (vasprintf, int, (char **, char const *, va_list));
+
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
+#include "signature.h"
+SIGNATURE_CHECK (vdprintf, int, (int, char const *, va_list));
+
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
/* 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
#include <stdio.h>
+#include "signature.h"
+SIGNATURE_CHECK (vfprintf, int, (FILE *, char const *, va_list));
+
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
/* 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
#include <stdio.h>
+#include "signature.h"
+SIGNATURE_CHECK (vprintf, int, (char const *, va_list));
+
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
/* 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
#include <stdio.h>
+#include "signature.h"
+SIGNATURE_CHECK (vsnprintf, int, (char *, size_t, char const *, va_list));
+
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
/* 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
#include <stdio.h>
+#include "signature.h"
+SIGNATURE_CHECK (vsprintf, int, (char *, char const *, va_list));
+
#include <float.h>
#include <stdarg.h>
#include <stddef.h>
/* 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
#include <wchar.h>
+#include "signature.h"
+SIGNATURE_CHECK (wcrtomb, size_t, (char *, wchar_t, mbstate_t *));
+
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
/* Test of conversion of wide string to string.
- Copyright (C) 2008 Free Software Foundation, Inc.
+ Copyright (C) 2008, 2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <wchar.h>
+#include "signature.h"
+SIGNATURE_CHECK (wcsnrtombs, size_t, (char *, wchar_t const **, size_t, size_t,
+ mbstate_t *));
+
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
/* Test of conversion of wide string to string.
- Copyright (C) 2008 Free Software Foundation, Inc.
+ Copyright (C) 2008, 2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <wchar.h>
+#include "signature.h"
+SIGNATURE_CHECK (wcsrtombs, size_t, (char *, wchar_t const **, size_t,
+ mbstate_t *));
+
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
/* 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
#include <wchar.h>
+#include "signature.h"
+SIGNATURE_CHECK (wcwidth, int, (wchar_t));
+
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>