getmode()

update file permissions mode value 

Function


SYNOPSIS

#include <unistd.h>

mode_t getmode(const void *set, mode_t omode);


DESCRIPTION

The function getmode() returns the value of omode as modified by the file-permissions mode value set. The type mode_t defines file-access permissions, as used, for example, in the chmod() function. A value for set can be obtained by calling setmode().


PARAMETERS

set 

Is the return value from setmode().

omode 

Is the original mode to be modified.


RETURN VALUES

The function returns an updated mode value.


CONFORMANCE

4.4BSD.


MULTITHREAD SAFETY LEVEL

Unsafe.


PORTING ISSUES

None.


AVAILABILITY

MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
chmod(), setmode()


MKS Toolkit 9.3 Documentation Build 6.