NAME
unlink - remove satellite file
SYNOPSIS
unlink(path)
char *path;
DESCRIPTION
unlink
removes the file named by
path,
freeing the space in the file system occupied by that file.
The named file is removed unless one or more of the following are
true:
-
The path name points to a file on the host. [EACCES]
-
The path name specifies a directory or file that does not
exist. [ENOENT]
-
The file is write protected. [EACCES]
RETURN VALUE
On successful completion, 0 is returned. Otherwise, a value of -1 is
returned and
errno
is set to indicate the error.
SEE ALSO
create(2F)
,
open(2F)