1GETUMASK(3)                Linux Programmer's Manual               GETUMASK(3)
2
3
4

NAME

6       getumask - get file creation mask
7

SYNOPSIS

9       #define _GNU_SOURCE
10       #include <sys/types.h>
11       #include <sys/stat.h>
12
13       mode_t getumask(void);
14

DESCRIPTION

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

CONFORMING TO

30       This is a vaporware GNU extension.
31

NOTES

33       This  function  is  documented  but not implemented yet in glibc, as at
34       version 2.9.
35

SEE ALSO

37       umask(2)
38

COLOPHON

40       This page is part of release 3.25 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                               2009-01-20                       GETUMASK(3)
Impressum