diff options
author | Eric Blake <ebb9@byu.net> | 2009-09-05 11:49:15 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-09-05 12:42:33 -0600 |
commit | ac181274675d799dc733b278418b2caa530e4c4d (patch) | |
tree | 76b1eb91d69de0b876f2806092a4760e44de9266 /modules | |
parent | a11b390609cf4b3315c4752a764148494b0a3b44 (diff) | |
download | gnulib-ac181274675d799dc733b278418b2caa530e4c4d.tar.gz |
symlinkat: new module
* modules/symlinkat: New file.
* lib/symlinkat.c: Likewise.
* m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
* modules/unistd (Makefile.am): Use them.
* lib/unistd.in.h (symlinkat, readlinkat): Declare them.
(faccessat) [GNULIB_POSIXCHECK]: Fix typo.
* lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
* MODULES.html.sh (File system functions): Mention module.
* doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
* doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
* modules/symlinkat-tests: New test.
* tests/test-symlinkat.c: Likewise.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/symlinkat | 29 | ||||
-rw-r--r-- | modules/symlinkat-tests | 11 | ||||
-rw-r--r-- | modules/unistd | 3 |
3 files changed, 43 insertions, 0 deletions
diff --git a/modules/symlinkat b/modules/symlinkat new file mode 100644 index 0000000000..7f8506fb57 --- /dev/null +++ b/modules/symlinkat @@ -0,0 +1,29 @@ +Description: +symlinkat() and readlinkat(): manage symlinks relative to a directory + +Files: +lib/symlinkat.c +m4/symlinkat.m4 + +Depends-on: +extensions +fcntl-h +openat +readlink +unistd + +configure.ac: +gl_FUNC_SYMLINKAT +gl_UNISTD_MODULE_INDICATOR([symlinkat]) + +Makefile.am: + +Include: +<fcntl.h> +<unistd.h> + +License: +GPL + +Maintainer: +Jim Meyering, Eric Blake diff --git a/modules/symlinkat-tests b/modules/symlinkat-tests new file mode 100644 index 0000000000..9150568370 --- /dev/null +++ b/modules/symlinkat-tests @@ -0,0 +1,11 @@ +Files: +tests/test-symlinkat.c + +Depends-on: + +configure.ac: + +Makefile.am: +TESTS += test-symlinkat +check_PROGRAMS += test-symlinkat +test_symlinkat_LDADD = $(LDADD) @LIBINTL@ diff --git a/modules/unistd b/modules/unistd index b48b4b954b..95dab91dd5 100644 --- a/modules/unistd +++ b/modules/unistd @@ -50,6 +50,7 @@ unistd.h: unistd.in.h -e 's|@''GNULIB_PIPE2''@|$(GNULIB_PIPE2)|g' \ -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \ -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \ + -e 's|@''GNULIB_SYMLINKAT''@|$(GNULIB_SYMLINKAT)|g' \ -e 's|@''GNULIB_UNISTD_H_GETOPT''@|$(GNULIB_UNISTD_H_GETOPT)|g' \ -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \ -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \ @@ -68,7 +69,9 @@ unistd.h: unistd.in.h -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \ -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \ -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \ + -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \ -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \ + -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \ -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \ -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \ -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \ |