linux - umask (2)



NAME
       umask - set file creation mask


SYNOPSIS
       #include <sys/stat.h>

       int umask(int mask));


DESCRIPTION
       umask sets the umask to mask & 0777.


RETURN VALUE
       The previous value of the mask is returned.


CONFORMING TO
       SVID, AT&T, POSIX, X/OPEN, BSD 4.3


SEE ALSO
       creat(2), open(2)