| [EPERM] |
| | The caller is not the super-user. |
| [ENOTDIR] |
| | A component of the path prefix is not a directory. |
| [ENAMETOOLONG] |
| | A component of a pathname exceeded 255 characters, or an entire path name exceeded 1023 characters. |
| [ENOENT] |
| | The named file does not exist. |
| [EACCES] |
| | Search permission is denied for a component of the path prefix, or the path name is not a regular file. |
| [ELOOP] |
| | Too many symbolic links were encountered in translating the pathname. |
| [EROFS] |
| | The named file resides on a read-only file system. |
| [EFAULT] |
| | The file argument points outside the processs allocated address space. |
| [EIO] | An I/O error occurred while reading from or writing to the file system. |
|