#include <sys/stat.h>
int umask(mask) int mask;
#include <sys/types.h> #include <sys/stat.h>
mode_t umask(mask) mode_t mask;
umask() sets the process's file creation mask to mask and returns the previous value of the mask. The low-order 9 bits of mask are used whenever a file is created, clearing corresponding bits in the file access permissions. (see stat.2v This clearing restricts the default access to a file.
The mask is inherited by child processes.
umask() returns the previous value of the file creation mask.
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97