Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ umask(2) — DG/UX R4.11MU05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mkdir(1)

sh(1)

umask(1)

chmod(2)

creat(2)

mknod(2)

open(2)



umask(2)                       DG/UX R4.11MU05                      umask(2)


NAME
       umask - set and get file creation mask

SYNOPSIS
       #include <sys/types.h>

       modet  umask (creationmask)
       modet  creationmask
       int     creationmask;

   where:
       creationmask  File mode creation mask

DESCRIPTION
       Umask sets the process's file mode creation mask to the low-order 9
       bits of creationmask and returns the previous value of the mask.
       Those bits other than the low-order 9 in creationmask are reserved,
       and in the return value are undefined.  See the chmod(2) for details
       of how this mask is used.

ACCESS CONTROL
       None.

RETURN VALUE
       0..07777       Previous mask value.

DIAGNOSTICS
       None.

SEE ALSO
       mkdir(1), sh(1), umask(1), chmod(2), creat(2), mknod(2), open(2).


Licensed material--property of copyright holder(s)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026