next up previous contents
Next: write: write to a Up: MOSS system calls Previous: sigprocmask: change the signal

unlink: delete a file

SYNOPSIS

int unlink(const char *path);

DESCRIPTION

This system call implements the POSIX unlink function, which deletes a file.

PARAMETERS

path
The name of the file to remove.

RETURN VALUE

Returns 0 if successful, or -1 on error, in which case errno indicates the error.



Bryan Ford