Back to index

courier  0.68.2
mywait.h
Go to the documentation of this file.
00001 #ifndef       mywait_h
00002 #define       mywait_h
00003 
00004 
00005 #include      "config.h"
00006 #include      <sys/types.h>
00007 #if HAVE_SYS_WAIT_H
00008 #include      <sys/wait.h>
00009 #endif
00010 #ifndef WEXITSTATUS
00011 #define       WEXITSTATUS(stat_val)       ((unsigned)(stat_val) >> 8)
00012 #endif
00013 #ifndef       WIFEXITED
00014 #define       WIFEXITED(stat_val)  (((stat_val) & 255) == 0)
00015 #endif
00016 
00017 #endif