libexplain  1.4.D001
Functions | Variables
libexplain/buffer/mmap_prot.c File Reference
#include <libexplain/ac/sys/mman.h>
#include <libexplain/buffer/mmap_prot.h>
#include <libexplain/parse_bits.h>

Go to the source code of this file.

Functions

void explain_buffer_mmap_prot (explain_string_buffer_t *sb, int prot)
int explain_parse_mmap_prot_or_die (const char *text, const char *caption)

Variables

static struct
explain_parse_bits_table_t 
table []

Function Documentation

void explain_buffer_mmap_prot ( explain_string_buffer_t sb,
int  data 
)

The explain_buffer_mmap_prot function may be used to print a representation of a mmap(2) prot value.

Parameters:
sbThe string buffer to print into.
dataThe mmap(2) prot argument to be printed.

Definition at line 46 of file mmap_prot.c.

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

The explain_parse_mmap_prot_or_die function is used to parse a text representation of a mmap(2) prot argument. It does not return if there is a parse error.

Parameters:
textThe text to be parsed.
captionadditional information for the error message

Definition at line 53 of file mmap_prot.c.


Variable Documentation

struct explain_parse_bits_table_t table[] [static]
Initial value:
{















}

Definition at line 25 of file mmap_prot.c.