File:  [MW Coherent from dump] / coherent / a / usr / man / COHERENT / umask
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



umask()                COHERENT System Call               umask()




Set file creation mask

iinntt uummaasskk(_m_a_s_k)
iinntt _m_a_s_k;

umask allows a process to  restrict the mode of files it creates.
Commands that create  files should specify the maximum reasonable
mode.   A  parent (e.g.  the  shell sh)  usually  calls umask  to
restrict access to files created by subsequent commands.

mask should be constructed  from any of the permission bits found
in chmod (the low-order nine  bits).  When a file is created with
creat or  mknod, the bits  specified by mask are  zeroed in mode;
thus, bits set in mask specify permissions which will be denied.

umask returns the old value of the file creation mask.

***** See Also *****

COHERENT system calls, creat(), mknod(), sh




































COHERENT Lexicon                                           Page 1



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.