libexplain  1.4.D001
Data Structures | Typedefs | Functions
libexplain/string_flags.h File Reference

Go to the source code of this file.

Data Structures

struct  explain_string_flags_t

Typedefs

typedef struct
explain_string_flags_t 
explain_string_flags_t

Functions

void explain_string_flags_init (explain_string_flags_t *sf, const char *from)
void explain_string_flags_einval (const explain_string_flags_t *sf, explain_string_buffer_t *sb, const char *caption)

Typedef Documentation

Definition at line 23 of file string_flags.h.


Function Documentation

void explain_string_flags_einval ( const explain_string_flags_t sf,
explain_string_buffer_t sb,
const char *  caption 
)

The explain_string_flags_einval function may be used to print an expanation for an EINVAL error relating to the given string flags.

Parameters:
sfThe string flags of interest.
sbThe string buffer to print into.
captionThe name of th offending system call argument.

Definition at line 140 of file fopen.c.

void explain_string_flags_init ( explain_string_flags_t sf,
const char *  from 
)

The explain_string_flags_init function may be used to translate an fopen(3) flags string argument into an open(2) flags bit field argument.

Parameters:
sfThe string flags to fill
fromthe string to fill the string flags from

Definition at line 27 of file string_flags.c.