📄 open.2
字号:
.TH OPEN 2 .SH NAMEopen \- open for reading or writing.SH SYNOPSIS.B open(name, mode).br.B char *name;.SH DESCRIPTION.I Openopens the file.I namefor reading(if.I modeis 0),writing (if.I modeis 1) or for both reading and writing(if.I modeis 2)..I Nameis the address of a string of ASCII characters representinga path name, terminated by a null character..PPThe file is positioned at the beginning (byte 0).The returned file descriptor must be used for subsequent callsfor other input-output functions on the file..SH "SEE ALSO"creat(2), read(2), write(2), dup(2), close(2).SH DIAGNOSTICSThe value \-1 is returnedif the file does not exist,if one of the necessary directoriesdoes not exist or is unreadable, if the file is notreadable (resp. writable), or if too many files are open..SH ASSEMBLER(open = 5.).br.B sys open; name; mode.br(file descriptor in r0)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -