|
|
1.1 ! root 1: .TH UMASK 2 "12 February 1983" ! 2: .UC 4 ! 3: .SH NAME ! 4: umask \- set file creation mode mask ! 5: .SH SYNOPSIS ! 6: .ft B ! 7: oumask = umask(numask) ! 8: .br ! 9: int oumask, numask; ! 10: .ft R ! 11: .SH DESCRIPTION ! 12: .I Umask ! 13: sets the process's file mode creation mask to \fInumask\fP ! 14: and returns the previous value of the mask. The low-order ! 15: 9 bits of \fInumask\fP are used whenever a file is created, ! 16: clearing corresponding bits in the file mode ! 17: (see ! 18: .IR chmod (2)). ! 19: This clearing allows each user to restrict the default access ! 20: to his files. ! 21: .PP ! 22: The value is initially 022 (write access for owner only). ! 23: The mask is inherited by child processes. ! 24: .SH "RETURN VALUE ! 25: The previous value of the file mode mask is returned by the call. ! 26: .SH SEE ALSO ! 27: chmod(2), mknod(2), open(2)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.