aboutsummaryrefslogtreecommitdiffstats
path: root/src/syswait.h
diff options
context:
space:
mode:
authorRichard M. Stallman1995-02-17 10:27:34 +0000
committerRichard M. Stallman1995-02-17 10:27:34 +0000
commitda149a8fb6db28d379e96e1ce59fce2286446cf5 (patch)
treeb279011478b673f583713e358d15c6e2677b12bd /src/syswait.h
parented0ce9537bcae47aada141a40e95ae41a8dc7b8b (diff)
downloademacs-da149a8fb6db28d379e96e1ce59fce2286446cf5.tar.gz
emacs-da149a8fb6db28d379e96e1ce59fce2286446cf5.zip
New alternative specified by WAIT_USE_INT.
Diffstat (limited to 'src/syswait.h')
-rw-r--r--src/syswait.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/syswait.h b/src/syswait.h
index 6e21f75b7f7..435b47ecfb4 100644
--- a/src/syswait.h
+++ b/src/syswait.h
@@ -23,7 +23,17 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
23 23
24#ifndef VMS 24#ifndef VMS
25#ifndef WAITTYPE 25#ifndef WAITTYPE
26#if (!defined (BSD) && !defined (UNIPLUS) && !defined (STRIDE) && !(defined (HPUX) && !defined (NOMULTIPLEJOBS)) && !defined (HAVE_WAIT_HEADER)) || defined (LINUX) || defined (WAIT_USE_INT) 26
27#ifdef WAIT_USE_INT
28/* Some systems have union wait in their header, but we should use
29 int regardless of that. */
30#include <sys/wait.h>
31#define WAITTYPE int
32#define WRETCODE(w) WEXITSTATUS (w)
33
34#else /* not WAIT_USE_INT */
35
36#if (!defined (BSD) && !defined (UNIPLUS) && !defined (STRIDE) && !(defined (HPUX) && !defined (NOMULTIPLEJOBS)) && !defined (HAVE_WAIT_HEADER)) || defined (LINUX)
27#define WAITTYPE int 37#define WAITTYPE int
28#define WIFSTOPPED(w) ((w&0377) == 0177) 38#define WIFSTOPPED(w) ((w&0377) == 0177)
29#define WIFSIGNALED(w) ((w&0377) != 0177 && (w&~0377) == 0) 39#define WIFSIGNALED(w) ((w&0377) != 0177 && (w&~0377) == 0)
@@ -34,7 +44,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
34#ifndef WCOREDUMP 44#ifndef WCOREDUMP
35#define WCOREDUMP(w) ((w&0200) != 0) 45#define WCOREDUMP(w) ((w&0200) != 0)
36#endif 46#endif
47
37#else 48#else
49
38#ifdef BSD4_1 50#ifdef BSD4_1
39#include <wait.h> 51#include <wait.h>
40#else 52#else
@@ -72,8 +84,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
72#define WIFEXITED(w) (WTERMSIG (w) == 0) 84#define WIFEXITED(w) (WTERMSIG (w) == 0)
73#endif 85#endif
74#endif /* BSD or UNIPLUS or STRIDE */ 86#endif /* BSD or UNIPLUS or STRIDE */
87#endif /* not WAIT_USE_INT */
75#endif /* no WAITTYPE */ 88#endif /* no WAITTYPE */
89
76#else /* VMS */ 90#else /* VMS */
91
77#define WAITTYPE int 92#define WAITTYPE int
78#define WIFSTOPPED(w) 0 93#define WIFSTOPPED(w) 0
79#define WIFSIGNALED(w) 0 94#define WIFSIGNALED(w) 0
@@ -86,4 +101,5 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
86#include <iodef.h> 101#include <iodef.h>
87#include <clidef.h> 102#include <clidef.h>
88#include "vmsproc.h" 103#include "vmsproc.h"
104
89#endif /* VMS */ 105#endif /* VMS */