main.c File Reference

#include <core.h>
#include "pipevar.h"

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]

Define Documentation

#define DEBUG   0
 

#define DEBUG_IO   (1<<0)
 

#define DEBUG_POLL   (1<<1)
 

#define MAXPIPE   3000
 

#define PIPE_USAGE   "usage: pipe [-v]"
 

#define PIPEBUFSIZ   8192
 


Function Documentation

void closepipe t_pipe pipes,
int  d,
char *  s
 

pid_t create_piped  ) 
 

void create_pipesrv  ) 
 

allocate a task for pipe server

void do_pipesrv_syscall  ) 
 

void dump_i int  i,
t_pipe pipe
 

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
 

int is_holder t_pipe pipe,
pid_t  pid
 

int is_last_holder t_pipe pipe,
pid_t  pid
 

void kill_holders t_pipe pipe,
int  sig,
int  cond,
char *  s
 

int main int  argc,
char **  argv
 

void piped_main  ) 
 

void pipesrv_syscall  ) 
 

void signotify int  sig  ) 
 

void sys_fd_pipe_close t_tcb caller  ) 
 

void sys_fd_pipe_dump t_tcb caller  ) 
 

void sys_fd_pipe_fstat t_tcb caller  ) 
 

void sys_fd_pipe_ioctl t_tcb caller  ) 
 

void sys_fd_pipe_open t_tcb caller  ) 
 

void sys_fd_pipe_poll t_tcb caller  ) 
 

void sys_fd_pipe_read t_tcb caller,
int *  do_yield
 

void sys_fd_pipe_write t_tcb caller,
int *  do_yield
 

void treat_dead pid_t  deadpid  ) 
 


Variable Documentation

t_pipe_info info
 

t_pipe pipes[MAXPIPE]
 


Generated on Wed May 24 23:06:00 2006 for LSE/OS by  doxygen 1.4.6