Copyright © tutorialspoint.com
ssize_t readlink(const char *path, char *buf, size_t bufsiz);
| Tag | Description |
|---|---|
| EACCES | Search permission is denied for a component of the path prefix. (See also path_resolution(2).) |
| EFAULT | buf extends outside the processs allocated address space. |
| EINVAL | bufsiz is not positive. |
| EINVAL | The named file is not a symbolic link. |
| EIO | An I/O error occurred while reading from the file system. |
| ELOOP | Too many symbolic links were encountered in translating the pathname. |
| ENAMETOOLONG | |
| A pathname, or a component of a pathname, was too long. | |
| ENOENT | The named file does not exist. |
| ENOMEM | Insufficient kernel memory was available. |
| ENOTDIR | |
| A component of the path prefix is not a directory. | |
Copyright © tutorialspoint.com