File:  [Research Unix] / researchv10dc / dist / man / v3 / man2 / unlink.2
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.pa 1
.he 'UNLINK (II)'3/15/72'UNLINK (II)'
.ti 0
NAME		unlink  --  remove directory entry
.sp
.ti 0
SYNOPSIS	sys unlink; name  / unlink = 10.
.sp
.ti 0
DESCRIPTION	Name____
points to a null-terminated string.
Unlink______
removes the entry for the file pointed to by name____
from its directory.
If this entry was the last link to the file,
the contents of the file are freed and the file is destroyed.
If, however, the file was open in any process, the actual
destruction is delayed until it is closed, even though
the directory entry has disappeared.
.sp
.ti 0
SEE ALSO	rm(I), rmdir(I), link(II)
.sp
.ti 0
DIAGNOSTICS	The error bit
(c-bit) is set to indicate that the file does not
exist or that its directory cannot be written.
Write permission is not required on the file itself.
It is also illegal to unlink a directory
(except for the super-user).
.sp
.ti 0
BUGS		--

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.