1 .TH READLINK 2 "March 17, 2006"
4 readlink \- read the contents of a symlink
10 int readlink(const char *\fIpath\fP, char *\fIbuf\fP, size_t bufsize)
16 call reads the contents of the symlink
22 bytes. A terminating NUL byte is NOT put in the buffer.
24 Upon successful completion, a value of 0 is returned. Otherwise,
25 a value of \-1 is returned and
27 is set to indicate the error.
30 will fail if one or more of the following are true:
33 A component of either path prefix is not a directory.
36 The path does not resolve to a symbolic link.
39 A path name exceeds PATH_MAX characters.
42 A component of the path does not exist.
45 A component of the path denies search permission.
48 Too many symbolic links were encountered in translating one of the pathnames.
51 The link named by \fIpath\fP does not exist.
54 The buffer specified is outside the process's allocated address space.