Go to the previous, next section.
int unlink(const char *path);
path: [in] points to the path of the file to unlink.
Deletes a link to a file. If the file is not used and it was the last link, the file is also deleted.
On success, returns zero. On error, returns -1 and sets errno
to
one of the following value:
EPERM
: the directory has the stiky bit on but the calling
taks uid does not match the file uid or the directory uid.
EFAULT
, EACCESS
, ENAMETOOLONG
, ENOENT
,
ENOTDIR
, EISDIR
, ENOMEM
, EROFS
.
Go to the previous, next section.