25 lines
401 B
Groff
25 lines
401 B
Groff
.TH UMASK 2
|
|
.UC 4
|
|
.SH NAME
|
|
umask \- set file creation mask.
|
|
.SH SYNOPSIS
|
|
.nf
|
|
.B #include <unistd.h>
|
|
.B int umask (int mask);
|
|
.fi
|
|
.SH DESCRIPTION
|
|
.B umask()
|
|
sets the umask to
|
|
.I mask
|
|
& 0777. The old umask before the set is returned.
|
|
.SH FILES
|
|
linux/kernel/sys.c
|
|
.br
|
|
/usr/include/linux/sys.h
|
|
.br
|
|
/usr/include/unistd.h
|
|
.SH SEE ALSO
|
|
open(2)
|
|
.\".SH BUGS
|
|
.\"Should the old or current umask be returned?
|