4.3BSD-Reno/share/man/cat2/umask.0

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




UMASK(2)		      1985			 UMASK(2)



NNAAMMEE
     umask - set file creation mode mask

SSYYNNOOPPSSIISS
     oouummaasskk == uummaasskk((nnuummaasskk))
     iinntt oouummaasskk,, nnuummaasskk;;

DDEESSCCRRIIPPTTIIOONN
     _U_m_a_s_k sets the process's file mode creation mask to _n_u_m_a_s_k
     and returns the previous value of the mask.  The low-order 9
     bits of _n_u_m_a_s_k are used whenever a file is created, clearing
     corresponding bits in the file mode (see _c_h_m_o_d(2)).  This
     clearing allows each user to restrict the default access to
     his files.

     The value is initially 022 (write access for owner only).
     The mask is inherited by child processes.

RREETTUURRNN VVAALLUUEE
     The previous value of the file mode mask is returned by the
     call.

SSEEEE AALLSSOO
     chmod(2), mknod(2), open(2)































Printed 7/27/90                May				1