umask(2) umask(2)
NAME
umask - set and get file creation mask
SYNOPSIS
#include <sys/types.h>
#include <sys/stat.h>
mode_t umask(mode_t cmask);
DESCRIPTION
umask sets the process's file mode creation mask to cmask and
returns the previous value of the mask. Only the access
permission bits of cmask and the file mode creation mask are
used.
Files
Message catalog: uxcore.abi
Return Values
umask returns the previous value of the file mode creation
mask.
REFERENCES
chmod(2), creat(2), mkdir(1), mknod(2), open(2), sh(1),
stat(5)
NOTICES
Considerations for Threads Programming
The file creation mask is an attribute of the containing
process and is shared by sibling threads.
Copyright 1994 Novell, Inc. Page 1