mknod.2
来自「unix v7是最后一个广泛发布的研究型UNIX版本」· 2 代码 · 共 43 行
2
43 行
.TH MKNOD 2 .SH NAMEmknod \- make a directory or a special file.SH SYNOPSIS.B mknod(name, mode, addr).br.B char *name;.SH DESCRIPTION.I Mknodcreates a new filewhose name is the null-terminated string pointedto by.IR name .The mode of the new file(including directory and special file bits)is initialized from.IR mode .(The protection part of the modeis modified by the process's mode mask; see.IR umask (2)).The first block pointer of the i-nodeis initialized from.IR addr .For ordinary files and directories.I addris normally zero.In the case of a special file,.I addrspecifies which special file..PP.I Mknodmay be invoked only by the super-user..SH "SEE ALSO"mkdir(1), mknod(1), filsys(5).SH DIAGNOSTICSZero is returned if the file has been made; \-1if the file already existsor if the user is not the super-user..SH ASSEMBLER(mknod = 14.).br.B sys mknod; name; mode; addr
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?