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

Go to the source code of this file.

Functions

void explain_buffer_pollfd (explain_string_buffer_t *sb, const struct pollfd *data, int include_revents)
void explain_buffer_pollfd_array (explain_string_buffer_t *sb, const struct pollfd *data, int data_size, int include_revents)

Function Documentation

void explain_buffer_pollfd ( explain_string_buffer_t sb,
const struct pollfd *  data,
int  include_revents 
)

The explain_buffer_pollfd function may be used to print a representation of a pollfd structure.

Parameters:
sbThe string buffer to print into.
dataThe pollfd structure to be printed.
include_reventstrue (non-zero) of the revents field should be printed, false (zero) if the revents field should not be printed.

Definition at line 78 of file pollfd.c.

void explain_buffer_pollfd_array ( explain_string_buffer_t sb,
const struct pollfd *  data,
int  data_size,
int  include_revents 
)

The explain_buffer_pollfd_array function may be used to print a representation of an array of pollfd structures.

Parameters:
sbThe string buffer to print into.
dataa pointer to the base of the array of pollfd structures to be printed.
data_sizeThe number of pollfd structures to be printed.
include_reventstrue (non-zero) of the revents field should be printed, false (zero) if the revents field should not be printed.

Definition at line 106 of file pollfd.c.