Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
umask(2)
Edit
PageHistory
Diff
Info
LikePages
UMASK !!!UMASK NAME SYNOPSIS DESCRIPTION RETURN VALUE CONFORMING TO SEE ALSO ---- !!NAME umask - set file creation mask !!SYNOPSIS __#include __ #include __ __mode_t umask(mode_t__ ''mask''__);__ !!DESCRIPTION __umask__ sets the umask to ''mask'' '' The umask is used by open(2) to set initial file permissions on a newly-created file. Specifically, permissions in the umask are turned off from the __mode__ argument to open(2) (so, for example, the common umask default value of 022 results in new files being created with permissions 0666 __mode__ is specified as 0666). !!RETURN VALUE This system call always succeeds and the previous value of the mask is returned. !!CONFORMING TO SVr4, SVID, POSIX, X/OPEN, BSD 4.3 !!SEE ALSO creat(2), open(2) ----
18 pages link to
umask(2)
:
perlfunc(1)
Man2u
at(1)
ash(1)
atq(1)
atrm(1)
batch(1)
csh(1)
fdopen(3)
mkfifo(3)
syscalls(2)
freopen(3)
clone(2)
creat(2)
mkdir(2)
mknod(2)
open(2)
fopen(3)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.