home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / bpos2api.zip / DOSPROCS.PAS < prev    next >
Pascal/Delphi Source File  |  1993-11-17  |  25KB  |  441 lines

  1.  
  2. (*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*)
  3. (*                                                                   *)
  4. (*     Borland Pascal OS/2 API                                       *)
  5. (*                                                                   *)
  6. (*     DOSPROCS - Dos system API                                     *)
  7. (*                                                                   *)
  8. (*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*)
  9.  
  10. unit DosProcs;
  11.  
  12. interface
  13.  
  14. uses
  15.   OS2Def, DosTypes;
  16.  
  17. function DosAllocHuge(NumSeg, Size : Word; var Selector : SEL;
  18.   MaxNumSeg, AllocFlags : Word) : Word;
  19. function DosAllocSeg(Size : Word; var Selector : SEL; AllocFlags : Word) : Word;
  20. function DosAllocShrSeg(Size : Word; Name : PChar; var Selector : SEL) : Word;
  21. function DosBeep(ulFrequency, ulDuration : Word) : Word;
  22. function DosBufReset(hf : HFILE) : Word;
  23. procedure DosCallback(Ring3Routine : PFN);
  24. function DosCallNPipe(pszName : CONSTPSZ; var pInbuf; ulInbufLength : Word;
  25.   var pOutbuf; ulOutbufSize : Word; var pulActualLength : Word;
  26.   ulTimeout : Longint) : Word;
  27. function DosCaseMap(Length : Word; var Country : TCountryCode; BinaryString : PChar) : Word;
  28. function DosChDir(DirName : PChar; Reserved : Longint) : Word;
  29. function DosChgFilePtr(hf : HFILE; ulOffset : Longint; MoveType : Word;
  30.   var NewPointer : Longint) : Longint;
  31. function DosCLIAccess : Word;
  32. function DosClose(hf : HFILE) : Word;
  33. function DosCloseQueue(hq : HQUEUE) : Word;
  34. function DosCloseSem(hsem : HSEM) : Word;
  35. function DosConnectNmPipe(hp : HPIPE) : Word;
  36. function DosCopy(SrcName, TargetName : PChar; OpMode : Word;
  37.   Reserved : Longint) : Word;
  38. function DosCreateCSAlias(DataSelector, CodeSelector : Word) : Word;
  39. function DosCreateQueue(var RWHandle : HQUEUE; QueuePrty : Word;
  40.   QueueName : PChar) : Word;
  41. function DosCreateSem(NoExclusive : Word; var SemHandle : HSYSSEM;
  42.   SemName : PChar) : Word;
  43. function DosCreateThread(Address : pointer; var ThreadIDWord : TID;
  44.   NewThreadStack : Pointer) : Word;
  45. function DosCwait(ActionCode : Word; WaitOption : Word; var ReturnCodes : TRESULTCODES;
  46.   var ProcessIDWord : PID; ProcessID : PID) : Word;
  47. function DosDelete(FileName : PChar; Reserved : Longint) : Word;
  48. function DosDevConfig(var DeviceInfo; Item, Parm : Word) : Word;
  49. function DosDevIOCtl(var Data, ParmList; Funct, Category : Word;
  50.   DevHandle : HFILE) : Word;
  51. function DosDevIOCtl2(var Data; DataLength : Word; var ParmList;
  52.   ParmListLength : Word; Funct, Category : Word; DevHandle : HFILE) : Word;
  53. function DosDisConnectNmPipe(hp : HPIPE) : Word;
  54. function DosDupHandle(OldHandle : HFILE; NewHandle : PHFILE) : Word;
  55. function DosEditName(EditLevel : Word; SourceString, EditString : PChar;
  56.   var TargetBuf; TargetBufLen : Word) : Word;
  57. function DosEnterCritSec : Word;
  58. function DosEnumAttribute(RefType : Word; FileRef : pointer; EntryNum : Longint;
  59.   var EnumBuf; EnumBufSize : Longint; var EnumCnt : Longint;
  60.   InfoLevel : Longint; Reserved : Longint) : Word;
  61. function DosErrClass(Code : Word; var Class, Action, Locus : Word) : Word;
  62. function DosError(Flags : Word) : Word;
  63. function DosExecPgm(ObjNameBuf : PChar; ObjNameBufLen : Word;
  64.   var ExecFlags : Word; ArgPointer, EnvPointer : PChar;
  65.   var ReturnCodes : TResultCodes; PgmPointer : PChar) : Word;
  66. procedure DosExit(ActionCode, ResultCode : Word);
  67. function DosExitCritSec : Word;
  68. function DosExitList(FcnCode_Order : Word; RtnAddress : TFNEXITLIST) : Word;
  69. function DosFileIO(hf : HFILE; var CommandList; CommandListLen : Word;
  70.   var ErrorOffset : Longint) : Word;
  71. function DosFileLocks(hf : HFILE; var UnlockRange, LockRange : TQWORD) : Word;
  72. function DosFindClose(DirHandle : HDIR) : Word;
  73. function DosFindFirst(FileName : PChar; var DirHandle : HDIR; Attribute : Word;
  74.   var ResultBuf : TFileFindBuf; ResultBufLen : Word; var SearchCount : Word;
  75.   Reserved : Longint) : Word;
  76. function DosFindFirst2(FileName : PChar; var DirHandle : HDIR; Attribute : Word;
  77.   var ResultBuf : TFileFindBuf; ResultBufLen : Word; var SearchCount : Word;
  78.   FileInfoLevel : Word; Reserved : Longint) : Word;
  79. function DosFindNext(DirHandle : HDIR; var ResultBuf : TFileFindBuf;
  80.   ResultBufLen : Word; var SearchCount : Word) : Word;
  81. function DosFlagProcess(ProcessID : PID; ActionCode, FlagNum, FlagArg : Word) : Word;
  82. function DosFreeModule(ModuleHandle : HModule) : Word;
  83. function DosFreeResource(ResAddr : pointer) : Word;
  84. function DosFreeSeg(Selector : SEL) : Word;
  85. function DosFSAttach(DeviceName : PChar; FSDName : PChar; var DataBuffer;
  86.   DataBufferLen, OpFlag : Word; Reserved : Longint) : Word;
  87. function DosFSCtl(var DataArea; DataLengthMax : Word; var DataLength : Word;
  88.   var ParmList; ParmLengthMax : Word; ParmLength : PWord;
  89.   FunctionCode : Word; RouteName : PChar; hf : HFILE;
  90.   RouteMethod : Word; Reserved : Longint) : Word;
  91. function DosFSRamSemClear(var FSRamSemStructure : TDOSFSRSEM) : Word;
  92. function DosFSRamSemRequest(var FSRamSemStructure : TDOSFSRSEM; TimeOut : Longint) : Word;
  93. function DosGetCollate(Length : Word; var Country : TCountryCode;
  94.   var MemoryBuffer; var DataLength : Word) : Word;
  95. function DosGetCp(Length : Word; var CodePageList : Word; var DataLength : Word) : Word;
  96. function DosGetCtryInfo(Length : Word; var Country : TCountryCode;
  97.   var MemoryBuffer : TCountryInfo; var DataLength : Word) : Word;
  98. procedure DosGetDateTime(var DTime : TDateTime);
  99. function DosGetDBCSEv(Length : Word; Country : TCountryCode;
  100.   var MemoryBuffer) : Word;
  101. function DosGetEnv(var Sel : Word; var Cmd : Word) : Word;
  102. procedure DosGetHugeShift(var ShiftCount : Word);
  103. function DosGetInfoSeg(var GlobalSeg, LocalSeg : SEL) : Word;
  104. procedure DosGetMachineMode(var MachineMode : Byte);
  105. function DosGetMessage(var lvTable; lvCount : Word; DataArea : PChar;
  106.   Datalen : Word; MsgNum : Word; FileName : PChar; var MsgLen : Word) : Word;
  107. function DosGetModHandle(ModuleName : PChar; var ModHandle : HMODULE) : Word;
  108. function DosGetModName(ModHandle : HMODULE; BufLen : Word; Buffer : PChar) : Word;
  109. procedure DosGetPID(var ProcessIDs : TPIDINFO);
  110. function DosGetPPID(PID : Word; var PPID : Word) : Word;
  111. function DosGetProcAddr(hmod : HMODULE; ProcName : PChar; ProcAdr : PFN) : Word;
  112. function DosGetPrty(Scope : Word; var Priority : Word; ID : Word) : Word;
  113. function DosGetResource(hmod : HMODULE; TypeID, NameID : Word; Selector : SEL) : Word;
  114. function DosGetResource2(hmod : HMODULE; TypeID, NameID : Word;
  115.   var ResAddr : pointer) : Word;
  116. function DosGetSeg(Selector : Sel) : Word;
  117. function DosGetShrSeg(Name : PChar; var Selector : Sel) : Word;
  118. procedure DosGetVersion(var VersionWord : Word);
  119. function DosGiveSeg(CallerSelector : Sel; ProcessID : PID;
  120.   RecipientSelector : Sel) : Word;
  121. function DosHoldSignal(EnableSignals : boolean) : Word;
  122. function DosInsMessage(var lvTable; lvCount : Word; MsgInput : PChar;
  123.   MsgInLength : Word; DataArea : PChar; DataLength : Word;
  124.   var MsgLength : Word) : Word;
  125. function DosKillProcess(KillDescendants : boolean; ProcessID : Word) : Word;
  126. function DosLoadModule(ObjNameBuf : PChar; ObjNameBufLen : Word;
  127.   ModuleName : PChar; var ModuleHandle : HModule) : Word;
  128. function DosLockSeg(Selector : Sel) : Word;
  129. function DosMakeNmPipe(PipeName : PChar; var hp : HPipe; OpenMode, PipeMode
  130.   : Word; OutBufSize, InBufSize : Word; TimeOut : Longint) : Word;
  131. function DosMakePipe(var ReadHandle, WriteHandle : HFile; PipeSize : Word) : Word;
  132. function DosMemAvail(var MemAvailSize : Longint) : Word;
  133. function DosMkDir(DirName : PChar; Reserved : Longint) : Word;
  134. function DosMkDir2(DirName : PChar; var EABuf : TEAOP; Reserved : Longint) : Word;
  135. function DosMonClose(Handle : HMonitor) : Word;
  136. function DosMonOpen(Devname : PChar; var Handle : HMonitor) : Word;
  137. function DosMonRead(var InputBuffer; Block : boolean; var DataBuffer;
  138.   var ByteCnt : Word) : Word;
  139. function DosMonReg(Handle : HMonitor; var InputBuffer, OutputBuffer;
  140.   PosFlag : Word; Index : Word) : Word;
  141. function DosMonWrite(var OutputBuffer, DataBuffer; Bytecnt : Word) : Word;
  142. function DosMove(OldPathName, NewPathName : PChar; Reserved : Longint) : Word;
  143. function DosMuxSemWait(var IndexNbr : Word; var ListAddr; Timeout : Longint) : Word;
  144. function DosNewSize(FileHandle : HFile; FileSize : Longint) : Word;
  145. function DosOpen(FileName : PChar; var FileHandle : HFile;
  146.   var ActionTaken : Word; FileSize : Longint; FileAttr : Word;
  147.   OpenFlag, OpenMode : Word; Reserved : Longint) : Word;
  148. function DosOpen2(FileName : PChar; var FileHandle : HFile;
  149.   var ActionTaken : Word; FileSize : Longint; FileAttr : Word;
  150.   OpenFlag, OpenMode : Word; var EABuf : TEAOp; Reserved : Longint) : Word;
  151. function DosOpenQueue(var OwnerPID : Word; var hqueue : HQueue;
  152.   QueueName : PChar) : Word;
  153. function DosOpenSem(var hs : HSem; SemName : PChar) : Word;
  154. function DosPeekNmPipe(Handle : HPipe; var Buffer; BufferLen : Word;
  155.   var BytesRead, BytesAvail, PipeState : Word) : Word;
  156. function DosPeekQueue(hq : HQueue; var Request : Longint;
  157.   var DataLength : Word; var DataAdr : Longint; Specified, NoWait : boolean;
  158.   var ElemPriority: Byte; SemaphoreHandle : Longint) : Word;
  159. {
  160. function DosPFSActivate(var SplHandle; var BytesWritten : Longint;
  161.   PrinterName : PChar; CodePage, FontID, SFN : Word; Reserved : Longint) : Word;
  162. function DosPFSCloseUser(PrinterName : PChar; SFN : Word; Reserved : Longint) : Word;
  163. function DosPFSInit(var CPHdw : Word; FontFileName, PrinterType, PrinterName : PChar;
  164.   Instances : Word; Reserved : Longint) : Word;
  165. function DosPFSQueryAct(PrinterName : PChar; var CodePage, FontID : Word;
  166.    SFN : Word; Reserved : Longint) : Word;
  167. function DosPFSVerifyFont(PrinterName : PChar; CodePage, FontID : Word;
  168.    Reserved : Longint) : Word;
  169. }
  170. function DosPhysicalDisk(Funct : Word; var Data; DataLen : Word;
  171.   var Parm; ParmLen : Word) : Word;
  172. function DosPortAccess(Reserved, TypeOfAccess, FirstPort, LastPort : Word) : Word;
  173. {
  174. function DosPTrace(PtraceB : pointer) : Word;
  175. }
  176. function DosPurgeQueue(hq : HQueue) : Word;
  177. function DosPutMessage(hf : Word; MessageLen : Word; MessageBuf : PChar) : Word;
  178. function DosQAppType(ExeFileName : PChar; var AppType : Word) : Word;
  179. function DosQCurDir(DriveNum : Word; DirPath : PChar; var DirPathLen : Word) : Word;
  180. procedure DosQCurDisk(var DriveNum : Word; var LogicalDriveMap : Longint);
  181. function DosQFHandState(hf : HFile; var FileHandleState : Word) : Word;
  182. function DosQFileInfo(hf : HFile; FileInfoLevel : Word; var FileInfoBuf;
  183.   FileInfoBufSize : Word) : Word;
  184. function DosQFileMode(FilePathName : PChar; var CurrentAttr : Word;
  185.   Reserved : Longint) : Word;
  186. function DosQFSAttach(DeviceName : PChar; Ordinal, FSAInfoLevel : Word;
  187.   var DataBuffer; var DataBufferLen : Word; Reserved : Longint) : Word;
  188. function DosQFSInfo(DriveNum : Word; FSInfolevel : Word; var FSInfoBuf;
  189.   FSInfoBufSize : Word) : Word;
  190. function DosQHandType(hf : HFile; var HandType : Word; FlagWord : PWord) : Word;
  191. function DosQNmPHandState(Handle : HPipe; var PipeHandleState : Word) : Word;
  192. function DosQNmPipeInfo(Handle : HPipe; InfoLevel : Word; var InfoBuf;
  193.   InfoBufSize : Word) : Word;
  194. function DosQNmPipeSemState(hs : HSem; var InfoBuf; InfoBufLen : Word) : Word;
  195. function DosQPathInfo(PathName : PChar; PathInfoLevel : Word; var PathInfoBuf;
  196.   PathInfoBufSize : Word; Reserved : Longint) : Word;
  197. function DosQSysInfo(Index : Word; var DataBuf; DataBufLen : Word) : Word;
  198. function DosQueryQueue(hq : HQueue; var NumElements : Word) : Word;
  199. function DosQVerify(var Active : Word) : Word;
  200. function DosR2StackRealloc(NewSize : Word) : Word;
  201. function DosRead(hf : HFile; var BufferArea; BufferLength : Word;
  202.   var BytesRead : Word) : Word;
  203. function DosReadAsync(hf : HFile; var RamSemaphore : Longint;
  204.   var ReturnCode : Word; var Buffer; BufferLen : Word; var BytesRead : Word) : Word;
  205. function DosReadQueue(hq : HQUEUE; var Request : Longint;
  206.   var DataLength : Word; var DataAddress : Longint; ElementCode : Word;
  207.   NoWait : boolean; var ElemPriority : Byte; SemaphoreHandle : HSEM) : Word;
  208. function DosReallocHuge(NumSeg : Word; Size : Word; Selector : SEL) : Word;
  209. function DosReallocSeg(Size : Word; Selector : SEL) : Word;
  210. function DosResumeThread(ThreadID : TID) : Word;
  211. function DosRmDir(DirName : PChar; Reserved : Longint) : Word;
  212. function DosScanEnv(EnvVarName : PChar; ResultPointer : pointer) : Word;
  213. function DosSearchPath(Control : Word; PathRef, FileName : PChar;
  214.   var ResultBuffer; ResultBufferLen : Word) : Word;
  215. function DosSelectDisk(DriveNumber : Word) : Word;
  216. function DosSelectSession(SessID : Word; Reserved : Longint) : Word;
  217. function DosSemClear(hs : HSEM) : Word;
  218. function DosSemRequest(hs : HSEM; Timeout : Longint) : Word;
  219. function DosSemSet(hs : HSEM) : Word;
  220. function DosSemSetWait(hs : HSEM; Timeout : Longint) : Word;
  221. function DosSemWait(hs : HSEM; Timeout : Longint) : Word;
  222. function DosSendSignal(PID : Word; SigNumber : Word) : Word;
  223. function DosSetCp(CodePage : Word; Reserved : Word) : Word;
  224. function DosSetDateTime(var DTime : TDateTime) : BOOL;
  225. function DosSetFHandState(hf : HFILE; FileHandleState : Word) : Word;
  226. function DosSetFileInfo(hf : HFILE; FileInfoLevel : Word;
  227.   var FileInfoBuf; FileInfoBufSize : Word) : Word;
  228. function DosSetFileMode(FileName : PChar; NewAttrib : Word; Reserved : Longint) : Word;
  229. function DosSetFSInfo(DriveNum : Word; FSInfoLevel : Word; var FSInfoBuf;
  230.   FSInfoBufSize : Word) : Word;
  231. function DosSetMaxFH(NumberHandles : Word) : Word;
  232. function DosSetNmPHandState(hp : HPIPE; PipeHandleState : Word) : Word;
  233. function DosSetNmPipeSem(hp : HPIPE; hs : HSEM; KeyHandle : Word) : Word;
  234. function DosSetPathInfo(PathName : PChar; PathInfoLevel : Word; var PathInfoBuf;
  235.   PathInfoBufSize, PathInfoFlags : Word; Reserved : Longint) : Word;
  236. function DosSetProcCp(CodePage : Word; Reserved : Word) : Word;
  237. function DosSetPrty(Scope, Class : Word; Delta : Integer; ID : Word) : Word;
  238. function DosSetSession(SessID : Word; var StatData : TStatusData) : Word;
  239. function DosSetSigHandler(Routine : pointer; PrevAddress : pointer;
  240.   PrevAction : PWord; Action : Word; SigNumber : Word) : Word;
  241. function DosSetVec(VecNum : Word; Routine : pointer; PrevAddress : pointer) : Word;
  242. function DosSetVerify(Setting : boolean) : Word;
  243. function DosSizeSeg(Selector : SEL; var Size : Longint) : Word;
  244. function DosShutdown(Reserved : Longint) : Word;
  245. function DosSleep(TimeInterval : Longint) : Word;
  246. function DosSMRegisterDD(RegData : pointer) : Word;
  247. function DosStartSession(var StData : TStartData; SessID, ProcID : PWord) : Word;
  248. function DosStopSession(TargetOption : Word; SessID : Word; Reserved : Longint) : Word;
  249. function DosSubAlloc(SegSel : SEL; var BlockOfs : Word; Size : Word) : Word;
  250. function DosSubFree(SegSel : SEL; BlockOfs : Word; Size : Word) : Word;
  251. function DosSubSet(SegSel : SEL; Init : boolean; Size : Word) : Word;
  252. function DosSuspendThread(ThreadID : TID) : BOOL;
  253. function DosTimerAsync(TimeInterval : Longint; hs : HSEM; var Handle : HTIMER) : Word;
  254. function DosTimerStart(TimeInterval : Longint; hs : HSEM; var Handle : HTIMER) : Word;
  255. function DosTimerStop(Handle : HTIMER) : Word;
  256. function DosTransactNmPipe(hp : HPipe; var InBuffer; InBufferLen : Word;
  257.   var OutBuffer; OutBufferLen : Word; var BytesOut : Word) : Word;
  258. function DosUnlockSeg(Selector : Sel) : Word;
  259. function DosWaitNmPipe(FileName : PChar; TimeOut : Longint) : Word;
  260. function DosWrite(hf : HFile; var Buffer; BufferLen : Word;
  261.   var BytesWritten : Word) : Word;
  262. function DosWriteAsync(hf : HFile; var RamSemaphore : Longint;
  263.   var ReturnCode : Word; var Buffer; BufferLen : Word;
  264.   var BytesWritten: Word) : Word;
  265. function DosWriteQueue(hq : HQueue; Request : Word; DataLen : Word;
  266.   var DataBuffer; ElemPriority : Byte) : Word;
  267.  
  268. implementation
  269.  
  270. function DOSALLOCHUGE; external 'DOSCALLS' index 40;
  271. function DOSALLOCSEG; external 'DOSCALLS' index 34;
  272. function DOSALLOCSHRSEG; external 'DOSCALLS' index 35;
  273. function DOSBEEP; external 'DOSCALLS' index 50;
  274. function DOSBUFRESET; external 'DOSCALLS' index 56;
  275. function DOSCALLNPIPE; external 'DOSCALLS' index 240;
  276. procedure DOSCALLBACK; external 'DOSCALLS' index 157;
  277. function DOSCASEMAP; external 'NLS' index 1;
  278. function DOSCHDIR; external 'DOSCALLS' index 57;
  279. function DOSCHGFILEPTR; external 'DOSCALLS' index 58;
  280. function DOSCLIACCESS; external 'DOSCALLS' index 51;
  281. function DOSCLOSE; external 'DOSCALLS' index 59;
  282. function DOSCLOSEQUEUE; external 'QUECALLS' index 3;
  283. function DOSCLOSESEM; external 'DOSCALLS' index 23;
  284. function DOSCONNECTNMPIPE; external 'NAMPIPES' index 3;
  285. function DOSCOPY; external 'DOSCALLS' index 201;
  286. function DOSCREATECSALIAS; external 'DOSCALLS' index 43;
  287. function DOSCREATEQUEUE; external 'QUECALLS' index 8;
  288. function DOSCREATESEM; external 'DOSCALLS' index 24;
  289. function DOSCREATETHREAD; external 'DOSCALLS' index 145;
  290. function DOSCWAIT; external 'DOSCALLS' index 2;
  291. function DOSDELETE; external 'DOSCALLS' index 60;
  292. function DOSDEVCONFIG; external 'DOSCALLS' index 52;
  293. function DOSDEVIOCTL; external 'DOSCALLS' index 53;
  294. function DOSDEVIOCTL2; external 'DOSCALLS' index 99;
  295. function DOSDISCONNECTNMPIPE; external 'NAMPIPES' index 4;
  296. function DOSDUPHANDLE; external 'DOSCALLS' index 61;
  297. function DOSEDITNAME; external 'DOSCALLS' index 191;
  298. function DOSENTERCRITSEC; external 'DOSCALLS' index 3;
  299. function DOSENUMATTRIBUTE; external 'DOSCALLS' index 204;
  300. function DOSERRCLASS; external 'DOSCALLS' index 139;
  301. function DOSERROR; external 'DOSCALLS' index 120;
  302. function DOSEXECPGM; external 'DOSCALLS' index 144;
  303. procedure DOSEXIT; external 'DOSCALLS' index 5;
  304. function DOSEXITCRITSEC; external 'DOSCALLS' index 6;
  305. function DOSEXITLIST; external 'DOSCALLS' index 7;
  306. function DOSFILEIO; external 'DOSCALLS' index 186;
  307. function DOSFILELOCKS; external 'DOSCALLS' index 62;
  308. function DOSFINDCLOSE; external 'DOSCALLS' index 63;
  309. function DOSFINDFIRST; external 'DOSCALLS' index 64;
  310. function DOSFINDFIRST2; external 'DOSCALLS' index 184;
  311. function DOSFINDNEXT; external 'DOSCALLS' index 65;
  312. function DOSFLAGPROCESS; external 'DOSCALLS' index 15;
  313. function DOSFREEMODULE; external 'DOSCALLS' index 46;
  314. function DOSFREERESOURCE; external 'DOSCALLS' index 208;
  315. function DOSFREESEG; external 'DOSCALLS' index 39;
  316. function DOSFSATTACH; external 'DOSCALLS' index 181;
  317. function DOSFSCTL; external 'DOSCALLS' index 183;
  318. function DOSFSRAMSEMCLEAR; external 'DOSCALLS' index 162;
  319. function DOSFSRAMSEMREQUEST; external 'DOSCALLS' index 161;
  320. function DOSGETCOLLATE; external 'NLS' index 2;
  321. function DOSGETCP; external 'DOSCALLS' index 130;
  322. function DOSGETCTRYINFO; external 'NLS' index 3;
  323. procedure DOSGETDATETIME; external 'DOSCALLS' index 33;
  324. function DOSGETDBCSEV; external 'NLS' index 4;
  325. function DOSGETENV; external 'DOSCALLS' index 91;
  326. procedure DOSGETHUGESHIFT; external 'DOSCALLS' index 41;
  327. function DOSGETINFOSEG; external 'DOSCALLS' index 8;
  328. procedure DOSGETMACHINEMODE; external 'DOSCALLS' index 49;
  329. function DOSGETMESSAGE; external 'MSG' index 2;
  330. function DOSGETMODHANDLE; external 'DOSCALLS' index 47;
  331. function DOSGETMODNAME; external 'DOSCALLS' index 48;
  332. procedure DOSGETPID; external 'DOSCALLS' index 94;
  333. function DOSGETPPID; external 'DOSCALLS' index 156;
  334. function DOSGETPROCADDR; external 'DOSCALLS' index 45;
  335. function DOSGETPRTY; external 'DOSCALLS' index 9;
  336. function DOSGETRESOURCE; external 'DOSCALLS' index 155;
  337. function DOSGETRESOURCE2; external 'DOSCALLS' index 207;
  338. function DOSGETSEG; external 'DOSCALLS' index 121;
  339. function DOSGETSHRSEG; external 'DOSCALLS' index 36;
  340. procedure DOSGETVERSION; external 'DOSCALLS' index 92;
  341. function DOSGIVESEG; external 'DOSCALLS' index 37;
  342. function DOSHOLDSIGNAL; external 'DOSCALLS' index 13;
  343. function DOSINSMESSAGE; external 'MSG' index 3;
  344. function DOSKILLPROCESS; external 'DOSCALLS' index 10;
  345. function DOSLOADMODULE; external 'DOSCALLS' index 44;
  346. function DOSLOCKSEG; external 'DOSCALLS' index 122;
  347. function DOSMAKENMPIPE; external 'NAMPIPES' index 1;
  348. function DOSMAKEPIPE; external 'DOSCALLS' index 16;
  349. function DOSMEMAVAIL; external 'DOSCALLS' index 127;
  350. function DOSMKDIR; external 'DOSCALLS' index 66;
  351. function DOSMKDIR2; external 'DOSCALLS' index 185;
  352. function DOSMONCLOSE; external 'MONCALLS' index 3;
  353. function DOSMONOPEN; external 'MONCALLS' index 4;
  354. function DOSMONREAD; external 'MONCALLS' index 2;
  355. function DOSMONREG; external 'MONCALLS' index 5;
  356. function DOSMONWRITE; external 'MONCALLS' index 1;
  357. function DOSMOVE; external 'DOSCALLS' index 67;
  358. function DOSMUXSEMWAIT; external 'DOSCALLS' index 22;
  359. function DOSNEWSIZE; external 'DOSCALLS' index 68;
  360. function DOSOPEN; external 'DOSCALLS' index 70;
  361. function DOSOPEN2; external 'DOSCALLS' index 95;
  362. function DOSOPENQUEUE; external 'QUECALLS' index 7;
  363. function DOSOPENSEM; external 'DOSCALLS' index 25;
  364. function DOSPEEKNMPIPE; external 'NAMPIPES' index 7;
  365. function DOSPEEKQUEUE; external 'QUECALLS' index 5;
  366. function DOSPHYSICALDISK; external 'DOSCALLS' index 129;
  367. function DOSPORTACCESS; external 'DOSCALLS' index 69;
  368. function DOSPURGEQUEUE; external 'QUECALLS' index 2;
  369. function DOSPUTMESSAGE; external 'MSG' index 1;
  370. function DOSQAPPTYPE; external 'DOSCALLS' index 163;
  371. function DOSQCURDIR; external 'DOSCALLS' index 71;
  372. procedure DOSQCURDISK; external 'DOSCALLS' index 72;
  373. function DOSQFHANDSTATE; external 'DOSCALLS' index 73;
  374. function DOSQFILEINFO; external 'DOSCALLS' index 74;
  375. function DOSQFILEMODE; external 'DOSCALLS' index 75;
  376. function DOSQFSATTACH; external 'DOSCALLS' index 182;
  377. function DOSQFSINFO; external 'DOSCALLS' index 76;
  378. function DOSQHANDTYPE; external 'DOSCALLS' index 77;
  379. function DOSQNMPHANDSTATE; external 'NAMPIPES' index 5;
  380. function DOSQNMPIPEINFO; external 'NAMPIPES' index 2;
  381. function DOSQNMPIPESEMSTATE; external 'NAMPIPES' index 14;
  382. function DOSQPATHINFO; external 'DOSCALLS' index 98;
  383. function DOSQSYSINFO; external 'DOSCALLS' index 166;
  384. function DOSQUERYQUEUE; external 'QUECALLS' index 4;
  385. function DOSQVERIFY; external 'DOSCALLS' index 78;
  386. function DOSR2STACKREALLOC; external 'DOSCALLS' index 160;
  387. function DOSREAD; external 'DOSCALLS' index 137;
  388. function DOSREADASYNC; external 'DOSCALLS' index 149;
  389. function DOSREADQUEUE; external 'QUECALLS' index 1;
  390. function DOSREALLOCHUGE; external 'DOSCALLS' index 42;
  391. function DOSREALLOCSEG; external 'DOSCALLS' index 38;
  392. function DOSRESUMETHREAD; external 'DOSCALLS' index 26;
  393. function DOSRMDIR; external 'DOSCALLS' index 80;
  394. function DOSSCANENV; external 'DOSCALLS' index 152;
  395. function DOSSEARCHPATH; external 'DOSCALLS' index 151;
  396. function DOSSELECTDISK; external 'DOSCALLS' index 81;
  397. function DOSSELECTSESSION; external 'SESMGR' index 9;
  398. function DOSSEMCLEAR; external 'DOSCALLS' index 141;
  399. function DOSSEMREQUEST; external 'DOSCALLS' index 140;
  400. function DOSSEMSET; external 'DOSCALLS' index 143;
  401. function DOSSEMSETWAIT; external 'DOSCALLS' index 20;
  402. function DOSSEMWAIT; external 'DOSCALLS' index 142;
  403. function DOSSENDSIGNAL; external 'DOSCALLS' index 134;
  404. function DOSSETCP; external 'DOSCALLS' index 153;
  405. function DOSSETDATETIME; external 'DOSCALLS' index 28;
  406. function DOSSETFHANDSTATE; external 'DOSCALLS' index 82;
  407. function DOSSETFILEINFO; external 'DOSCALLS' index 83;
  408. function DOSSETFILEMODE; external 'DOSCALLS' index 84;
  409. function DOSSETFSINFO; external 'DOSCALLS' index 97;
  410. function DOSSETMAXFH; external 'DOSCALLS' index 85;
  411. function DOSSETNMPHANDSTATE; external 'NAMPIPES' index 6;
  412. function DOSSETNMPIPESEM; external 'NAMPIPES' index 13;
  413. function DOSSETPATHINFO; external 'DOSCALLS' index 104;
  414. function DOSSETPROCCP; external 'DOSCALLS' index 164;
  415. function DOSSETPRTY; external 'DOSCALLS' index 11;
  416. function DOSSETSESSION; external 'SESMGR' index 14;
  417. function DOSSETSIGHANDLER; external 'DOSCALLS' index 14;
  418. function DOSSETVEC; external 'DOSCALLS' index 89;
  419. function DOSSETVERIFY; external 'DOSCALLS' index 86;
  420. function DOSSHUTDOWN; external 'DOSCALLS' index 206;
  421. function DOSSIZESEG; external 'DOSCALLS' index 126;
  422. function DOSSLEEP; external 'DOSCALLS' index 32;
  423. function DOSSMREGISTERDD; external 'SESMGR' index 29;
  424. function DOSSTARTSESSION; external 'SESMGR' index 17;
  425. function DOSSTOPSESSION; external 'SESMGR' index 8;
  426. function DOSSUBALLOC; external 'DOSCALLS' index 147;
  427. function DOSSUBFREE; external 'DOSCALLS' index 148;
  428. function DOSSUBSET; external 'DOSCALLS' index 146;
  429. function DOSSUSPENDTHREAD; external 'DOSCALLS' index 27;
  430. function DOSTIMERASYNC; external 'DOSCALLS' index 29;
  431. function DOSTIMERSTART; external 'DOSCALLS' index 30;
  432. function DOSTIMERSTOP; external 'DOSCALLS' index 31;
  433. function DOSTRANSACTNMPIPE; external 'NAMPIPES' index 9;
  434. function DOSUNLOCKSEG; external 'DOSCALLS' index 123;
  435. function DOSWAITNMPIPE; external 'NAMPIPES' index 8;
  436. function DOSWRITE; external 'DOSCALLS' index 138;
  437. function DOSWRITEASYNC; external 'DOSCALLS' index 150;
  438. function DOSWRITEQUEUE; external 'QUECALLS' index 6;
  439.  
  440. end.
  441.