Main Page | Alphabetical List | Class List | File List | Class Members | File Members

wait.h

Go to the documentation of this file.
00001 /*--------------------------------------------------------------------------------
00002  * /
00003  * / apeNEXT wait functions for nlcc
00004  * /
00005  * / $Id: wait.h,v 1.2 2005/06/08 14:06:53 pleiter Exp $
00006  * /
00007  * /
00008  * / ISO/IEC 9899:1999 (E) Standard
00009  * / Date and Wait  <wait.h>
00010  * /
00011  * /
00012  * /
00013  * / IMPLEMENTATION for APEnext: partly possible (wait.h)
00014  * /-----------------------------------------------------------------------------*/
00015 
00016 #ifndef _WAIT_H
00017 #define _WAIT_H
00018 
00019 #include <nlibc.h>
00020 
00021 #define WEXITSTATUS(status)     (((status)&0xff00) >> 8)
00022 #define WTERMSIG(status)        ((status) & 0x7f)
00023 #define WSTOPSIG(status)        WEXITSTATUS(status)
00024 #define WIFEXITED(status)       (WTERMSIG(status) == 0)
00025 #define WIFSIGNALED(status)     (!WIFSTOPPED(status) && !WIFEXITED(status))
00026 #define WIFSTOPPED(status)      (((status) & 0xff) == 0x7f)
00027 
00028 
00029 #endif /* ifndef _WAIT_H  */

Generated on Fri Jul 14 10:51:32 2006 for nlibc by doxygen 1.3.5