DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

umask(S)


umask -- set and get file creation mask

Synopsis

   #include <sys/types.h>
   #include <sys/stat.h>
   

mode_t umask(mode_t cmask);

Description

umask sets the process's file mode creation mask to cmask and returns the previous value of the mask. Only the access permission bits of cmask and the file mode creation mask are used.

Files

Message catalog: uxcore.abi

Return values

umask returns the previous value of the file mode creation mask.

References

chmod(S), creat(S), mkdir(C), mknod(S), open(S), sh(C), stat(M)

Notices

Considerations for threads programming

The file creation mask is an attribute of the containing process and is shared by sibling threads.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005