mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +08:00
26 lines
460 B
C
26 lines
460 B
C
|
/* Generic wait.h */
|
||
|
|
||
|
#ifndef _AC_WAIT_H
|
||
|
#define _AC_WAIT_H
|
||
|
|
||
|
#include <sys/types.h>
|
||
|
|
||
|
#if HAVE_SYS_WAIT_H
|
||
|
# include <sys/wait.h>
|
||
|
#endif
|
||
|
|
||
|
#ifndef WEXITSTATUS
|
||
|
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
|
||
|
#endif
|
||
|
#ifndef WIFEXITED
|
||
|
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
|
||
|
#endif
|
||
|
|
||
|
#ifdef WCONTINUED
|
||
|
# define WAIT_FLAGS ( WNOHANG | WUNTRACED | WCONTINUED )
|
||
|
#else
|
||
|
# define WAIT_FLAGS ( WNOHANG | WUNTRACED )
|
||
|
#endif
|
||
|
|
||
|
#endif /* _AC_WAIT_H */
|