libexplain  1.4.D001
Data Structures | Defines | Typedefs | Functions
libexplain/lsof.h File Reference

Go to the source code of this file.

Data Structures

struct  explain_lsof_t

Defines

#define LIBEXPLAIN_LSOF_FD_mem   (-'m')
#define LIBEXPLAIN_LSOF_FD_txt   (-'t')
#define LIBEXPLAIN_LSOF_FD_cwd   (-'c')
#define LIBEXPLAIN_LSOF_FD_rtd   (-'r')
#define LIBEXPLAIN_LSOF_FD_NOFD   (-'N')

Typedefs

typedef struct explain_lsof_t explain_lsof_t

Functions

void explain_lsof (const char *options, explain_lsof_t *context)

Define Documentation

#define LIBEXPLAIN_LSOF_FD_cwd   (-'c')

Definition at line 25 of file lsof.h.

#define LIBEXPLAIN_LSOF_FD_mem   (-'m')

Definition at line 23 of file lsof.h.

#define LIBEXPLAIN_LSOF_FD_NOFD   (-'N')

Definition at line 27 of file lsof.h.

#define LIBEXPLAIN_LSOF_FD_rtd   (-'r')

Definition at line 26 of file lsof.h.

#define LIBEXPLAIN_LSOF_FD_txt   (-'t')

Definition at line 24 of file lsof.h.


Typedef Documentation

Definition at line 29 of file lsof.h.


Function Documentation

void explain_lsof ( const char *  options,
explain_lsof_t context 
)

The explain_lsof function may be used to

Parameters:
optionsThe options to be passed to the lsof(1) command.
contextThe context, used to remember pid and fildes, and call the appropriate callbacks, as the data is seen.

Definition at line 31 of file lsof.c.