child.h File Reference

Go to the source code of this file.

Data Structures

struct  child_s

Typedefs

typedef struct child_s child_t
typedef struct children_s children_t

Functions

int child_create (pid_t pid, backend_t *be, child_t **pchild)
int child_free (child_t *child)
backend_tchild_backend (child_t *child)
pid_t * child_pid (child_t *child)
time_t * child_birth (child_t *child)
int children_create (children_t **pcs)
int children_free (children_t *cs)
int children_clear (children_t *cs)
size_t children_count (children_t *cs)
int children_del (children_t *cs, child_t *child)
int children_add (children_t *cs, child_t *child)
int children_getn (children_t *cs, size_t i, child_t **pc)
int children_get_by_pid (children_t *cs, pid_t pid, child_t **pc)

Typedef Documentation

typedef struct child_s child_t

Definition at line 16 of file child.h.

typedef struct children_s children_t

Definition at line 19 of file child.h.


Function Documentation

backend_t* child_backend ( child_t child  ) 
time_t* child_birth ( child_t child  ) 
int child_create ( pid_t  pid,
backend_t be,
child_t **  pchild 
)

Definition at line 132 of file child.c.

int child_free ( child_t child  ) 

Definition at line 152 of file child.c.

pid_t* child_pid ( child_t child  ) 
int children_add ( children_t cs,
child_t child 
)

Definition at line 14 of file child.c.

int children_clear ( children_t cs  ) 

Definition at line 43 of file child.c.

size_t children_count ( children_t cs  ) 

Definition at line 36 of file child.c.

int children_create ( children_t **  pcs  ) 

Definition at line 114 of file child.c.

int children_del ( children_t cs,
child_t child 
)

Definition at line 25 of file child.c.

int children_free ( children_t cs  ) 

Definition at line 102 of file child.c.

int children_get_by_pid ( children_t cs,
pid_t  pid,
child_t **  pc 
)

Definition at line 82 of file child.c.

int children_getn ( children_t cs,
size_t  i,
child_t **  pc 
)

Definition at line 61 of file child.c.