?? 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 + -