[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

get_umask Kernel Service


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.

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.

Implementation Specifics

This kernel service is part of Base Operating System (BOS) Runtime.

Related Information

The umask subroutine.

[ Previous | Next | Contents | Home | Search ]