linkat: new module
authorEric Blake <ebb9@byu.net>
Wed, 9 Sep 2009 02:47:40 +0000 (20:47 -0600)
committerEric Blake <ebb9@byu.net>
Thu, 24 Sep 2009 03:04:27 +0000 (21:04 -0600)
commitc4194dcc56767f8f96bc005088b292f519b13910
treee5d90eb9b6ce3dfb8cb85b2957e6f24a0e60554e
parentc6dc1761b3e928d2de0a6116cd933b3147ffd7d8
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 <ebb9@byu.net>
17 files changed:
ChangeLog
MODULES.html.sh
doc/posix-functions/link.texi
doc/posix-functions/linkat.texi
lib/at-func2.c [new file with mode: 0644]
lib/linkat.c [new file with mode: 0644]
lib/openat-priv.h
lib/unistd.in.h
m4/linkat.m4 [new file with mode: 0644]
m4/unistd_h.m4
modules/link-tests
modules/linkat [new file with mode: 0644]
modules/linkat-tests [new file with mode: 0644]
modules/unistd
tests/test-link.c
tests/test-link.h [new file with mode: 0644]
tests/test-linkat.c [new file with mode: 0644]