17 lines
331 B
Groff
17 lines
331 B
Groff
SYSTEM CALLS
|
|
umask - set the default file protection mask
|
|
|
|
INVOCATION
|
|
int umask( new_mask )
|
|
int new_mask;
|
|
|
|
EXPLANATION
|
|
Whenever a file is created its protection mask is AND'ed with
|
|
the complement of the lower 9 bits of <new_mask>.
|
|
|
|
RESULTS
|
|
The previous mask contents.
|
|
|
|
REFERENCES
|
|
chmod(2), creat(2)
|