annotate src/syswait.h @ 161:28f395d8dc7a r20-3b7

Import from CVS: tag r20-3b7
author cvs
date Mon, 13 Aug 2007 09:42:26 +0200
parents 43dd3413c7c7
children 15872534500d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* Define wait system call interface for Emacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 Copyright (C) 1995 Sun Microsystems, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 under the terms of the GNU General Public License as published by the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 Free Software Foundation; either version 2, or (at your option) any
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 along with XEmacs; see the file COPYING. If not, write to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 Boston, MA 02111-1307, USA. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
22 /* Cleanup by Martin Buchholz for Autoconf 2 (see the Autoconf Manual) */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
24 #include <sys/types.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
26 #ifdef HAVE_SYS_WAIT_H
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
27 #include <sys/wait.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
28 #endif
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
30 #ifndef WEXITSTATUS
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
31 #define WEXITSTATUS(s) ((s) >> 8)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
32 #endif
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
33 #ifndef WIFEXITED
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
34 #define WIFEXITED(s) (((s) & 0xff) == 0)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
35 #endif
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
36 #ifndef WIFSTOPPED
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
37 #define WIFSTOPPED(s) (((s) & 0xff) == 0x7f)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
38 #endif
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
39 #ifndef WIFSIGNALED
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
40 #define WIFSIGNALED(s) (((unsigned int)((s)-1) & 0xffff) < 0xff)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
41 #endif
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
42 #ifndef WCOREDUMP
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
43 #define WCOREDUMP(s) ((s) & 0200)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
44 #endif
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
45 #ifndef WTERMSIG
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
46 #define WTERMSIG(s) ((s) & 0x7f)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
47 #endif
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
48 #ifndef WSTOPSIG
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
49 #define WSTOPSIG(s) ((s) >> 8)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 0
diff changeset
50 #endif