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.
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.