home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Utilities / ctxt-util-1.0 / table.h < prev   
Encoding:
C/C++ Source or Header  |  1995-06-12  |  875 b   |  29 lines

  1. /*
  2.  * Mach Operating System
  3.  * Copyright (c) 1986 Carnegie-Mellon University
  4.  * All rights reserved.  The CMU software License Agreement specifies
  5.  * the terms and conditions for use and redistribution.
  6.  */
  7. #define    TBL_PROCINFO        10    /* index by proc table slot */
  8. /*
  9.  *    TBL_PROCINFO data layout
  10.  */
  11. #define    PI_COMLEN    19    /* length of command string */
  12. struct tbl_procinfo
  13. {
  14.     int        pi_uid;        /* user ID */
  15.     int        pi_pid;        /* proc ID */
  16.     int        pi_ppid;    /* parent proc ID */
  17.     int        pi_pgrp;    /* proc group ID */
  18.     int        pi_ttyd;    /* controlling terminal number */
  19.     int        pi_status;    /* process status: */
  20. #define    PI_EMPTY    0        /* no process */
  21. #define    PI_ACTIVE    1        /* active process */
  22. #define    PI_EXITING    2        /* exiting */
  23. #define    PI_ZOMBIE    3        /* zombie */
  24.     int        pi_flag;    /* other random flags */
  25.     char    pi_comm[PI_COMLEN+1];
  26.                 /* short command name */
  27. };
  28.  
  29.