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

NAME

6       getumask - get file creation mask
7

SYNOPSIS

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

DESCRIPTION

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

NOTES

26       This function is documented but not implemented yet in glibc 2.2.5.
27

CONFORMING TO

29       This is a vapourware GNU extension.
30

SEE ALSO

32       umask(2)
33
34
35
36GNU                               2002-08-25                       GETUMASK(3)
Impressum