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

Go to the source code of this file.

Functions

void explain_buffer_ptrace_options (explain_string_buffer_t *sb, long value)
long explain_parse_ptrace_options_or_die (const char *text, const char *caption)

Function Documentation

void explain_buffer_ptrace_options ( explain_string_buffer_t sb,
long  value 
)

The explain_buffer_ptrace_options function may be used to print a representation of a ptrace_options structure.

Parameters:
sbThe string buffer to print into.
valueThe ptrace(2) options value to be printed.

Definition at line 63 of file ptrace_options.c.

long explain_parse_ptrace_options_or_die ( const char *  text,
const char *  caption 
)

The explain_parse_ptrace_options_or_die function is used to parse a text string to extract a ptrace(2) options bit-map value.

Parameters:
textThe string to be parsed.
captionThe additional text for the error message, describing the source of the text.
Returns:
The numeric value of the options.
Note:
This function does not return if there is an error, but rather prints an error message and exits.

Definition at line 70 of file ptrace_options.c.