libexplain  1.4.D001
Functions
libexplain/buffer/shmctl_command.h File Reference
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Functions

void explain_buffer_shmctl_command (explain_string_buffer_t *sb, int value)
int explain_parse_shmctl_command_or_die (const char *text, const char *caption)

Function Documentation

The explain_buffer_shmctl_command function may be used to print a representation of a shmctl_command structure.

Parameters:
sbThe string buffer to print into.
valueThe shmctl command valie to be printed.

Definition at line 56 of file shmctl_command.c.

int explain_parse_shmctl_command_or_die ( const char *  text,
const char *  caption 
)

The explain_parse_shmctl_command_or_die function is used to parse a text string, to extract a shmctl(2) command argument value.

Parameters:
textThe text to be parsed.
captionan additonal descripotion, for error messages
Returns:
the chmctl(2) command. On error, it does not return.

Definition at line 63 of file shmctl_command.c.