|
Defines |
#define | DEBUG_IO (1<<0) |
#define | DEBUG_POLL (1<<1) |
#define | DEBUG 0 |
#define | PIPEBUFSIZ 8192 |
#define | MAXPIPE 3000 |
#define | PIPE_USAGE "usage: pipe [-v]" |
Functions |
void | dump_i (int i, t_pipe *pipe) |
void | sys_fd_pipe_dump (t_tcb *caller) |
int | is_holder (t_pipe *pipe, pid_t pid) |
int | is_last_holder (t_pipe *pipe, pid_t pid) |
int | holder_add (t_pipe_info *info, t_pipe *pipe, pid_t pid) |
int | holder_rm (t_pipe_info *info, t_pipe *pipe, pid_t pid) |
void | kill_holders (t_pipe *pipe, int sig, int cond, char *s) |
void | sys_fd_pipe_open (t_tcb *caller) |
void | closepipe (t_pipe *pipes, int d, char *s) |
void | sys_fd_pipe_close (t_tcb *caller) |
void | sys_fd_pipe_write (t_tcb *caller, int *do_yield) |
void | sys_fd_pipe_read (t_tcb *caller, int *do_yield) |
void | sys_fd_pipe_poll (t_tcb *caller) |
void | sys_fd_pipe_fstat (t_tcb *caller) |
void | sys_fd_pipe_ioctl (t_tcb *caller) |
void | do_pipesrv_syscall () |
void | pipesrv_syscall () |
void | treat_dead (pid_t deadpid) |
void | signotify (int sig) |
void | piped_main () |
pid_t | create_piped () |
void | create_pipesrv () |
int | main (int argc, char **argv) |
Variables |
t_pipe_info | info |
t_pipe | pipes [MAXPIPE] |