diff options
Diffstat (limited to 'man2/umask.2')
-rw-r--r-- | man2/umask.2 | 47 |
1 files changed, 25 insertions, 22 deletions
diff --git a/man2/umask.2 b/man2/umask.2 index 939f258e7..797870f91 100644 --- a/man2/umask.2 +++ b/man2/umask.2 @@ -32,8 +32,8 @@ sets the calling process's file mode creation mask (umask) to are used), and returns the previous value of the mask. .P The umask is used by -.BR open (2), -.BR mkdir (2), +.MR open 2 , +.MR mkdir 2 , and other system calls that create files .\" e.g., mkfifo(), creat(), mknod(), sem_open(), mq_open(), shm_open() .\" but NOT the System V IPC *get() calls @@ -42,12 +42,12 @@ Specifically, permissions in the umask are turned off from the .I mode argument to -.BR open (2) +.MR open 2 and -.BR mkdir (2). +.MR mkdir 2 . .P Alternatively, if the parent directory has a default ACL (see -.BR acl (5)), +.MR acl 5 ), the umask is ignored, the default ACL is inherited, the permission bits are set based on the inherited ACL, and permission bits absent in the @@ -69,7 +69,7 @@ argument of 0666 (rw-rw-rw-), the resulting file permissions would be 0644 The constants that should be used to specify .I mask are described in -.BR inode (7). +.MR inode 7 . .P The typical default value for the process umask is .BR S_IWGRP " | " S_IWOTH @@ -77,7 +77,7 @@ The typical default value for the process umask is In the usual case where the .I mode argument to -.BR open (2) +.MR open 2 is specified as: .P .in +4n @@ -105,10 +105,10 @@ POSIX.1-2008. POSIX.1-2001, SVr4, 4.3BSD. .SH NOTES A child process created via -.BR fork (2) +.MR fork 2 inherits its parent's umask. The umask is left unchanged by -.BR execve (2). +.MR execve 2 . .P It is impossible to use .BR umask () @@ -128,22 +128,25 @@ Inspecting this field in allows a process to retrieve its umask without at the same time changing it. .P The umask setting also affects the permissions assigned to POSIX IPC objects -.RB ( mq_open (3), -.BR sem_open (3), -.BR shm_open (3)), +\%(\c +.MR mq_open 3 , +.MR sem_open 3 , +.MR shm_open 3 ), FIFOs -.RB ( mkfifo (3)), +\%(\c +.MR mkfifo 3 ), and UNIX domain sockets -.RB ( unix (7)) +\%(\c +.MR unix 7 ) created by the process. The umask does not affect the permissions assigned to System\ V IPC objects created by the process (using -.BR msgget (2), -.BR semget (2), -.BR shmget (2)). +.MR msgget 2 , +.MR semget 2 , +.MR shmget 2 ). .SH SEE ALSO -.BR chmod (2), -.BR mkdir (2), -.BR open (2), -.BR stat (2), -.BR acl (5) +.MR chmod 2 , +.MR mkdir 2 , +.MR open 2 , +.MR stat 2 , +.MR acl 5 |