libexplain  1.4.D001
Functions
libexplain/permission_mode.h File Reference
#include <libexplain/ac/stddef.h>

Go to the source code of this file.

Functions

void explain_message_permission_mode (char *message, size_t message_size, int mode)
const char * explain_permission_mode (int mode)

Function Documentation

void explain_message_permission_mode ( char *  message,
size_t  message_size,
int  mode 
)

The explain_message_permission_mode function may be used to decode a set of permission mode bits into human readable text, something like the programmer would have written.

Parameters:
messageThe character array to write the mode into. This makes the function thread safe if the array is suitable.
message_sizeThe size in bytes of the character array to write the mode into.
modethe permission mode bits to be decoded

Definition at line 26 of file permission_mode.c.

const char* explain_permission_mode ( int  mode)

The explain_permission_mode function may be used to decode a set of permission mode bits into human readable text, something like the programmer would have written.

Parameters:
modethe permission mode bits to be decoded
Returns:
pointer to string in shared buffer, it will be overwritten by subsequent calls to this function.
Note:
this function is not thread safe.

Definition at line 24 of file permission_mode.c.