Home
Search all pages
Subjects
By activity
Professions, Sciences, Humanities, Business, ...
User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...
Text Strings
Conversions, tests, processing, manipulation,...
Math
Integer, Floating point, Matrix, Statistics, Boolean, ...
Processing
Algorithms, Memory, Process control, Debugging, ...
Stored Data
Data storage, Integrity, Encryption, Compression, ...
Communications
Networks, protocols, Interprocess, Remote, Client Server, ...
Hard World Timing, Calendar and Clock, Audio, Video, Printer, Controls...
File System
Management, Filtering, File & Directory access, Viewers, ...
|
|
|
RocketLink!--> Man page versions:
OpenBSD
FreeBSD
NetBSD
RedHat
Solaris
Others
UMASK(2) OpenBSD Programmer's Manual UMASK(2)
NAME
umask - set file creation mode mask
SYNOPSIS
#include <sys/types.h>
#include <sys/stat.h>
mode_t
umask(mode_t numask);
DESCRIPTION
The umask() routine sets the process's file mode creation mask to numask
and returns the previous value of the mask. The 9 low-order access per-
mission bits of numask are used by system calls, including open(2),
mkdir(2), mkfifo(2) and mknod(2) to turn off corresponding bits request-
ed in file mode. (See chmod(2)). This clearing allows each user to re-
strict the default access to his files.
The default mask value is S_IWGRP|S_IWOTH (022, write access for the own-
er only). Child processes inherit the mask of the calling process.
RETURN VALUES
The previous value of the file mode mask is returned by the call.
ERRORS
The umask() function is always successful.
SEE ALSO
chmod(2), mkdir(2), mkfifo(2), mknod(2), open(2)
STANDARDS
The umask() function call is expected to conform to IEEE Std1003.1-1988
(``POSIX'').
OpenBSD 2.6 June 4, 1993 1
Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts Institute of Technology, Free Software Foundation, FreeBSD Inc., and others. |
(Corrections, notes, and links courtesy of RocketAware.com)
Up to: File Access Limits - Limiting access to files (permissions, locking, et al)
Up to: Process Limits: File Access - Process Limits on File access (permissions, ownership, modes, et al)
RocketLink!--> Man page versions:
OpenBSD
FreeBSD
NetBSD
RedHat
Solaris
Others
Rapid-Links:
Search | About | Comments | Submit Path: RocketAware > man pages >
umask.2/
RocketAware.com is a service of Mib Software Copyright 1999, Forrest J. Cavalier III. All Rights Reserved. We welcome submissions and comments
|