File:  [CSRG BSD Unix] / 43BSDReno / contrib / jove / wait.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:57 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

/***************************************************************************
 * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne.  JOVE *
 * is provided to you without charge, and with no warranty.  You may give  *
 * away copies of JOVE, including sources, provided that this notice is    *
 * included in all the files.                                              *
 ***************************************************************************/

#if defined(BSD_WAIT)
# include <sys/wait.h>
# define w_termsignum(w)	((w).w_termsig)
#else
# define WIFSTOPPED(w)		(((w).w_status & 0377) == 0177)
# define WIFEXITED(w)		(((w).w_status & 0377) == 0)
# define WIFSIGNALED(w)		((((w).w_status >> 8) & 0377) == 0)
# define w_termsignum(w)	((w).w_status & 0177)
# define wait2(w, x)		wait(w)

union wait {
	int	w_status;
};
#endif

extern void
	kill_off proto((int, union wait));

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.