|
|
1.1 ! root 1: /* a pipe between parent and child */ ! 2: typedef struct { ! 3: FILE *fp; /* parent process end */ ! 4: int fd; /* child process end */ ! 5: } stream; ! 6: ! 7: /* a child process */ ! 8: typedef struct process{ ! 9: stream *std[3]; /* standard fd's */ ! 10: int pid; /* process identifier */ ! 11: int status; /* exit status */ ! 12: } process; ! 13: ! 14: /* start/stop for a process */ ! 15: extern process *proc_start(); ! 16: extern int proc_wait(); ! 17: extern int proc_free(); ! 18: extern void stream_free(); ! 19: extern stream *instream(); ! 20: extern stream *outstream();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.