Branch
Hash :
3dbfcbf5
Author :
Date :
2025-08-14T22:21:23
rename: Use issymlink. * lib/rename.c (rpl_rename): Use issymlink instead of readlink. * modules/rename (Depends-on): Remove readlink. Add issymlink.
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
Description:
rename() function: change the name or location of a file.
Files:
lib/rename.c
m4/rename.m4
Depends-on:
stdio-h
canonicalize-lgpl [test $REPLACE_RENAME = 1]
chdir [test $REPLACE_RENAME = 1]
dirname-lgpl [test $REPLACE_RENAME = 1]
free-posix [test $REPLACE_RENAME = 1]
issymlink [test $REPLACE_RENAME = 1]
lstat [test $REPLACE_RENAME = 1]
rmdir [test $REPLACE_RENAME = 1]
same-inode [test $REPLACE_RENAME = 1]
stat [test $REPLACE_RENAME = 1]
bool [test $REPLACE_RENAME = 1]
strdup [test $REPLACE_RENAME = 1]
configure.ac:
gl_FUNC_RENAME
gl_CONDITIONAL([GL_COND_OBJ_RENAME], [test $REPLACE_RENAME = 1])
gl_STDIO_MODULE_INDICATOR([rename])
Makefile.am:
if GL_COND_OBJ_RENAME
lib_SOURCES += rename.c
endif
Include:
<stdio.h>
License:
LGPLv2+
Maintainer:
Jim Meyering