1UMASK(2)                      System Calls Manual                     UMASK(2)
2
3
4

NAME

6       umask - set file creation mode mask
7

SYNOPSIS

9       oumask = umask(numask)
10       int oumask, numask;
11

DESCRIPTION

13       Umask  sets the process's file mode creation mask to numask and returns
14       the previous value of the mask.  The low-order 9  bits  of  numask  are
15       used  whenever  a  file  is created, clearing corresponding bits in the
16       file mode (see chmod(2)).  This clearing allows each user  to  restrict
17       the default access to his files.
18
19       The  value is initially 022 (write access for owner only).  The mask is
20       inherited by child processes.
21

RETURN VALUE

23       The previous value of the file mode mask is returned by the call.
24

SEE ALSO

26       chmod(2), mknod(2), open(2)
27
28
29
304th Berkeley Distribution         May 9, 1985                         UMASK(2)
Impressum