get_umask Kernel Service
Purpose
Queries the file mode creation mask.
Syntax
int get_umask(void)
Description
The get_umask service gets the value of the file mode creation mask currently set for the process.
Note: There
is no corresponding kernel service to set the umask because kernel
routines that need to set the umask can call the umask subroutine.
Execution Environment
The get_umask kernel service can be called from the process environment only.
Return Values
The get_umask kernel service always completes successfully. Its return value is the current value of the umask.