Query: open
OS: v7
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
OPEN(2) System Calls Manual OPEN(2)NAMEopen - open for reading or writingSYNOPSISopen(name, mode) char *name;DESCRIPTIONOpen opens the file name for reading (if mode is 0), writing (if mode is 1) or for both reading and writing (if mode is 2). Name is the address of a string of ASCII characters representing a path name, terminated by a null character. The file is positioned at the beginning (byte 0). The returned file descriptor must be used for subsequent calls for other input-output functions on the file.SEE ALSOcreat(2), read(2), write(2), dup(2), close(2)DIAGNOSTICSThe value -1 is returned if the file does not exist, if one of the necessary directories does not exist or is unreadable, if the file is not readable (resp. writable), or if too many files are open.ASSEMBLER(open = 5.) sys open; name; mode (file descriptor in r0) OPEN(2)
Related Man Pages |
---|
dup(2) - opensolaris |
open(2) - bsd |
lseek(2) - v7 |
creat(2) - minix |
ziparchive.open(3) - php |