openldap/include/ac/wait.h

20 lines
327 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
#endif /* _AC_WAIT_H */