| manpages.info - online man pages | ![]() |
|||
|
readlink (2) Table of Contents
Namereadlink - read value of a symbolic link
Synopsis#include <unistd.h>
int
DescriptionReadlink() places the contents of the symbolic link path in the buffer buf, which has size bufsiz. Readlink does not append a NUL character to buf.
Return ValuesThe call returns the count of characters placed in the buffer if it succeeds, or a -1 if an error occurs, placing the error code in the global variable errno.
ErrorsReadlink() will fail if:
See Alsostat(2) , lstat(2) , symlink(2) symlink(7) ,
HistoryThe readlink() function call appeared in 4.2BSD.
|