home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / pOSxA.lzx / pOSxA / dos / dosextens.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-12  |  4.5 KB  |  169 lines

  1. #ifndef DOS_DOSEXTENS_H
  2. #define DOS_DOSEXTENS_H
  3.  
  4. /*******************************************************************
  5.  pOS / Amiga adapt
  6. *******************************************************************/
  7.  
  8. #ifndef EXEC_TASKS_H
  9. #include <exec/tasks.h>
  10. #endif
  11.  
  12. #ifndef __INC_POS_PDOS_DOSBASE_H
  13. #include <p:pDos/DosBase.h>
  14. #endif
  15. #ifndef __INC_POS_PDOS_DOSDEV_H
  16. #include <p:pDos/DosDev.h>
  17. #endif
  18. #ifndef __INC_POS_PDOS_FILES_H
  19. #include <p:pDos/Files.h>
  20. #endif
  21. #ifndef __INC_POS_PDOS_LOCK_H
  22. #include <p:pDos/Lock.h>
  23. #endif
  24. #ifndef __INC_POS_PDOS_PROCESS_H
  25. #include <p:pDos/Process.h>
  26. #endif
  27. #ifndef __INC_POS_PDOS_SEGMENT_H
  28. #include <p:pDos/Segment.h>
  29. #endif
  30. #ifndef __INC_POS_PDOS_FIB_H
  31. #include <p:pDos/FIB.h>
  32. #endif
  33.  
  34. #ifndef EXEC_PORTS_H
  35. #include <exec/ports.h>
  36. #endif
  37. #ifndef EXEC_LIBRARIES_H
  38. #include <exec/libraries.h>
  39. #endif
  40. #ifndef EXEC_SEMAPHORES_H
  41. #include <exec/semaphores.h>
  42. #endif
  43. #ifndef DEVICES_TIMER_H
  44. #include <devices/timer.h>
  45. #endif
  46. #ifndef DOS_DOS_H
  47. #include <dos/dos.h>
  48. #endif
  49.  
  50.  
  51. #ifndef __BCPL__
  52. #define __BCPL__
  53.  typedef long  BPTR;
  54.  typedef long  BSTR;
  55. #endif
  56.  
  57.  
  58. struct Process
  59. {
  60.   struct Task         pr_Task;
  61.   struct MsgPort      pr_MsgPort;
  62.  
  63. #ifdef pOS_AMIGAEXEC
  64.   UBYTE pr_Pad[80];
  65. #endif
  66.  
  67.   ULONG       pr_SegList;
  68.   UWORD       pr_TaskNum;
  69.   SWORD       pr_Error2;
  70.   APTR        pr_CurrentDir;
  71.   APTR        pr_CIS;
  72.   APTR        pr_COS;
  73.   APTR        pr_CES;
  74.   APTR        pr_HomeShell;
  75.   APTR        pr_WindowPtr;
  76.   ULONG       pr_Flags;
  77.   VOID      (*pr_Exit_func)(_R_LB struct pOS_DosBase*,_R_A0 struct pOS_Process*);
  78.   ULONG       pr_ExitData;
  79. };
  80.  
  81.  
  82.  
  83.  
  84.  
  85. #define    PRF_FREESEGLIST PROCFLG_FreeSegList
  86. #define    PRF_FREECURRDIR PROCFLG_FreeCurrDir
  87. #define    PRF_CLOSEINPUT  PROCFLG_FreeCIS
  88. #define    PRF_CLOSEOUTPUT PROCFLG_FreeCOS
  89.  
  90.  
  91. #define FileHandle pOS_FileHandle
  92.  
  93. #define ACTION_NIL        DOSCMD_INVALID
  94. #define ACTION_STARTUP        _Px2_IGNORE
  95. #define ACTION_SET_MAP        _Px2_IGNORE
  96. #define ACTION_DIE        _Px2_IGNORE
  97. #define ACTION_EVENT        _Px2_IGNORE
  98. #define ACTION_CURRENT_VOLUME    _Px2_IGNORE
  99. #define ACTION_LOCATE_OBJECT    DOSCMD_LockObject
  100. #define ACTION_RENAME_DISK    DOSCMD_Relabel
  101. #define ACTION_WRITE        DOSCMD_WriteFH
  102. #define ACTION_READ        DOSCMD_ReadFH
  103. #define ACTION_FREE_LOCK    DOSCMD_UnlockObject
  104. #define ACTION_DELETE_OBJECT    DOSCMD_DeleteObject
  105. #define ACTION_RENAME_OBJECT    DOSCMD_RenameObject
  106. #define ACTION_MORE_CACHE    _Px2_IGNORE
  107. #define ACTION_COPY_DIR        DOSCMD_DupObjectLock
  108. #define ACTION_WAIT_CHAR    DOSCMD_WaitForChar
  109. #define ACTION_SET_PROTECT    DOSCMD_SetProtection
  110. #define ACTION_CREATE_DIR    DOSCMD_CreateDir
  111. #define ACTION_EXAMINE_OBJECT    DOSCMD_ExamineObject
  112. #define ACTION_EXAMINE_NEXT    DOSCMD_ExNextObject
  113. #define ACTION_DISK_INFO    _Px2_IGNORE
  114. #define ACTION_INFO        DOSCMD_InfoData
  115. #define ACTION_FLUSH        _Px2_IGNORE
  116. #define ACTION_SET_COMMENT    DOSCMD_SetComment
  117. #define ACTION_PARENT        DOSCMD_ParentObject
  118. #define ACTION_TIMER        _Px2_IGNORE
  119. #define ACTION_INHIBIT        DOSCMD_Inhibit
  120. #define ACTION_DISK_TYPE    _Px2_IGNORE
  121. #define ACTION_DISK_CHANGE    _Px2_IGNORE
  122. #define ACTION_SET_DATE        DOSCMD_SetDate
  123. #define ACTION_SCREEN_MODE    DOSCMD_SetScreenMode
  124. #define ACTION_READ_RETURN    _Px2_IGNORE
  125. #define ACTION_WRITE_RETURN    _Px2_IGNORE
  126. #define ACTION_SEEK        DOSCMD_SeekFH
  127. #define ACTION_FINDUPDATE    DOSCMD_OpenFH
  128. #define ACTION_FINDINPUT    DOSCMD_OpenFH
  129. #define ACTION_FINDOUTPUT    DOSCMD_OpenFH
  130. #define ACTION_END        DOSCMD_CloseFH
  131. #define ACTION_SET_FILE_SIZE    DOSCMD_SetSize
  132. #define ACTION_WRITE_PROTECT    _Px2_IGNORE
  133. #define ACTION_SAME_LOCK    DOSCMD_SameObject
  134. #define ACTION_CHANGE_SIGNAL    _Px2_IGNORE
  135. #define ACTION_FORMAT        _Px2_IGNORE
  136. #define ACTION_MAKE_LINK    _Px2_IGNORE
  137. #define ACTION_READ_LINK    _Px2_IGNORE
  138. #define ACTION_FH_FROM_LOCK    DOSCMD_OpenFromLock
  139. #define ACTION_IS_FILESYSTEM    DOSCMD_IsFileSystem
  140. #define ACTION_CHANGE_MODE    DOSCMD_ChangeAccess
  141. #define ACTION_COPY_DIR_FH    _Px2_IGNORE
  142. #define ACTION_PARENT_FH    _Px2_IGNORE
  143. #define ACTION_EXAMINE_ALL    _Px2_IGNORE
  144. #define ACTION_EXAMINE_FH    DOSCMD_ExamineObject
  145. #define ACTION_LOCK_RECORD    _Px2_IGNORE
  146. #define ACTION_FREE_RECORD    _Px2_IGNORE
  147. #define ACTION_ADD_NOTIFY    DOSCMD_AddNotify
  148. #define ACTION_REMOVE_NOTIFY    DOSCMD_RemNotify
  149. #define ACTION_EXAMINE_ALL_END    _Px2_IGNORE
  150. #define ACTION_SET_OWNER    _Px2_IGNORE
  151. #define    ACTION_SERIALIZE_DISK    _Px2_IGNORE
  152.  
  153. #define DosLibrary pOS_DosBase
  154. #define Segment pOS_Segment
  155. #define DosList pOS_DosDevice
  156.  
  157. #define DLT_DEVICE    DDTYP_Handler
  158. #define DLT_DIRECTORY    DDTYP_Assign
  159. #define DLT_VOLUME    DDTYP_Volume
  160. #define DLT_LATE    DDTYP_LateAssign
  161. #define DLT_NONBINDING    DDTYP_NonBindingAssign
  162.  
  163. #define FileLock pOS_FileLock
  164.  
  165. #define ST_USERDIR    FINFENTYP_Dir
  166. #define ST_FILE        FINFENTYP_File
  167.  
  168. #endif    /* DOS_DOSEXTENS_H */
  169.