Compaq Fortran for Tru64 UNIX Alpha Systems V5.4

umask (3f)


Syntax

  integer*4 umask, oumask, numask
  external umask
  oumask = umask ( numask )

Description

  The umask function sets the process's file mode creation mask to numask and
  returns the previous value of the mask. The value is initially 022 (write
  access for owner only).  The mask is inherited by child processes.

  The low-order nine bits of numask are used whenever a file is created,
  clearing corresponding bits in the file mode.  This clearing allows you to
  restrict the default access to your files.

  See umask(2) for the values of numask and oumask.

See Also

  chmod(1), chmod(2), open(2), umask(2), chmod(3f)