⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unlink.2

📁 UNIX v6源代码 这几乎是最经典的unix版本 unix操作系统设计和莱昂氏unix源代码分析都是用的该版
💻 2
字号:
.th UNLINK II 8/5/73.sh NAMEunlink \*- remove directory entry.sh SYNOPSIS(unlink = 10.).br.ft Bsys  unlink; name.s3unlink(name).brchar *name;.ft R.sh DESCRIPTION.it Namepoints to a null-terminated string..it Unlinkremoves the entry for the file pointed to by.it 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 (I), rmdir (I), link (II).sh DIAGNOSTICSThe error bit(c-bit) is set to indicate that the file does notexist 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).From C, a \*-1 return indicates an error.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -