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

1.1     ! root        1: .th CHMOD II 8/5/73
        !             2: .sh NAME
        !             3: chmod \*- change mode of file
        !             4: .sh SYNOPSIS
        !             5: (chmod = 15.)
        !             6: .br
        !             7: .ft B
        !             8: sys chmod; name; mode
        !             9: .s3
        !            10: chmod(name, mode)
        !            11: .br
        !            12: char *name;
        !            13: .ft R
        !            14: .sh DESCRIPTION
        !            15: The file whose name
        !            16: is given as the null-terminated string pointed to by
        !            17: .it name
        !            18: has its mode changed to
        !            19: .it mode.
        !            20: Modes are constructed by ORing together some
        !            21: combination of the following:
        !            22: .s3
        !            23: .in +3
        !            24:  4000 set user ID on execution
        !            25:  2000 set group ID on execution
        !            26:  0400 read by owner
        !            27:  0200 write by owner
        !            28:  0100 execute by owner
        !            29:  0070 read, write, execute by group
        !            30:  0007 read, write, execute by others
        !            31: .in -3
        !            32: .s3
        !            33: Only the owner of a file (or the super-user) may change the mode.
        !            34: .sh "SEE ALSO"
        !            35: chmod(I)
        !            36: .sh DIAGNOSTIC
        !            37: Error bit
        !            38: (c-bit) set if
        !            39: .it name
        !            40: cannot be found or if current user
        !            41: is neither the owner of the file nor the super-user.
        !            42: From C, a \*-1 returned value indicates an
        !            43: error, 0 indicates success.

unix.superglobalmegacorp.com

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