1GETUMASK(3) Linux Programmer's Manual GETUMASK(3)
2
3
4
6 getumask - get file creation mask
7
9 #include <sys/types.h>
10 #include <sys/stat.h>
11
12 mode_t getumask(void);
13
15 This function returns the current file creation mask. It is equivalent
16 to
17 mode_t getumask(void) {
18 mode_t mask = umask(0);
19 umask(mask);
20 return mask;
21 }
22 except that it is documented to be thread-safe (that is, shares a lock
23 with the umask() library call).
24
26 This function is documented but not implemented yet in glibc 2.2.5.
27
29 This is a vapourware GNU extension.
30
32 umask(2)
33
34
35
36GNU 2002-08-25 GETUMASK(3)