]>
Commit | Line | Data |
---|---|---|
fea681da MK |
1 | .\" Copyright (C) 2002 Andries Brouwer <aeb@cwi.nl> |
2 | .\" | |
3 | .\" Permission is granted to make and distribute verbatim copies of this | |
4 | .\" manual provided the copyright notice and this permission notice are | |
5 | .\" preserved on all copies. | |
6 | .\" | |
7 | .\" Permission is granted to copy and distribute modified versions of this | |
8 | .\" manual under the conditions for verbatim copying, provided that the | |
9 | .\" entire resulting derived work is distributed under the terms of a | |
10 | .\" permission notice identical to this one. | |
c13182ef | 11 | .\" |
fea681da MK |
12 | .\" Since the Linux kernel and libraries are constantly changing, this |
13 | .\" manual page may be incorrect or out-of-date. The author(s) assume no | |
14 | .\" responsibility for errors or omissions, or for damages resulting from | |
15 | .\" the use of the information contained herein. The author(s) may not | |
16 | .\" have taken the same level of care in the production of this manual, | |
17 | .\" which is licensed free of charge, as they might when working | |
18 | .\" professionally. | |
c13182ef | 19 | .\" |
fea681da MK |
20 | .\" Formatted or processed versions of this manual, if unaccompanied by |
21 | .\" the source, must acknowledge the copyright and authors of this work. | |
22 | .\" | |
23 | .\" This replaces an earlier man page written by Walter Harms | |
24 | .\" <walter.harms@informatik.uni-oldenburg.de>. | |
25 | .\" | |
26 | .TH GETUMASK 3 2002-08-25 "GNU" "Linux Programmer's Manual" | |
27 | .SH NAME | |
28 | getumask \- get file creation mask | |
29 | .SH SYNOPSIS | |
30 | .B "#include <sys/types.h>" | |
31 | .br | |
32 | .B "#include <sys/stat.h>" | |
33 | .sp | |
34 | .B "mode_t getumask(void);" | |
35 | .SH DESCRIPTION | |
36 | This function returns the current file creation mask. | |
37 | It is equivalent to | |
b9f02710 | 38 | .in +0.5i |
fea681da | 39 | .nf |
b9f02710 | 40 | |
c13182ef | 41 | mode_t getumask(void) |
b9f02710 MK |
42 | { |
43 | mode_t mask = umask(0); | |
44 | umask(mask); | |
45 | return mask; | |
fea681da | 46 | } |
b9f02710 | 47 | |
fea681da | 48 | .fi |
b9f02710 | 49 | .in -0.5i |
fea681da MK |
50 | except that it is documented to be thread-safe (that is, shares |
51 | a lock with the | |
31e9a9ec | 52 | .BR umask () |
fea681da MK |
53 | library call). |
54 | .SH NOTES | |
55 | This function is documented but not implemented yet in glibc 2.2.5. | |
56 | .SH "CONFORMING TO" | |
57 | This is a vapourware GNU extension. | |
58 | .SH "SEE ALSO" | |
59 | .BR umask (2) |