|
|
1.1 root 1: .TH UNLINK 2
2: .CT 2 file_inq_creat
3: .SH NAME
4: unlink \(mi remove directory entry
5: .SH SYNOPSIS
6: .nf
7: .B int unlink(name)
8: .B char *name;
9: .fi
10: .SH DESCRIPTION
11: .I Unlink
12: removes the entry for the file pointed to by
13: .I name
14: from its directory.
15: If this entry was the last link to the file,
16: the contents of the file are freed and the file is destroyed.
17: If, however, the file was open in any process, the actual
18: destruction is delayed until it is closed, even though
19: the directory entry has disappeared.
20: .PP
21: Only the super-user can
22: .I unlink
23: a directory, but see
24: .I rmdir
25: in
26: .IR mkdir (2).
27: .SH "SEE ALSO"
28: .IR rm (1),
29: .IR link (2),
30: .IR mkdir (2)
31: .SH DIAGNOSTICS
32: .BR EFAULT ,
33: .BR EIO ,
34: .BR ELOOP ,
35: .BR ENOENT ,
36: .BR ENOTDIR ,
37: .BR EROFS
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.