Annotation of researchv10dc/man/adm/man2/umask.2, revision 1.1.1.1

1.1       root        1: .TH UMASK 2
                      2: .CT 2 file_inq_creat
                      3: .SH NAME
                      4: umask \(mi set file creation mode mask
                      5: .SH SYNOPSIS
                      6: .B int umask(complmode)
                      7: .SH DESCRIPTION
                      8: .I Umask
                      9: sets the process mode mask.
                     10: The mask modifies the
                     11: .I mode
                     12: argument of
                     13: .IR creat
                     14: (see
                     15: .IR open (2)),
                     16: .IR mkdir (2),
                     17: and
                     18: .IR mknod (2)
                     19: thus:
                     20: .L
                     21:        mode &= (07777 & ~(complmode & 0777))
                     22: .br
                     23: In other words, the mask specifies permission bits to be turned off
                     24: when files are created.
                     25: .PP
                     26: The previous value of the mask is returned by the call.
                     27: The initial value is set by
                     28: .IR login (8),
                     29: and may be modified by the
                     30: .I umask
                     31: command of
                     32: .IR sh (1).
                     33: The mask is inherited by child processes.
                     34: .SH SEE ALSO
                     35: .IR open (2),
                     36: .IR mkdir (2), 
                     37: .IR mknod (2), 
                     38: .IR stat (2)

unix.superglobalmegacorp.com

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