umask(2) SDK R4.11 umask(2)
NAME
umask - set and get file creation mask
SYNOPSIS
#include <sys/types.h>
modet umask (creationmask)
modet creationmask
int creationmask;
where:
creationmask File mode creation mask
DESCRIPTION
Umask sets the process's file mode creation mask to the low-order 9
bits of creationmask and returns the previous value of the mask.
Those bits other than the low-order 9 in creationmask are reserved,
and in the return value are undefined. See the chmod(2) for details
of how this mask is used.
ACCESS CONTROL
None.
RETURN VALUE
0..07777 Previous mask value.
DIAGNOSTICS
None.
SEE ALSO
mkdir(1), sh(1), umask(1), chmod(2), creat(2), mknod(2), open(2).
Licensed material--property of copyright holder(s)