.\" This replaces an earlier man page written by Walter Harms
.\" <walter.harms@informatik.uni-oldenburg.de>.
.\"
-.TH GETUMASK 3 2016-10-08 "GNU" "Linux Programmer's Manual"
+.TH GETUMASK 3 2017-09-15 "GNU" "Linux Programmer's Manual"
.SH NAME
getumask \- get file creation mask
.SH SYNOPSIS
.SH DESCRIPTION
This function returns the current file creation mask.
It is equivalent to
+.PP
.in +4n
-.nf
-
+.EX
mode_t getumask(void)
{
mode_t mask = umask( 0 );
umask(mask);
return mask;
}
-
-.fi
+.EE
.in
+.PP
except that it is documented to be thread-safe (that is, shares
a lock with the
.BR umask (2)