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

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


SEE ALSO

Functions:
chmod(), setmode()


PTC MKS Toolkit 10.3 Documentation Build 39.