int unlink(int dir_fd, const char *path, int path_len);
The syscall queues for deletion the file pointed to by path
. If
path
points to a directory, it must be empty.
The syscall returns 0
or -1
on failure, with the following errno:
ENOENT
: delete
points to a file not valid for deletion, if at all.