UMASK(2)

NAME
umask - set file creation mask.

SYNOPSIS
#include <unistd.h>
int umask (int mask);

DESCRIPTION
umask() sets the umask to mask & 0777. The old umask before the set is returned.

FILES
linux/kernel/sys.c
/usr/include/linux/sys.h
/usr/include/unistd.h

SEE ALSO
open(2)