mknod.2
来自「UNIX v6源代码 这几乎是最经典的unix版本 unix操作系统设计和莱」· 2 代码 · 共 43 行
2
43 行
.th MKNOD II 8/5/73.sh NAMEmknod \*- make a directory or a special file.sh SYNOPSIS(mknod = 14.; not in assembler).br.ft Bsys mknod; name; mode; addr.s3mknod(name, mode, addr).brchar *name;.ft R.sh DESCRIPTION.it Mknodcreates a new filewhose name is the null-terminated string pointedto by.it name.The mode of the new file(including directory and special file bits)is initialized from.it mode.The first physical address of the fileis initialized from.it addr.Note that in the case of a directory,.it addrshould be zero.In the case of a special file,.it addrspecifies which special file..s3.it Mknodmay be invoked only by the super-user..sh "SEE ALSO"mkdir (I), mknod (VIII), fs (V).sh DIAGNOSTICSError bit (c-bit)is set if the file already existsor if the user is not the super-user.From C, a \*-1 value indicates an error.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?