/* * system.h: things of global importance to people who use the utilities * in the sys- module. */ #ifndef _SYSTEM_D #define _SYSTEM_D struct pipedesc { int p_rdd; /* file descriptor opened for reading */ int p_wrd; /* file descriptor opened for writing */ char *p_tmpfile; /* (if not multitasking - temp file) */ } ; #define RUN_SYNC 0 /* wait for child to complete */ #define RUN_ASYNC 1 /* start and go */ #define RUN_PIPE 2 /* run part of a pipe */ #ifdef __STDC__ extern int makepipe(struct pipe_info *); extern void freepipe(struct pipe_info *); extern int multitask(); extern int jobstatus(); #else extern int makepipe(); extern void freepipe(); extern int multitask(); extern int jobstatus(); #endif #endif /*_SYSTEM_D*/