Annotation of researchv10dc/dist/man/v4/man2/open.2, revision 1.1

1.1     ! root        1: .th OPEN II 8/5/73
        !             2: .sh NAME
        !             3: open \*- open for reading or writing
        !             4: .sh SYNOPSIS
        !             5: (open = 5.)
        !             6: .br
        !             7: .ft B
        !             8: sys open; name; mode
        !             9: .s3
        !            10: open(name, mode)
        !            11: .br
        !            12: char *name;
        !            13: .ft R
        !            14: .sh DESCRIPTION
        !            15: .it Open
        !            16: opens the file
        !            17: .it name
        !            18: for reading
        !            19: (if
        !            20: .it mode
        !            21: is 0),
        !            22: writing (if
        !            23: .it mode
        !            24: is 1) or for both reading and writing
        !            25: (if
        !            26: .it mode
        !            27: is 2).
        !            28: .it Name
        !            29: is the address of a string of ASCII characters representing
        !            30: a path name, terminated by a null character.
        !            31: .s3
        !            32: The returned file descriptor should be saved for subsequent calls
        !            33: to
        !            34: .it read,
        !            35: .it write,
        !            36: and
        !            37: .it close.
        !            38: .sh "SEE ALSO"
        !            39: creat(II), read(II), write(II), close(II)
        !            40: .sh DIAGNOSTICS
        !            41: The error bit
        !            42: (c-bit) is set if the file does not exist,
        !            43: if one of the necessary directories
        !            44: does not exist or is unreadable, if the file is not
        !            45: readable (resp. writable), or if 10 files are open.
        !            46: From C, a \*-1 value is returned on an error.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.