[Next] [Up] [Previous]
Next: Chown Up: Functions and procedures Previous: SymLink

UnLink

   

Declaration:

Procedure UnLink (Path : pathstr) ;

Description:

Decreases the link count on file Path. If the link count is zero, the file is removed from the disk.

Errors:

Errors are returned in LinuxError.

sys_eaccess
You have no write access right in the directory containing Path, or you have no search permission in one of the directory components of Path.
sys_eperm
The directory containing pathname has the sticky-bit set and the process's effective uid is neither the uid of the file to be deleted nor that of the directory containing it.
sys_enoent
A component of the path doesn't exist.
sys_enotdir
A directory component of the path is not a directory.
sys_eisdir
Path refers to a directory.
sys_enomem
Insufficient kernel memory.
sys_erofs
Path is on a read-only filesystem.

See also:

Link, SymLink, Unlink(2)



Michael Van Canneyt
Thu Dec 12 15:40:07 MET 1996