up | Inhaltsverzeichniss | Kommentar

Manual page for UMASK(2V)

umask - set file creation mode mask

SYNOPSIS

#include <sys/stat.h>

int umask(mask)
int mask;

SYSTEM V SYNOPSIS

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

mode_t umask(mask)
mode_t mask;

DESCRIPTION

umask() sets the process's file creation mask to mask and returns the previous value of the mask. The low-order 9 bits of mask are used whenever a file is created, clearing corresponding bits in the file access permissions. (see stat.2v This clearing restricts the default access to a file.

The mask is inherited by child processes.

RETURN VALUES

umask() returns the previous value of the file creation mask.

SEE ALSO

chmod.2v mknod.2v open.2v


index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97