home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mitsch75.zip / scheme-7_5_17-src.zip / scheme-7.5.17 / src / microcode / uxproc.h < prev    next >
C/C++ Source or Header  |  1999-01-02  |  2KB  |  55 lines

  1. /* -*-C-*-
  2.  
  3. $Id: uxproc.h,v 1.6 1999/01/02 06:11:34 cph Exp $
  4.  
  5. Copyright (c) 1990-1999 Massachusetts Institute of Technology
  6.  
  7. This program is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2 of the License, or (at
  10. your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful, but
  13. WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program; if not, write to the Free Software
  19. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. */
  21.  
  22. #ifndef SCM_UXPROC_H
  23. #define SCM_UXPROC_H
  24.  
  25. #include "osproc.h"
  26.  
  27. struct process
  28. {
  29.   pid_t id;
  30.   long tick;
  31.   long sync_tick;
  32.   unsigned short raw_reason;
  33.   unsigned short reason;
  34.   enum process_status raw_status;
  35.   enum process_status status;
  36.   enum process_jc_status jc_status;
  37. };
  38.  
  39. #define PROCESS_ID(process) ((process_table [(process)]) . id)
  40. #define PROCESS_TICK(process) ((process_table [(process)]) . tick)
  41. #define PROCESS_SYNC_TICK(process) ((process_table [(process)]) . sync_tick)
  42. #define PROCESS_RAW_REASON(process) ((process_table [(process)]) . raw_reason)
  43. #define PROCESS_REASON(process) ((process_table [(process)]) . reason)
  44. #define PROCESS_RAW_STATUS(process) ((process_table [(process)]) . raw_status)
  45. #define PROCESS_STATUS(process) ((process_table [(process)]) . status)
  46. #define PROCESS_JC_STATUS(process) ((process_table [(process)]) . jc_status)
  47.  
  48. extern struct process * process_table;
  49.  
  50. /* OS_make_subprocess is obsolete, but it uses the same interface as
  51.    UX_make_subprocess.  */
  52. #define UX_make_subprocess OS_make_subprocess
  53.  
  54. #endif /* SCM_UXPROC_H */
  55.