home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / src / baseline / jove-4.14.6.lha / jove-4.14.6 / iproc.h < prev    next >
C/C++ Source or Header  |  1992-01-10  |  1KB  |  50 lines

  1. /***************************************************************************
  2.  * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne.  JOVE *
  3.  * is provided to you without charge, and with no warranty.  You may give  *
  4.  * away copies of JOVE, including sources, provided that this notice is    *
  5.  * included in all the files.                                              *
  6.  ***************************************************************************/
  7.  
  8. struct process {
  9.     Process    *p_next;
  10. #ifdef    PIPEPROCS
  11.     int    p_toproc,    /* read p_fromproc and write p_toproc */
  12.         p_portpid,    /* pid of child (the portsrv) */
  13.         p_pid;        /* pid of real child i.e. not portsrv */
  14. #else
  15.     int    p_fd,        /* file descriptor of pty? opened r/w */
  16.         p_pid;        /* pid of child (the shell) */
  17. #endif
  18.     Buffer    *p_buffer;    /* add output to end of this buffer */
  19.     char    *p_name;    /* ... */
  20.     char    p_state,    /* State */
  21.         p_howdied,    /* Killed? or Exited? */
  22.         p_reason;    /* If signaled, p_reason is the signal; else
  23.                    it is the the exit code */
  24.     Mark    *p_mark;    /* where output left us */
  25.     char    p_dbx_mode;    /* whether to parse output for file/lineno
  26.                    pairs */
  27. };
  28.  
  29. extern int  NumProcs;
  30.  
  31. #ifdef    PIPEPROCS
  32. extern File    *ProcInput;
  33. extern int    kbd_pid;
  34. #else
  35. fd_set global_fd;
  36. #endif
  37.  
  38. extern void
  39. #ifdef    PIPEPROCS
  40.     read_proc proto((int, int)),
  41. #else
  42.     read_proc proto((int)),
  43. #endif
  44.     pinit proto((void)),
  45.     KillProcs proto((void)),
  46.     pbuftiedp proto((Buffer *));
  47.  
  48. extern char *
  49.     pstate proto((Process *));
  50.