readlink() — read the contents of a symbolic link
const char *path,
function places the contents of the
symbolic link referred to by path in the buffer
which has size
If the number of bytes in
the symbolic link is less than
the contents of the remainder of
In systems conforming to AES standards, the returned
string will be null-terminated if the length of the path
name string is less than
If the length of the path name string is exactly
the string will not be null-terminated when returned.
If the length of the path name string exceeds
The kernel tunable parameter
can be queried to determine whether a system conforms to AES standards.
Upon successful completion,
returns the count of bytes placed in the buffer.
Otherwise, it returns a value of
leaves the buffer unchanged, and sets
to indicate the error.
function will fail if:
Search permission is denied for a component of the path prefix.
Read permission is denied for the directory.
points outside the process's allocated address space.
Reliable detection of this error is implementation-dependent.
The path argument names a file that is not a symbolic link.
An I/O error occurred while reading from the file system.
Too many symbolic links were encountered in resolving path.
The length of path exceeds
or a pathname component is longer than
In systems conforming to AES standards, this error will be
returned when the path exceeds the
bytes or a pathname component exceeds the
is in effect.
Pathname resolution of a symbolic link produced an
intermediate result whose length exceeds
A component of path does not name an existing file or path is
an empty string.
A component of the path prefix is not a directory.
The length of the
name string read from the symbolic link exceeds
was developed by the University of California, Berkeley.
readlink() : AES, SVID3