Annotated edit history of
umask(2) version 1 showing authors affecting page license.
View with all changes included.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
UMASK |
|
|
2 |
!!!UMASK |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
RETURN VALUE |
|
|
7 |
CONFORMING TO |
|
|
8 |
SEE ALSO |
|
|
9 |
---- |
|
|
10 |
!!NAME |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
umask - set file creation mask |
|
|
14 |
!!SYNOPSIS |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
__#include __ |
|
|
18 |
#include __ |
|
|
19 |
|
|
|
20 |
|
|
|
21 |
__mode_t umask(mode_t__ ''mask''__);__ |
|
|
22 |
!!DESCRIPTION |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
__umask__ sets the umask to ''mask'' |
|
|
26 |
'' |
|
|
27 |
|
|
|
28 |
|
|
|
29 |
The umask is used by open(2) to set initial file |
|
|
30 |
permissions on a newly-created file. Specifically, |
|
|
31 |
permissions in the umask are turned off from the __mode__ |
|
|
32 |
argument to open(2) (so, for example, the common |
|
|
33 |
umask default value of 022 results in new files being |
|
|
34 |
created with permissions 0666 |
|
|
35 |
__mode__ is specified as |
|
|
36 |
0666). |
|
|
37 |
!!RETURN VALUE |
|
|
38 |
|
|
|
39 |
|
|
|
40 |
This system call always succeeds and the previous value of |
|
|
41 |
the mask is returned. |
|
|
42 |
!!CONFORMING TO |
|
|
43 |
|
|
|
44 |
|
|
|
45 |
SVr4, SVID, POSIX, X/OPEN, BSD 4.3 |
|
|
46 |
!!SEE ALSO |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
creat(2), open(2) |
|
|
50 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.