.SH DESCRIPTION
This function returns the current file creation mask.
It is equivalent to
-.RS
+.in +0.5i
.nf
-mode_t getumask(void) {
- mode_t mask = umask(0);
- umask(mask);
- return mask;
+
+mode_t getumask(void)
+{
+ mode_t mask = umask(0);
+ umask(mask);
+ return mask;
}
+
.fi
-.RE
+.in -0.5i
except that it is documented to be thread-safe (that is, shares
a lock with the
.BR umask ()