Annotation of researchv10dc/dist/man/v3/man2/creat.2, revision 1.1

1.1     ! root        1: .pa 1
        !             2: .he 'CREAT (II)'3/15/72'CREAT (II)'
        !             3: .ti 0
        !             4: NAME           creat  --  create a new file
        !             5: .sp
        !             6: .ti 0
        !             7: SYNOPSIS       sys     creat; name; mode       / creat = 8.
        !             8: .br
        !             9: (file descriptor in r0)
        !            10: .sp
        !            11: .ti 0
        !            12: DESCRIPTION    creat_____
        !            13: creates a new file or prepares to rewrite an existing
        !            14: file called name____;
        !            15: name____ is the address of a null-terminated string.
        !            16: If the file did not exist, it is given mode mode____;
        !            17: if it did exist, its mode and owner remain unchanged
        !            18: but it is truncated to 0 length.
        !            19: .sp
        !            20: The file is also opened for writing, and its file descriptor
        !            21: is returned in r0.
        !            22: .sp
        !            23: The mode____ given is arbitrary; it need not allow
        !            24: writing.
        !            25: This feature is used by programs which deal with temporary
        !            26: files of fixed names.  The creation is done with
        !            27: a mode that forbids writing.  Then if a second
        !            28: instance of the program attempts a creat_____, an error is
        !            29: returned and the program knows that the name is unusable
        !            30: for the moment.
        !            31: .sp
        !            32: .ti 0
        !            33: SEE ALSO       write(II), close(II)
        !            34: .sp
        !            35: .ti 0
        !            36: DIAGNOSTICS    The error bit
        !            37: (c-bit) may be set if: a needed directory is not readable;
        !            38: the file does not exist and the directory
        !            39: in which it is to be created is not writable; the file
        !            40: does exist and is unwritable;
        !            41: the file is a directory;
        !            42: there are already 10 files open.
        !            43: .sp
        !            44: .ti 0
        !            45: BUGS           --

unix.superglobalmegacorp.com

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