Coda Distributed File System
coda_wait.h
Go to the documentation of this file.
1/* BLURB lgpl
2
3 Coda File System
4 Release 8
5
6 Copyright (c) 1987-2025 Carnegie Mellon University
7 Additional copyrights listed below
8
9This code is distributed "AS IS" without warranty of any kind under
10the terms of the GNU Library General Public Licence Version 2, as
11shown in the file LICENSE. The technical and financial contributors to
12Coda are listed in the file CREDITS.
13
14 Additional copyrights
15 none currently
16
17*/
18
19#ifndef CODA_WAIT_H
20#define CODA_WAIT_H
21
22#ifdef HAVE_CONFIG_H
23#include <config.h>
24#endif
25
26/* Header files and macros for a common denominator in wait and friends */
27
28#include <sys/types.h>
29
30#ifdef HAVE_SYS_RESOURCE_H
31#include <sys/resource.h>
32#endif
33
34#include <sys/wait.h>
35
36#ifndef WEXITSTATUS
37#define WEXITSTATUS(x) ((unsigned(x) >> 8)
38#endif
39#ifndef WTERMSIG
40#define WTERMSIG(x) ((x) & 255)
41#endif
42#ifndef WCOREDUMP
43#define WCOREDUMP(x) ((x) & 0200)
44#endif
45
46#endif /* CODA_WAIT_H */