new xmalloc_readlink_follow() routine to fully expand trailing symlinks

to get to a "real" file (or directory).
This commit is contained in:
Paul Fox
2007-11-08 01:11:41 +00:00
parent 49cce2b838
commit 459a2ba1ef
2 changed files with 46 additions and 0 deletions

View File

@ -260,6 +260,7 @@ DIR *warn_opendir(const char *path);
/* UNUSED: char *xmalloc_realpath(const char *path); */
char *xmalloc_readlink(const char *path);
char *xmalloc_readlink_follow(const char *path);
char *xmalloc_readlink_or_warn(const char *path);
char *xrealloc_getcwd_or_warn(char *cwd);