1
0
Files
irix-657m-src/eoe/man/man2/umask.2
2022-09-29 17:59:04 +03:00

37 lines
953 B
Groff

'\"macro stdmacro
.if n .pH g2.umask @(#)umask 41.3 of 5/26/91
.\" Copyright 1991 UNIX System Laboratories, Inc.
.\" Copyright 1989, 1990 AT&T
.nr X
.if \nX=0 .ds x} umask 2 "" "\&"
.if \nX=1 .ds x} umask 2 ""
.if \nX=2 .ds x} umask 2 "" "\&"
.if \nX=3 .ds x} umask "" "" "\&"
.TH \*(x}
.SH NAME
\f4umask\f1 \- set and get file creation mask
.SH SYNOPSIS
\f4#include <sys/types.h>\f1
.br
\f4#include <sys/stat.h>\f1
.PP
\f4mode_t umask(mode_t cmask);\f1
.SH DESCRIPTION
\f4umask\f1
sets the
process's file mode creation mask to
\f2cmask\f1
and returns the previous value of the mask.
Only the access permission bits of
\f2cmask\f1
and the file mode creation mask are used.
.SH FILES
Message catalog: \f4uxcore.abi\fP
.SH SEE ALSO
\f4mkdir\f1(1), \f4sh\f1(1),
\f4chmod\f1(2), \f4creat\f1(2), \f4mknod\f1(2), \f4open\f1(2), \f4stat\f1(5)
.SH "DIAGNOSTICS"
The previous value of the file mode creation mask is returned.
.\" @(#)umask.2 6.2 of 9/6/83
.Ee