]>
git.zerfleddert.de Git - micropolis/blob - src/tcl/compat/testwait.c
4 * This file contains a simple program that will compile
5 * correctly if and only if <sys/wait.h> defines the
6 * type "union wait". It is used during configuration
7 * to determine whether or not to use this type.
9 * Copyright 1991 Regents of the University of California
10 * Permission to use, copy, modify, and distribute this
11 * software and its documentation for any purpose and without
12 * fee is hereby granted, provided that this copyright
13 * notice appears in all copies. The University of California
14 * makes no representations about the suitability of this
15 * software for any purpose. It is provided "as is" without
16 * express or implied warranty.
20 static char rcsid
[] = "$Header: /user6/ouster/tcl/compat/RCS/testwait.c,v 1.3 91/12/18 13:42:09 ouster Exp $ SPRITE (Berkeley)";
23 #include <sys/types.h>
27 * This code is very tricky, mostly because of weirdness in HP-UX
28 * where "union wait" is defined in both the BSD and SYS-V
29 * environments. Supposedly the WIFEXITED business will do the
37 WIFEXITED(x
); /* Generates compiler error if WIFEXITED