1umask(2)                         System Calls                         umask(2)
2
3
4

NAME

6       umask - set and get file creation mask
7

SYNOPSIS

9       #include <sys/types.h>
10       #include <sys/stat.h>
11
12       mode_t umask(mode_t cmask);
13
14

DESCRIPTION

16       The  umask()  function  sets  the  process's file mode creation mask to
17       cmask and returns the previous value of the mask. Only the access  per‐
18       mission  bits  of  cmask  and the file mode creation mask are used. The
19       mask is inherited by child processes. See Intro(2) for more information
20       on masks.
21

RETURN VALUES

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

ATTRIBUTES

26       See attributes(5) for descriptions of the following attributes:
27
28
29
30
31       ┌─────────────────────────────┬─────────────────────────────┐
32       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
33       ├─────────────────────────────┼─────────────────────────────┤
34       │Interface Stability          │Standard                     │
35       ├─────────────────────────────┼─────────────────────────────┤
36       │MT-Level                     │Async-Signal-Safe            │
37       └─────────────────────────────┴─────────────────────────────┘
38

SEE ALSO

40       mkdir(1),  sh(1),  Intro(2),  chmod(2),  creat(2),  mknod(2),  open(2),
41       stat.h(3HEAD), attributes(5), standards(5)
42
43
44
45SunOS 5.11                        28 Dec 1996                         umask(2)
Impressum