|
|
1.1 root 1: .pa 1
2: .he 'OPEN (II)'3/15/72'OPEN (II)'
3: .ti 0
4: NAME open -- open for reading or writing
5: .sp
6: .ti 0
7: SYNOPSIS sys open; name; mode / open = 5.
8: .br
9: (descriptor in r0)
10: .sp
11: .ti 0
12: DESCRIPTION open____ opens the file name____ for reading
13: (if mode____ is 0) or writing (if mode____ is non-zero).
14: name____ is the address of a string of ASCII characters representing
15: a path name, terminated by a null character.
16: .sp
17: The file descriptor should be saved for subsequent calls
18: to read (or write) and close.
19: .sp
20: In both the read and write case the file pointer
21: is set to the beginning of the file.
22: .sp
23: .ti 0
24: SEE ALSO creat(II), read(II), write(II), close(II)
25: .sp
26: .ti 0
27: DIAGNOSTICS The error bit
28: (c-bit) is set if the file does not exist,
29: if one of the necessary directories
30: does not exist or is unreadable, if the file is not
31: readable (resp. writable), or if 10 files are open.
32: .sp
33: .ti 0
34: BUGS --
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.