📄 unlink.2
字号:
.TH UNLINK 2 .SH NAMEunlink \- remove directory entry.SH SYNOPSIS.B unlink(name).br.B char *name;.SH DESCRIPTION.I Namepoints to a null-terminated string..I Unlinkremoves the entry for the file pointed to by.I namefrom 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 actualdestruction is delayed until it is closed, even thoughthe directory entry has disappeared..SH "SEE ALSO"rm(1), link(2).SH DIAGNOSTICSZero is normally returned;\-1 indicates that the file does notexist, that its directory cannot be written,or that the file contains pure procedure textthat is currently in use.Write permission is not required on the file itself.It is also illegal to unlink a directory(except for the super-user)..SH ASSEMBLER(unlink = 10.).br.B sys unlink; name
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -