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

Go to the source code of this file.

Functions

void explain_buffer_ptrace_request (explain_string_buffer_t *sb, int data)
int explain_parse_ptrace_request_or_die (const char *text, const char *caption)

Function Documentation

The explain_buffer_ptrace_request function may be used to print a representation of a ptrace(2) request argument.

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

Definition at line 255 of file ptrace_request.c.

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

The explain_parse_ptrace_request_or_die function is used to parse a text string to extract a ptrace(2) request 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 request.
Note:
This function does not return if there is an error, but rather prints an error message and exits.

Definition at line 262 of file ptrace_request.c.