]> git.sur5r.net Git - openldap/blob - ac/wait.h
Do not require ac/string.h for lber_pvt.h
[openldap] / ac / wait.h
1 /* Generic wait.h */
2
3 #ifndef _AC_WAIT_H
4 #define _AC_WAIT_H
5
6 #include <sys/types.h>
7
8 #if HAVE_SYS_WAIT_H
9 # include <sys/wait.h>
10 #endif
11
12 #ifndef WEXITSTATUS
13 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14 #endif
15 #ifndef WIFEXITED
16 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
17 #endif
18
19 #ifdef WCONTINUED
20 # define WAIT_FLAGS ( WNOHANG | WUNTRACED | WCONTINUED )
21 #else
22 # define WAIT_FLAGS ( WNOHANG | WUNTRACED )
23 #endif
24
25 #endif /* _AC_WAIT_H */