Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ umask(2) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

chmod

creat

mknod

open

stat.h

sh

umask

umask

Purpose

     Sets and gets the value of the file creation mask.

Syntax

     int umask (cmask)
     int cmask;

Description

     The umask system  call sets the process's  file mode cre-
     ation mask to the value of the cmask parameter.  Only the
     low-order 9 bits of the cmask parameter and the file mode
     creation mask are used.

Return Value

     Upon  successful completion,  the previous  value of  the
     file mode creation mask is returned.

Related Information

     In this book:  "chmod,"   "creat,"  "mknod," "open," and
     "stat.h."

     The sh  and umask commands  in AIX Operating  System Com-
     mands Reference.

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