dos.pas 20 KB

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