Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ umask(2) — UTek 3.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

chmod(2)

mknod(2)

open(2)



UMASK(2)                COMMAND REFERENCE                UMASK(2)



NAME
     umask - set file creation mode mask

SYNOPSIS
     oumask = umask(numask)
     int oumask, numask;

DESCRIPTION
     Umask sets the process's file mode creation mask to numask
     and returns the previous value of the mask in oumask. The
     low-order 9 bits of numask are used whenever a file is
     created, clearing corresponding bits in the file mode (see
     chmod(2)).  This clearing allows each user to restrict the
     default access to his files.

     The mask is inherited by child processes.

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

SEE ALSO
     chmod(2), mknod(2), and open(2).
































Printed 5/12/88                                                 1





































































%%index%%
na:264,87;
sy:351,513;
de:864,618;
rv:1482,200;
se:1682,180;
%%index%%000000000094

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