.\" Copyright (c) 1980 Regents of the University of California.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\" @(#)umask.2 6.1 (Berkeley) %G%
umask \- set file creation mode mask
sets the process's file mode creation mask to \fInumask\fP
and returns the previous value of the mask. The low-order
9 bits of \fInumask\fP are used whenever a file is created,
clearing corresponding bits in the file mode
This clearing allows each user to restrict the default access
The value is initially 022 (write access for owner only).
The mask is inherited by child processes.
The previous value of the file mode mask is returned by the call.
chmod(2), mknod(2), open(2)