dos.pas 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732
  1. {****************************************************************************
  2. $Id$
  3. Free Pascal Runtime-Library
  4. DOS unit for OS/2
  5. Copyright (c) 1997,1999-2000 by Daniel Mantione,
  6. member of the Free Pascal development team
  7. See the file COPYING.FPC, included in this distribution,
  8. for details about the copyright.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. ****************************************************************************}
  13. unit dos;
  14. {$ASMMODE ATT}
  15. {***************************************************************************}
  16. interface
  17. {***************************************************************************}
  18. {$PACKRECORDS 1}
  19. uses Strings, DosCalls;
  20. const
  21. FileNameLen = 255;
  22. Type
  23. {Search record which is used by findfirst and findnext:}
  24. searchrec=record
  25. case boolean of
  26. false: (handle:longint; {Used in os_OS2 mode}
  27. FStat:PFileFindBuf3;
  28. fill2:array[1..21-SizeOf(longint)-SizeOf(pointer)] of byte;
  29. attr2:byte;
  30. time2:longint;
  31. size2:longint;
  32. name2:string); {Filenames can be long in OS/2!}
  33. true: (fill:array[1..21] of byte;
  34. attr:byte;
  35. time:longint;
  36. size:longint;
  37. name:string); {Filenames can be long in OS/2!}
  38. end;
  39. {Data structure for the registers needed by msdos and intr:}
  40. registers=packed record
  41. case i:integer of
  42. 0:(ax,f1,bx,f2,cx,f3,dx,f4,bp,f5,si,f51,di,f6,ds,f7,es,
  43. f8,flags,fs,gs:word);
  44. 1:(al,ah,f9,f10,bl,bh,f11,f12,cl,ch,f13,f14,dl,dh:byte);
  45. 2:(eax,ebx,ecx,edx,ebp,esi,edi:longint);
  46. end;
  47. {Flags for the exec procedure:
  48. Starting the program:
  49. efwait: Wait until program terminates.
  50. efno_wait: Don't wait until the program terminates. Does not work
  51. in dos, as DOS cannot multitask.
  52. efoverlay: Terminate this program, then execute the requested
  53. program. WARNING: Exit-procedures are not called!
  54. efdebug: Debug program. Details are unknown.
  55. efsession: Do not execute as child of this program. Use a seperate
  56. session instead.
  57. efdetach: Detached. Function unknown. Info wanted!
  58. efpm: Run as presentation manager program.
  59. Not found info about execwinflags
  60. Determining the window state of the program:
  61. efdefault: Run the pm program in it's default situation.
  62. efminimize: Run the pm program minimized.
  63. efmaximize: Run the pm program maximized.
  64. effullscreen: Run the non-pm program fullscreen.
  65. efwindowed: Run the non-pm program in a window.
  66. }
  67. type execrunflags=(efwait,efno_wait,efoverlay,efdebug,efsession,
  68. efdetach,efpm);
  69. execwinflags=(efdefault,efminimize,efmaximize,effullscreen,
  70. efwindowed);
  71. const
  72. (* For compatibility with VP/2, used for runflags in Exec procedure. *)
  73. ExecFlags: cardinal = ord (efwait);
  74. var
  75. dosexitcodevar:word;
  76. {$I dosh.inc}
  77. {OS/2 specific functions}
  78. function exec(path:pathstr;runflags:execrunflags;winflags:execwinflags;
  79. const comline:comstr):longint;
  80. function GetEnvPChar (EnvVar: string): PChar;
  81. implementation
  82. var LastSR: SearchRec;
  83. type TBA = array [1..SizeOf (SearchRec)] of byte;
  84. PBA = ^TBA;
  85. const FindResvdMask = $00003737; {Allowed bits in attribute
  86. specification for DosFindFirst call.}
  87. function fsearch(path:pathstr;dirlist:string):pathstr;
  88. Var
  89. A: array [0..255] of char;
  90. D, P: AnsiString;
  91. begin
  92. P:=Path;
  93. D:=DirList;
  94. DosError:=DosSearchPath(0, PChar(D), PChar(P), @A, 255);
  95. fsearch := StrPas (@A);
  96. end;
  97. procedure getftime(var f;var time:longint);
  98. var
  99. FStat: TFileStatus3;
  100. begin
  101. DosError := DosQueryFileInfo (FileRec (F).Handle, ilStandard, @FStat,
  102. SizeOf (FStat));
  103. if DosError=0 then
  104. begin
  105. Time := FStat.TimeLastWrite + longint (FStat.DateLastWrite) shl 16;
  106. if Time = 0 then
  107. Time := FStat.TimeCreation + longint (FStat.DateCreation) shl 16;
  108. end else
  109. Time:=0;
  110. end;
  111. procedure SetFTime (var F; Time: longint);
  112. var FStat: TFileStatus3;
  113. RC: cardinal;
  114. begin
  115. RC := DosQueryFileInfo (FileRec (F).Handle, ilStandard, @FStat,
  116. SizeOf (FStat));
  117. if RC = 0 then
  118. begin
  119. FStat.DateLastAccess := Hi (Time);
  120. FStat.DateLastWrite := Hi (Time);
  121. FStat.TimeLastAccess := Lo (Time);
  122. FStat.TimeLastWrite := Lo (Time);
  123. RC := DosSetFileInfo (FileRec (F).Handle, ilStandard, @FStat,
  124. SizeOf (FStat));
  125. end;
  126. DosError := integer (RC);
  127. end;
  128. procedure exec(const path:pathstr;const comline:comstr);
  129. {Execute a program.}
  130. begin
  131. dosexitcodevar:=word(exec(path,execrunflags(ExecFlags),efdefault,comline));
  132. end;
  133. function exec(path:pathstr;runflags:execrunflags;winflags:execwinflags;
  134. const comline:comstr):longint;
  135. {Execute a program. More suitable for OS/2 than the exec above.}
  136. var args:Pbytearray;
  137. env:Pbytearray;
  138. i,argsize:word;
  139. esadr:pointer;
  140. d:dirstr;
  141. n:namestr;
  142. e:extstr;
  143. p : ppchar;
  144. j : integer;
  145. res: TResultCodes;
  146. ObjName: String;
  147. const
  148. ArgsSize = 2048; (* Amount of memory reserved for arguments in bytes. *)
  149. begin
  150. getmem(args,ArgsSize);
  151. GetMem(env, envc*sizeof(pchar)+16384);
  152. {Now setup the arguments. The first argument should be the program
  153. name without directory and extension.}
  154. fsplit(path,d,n,e);
  155. // args^[0]:=$80;
  156. argsize:=0;
  157. for i:=1 to length(n) do
  158. begin
  159. args^[argsize]:=byte(n[i]);
  160. inc(argsize);
  161. end;
  162. args^[argsize]:=0;
  163. inc(argsize);
  164. {Now do the real arguments.}
  165. i:=1;
  166. while i<=length(comline) do
  167. begin
  168. if comline[i]<>' ' then
  169. begin
  170. {Commandline argument found. Copy it.}
  171. // args^[argsize]:=$80;
  172. // inc(argsize);
  173. while (i<=length(comline)) and (comline[i]<>' ') do
  174. begin
  175. args^[argsize]:=byte(comline[i]);
  176. inc(argsize);
  177. inc(i);
  178. end;
  179. args^[argsize]:=32;//0;
  180. inc(argsize);
  181. end;
  182. inc(i);
  183. end;
  184. args^[argsize]:=0;
  185. inc(argsize);
  186. {Commandline ready, now build the environment.
  187. Oh boy, I always had the opinion that executing a program under Dos
  188. was a hard job!}
  189. asm
  190. movl env,%edi {Setup destination pointer.}
  191. movl envc,%ecx {Load number of arguments in edx.}
  192. movl envp,%esi {Load env. strings.}
  193. xorl %edx,%edx {Count environment size.}
  194. .Lexa1:
  195. lodsl {Load a Pchar.}
  196. xchgl %eax,%ebx
  197. .Lexa2:
  198. movb (%ebx),%al {Load a byte.}
  199. incl %ebx {Point to next byte.}
  200. stosb {Store it.}
  201. incl %edx {Increase counter.}
  202. cmpb $0,%al {Ready ?.}
  203. jne .Lexa2
  204. loop .Lexa1 {Next argument.}
  205. stosb {Store an extra 0 to finish. (AL is now 0).}
  206. incl %edx
  207. // movw %dx,ES.SizeEnv {Store environment size.}
  208. end ['eax','ebx','ecx','edx','esi','edi'];
  209. //Not clear how to use
  210. DosError:=DosExecPgm(ObjName, cardinal (RunFlags), Args, Env, Res, Path);
  211. exec:=Res.ExitCode;
  212. freemem(args,ArgsSize);
  213. FreeMem(env, envc*sizeof(pchar)+16384);
  214. {Phew! That's it. This was the most sophisticated procedure to call
  215. a system function I ever wrote!}
  216. end;
  217. function dosversion:word;
  218. {Returns OS/2 version}
  219. var
  220. Minor, Major: Cardinal;
  221. begin
  222. DosQuerySysInfo(svMajorVersion, svMajorVersion, Major, 4);
  223. DosQuerySysInfo(svMinorVersion, svMinorVersion, Minor, 4);
  224. DosVersion:=Major or Minor shl 8;
  225. end;
  226. procedure GetDate (var Year, Month, MDay, WDay: word);
  227. Var
  228. dt: TDateTime;
  229. begin
  230. DosGetDateTime(dt);
  231. Year:=dt.year;
  232. Month:=dt.month;
  233. MDay:=dt.Day;
  234. WDay:=dt.Weekday;
  235. end;
  236. procedure SetDate (Year, Month, Day: word);
  237. var
  238. DT: TDateTime;
  239. begin
  240. DosGetDateTime (DT);
  241. DT.Year := Year;
  242. DT.Month := byte (Month);
  243. DT.Day := byte (Day);
  244. DosSetDateTime (DT);
  245. end;
  246. procedure GetTime (var Hour, Minute, Second, Sec100: word);
  247. var
  248. dt: TDateTime;
  249. begin
  250. DosGetDateTime(dt);
  251. Hour:=dt.Hour;
  252. Minute:=dt.Minute;
  253. Second:=dt.Second;
  254. Sec100:=dt.Hundredths;
  255. end;
  256. procedure SetTime (Hour, Minute, Second, Sec100: word);
  257. var
  258. DT: TDateTime;
  259. begin
  260. DosGetDateTime (DT);
  261. DT.Hour := byte (Hour);
  262. DT.Minute := byte (Minute);
  263. DT.Second := byte (Second);
  264. DT.Sec100 := byte (Sec100);
  265. DosSetDateTime (DT);
  266. end;
  267. procedure getcbreak(var breakvalue:boolean);
  268. begin
  269. breakvalue := True;
  270. end;
  271. procedure setcbreak(breakvalue:boolean);
  272. begin
  273. end;
  274. procedure getverify(var verify:boolean);
  275. begin
  276. verify := true;
  277. end;
  278. procedure setverify(verify:boolean);
  279. begin
  280. end;
  281. function DiskFree (Drive: byte): int64;
  282. var FI: TFSinfo;
  283. RC: cardinal;
  284. begin
  285. {In OS/2, we use the filesystem information.}
  286. RC := DosQueryFSInfo (Drive, 1, FI, SizeOf (FI));
  287. if RC = 0 then
  288. DiskFree := int64 (FI.Free_Clusters) *
  289. int64 (FI.Sectors_Per_Cluster) * int64 (FI.Bytes_Per_Sector)
  290. else
  291. DiskFree := -1;
  292. end;
  293. function DiskSize (Drive: byte): int64;
  294. var FI: TFSinfo;
  295. RC: cardinal;
  296. begin
  297. RC := DosQueryFSinfo (Drive, 1, FI, SizeOf (FI));
  298. if RC = 0 then
  299. DiskSize := int64 (FI.Total_Clusters) *
  300. int64 (FI.Sectors_Per_Cluster) * int64 (FI.Bytes_Per_Sector)
  301. else
  302. DiskSize := -1;
  303. end;
  304. procedure SearchRec2DosSearchRec (var F: SearchRec);
  305. begin
  306. end;
  307. procedure DosSearchRec2SearchRec (var F: SearchRec);
  308. type
  309. TRec = record
  310. T, D: word;
  311. end;
  312. begin
  313. with F do
  314. begin
  315. Name := FStat^.Name;
  316. Size := FStat^.FileSize;
  317. Attr := byte(FStat^.AttrFile and $FF);
  318. TRec (Time).T := FStat^.TimeLastWrite;
  319. TRec (Time).D := FStat^.DateLastWrite;
  320. end;
  321. end;
  322. procedure FindFirst (const Path: PathStr; Attr: word; var F: SearchRec);
  323. var Count: cardinal;
  324. begin
  325. {No error.}
  326. DosError := 0;
  327. New (F.FStat);
  328. F.Handle := longint ($FFFFFFFF);
  329. Count := 1;
  330. DosError := integer (DosFindFirst (Path, F.Handle,
  331. Attr and FindResvdMask, F.FStat, SizeOf (F.FStat^),
  332. Count, ilStandard));
  333. if (DosError = 0) and (Count = 0) then DosError := 18;
  334. DosSearchRec2SearchRec (F);
  335. end;
  336. procedure FindNext (var F: SearchRec);
  337. var
  338. Count: cardinal;
  339. begin
  340. {No error}
  341. DosError := 0;
  342. SearchRec2DosSearchRec (F);
  343. Count := 1;
  344. DosError := integer (DosFindNext (F.Handle, F.FStat, SizeOf (F.FStat^),
  345. Count));
  346. if (DosError = 0) and (Count = 0) then DosError := 18;
  347. DosSearchRec2SearchRec (F);
  348. end;
  349. procedure FindClose (var F: SearchRec);
  350. begin
  351. if F.Handle <> $FFFFFFFF then DosError := DosFindClose (F.Handle);
  352. Dispose (F.FStat);
  353. end;
  354. procedure swapvectors;
  355. {For TP compatibility, this exists.}
  356. begin
  357. end;
  358. function envcount:longint;
  359. begin
  360. envcount:=envc;
  361. end;
  362. function envstr(index : integer) : string;
  363. var hp:Pchar;
  364. begin
  365. if (index<=0) or (index>envcount) then
  366. begin
  367. envstr:='';
  368. exit;
  369. end;
  370. hp:=EnvP[index-1];
  371. envstr:=strpas(hp);
  372. end;
  373. function GetEnvPChar (EnvVar: string): PChar;
  374. (* The assembler version is more than three times as fast as Pascal. *)
  375. var
  376. P: PChar;
  377. begin
  378. EnvVar := UpCase (EnvVar);
  379. {$ASMMODE INTEL}
  380. asm
  381. cld
  382. mov edi, Environment
  383. lea esi, EnvVar
  384. xor eax, eax
  385. lodsb
  386. @NewVar:
  387. cmp byte ptr [edi], 0
  388. jz @Stop
  389. push eax { eax contains length of searched variable name }
  390. push esi { esi points to the beginning of the variable name }
  391. mov ecx, -1 { our character ('=' - see below) _must_ be found }
  392. mov edx, edi { pointer to beginning of variable name saved in edx }
  393. mov al, '=' { searching until '=' (end of variable name) }
  394. repne
  395. scasb { scan until '=' not found }
  396. neg ecx { what was the name length? }
  397. dec ecx { corrected }
  398. dec ecx { exclude the '=' character }
  399. pop esi { restore pointer to beginning of variable name }
  400. pop eax { restore length of searched variable name }
  401. push eax { and save both of them again for later use }
  402. push esi
  403. cmp ecx, eax { compare length of searched variable name with name }
  404. jnz @NotEqual { ... of currently found variable, jump if different }
  405. xchg edx, edi { pointer to current variable name restored in edi }
  406. repe
  407. cmpsb { compare till the end of variable name }
  408. xchg edx, edi { pointer to beginning of variable contents in edi }
  409. jz @Equal { finish if they're equal }
  410. @NotEqual:
  411. xor eax, eax { look for 00h }
  412. mov ecx, -1 { it _must_ be found }
  413. repne
  414. scasb { scan until found }
  415. pop esi { restore pointer to beginning of variable name }
  416. pop eax { restore length of searched variable name }
  417. jmp @NewVar { ... or continue with new variable otherwise }
  418. @Stop:
  419. xor eax, eax
  420. mov P, eax { Not found - return nil }
  421. jmp @End
  422. @Equal:
  423. pop esi { restore the stack position }
  424. pop eax
  425. mov P, edi { place pointer to variable contents in P }
  426. @End:
  427. end ['eax','ecx','edx','esi','edi'];
  428. GetEnvPChar := P;
  429. end;
  430. {$ASMMODE ATT}
  431. Function GetEnv(envvar: string): string;
  432. (* The assembler version is more than three times as fast as Pascal. *)
  433. begin
  434. GetEnv := StrPas (GetEnvPChar (EnvVar));
  435. end;
  436. procedure fsplit(path:pathstr;var dir:dirstr;var name:namestr;
  437. var ext:extstr);
  438. var p1,i : longint;
  439. dotpos : integer;
  440. begin
  441. { allow slash as backslash }
  442. for i:=1 to length(path) do
  443. if path[i]='/' then path[i]:='\';
  444. {Get drive name}
  445. p1:=pos(':',path);
  446. if p1>0 then
  447. begin
  448. dir:=path[1]+':';
  449. delete(path,1,p1);
  450. end
  451. else
  452. dir:='';
  453. { split the path and the name, there are no more path informtions }
  454. { if path contains no backslashes }
  455. while true do
  456. begin
  457. p1:=pos('\',path);
  458. if p1=0 then
  459. break;
  460. dir:=dir+copy(path,1,p1);
  461. delete(path,1,p1);
  462. end;
  463. { try to find out a extension }
  464. Ext:='';
  465. i:=Length(Path);
  466. DotPos:=256;
  467. While (i>0) Do
  468. Begin
  469. If (Path[i]='.') Then
  470. begin
  471. DotPos:=i;
  472. break;
  473. end;
  474. Dec(i);
  475. end;
  476. Ext:=Copy(Path,DotPos,255);
  477. Name:=Copy(Path,1,DotPos - 1);
  478. end;
  479. (*
  480. function FExpand (const Path: PathStr): PathStr;
  481. - declared in fexpand.inc
  482. *)
  483. {$DEFINE FPC_FEXPAND_UNC} (* UNC paths are supported *)
  484. {$DEFINE FPC_FEXPAND_DRIVES} (* Full paths begin with drive specification *)
  485. {$I fexpand.inc}
  486. {$UNDEF FPC_FEXPAND_DRIVES}
  487. {$UNDEF FPC_FEXPAND_UNC}
  488. procedure packtime(var t:datetime;var p:longint);
  489. var zs:longint;
  490. begin
  491. p:=-1980;
  492. p:=p+t.year and 127;
  493. p:=p shl 4;
  494. p:=p+t.month;
  495. p:=p shl 5;
  496. p:=p+t.day;
  497. p:=p shl 16;
  498. zs:=t.hour;
  499. zs:=zs shl 6;
  500. zs:=zs+t.min;
  501. zs:=zs shl 5;
  502. zs:=zs+t.sec div 2;
  503. p:=p+(zs and $ffff);
  504. end;
  505. procedure unpacktime (p:longint;var t:datetime);
  506. begin
  507. t.sec:=(p and 31) * 2;
  508. p:=p shr 5;
  509. t.min:=p and 63;
  510. p:=p shr 6;
  511. t.hour:=p and 31;
  512. p:=p shr 5;
  513. t.day:=p and 31;
  514. p:=p shr 5;
  515. t.month:=p and 15;
  516. p:=p shr 4;
  517. t.year:=p+1980;
  518. end;
  519. procedure GetFAttr (var F; var Attr: word);
  520. var
  521. PathInfo: TFileStatus3;
  522. RC: cardinal;
  523. begin
  524. Attr := 0;
  525. RC := DosQueryPathInfo (FileRec (F).Name, ilStandard,
  526. @PathInfo, SizeOf (PathInfo));
  527. DosError := integer (RC);
  528. if RC = 0 then
  529. Attr := PathInfo.AttrFile;
  530. end;
  531. procedure SetFAttr (var F; Attr: word);
  532. var
  533. PathInfo: TFileStatus3;
  534. RC: cardinal;
  535. begin
  536. RC := DosQueryPathInfo (FileRec (F).Name, ilStandard,
  537. @PathInfo, SizeOf (PathInfo));
  538. if RC = 0 then
  539. begin
  540. PathInfo.AttrFile := Attr;
  541. RC := DosSetPathInfo (FileRec (F).Name, ilStandard, @PathInfo,
  542. SizeOf (PathInfo), doWriteThru);
  543. end;
  544. DosError := integer (RC);
  545. end;
  546. function DosExitCode: word;
  547. begin
  548. DosExitCode:=dosexitcodevar;
  549. end;
  550. Procedure Intr(intno: byte; var regs: registers);
  551. begin
  552. end;
  553. Procedure MSDos(var regs: registers);
  554. begin
  555. end;
  556. Procedure GetIntVec(intno: byte; var vector: pointer);
  557. begin
  558. end;
  559. Procedure SetIntVec(intno: byte; vector: pointer);
  560. begin
  561. end;
  562. Procedure Keep(exitcode: word);
  563. begin
  564. end;
  565. function GetShortName(var p : String) : boolean;
  566. begin
  567. GetShortName:=true;
  568. end;
  569. function GetLongName(var p : String) : boolean;
  570. begin
  571. GetLongName:=true;
  572. end;
  573. end.
  574. {
  575. $Log$
  576. Revision 1.35 2004-02-15 08:02:44 yuri
  577. * fixes for dosh.inc
  578. * Executeprocess iverloaded function
  579. * updated todo
  580. Revision 1.34 2004/02/09 12:03:16 michael
  581. + Switched to single interface in dosh.inc
  582. Revision 1.33 2003/11/05 09:13:59 yuri
  583. * exec fix
  584. * unused units removed
  585. Revision 1.32 2003/11/02 09:45:32 hajny
  586. SetFTime fix
  587. Revision 1.31 2003/11/01 18:35:12 hajny
  588. * GetFTime correction for case of no previous write access
  589. Revision 1.30 2003/10/25 23:55:22 hajny
  590. * Exec fix
  591. Revision 1.29 2003/10/25 22:45:37 hajny
  592. * file handling related fixes
  593. Revision 1.28 2003/10/05 22:06:43 hajny
  594. * result buffers must be allocated
  595. Revision 1.27 2003/10/03 21:46:41 peter
  596. * stdcall fixes
  597. Revision 1.26 2003/09/24 08:59:16 yuri
  598. * Prepared for native target (emx code replaced)
  599. Revision 1.25 2003/02/20 17:37:00 hajny
  600. * correction for previous mistyping
  601. Revision 1.24 2003/02/20 17:09:49 hajny
  602. * fixes for OS/2 v2.1 incompatibility
  603. Revision 1.23 2003/01/04 15:43:50 hajny
  604. + GetEnvPChar added
  605. Revision 1.22 2002/12/07 19:46:56 hajny
  606. * mistyping fixed
  607. Revision 1.21 2002/12/07 19:17:13 hajny
  608. * GetEnv correction, better PM support, ...
  609. Revision 1.20 2002/11/18 19:51:00 hajny
  610. * another bunch of type corrections
  611. Revision 1.19 2002/09/07 16:01:24 peter
  612. * old logs removed and tabs fixed
  613. Revision 1.18 2002/07/11 16:00:05 hajny
  614. * FindFirst fix (invalid attribute bits masked out)
  615. Revision 1.17 2002/07/07 18:00:48 hajny
  616. * DosGetInfoBlock modification to allow overloaded version (in DosCalls)
  617. Revision 1.16 2002/03/03 11:19:20 hajny
  618. * GetEnv rewritten to assembly - 3x faster now
  619. }