📄 open.2
字号:
.th OPEN II 8/5/73.sh NAMEopen \*- open for reading or writing.sh SYNOPSIS(open = 5.).br.ft Bsys open; name; mode.br.ft R(file descriptor in r0).s3.ft Bopen(name, mode).brchar *name;.ft R.sh DESCRIPTION.it Openopens the file.it namefor reading(if.it modeis 0),writing (if.it modeis 1) or for both reading and writing(if.it modeis 2)..it Nameis the address of a string of ASCII characters representinga path name, terminated by a null character..s3The returned file descriptor should be saved for subsequent callsto.it read,.it write,and.it close..sh "SEE ALSO"creat (II), read (II), write (II), close (II).sh DIAGNOSTICSThe error bit(c-bit) is set if 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.From C, a \*-1 value is returned on an error.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -