home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / Guide.lzx / Guide / pDOS / Process.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-11  |  4.2 KB  |  93 lines

  1. @DATABASE "pDOS/Process.h"
  2. @MASTER   "Work2:AD/IInc/pDOS/Process.h"
  3. @REMARK   This file was created by ADtoHT 2.0 on 11-Mär-97  13:34:11
  4. @REMARK   Do not edit
  5. @REMARK   ADtoHT is © 1993-1995 Christian Stieber
  6.  
  7. @NODE MAIN "pDOS/Process.h"
  8. @TOC "__pOS_Dev.guide/MAIN"
  9.  
  10. @{"pDOS/Process.h" LINK File}
  11.  
  12.  
  13. @{b}Structures@{ub}
  14.  
  15. @{"pOS_Process" LINK "pDOS/Process.h/File" 25}
  16.  
  17. @ENDNODE
  18. @NODE File "pDOS/Process.h"
  19. #ifndef __INC_POS_PDOS_PROCESS_H
  20. #define __INC_POS_PDOS_PROCESS_H
  21. /*******************************************************************
  22.  Includes Release 24
  23.  (C) Copyright 1995-1997 proDAD
  24.      All Rights Reserved
  25.  
  26.  $AUT Holger Burkarth
  27.  $DAT >>Process.h<<   08 Mar 1997    17:06:20 - (C) ProDAD
  28. *******************************************************************/
  29. #ifndef __INC_POS_PEXEC_TASK_H
  30. #include <@{"pExec/Task.h" LINK "pExec/Task.h/File"}>
  31. #endif
  32. #ifndef __INC_POS_PEXEC_MSGPORT_H
  33. #include <@{"pExec/MsgPort.h" LINK "pExec/MsgPort.h/File"}>
  34. #endif
  35. #ifndef __INC_POS_PEXEC_MEMORY_H
  36. #include <@{"pExec/Memory.h" LINK "pExec/Memory.h/File"}>
  37. #endif
  38.  
  39.  
  40.  
  41. /*----------------------------------
  42. -----------------------------------*/
  43. struct pOS_Process
  44. {
  45.   @{"struct pOS_Task" LINK "pExec/Task.h/File" 18}         pr_Task;
  46.   @{"struct pOS_MsgPort" LINK "pExec/MsgPort.h/File" 18}      pr_MsgPort;
  47.  
  48.   @{"UBYTE" LINK "pExec/Types.h/File" 95} pr_Pad[80];
  49.  
  50.   @{"struct pOS_SegmentLst" LINK "pDOS/Segment.h/File" 32}  *pr_SegList;      /* segment used by this process */
  51.   @{"UWORD" LINK "pExec/Types.h/File" 93}                   pr_TaskNum;
  52.   @{"SWORD" LINK "pExec/Types.h/File" 92}                   pr_Error2;       /* Value of secondary result from last IO (same as @{"pOS_GetIoErr()" LINK "pDOSD/pOS_GetIoErr"}) */
  53.   @{"struct pOS_FileLock" LINK "pDOS/Lock.h/File" 20}    *pr_CurrentDir;   /* Lock associated with current directory */
  54.   @{"struct pOS_FileHandle" LINK "pDOS/Files.h/File" 24}  *pr_CIS;          /* Current Input Stream  */
  55.   @{"struct pOS_FileHandle" LINK "pDOS/Files.h/File" 24}  *pr_COS;          /* Current Output Stream */
  56.   @{"struct pOS_FileHandle" LINK "pDOS/Files.h/File" 24}  *pr_CES;          /* Error stream          */
  57.   struct pOS_Shell       *pr_HomeShell;
  58.   @{"struct pOS_Window" LINK "pScreen/Window.h/File" 18}      *pr_ReqWindow;    /* Window for error printing (~0 => no requester) */
  59.   @{"ULONG" LINK "pExec/Types.h/File" 91}                   pr_Flags;        /* (enum pOS_ProcessFlags) */
  60.   @{"VOID" LINK "pExec/Types.h/File" 83}  (*pr_Exit_func)(@{"_R_LB" LINK "pExec/Types.h/File" 35} @{"struct pOS_DosBase" LINK "pDOS/DosBase.h/File" 30}*,_R_A0 struct pOS_Process*);
  61.   @{"ULONG" LINK "pExec/Types.h/File" 91}                   pr_ExitData;     /* Passed as an argument to pr_ExitCode. */
  62.  
  63.   const @{"CHAR" LINK "pExec/Types.h/File" 100}             *pr_Arguments;    /* Arguments passed to the process at start */
  64.   @{"struct pOS_FileHandle" LINK "pDOS/Files.h/File" 24}  *pr_ConsoleFH;    /* only in shell-mode */
  65.   @{"struct pOS_FileLock" LINK "pDOS/Lock.h/File" 20}    *pr_ProgDirLock;  /* Shared lock on Program-Directory (PROGDIR:) */
  66.   @{"struct pOS_MonLock" LINK "pGFX/MonLock.h/File" 18}     *pr_CurrentMon;
  67.  
  68.   @{"struct pOS_MemPool" LINK "pExec/Memory.h/File" 74}     pr_MemPool;       /* Pool for (4096 Bytes, MEMF_PUBLIC) (pr_LocalVars,) */
  69.                                     /* ACHTUNG: Pool ist nur für Single-Task ausgelegt. */
  70.   @{"struct pOS_ExList" LINK "pExec/List.h/File" 50}      pr_LocalVars;     /* Local env. variables (@{"struct pOS_LocalVar" LINK "pDOS/Var.h/File" 17}*) */
  71.  
  72.   @{"VOID" LINK "pExec/Types.h/File" 83} (*pr_Signal_func)(@{"_R_LB" LINK "pExec/Types.h/File" 35} @{"struct pOS_DosBase" LINK "pDOS/DosBase.h/File" 30}*,_R_A0 struct pOS_Process*,_R_A1 struct pOS_FileHandle*,_R_D0 ULONG);
  73.  
  74.   @{"UBYTE" LINK "pExec/Types.h/File" 95} pr_Reserved[64];
  75. };
  76.  
  77.  
  78.  
  79. enum pOS_ProcessFlags
  80. {
  81.   PROCF_FreeSegList     = 0x0001, /* pr_SegList wird beim Ende freigegeben */
  82.   PROCF_FreeCurrDir     = 0x0002, /* pr_CurrentDir */
  83.   PROCF_FreeCIS         = 0x0004, /* pr_CIS */
  84.   PROCF_FreeCOS         = 0x0008, /* */
  85.   PROCF_FreeCES         = 0x0010, /* */
  86.   PROCF_FreeConsoleFH   = 0x0020, /* pr_ConsoleFH */
  87.   PROCF_FreeProgDir     = 0x0040, /* pr_ProgDirLock */
  88.   PROCF_FreeProcNum     = 0x0080, /* pr_TaskNum */
  89. };
  90.  
  91. #endif
  92. @ENDNODE
  93.