wait.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* wait.h - Unix compatible wait structures for remote debugging support */
  2. /* Copyright 1984-1992 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01f,22sep92,rrr  added support for c++
  7. 01e,26may92,rrr  the tree shuffle
  8. 01d,04oct91,rrr  passed through the ansification filter
  9.   -changed copyright notice
  10. 01c,05oct90,shl  added copyright notice.
  11.                  made #endif ANSI style.
  12. 01b,17nov87,dnw  removed unnecessary stuff.
  13. */
  14. #ifndef __INCwaith
  15. #define __INCwaith
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. /*
  20.  * If w_stopval==WSTOPPED, then the second structure
  21.  * describes the information returned, else the first.
  22.  */
  23. union wait
  24.     {
  25.     int w_status;
  26.     /* Terminated process status. */
  27.     struct
  28. {
  29. unsigned short w_Fill1:16; /* high 16 bits unused */
  30. unsigned short w_Retcode:8; /* exit code if w_termsig==0 */
  31. unsigned short w_Coredump:1; /* core dump indicator */
  32. unsigned short w_Termsig:7; /* termination signal */
  33. } w_T;
  34.     /* Stopped process status. */
  35.     struct
  36. {
  37. unsigned short w_Fill2:16; /* high 16 bits unused */
  38. unsigned short w_Stopsig:8; /* signal that stopped us */
  39. unsigned short w_Stopval:8; /* == W_STOPPED if stopped */
  40. } w_S;
  41.     };
  42. #define w_termsig w_T.w_Termsig
  43. #define w_coredump w_T.w_Coredump
  44. #define w_retcode w_T.w_Retcode
  45. #define w_stopval w_S.w_Stopval
  46. #define w_stopsig w_S.w_Stopsig
  47. #define WSTOPPED 0177 /* value of s.stopval if process is stopped */
  48. #ifdef __cplusplus
  49. }
  50. #endif
  51. #endif /* __INCwaith */