From c4194dcc56767f8f96bc005088b292f519b13910 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 8 Sep 2009 20:47:40 -0600 Subject: linkat: new module * modules/linkat: New file. * lib/at-func2.c (at_func2): Likewise. * lib/linkat.c (linkat): Likewise. * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise. * lib/openat-priv.h (at_func2): Add declaration. * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses. * modules/unistd (Makefile.am): Substitute them. * lib/unistd.in.h (linkat): Declare it. * MODULES.html.sh (systems lacking POSIX:2008): Mention module. * doc/posix-functions/linkat.texi (linkat): Likewise. * doc/posix-functions/link.texi (link): Tweak wording. * tests/test-link.c (main): Move guts... * tests/test-link.h (test_link): ...into new file. * modules/linkat-tests: New test. * tests/test-linkat.c: Likewise. * modules/link-tests (Files): Ship new file. (Depends-on): Add stdbool. Signed-off-by: Eric Blake --- modules/linkat-tests | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 modules/linkat-tests (limited to 'modules/linkat-tests') diff --git a/modules/linkat-tests b/modules/linkat-tests new file mode 100644 index 0000000000..9fb6505201 --- /dev/null +++ b/modules/linkat-tests @@ -0,0 +1,16 @@ +Files: +tests/test-linkat.c + +Depends-on: +areadlink-with-size +filenamecat +progname +same-inode +xgetcwd + +configure.ac: + +Makefile.am: +TESTS += test-linkat +check_PROGRAMS += test-linkat +test_linkat_LDADD = $(LDADD) @LIBINTL@ -- cgit v1.2.1