umask(2) DG/UX 4.30 umask(2)
NAME
umask - Set and get file creation mask.
SYNOPSIS
mode_t umask (creation_mask)
int creation_mask;
PARAMETERS
creation_mask File mode creation mask.
DESCRIPTION
Sets the process's file mode creation mask to the low-order
9 bits of <creation_mask> and returns the previous value of
the mask. Those bits other than the low-order 9 in
<creation_mask> are reserved, and in the return value are
undefined. See creat(2) for details of how this mask is
used.
ACCESS CONTROL
None.
RETURN VALUE
0..07777 Previous mask value.
EXCEPTIONS
None.
SEE ALSO
The related manual sections: mkdir(1), sh(1)
chmod(2), creat(2), mknod(2), open(2).
Licensed material--property of copyright holder(s) Page 1