]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/getumask.3
Wrapped long lines, wrapped at sentence boundaries; stripped trailing
[thirdparty/man-pages.git] / man3 / getumask.3
CommitLineData
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
28getumask \- 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
36This function returns the current file creation mask.
37It is equivalent to
b9f02710 38.in +0.5i
fea681da 39.nf
b9f02710 40
c13182ef 41mode_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
50except that it is documented to be thread-safe (that is, shares
51a lock with the
31e9a9ec 52.BR umask ()
fea681da
MK
53library call).
54.SH NOTES
55This function is documented but not implemented yet in glibc 2.2.5.
56.SH "CONFORMING TO"
57This is a vapourware GNU extension.
58.SH "SEE ALSO"
59.BR umask (2)