umask man page on OPENSTEP

Man page or keyword search:  
man Server   1419 pages
apropos Keyword Search (all sections)
Output format
OPENSTEP logo
[printable version]


UMASK(2)							      UMASK(2)

NAME
       umask - set file creation mode mask

SYNOPSIS
       #include <sys/types.h>
       #include <sys/stat.h>

       mode_t umask(mode_t cmask);

DESCRIPTION
       The  umask sets file mode creation mask of the calling process to cmask
       and returns the previous value of the mask.  The low-order nine bits of
       cmask  are used whenever a file is created, clearing corresponding bits
       in the file mode (see  chmod(2)).   This	 clearing  allows  a  user  to
       restrict the default access to his/her files.

       The  value is initially 022 (write access for owner only).  The mask is
       inherited by child processes.

       The BSD declaratation of	 umask	accepts	 and  returns  type  int,  not
       mode_t.

RETURN VALUE
       The  previous  value  of the file mode creation mask is returned by the
       call.

ERRORS
       The umask function is always successful—no return  value	 indicates  an
       error.

SEE ALSO
       chmod(2), creat(2), mkdir(2), mkfifo(2P),

4th Berkeley Distribution	August 1, 1992			      UMASK(2)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server OPENSTEP

List of man pages available for OPENSTEP

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net