1GETUMASK(3) Linux Programmer's Manual GETUMASK(3)
2
3
4
6 getumask - get file creation mask
7
9 #define _GNU_SOURCE /* See feature_test_macros(7) */
10 #include <sys/types.h>
11 #include <sys/stat.h>
12
13 mode_t getumask(void);
14
16 This function returns the current file creation mask. It is equivalent
17 to
18
19 mode_t getumask(void)
20 {
21 mode_t mask = umask( 0 );
22 umask(mask);
23 return mask;
24 }
25
26 except that it is documented to be thread-safe (that is, shares a lock
27 with the umask(2) library call).
28
30 This is a vaporware GNU extension.
31
33 This function is documented but not implemented yet in glibc, as at
34 version 2.9.
35
37 umask(2)
38
40 This page is part of release 3.53 of the Linux man-pages project. A
41 description of the project, and information about reporting bugs, can
42 be found at http://www.kernel.org/doc/man-pages/.
43
44
45
46GNU 2010-09-10 GETUMASK(3)