2.9BSD/usr/man/cat2/umask.2

Compare this file to the similar file:
Show the results in this format:


UMASK(2)            UNIX Programmer's Manual             UMASK(2)

NAME
     umask - set file creation mode mask

SYNOPSIS
     umask(complmode)

DESCRIPTION
     _U_m_a_s_k sets a mask used whenever a file is created by
     _c_r_e_a_t(2) or _m_k_n_o_d(2): the actual mode (see _c_h_m_o_d(2)) of the
     newly-created file is the logical AND of the given mode and
     the complement of the argument.  Only the low-order 9 bits
     of the mask (the protection bits) participate.  In other
     words, the mask shows the bits to be turned off when files
     are created.  The mask is inherited by child processes.  The
     value is initially 0 (this is a system configuration parame-
     ter).

RETURN VALUE
     The previous value of the mask is returned by the call.

SEE ALSO
     chmod(2), creat(2), mknod(2)

ASSEMBLER
     (umask = 60.)
     sys umask; complmode

Printed 5/22/83                                                 1