strmode()

convert numeric file mode to string representation 

Function


SYNOPSIS

#include <string.h>

void strmode(mode_t m, char *p);


DESCRIPTION

The function strmode() converts the numeric file mode m, as would be obtained from a call to stat(), into a string representation. The null-terminated string is copied to the buffer addressed by p. The string format is similar to that displayed by the UNIX command ls -l. Including the terminating null, it is twelve characters long.


PARAMETERS

m 

Is the file mode that encodes access permissions and file type.

p 

Points to the buffer used to hold the string representation of file mode m.


RETURN VALUES

None.


CONFORMANCE

4.4BSD, with exceptions.


MULTITHREAD SAFETY LEVEL

Unsafe.


PORTING ISSUES

The UNIX security model is significantly different from that of 2012/8.1/2012R2/10/2016/2019. Refer to Security in the Windows Concepts chapter of the PTC MKS Toolkit UNIX to Windows Porting Guide for a description of how the NuTCRACKER Platform maps between these security models.


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(), stat(), umask()

Miscellaneous:
struct stat


PTC MKS Toolkit 10.3 Documentation Build 39.