umask
Purpose
Sets and gets the value of the file creation mask.
Syntax
int umask (cmask)
int cmask;
Description
The umask system call sets the process's file mode cre-
ation mask to the value of the cmask parameter. Only the
low-order 9 bits of the cmask parameter and the file mode
creation mask are used.
Return Value
Upon successful completion, the previous value of the
file mode creation mask is returned.
Related Information
In this book: "chmod," "creat," "mknod," "open," and
"stat.h."
The sh and umask commands in AIX Operating System Com-
mands Reference.