rich@oxtrap.sendai.ann-arbor.mi.us (K. Richard Magill) (09/08/89)
More or less self explanatory. WCOREDUMP was originally undefined at link time. *** job.c-dist Thu Sep 7 16:58:40 1989 --- job.c Thu Sep 7 16:51:39 1989 *************** *** 42,48 **** extern int wait3 (); #endif ! #ifdef WTERMSIG #define WAIT_T int #else --- 42,48 ---- extern int wait3 (); #endif ! #if defined(WTERMSIG) && !defined(ultrix) #define WAIT_T int #else *************** *** 58,66 **** #else /* Have <sys/wait.h> or not USG. */ #define WAIT_T union wait #define WTERMSIG(x) ((x).w_termsig) ! #define WCOREDUMP(x) ((x).w_coredump) #define WEXITSTATUS(x) ((x).w_retcode) #ifndef WIFSIGNALED #define WIFSIGNALED(x) (WTERMSIG(x) != 0) #endif --- 58,74 ---- #else /* Have <sys/wait.h> or not USG. */ #define WAIT_T union wait + + #if !defined(WTERMSIG) #define WTERMSIG(x) ((x).w_termsig) ! #endif /* WTERMSIG */ ! ! #if !defined(WEXITSTATUS) #define WEXITSTATUS(x) ((x).w_retcode) + #endif /* WEXITSTATUS */ + + #define WCOREDUMP(x) ((x).w_coredump) + #ifndef WIFSIGNALED #define WIFSIGNALED(x) (WTERMSIG(x) != 0) #endif -- rich. -- rich.