home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / SASC6574.LZX / include / fork.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-04  |  588 b   |  30 lines

  1. /* Copyright (c) 1993 SAS Institute, Inc, Cary, NC USA */
  2. /* All Rights Reserved. */
  3.  
  4. #ifndef _FORK_H
  5. #define _FORK_H
  6.  
  7. struct FAKE_SegList {
  8.    long space;
  9.    long length;
  10.    BPTR nextseg;
  11.    short jmp;
  12.    void (*func)();
  13. };
  14.  
  15. struct ProcMsg {               /* startup message sent to child */
  16.    struct Message msg;
  17.    char *prog;
  18.    char *command;
  19.    long len;
  20.    long return_code;           /* return code from process     */
  21.    BPTR std_in;
  22.    BPTR std_out;
  23.    BPTR console;
  24.    struct FAKE_SegList *seg;   /* pointer to fake seglist so   */
  25.    BPTR seglist;
  26.    BPTR curdir;
  27. };
  28.  
  29. #endif
  30.