libexplain  1.4.D001
Functions
libexplain/message/open_flags.c File Reference
#include <libexplain/buffer/open_flags.h>
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Functions

void explain_message_open_flags (char *message, size_t message_size, int flags)

Function Documentation

void explain_message_open_flags ( char *  message,
size_t  message_size,
int  flags 
)

The explain_message_open_flags function may be used to decode the flags argument to the open(2) system call into a humnan readable string, which is one representation of how it would be written by a coder.

Parameters:
messagewhere to put the constructed text. This makes it thread safe, given a suitabley safe buffer.
message_sizethe size of the buffer receiving the message
flagsthe flags argument passed to the open(2) system call, second argument

Definition at line 25 of file open_flags.c.