Queries the file mode creation mask.
int get_umask(void)
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.
The get_umask kernel service can be called from the process environment only.
The get_umask kernel service always completes successfully. Its return value is the current value of the umask.
This kernel service is part of Base Operating System (BOS) Runtime.
The umask subroutine.