/* * exec.h: header for exec.c * * Written By Michael Sandrof * * Copyright(c) 1990 * * See the COPYRIGHT file, or do a HELP IRCII COPYRIGHT * * @(#)$Id: exec.h,v 1.10 1994/07/02 02:38:10 mrg Stab $ */ #ifndef _EXEC_H_ #define _EXEC_H_ #include #ifdef NeXT /* lameness for configure/NeXT -phone */ # ifndef BSDWAIT # define BSDWAIT # endif #endif #ifndef WAITSTUFF_DECLARED # ifdef BSDWAIT # ifndef WAIT3_DECLARED struct rusage; union wait; extern int wait3 __P((union wait *, int, struct rusage *)); # endif /* WAIT3_DECLARED */ # else /* BSDWAIT */ # ifndef WAITPID_DECLARED extern short waitpid __P((int, int *, int)); # endif /* WAITPID_DECLARED */ # endif /* BSDWAIT */ #endif /* WAITSTUFF_DECLARED */ #ifndef WTERMSIG # ifndef BSDWAIT /* if wait is NOT a union: */ # define WTERMSIG(status) ((status) & 0177) # else # define WTERMSIG(status) status.w_T.w_Termsig # endif #endif #ifndef WEXITSTATUS # ifndef BSDWAIT # define WEXITSTATUS(status) ((status) & 0xff00) >> 8 /* dgux 5.4.1 */ # else # define WEXITSTATUS(status) status.w_T.w_Retcode # endif #endif extern void check_wait_status(); extern void check_process_list(); extern void check_process_limits(); extern void do_processes(); extern void set_process_bits(); extern int text_to_process(); extern char *signals[]; extern void clean_up_processes(); extern int is_process(); extern int get_process_index(); extern void exec_server_delete(); extern int is_process_running(); extern void add_process_wait(); extern void set_wait_process(); extern void close_all_exec(); extern int logical_to_index(); #endif /* _EXEC_H_ */