Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

Unix

Unix v6

open(2)



open open for reading or writing (open = 5.)
sys open; name; mode

(file descriptor in r0) open(name, mode)
char *name;
opens the file for reading (if is 0), writing (if is 1) or for both reading and writing (if is 2). is the address of a string of ASCII characters representing a path name, terminated by a null character. The returned file descriptor should be saved for subsequent calls to and creat (II), read (II), write (II), close (II) The error bit (c-bit) is set 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. From C, a 1 value is returned on an error.



open(2)