Hash :
9d145640
Author :
Date :
2009-10-07T10:15:33
areadlinkat: new module * lib/at-func.c (FUNC_FAIL): New define. (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1. * modules/areadlinkat: New module. * lib/linkat.c (areadlinkat): Move... * lib/areadlinkat.c (areadlinkat): ...to new file. * lib/areadlink.h (areadlinkat): Declare it. * modules/linkat (Depends-on): Add areadlinkat. * MODULES.html.sh (File system functions): Mention it. * modules/areadlinkat-tests: New test. * tests/test-areadlinkat.c: New file. Signed-off-by: Eric Blake <ebb9@byu.net>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
Description:
linkat(): create a hard link, relative to two directories
Files:
lib/at-func2.c
lib/linkat.c
m4/linkat.m4
Depends-on:
areadlink
areadlinkat
dirname
errno
extensions
fcntl-h
filenamecat
openat
link
link-follow
lstat
readlink
same-inode
stpcpy
symlink
symlinkat
unistd
configure.ac:
gl_FUNC_LINKAT
gl_UNISTD_MODULE_INDICATOR([linkat])
Makefile.am:
Include:
<fcntl.h>
<unistd.h>
License:
GPL
Maintainer:
Jim Meyering, Eric Blake