openldap/include/ac/wait.h

26 lines
460 B
C
Raw Normal View History

1998-09-19 13:43:52 -04:00
/* Generic wait.h */
#ifndef _AC_WAIT_H
#define _AC_WAIT_H
#include <sys/types.h>
1998-09-19 13:43:52 -04:00
#if HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif
1998-09-19 13:43:52 -04:00
#ifndef WEXITSTATUS
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
#endif
#ifndef WIFEXITED
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
#endif
1998-10-20 19:31:56 -04:00
#ifdef WCONTINUED
# define WAIT_FLAGS ( WNOHANG | WUNTRACED | WCONTINUED )
#else
# define WAIT_FLAGS ( WNOHANG | WUNTRACED )
#endif
1998-09-19 13:43:52 -04:00
#endif /* _AC_WAIT_H */