diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
| commit | 97d5c458cfa039d857301e1ca7d5af3beb37131d (patch) | |
| tree | b460cd850d0537eb71806ba30358840377b27688 /static/unix-v10/man2/umask.2 | |
| parent | b89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff) | |
build: Better Build System
Diffstat (limited to 'static/unix-v10/man2/umask.2')
| -rw-r--r-- | static/unix-v10/man2/umask.2 | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/static/unix-v10/man2/umask.2 b/static/unix-v10/man2/umask.2 new file mode 100644 index 00000000..70d9a9f5 --- /dev/null +++ b/static/unix-v10/man2/umask.2 @@ -0,0 +1,38 @@ +.TH UMASK 2 +.CT 2 file_inq_creat +.SH NAME +umask \(mi set file creation mode mask +.SH SYNOPSIS +.B int umask(complmode) +.SH DESCRIPTION +.I Umask +sets the process mode mask. +The mask modifies the +.I mode +argument of +.IR creat +(see +.IR open (2)), +.IR mkdir (2), +and +.IR mknod (2) +thus: +.L + mode &= (07777 & ~(complmode & 0777)) +.br +In other words, the mask specifies permission bits to be turned off +when files are created. +.PP +The previous value of the mask is returned by the call. +The initial value is set by +.IR login (8), +and may be modified by the +.I umask +command of +.IR sh (1). +The mask is inherited by child processes. +.SH SEE ALSO +.IR open (2), +.IR mkdir (2), +.IR mknod (2), +.IR stat (2) |
