sysunix.inc 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2000 by Michael Van Canneyt,
  5. member of the Free Pascal development team.
  6. This is the core of the system unit *nix systems (now FreeBSD
  7. and Unix).
  8. See the file COPYING.FPC, included in this distribution,
  9. for details about the copyright.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. **********************************************************************}
  14. { These things are set in the makefile, }
  15. { But you can override them here.}
  16. { If you use an aout system, set the conditional AOUT}
  17. { $Define AOUT}
  18. {$I system.inc}
  19. { used in syscall to report errors.}
  20. var
  21. Errno : longint;
  22. { Include constant and type definitions }
  23. {$i errno.inc } { Error numbers }
  24. {$i sysnr.inc } { System call numbers }
  25. {$i sysconst.inc } { Miscellaneous constants }
  26. {$i systypes.inc } { Types needed for system calls }
  27. { Read actual system call definitions. }
  28. {$i signal.inc}
  29. {$i syscalls.inc }
  30. {*****************************************************************************
  31. Misc. System Dependent Functions
  32. *****************************************************************************}
  33. procedure prthaltproc;external name '_haltproc';
  34. Procedure System_exit;
  35. Begin
  36. prthaltproc;
  37. End;
  38. Function ParamCount: Longint;
  39. Begin
  40. Paramcount:=argc-1;
  41. End;
  42. Function ParamStr(l: Longint): String;
  43. var
  44. link,
  45. hs : string;
  46. i : longint;
  47. begin
  48. if l=0 then
  49. begin
  50. str(sys_getpid,hs);
  51. {$ifdef FreeBSD}
  52. hs:='/proc/'+hs+'/file'#0;
  53. {$else}
  54. hs:='/proc/'+hs+'/exe'#0;
  55. {$endif}
  56. i:=Sys_readlink(@hs[1],@link[1],high(link));
  57. { it must also be an absolute filename, linux 2.0 points to a memory
  58. location so this will skip that }
  59. if (i>0) and (link[1]='/') then
  60. begin
  61. link[0]:=chr(i);
  62. paramstr:=link;
  63. end
  64. else
  65. paramstr:=strpas(argv[0]);
  66. end
  67. else
  68. if (l>0) and (l<argc) then
  69. paramstr:=strpas(argv[l])
  70. else
  71. paramstr:='';
  72. end;
  73. Procedure Randomize;
  74. Begin
  75. randseed:=sys_time;
  76. End;
  77. {*****************************************************************************
  78. Heap Management
  79. *****************************************************************************}
  80. var
  81. _HEAP : pointer;external name 'HEAP';
  82. _HEAPSIZE : longint;external name 'HEAPSIZE';
  83. function getheapstart:pointer;assembler;
  84. {$undef fpc_getheapstart_ok}
  85. {$ifdef i386}
  86. {$define fpc_getheapstart_ok}
  87. asm
  88. leal _HEAP,%eax
  89. end ['EAX'];
  90. {$endif i386}
  91. {$ifdef m68k}
  92. {$define fpc_getheapstart_ok}
  93. asm
  94. lea.l _HEAP,a0
  95. move.l a0,d0
  96. end['A0','D0'];
  97. {$endif m68k}
  98. {$ifndef fpc_getheapstart_ok}
  99. {$error Getheapstart code is not implemented }
  100. {$endif not fpc_getheapstart_ok}
  101. function getheapsize:longint;assembler;
  102. {$undef fpc_getheapsize_ok}
  103. {$ifdef i386}
  104. {$define fpc_getheapsize_ok}
  105. asm
  106. movl _HEAPSIZE,%eax
  107. end ['EAX'];
  108. {$endif i386}
  109. {$ifdef m68k}
  110. {$define fpc_getheapsize_ok}
  111. asm
  112. move.l _HEAPSIZE,d0
  113. end ['D0'];
  114. {$endif m68k}
  115. {$ifndef fpc_getheapsize_ok}
  116. {$error Getheapsize code is not implemented }
  117. {$endif not fpc_getheapsize_ok}
  118. Function sbrk(size : longint) : Longint;
  119. begin
  120. sbrk:=Sys_mmap(0,Size,3,MAP_PRIVATE+MAP_ANONYMOUS,-1,0);
  121. if sbrk<>-1 then
  122. errno:=0;
  123. {! It must be -1, not 0 as before, see heap.inc. Should be in sysmmap?}
  124. end;
  125. { include standard heap management }
  126. {$I heap.inc}
  127. {*****************************************************************************
  128. Low Level File Routines
  129. *****************************************************************************}
  130. {
  131. The lowlevel file functions should take care of setting the InOutRes to the
  132. correct value if an error has occured, else leave it untouched
  133. }
  134. Procedure Errno2Inoutres;
  135. {
  136. Convert ErrNo error to the correct Inoutres value
  137. }
  138. begin
  139. if ErrNo=0 then { Else it will go through all the cases }
  140. exit;
  141. If errno<0 then Errno:=-errno;
  142. case ErrNo of
  143. Sys_ENFILE,
  144. Sys_EMFILE : Inoutres:=4;
  145. Sys_ENOENT : Inoutres:=2;
  146. Sys_EBADF : Inoutres:=6;
  147. Sys_ENOMEM,
  148. Sys_EFAULT : Inoutres:=217;
  149. Sys_EINVAL : Inoutres:=218;
  150. Sys_EPIPE,
  151. Sys_EINTR,
  152. Sys_EIO,
  153. Sys_EAGAIN,
  154. Sys_ENOSPC : Inoutres:=101;
  155. Sys_ENAMETOOLONG,
  156. Sys_ELOOP,
  157. Sys_ENOTDIR : Inoutres:=3;
  158. Sys_EROFS,
  159. Sys_EEXIST,
  160. Sys_EACCES : Inoutres:=5;
  161. Sys_ETXTBSY : Inoutres:=162;
  162. end;
  163. end;
  164. Procedure Do_Close(Handle:Longint);
  165. Begin
  166. sys_close(Handle);
  167. {Errno2Inoutres;}
  168. End;
  169. Procedure Do_Erase(p:pchar);
  170. Begin
  171. sys_unlink(p);
  172. Errno2Inoutres;
  173. End;
  174. Procedure Do_Rename(p1,p2:pchar);
  175. Begin
  176. sys_rename(p1,p2);
  177. Errno2Inoutres;
  178. End;
  179. Function Do_Write(Handle,Addr,Len:Longint):longint;
  180. Begin
  181. repeat
  182. Do_Write:=sys_write(Handle,pchar(addr),len);
  183. until ErrNo<>Sys_EINTR;
  184. Errno2Inoutres;
  185. if Do_Write<0 then
  186. Do_Write:=0;
  187. End;
  188. Function Do_Read(Handle,Addr,Len:Longint):Longint;
  189. Begin
  190. repeat
  191. Do_Read:=sys_read(Handle,pchar(addr),len);
  192. until ErrNo<>Sys_EINTR;
  193. Errno2Inoutres;
  194. if Do_Read<0 then
  195. Do_Read:=0;
  196. End;
  197. Function Do_FilePos(Handle: Longint): Longint;
  198. Begin
  199. Do_FilePos:=sys_lseek(Handle, 0, Seek_Cur);
  200. Errno2Inoutres;
  201. End;
  202. Procedure Do_Seek(Handle,Pos:Longint);
  203. Begin
  204. sys_lseek(Handle, pos, Seek_set);
  205. errno2inoutres;
  206. End;
  207. Function Do_SeekEnd(Handle:Longint): Longint;
  208. begin
  209. Do_SeekEnd:=sys_lseek(Handle,0,Seek_End);
  210. errno2inoutres;
  211. end;
  212. Function Do_FileSize(Handle:Longint): Longint;
  213. var
  214. Info : Stat;
  215. Begin
  216. if sys_fstat(handle,info)=0 then
  217. Do_FileSize:=Info.Size
  218. else
  219. Do_FileSize:=0;
  220. Errno2Inoutres;
  221. End;
  222. Procedure Do_Truncate(Handle,fPos:longint);
  223. begin
  224. sys_ftruncate(handle,fpos);
  225. Errno2Inoutres;
  226. end;
  227. Procedure Do_Open(var f;p:pchar;flags:longint);
  228. {
  229. FileRec and textrec have both Handle and mode as the first items so
  230. they could use the same routine for opening/creating.
  231. when (flags and $100) the file will be append
  232. when (flags and $1000) the file will be truncate/rewritten
  233. when (flags and $10000) there is no check for close (needed for textfiles)
  234. }
  235. var
  236. oflags : longint;
  237. Begin
  238. { close first if opened }
  239. if ((flags and $10000)=0) then
  240. begin
  241. case FileRec(f).mode of
  242. fminput,fmoutput,fminout : Do_Close(FileRec(f).Handle);
  243. fmclosed : ;
  244. else
  245. begin
  246. inoutres:=102; {not assigned}
  247. exit;
  248. end;
  249. end;
  250. end;
  251. { reset file Handle }
  252. FileRec(f).Handle:=UnusedHandle;
  253. { We do the conversion of filemodes here, concentrated on 1 place }
  254. case (flags and 3) of
  255. 0 : begin
  256. oflags :=Open_RDONLY;
  257. FileRec(f).mode:=fminput;
  258. end;
  259. 1 : begin
  260. oflags :=Open_WRONLY;
  261. FileRec(f).mode:=fmoutput;
  262. end;
  263. 2 : begin
  264. oflags :=Open_RDWR;
  265. FileRec(f).mode:=fminout;
  266. end;
  267. end;
  268. if (flags and $1000)=$1000 then
  269. oflags:=oflags or (Open_CREAT or Open_TRUNC)
  270. else
  271. if (flags and $100)=$100 then
  272. oflags:=oflags or (Open_APPEND);
  273. { empty name is special }
  274. if p[0]=#0 then
  275. begin
  276. case FileRec(f).mode of
  277. fminput :
  278. FileRec(f).Handle:=StdInputHandle;
  279. fminout, { this is set by rewrite }
  280. fmoutput :
  281. FileRec(f).Handle:=StdOutputHandle;
  282. fmappend :
  283. begin
  284. FileRec(f).Handle:=StdOutputHandle;
  285. FileRec(f).mode:=fmoutput; {fool fmappend}
  286. end;
  287. end;
  288. exit;
  289. end;
  290. { real open call }
  291. FileRec(f).Handle:=sys_open(p,oflags,438);
  292. if (ErrNo=Sys_EROFS) and ((OFlags and Open_RDWR)<>0) then
  293. begin
  294. Oflags:=Oflags and not(Open_RDWR);
  295. FileRec(f).Handle:=sys_open(p,oflags,438);
  296. end;
  297. Errno2Inoutres;
  298. End;
  299. Function Do_IsDevice(Handle:Longint):boolean;
  300. {
  301. Interface to Unix ioctl call.
  302. Performs various operations on the filedescriptor Handle.
  303. Ndx describes the operation to perform.
  304. Data points to data needed for the Ndx function. The structure of this
  305. data is function-dependent.
  306. }
  307. var
  308. Data : array[0..255] of byte; {Large enough for termios info}
  309. begin
  310. Do_IsDevice:=(sys_ioctl(handle,IOCTL_TCGETS,@data)<>-1);
  311. end;
  312. {*****************************************************************************
  313. UnTyped File Handling
  314. *****************************************************************************}
  315. {$i file.inc}
  316. {*****************************************************************************
  317. Typed File Handling
  318. *****************************************************************************}
  319. {$i typefile.inc}
  320. {*****************************************************************************
  321. Text File Handling
  322. *****************************************************************************}
  323. {$DEFINE SHORT_LINEBREAK}
  324. {$DEFINE EXTENDED_EOF}
  325. {$i text.inc}
  326. {*****************************************************************************
  327. Directory Handling
  328. *****************************************************************************}
  329. Procedure MkDir(Const s: String);[IOCheck];
  330. Var
  331. Buffer: Array[0..255] of Char;
  332. Begin
  333. If (s='') or (InOutRes <> 0) then
  334. exit;
  335. Move(s[1], Buffer, Length(s));
  336. Buffer[Length(s)] := #0;
  337. sys_mkdir(@buffer, 511);
  338. Errno2Inoutres;
  339. End;
  340. Procedure RmDir(Const s: String);[IOCheck];
  341. Var
  342. Buffer: Array[0..255] of Char;
  343. Begin
  344. If (s='') or (InOutRes <> 0) then
  345. exit;
  346. Move(s[1], Buffer, Length(s));
  347. Buffer[Length(s)] := #0;
  348. sys_rmdir(@buffer);
  349. Errno2Inoutres;
  350. End;
  351. Procedure ChDir(Const s: String);[IOCheck];
  352. Var
  353. Buffer: Array[0..255] of Char;
  354. Begin
  355. If (s='') or (InOutRes <> 0) then
  356. exit;
  357. Move(s[1], Buffer, Length(s));
  358. Buffer[Length(s)] := #0;
  359. sys_chdir(@buffer);
  360. Errno2Inoutres;
  361. { file not exists is path not found under tp7 }
  362. if InOutRes=2 then
  363. InOutRes:=3;
  364. End;
  365. procedure GetDir (DriveNr: byte; var Dir: ShortString);
  366. var
  367. thisdir : stat;
  368. rootino,
  369. thisino,
  370. dotdotino : longint;
  371. rootdev,
  372. thisdev,
  373. dotdotdev : dev_t;
  374. thedir,dummy : string[255];
  375. dirstream : pdir;
  376. d : pdirent;
  377. mountpoint,validdir : boolean;
  378. predot : string[255];
  379. begin
  380. drivenr:=0;
  381. dir:='';
  382. thedir:='/'#0;
  383. if sys_stat(@thedir[1],thisdir)<0 then
  384. exit;
  385. rootino:=thisdir.ino;
  386. rootdev:=thisdir.dev;
  387. thedir:='.'#0;
  388. if sys_stat(@thedir[1],thisdir)<0 then
  389. exit;
  390. thisino:=thisdir.ino;
  391. thisdev:=thisdir.dev;
  392. { Now we can uniquely identify the current and root dir }
  393. thedir:='';
  394. predot:='';
  395. while not ((thisino=rootino) and (thisdev=rootdev)) do
  396. begin
  397. { Are we on a mount point ? }
  398. dummy:=predot+'..'#0;
  399. if sys_stat(@dummy[1],thisdir)<0 then
  400. exit;
  401. dotdotino:=thisdir.ino;
  402. dotdotdev:=thisdir.dev;
  403. mountpoint:=(thisdev<>dotdotdev);
  404. { Now, Try to find the name of this dir in the previous one }
  405. dirstream:=opendir (@dummy[1]);
  406. if dirstream=nil then
  407. exit;
  408. repeat
  409. d:=sys_readdir (dirstream);
  410. validdir:=false;
  411. if (d<>nil) and
  412. (not ((d^.name[0]='.') and ((d^.name[1]=#0) or ((d^.name[1]='.')
  413. and (d^.name[2]=#0))))) and
  414. (mountpoint or (d^.ino=thisino)) then
  415. begin
  416. dummy:=predot+'../'+strpas(@(d^.name[0]))+#0;
  417. validdir:=not (sys_stat (@(dummy[1]),thisdir)<0);
  418. end
  419. else
  420. validdir:=false;
  421. until (d=nil) or
  422. ((validdir) and (thisdir.dev=thisdev) and (thisdir.ino=thisino) );
  423. { At this point, d.name contains the name of the current dir}
  424. if (d<>nil) then
  425. thedir:='/'+strpas(@(d^.name[0]))+thedir;
  426. { closedir also makes d invalid }
  427. if (closedir(dirstream)<0) or (d=nil) then
  428. exit;
  429. thisdev:=dotdotdev;
  430. thisino:=dotdotino;
  431. predot:=predot+'../';
  432. end;
  433. { Now rootino=thisino and rootdev=thisdev so we've reached / }
  434. dir:=thedir
  435. end;
  436. {*****************************************************************************
  437. SystemUnit Initialization
  438. *****************************************************************************}
  439. {$ifdef I386}
  440. { this should be defined in i386 directory !! PM }
  441. const
  442. fpucw : word = $1332;
  443. FPU_Invalid = 1;
  444. FPU_Denormal = 2;
  445. FPU_DivisionByZero = 4;
  446. FPU_Overflow = 8;
  447. FPU_Underflow = $10;
  448. FPU_StackUnderflow = $20;
  449. FPU_StackOverflow = $40;
  450. {$endif I386}
  451. Procedure ResetFPU;
  452. begin
  453. {$ifdef I386}
  454. asm
  455. fninit
  456. fldcw fpucw
  457. end;
  458. {$endif I386}
  459. end;
  460. {$ifdef BSD}
  461. procedure SignalToRunerror(Sig: longint; SigContext: SigContextRec;someptr:pointer); cdecl;
  462. {$else}
  463. {$ifdef Solaris}
  464. procedure SignalToRunerror(Sig: longint; SigContext: SigContextRec;someptr:pointer); cdecl;
  465. {$else}
  466. procedure SignalToRunerror(Sig: longint; SigContext: SigContextRec); cdecl;
  467. {$endif}
  468. {$ENDIF}
  469. var
  470. res,fpustate : word;
  471. begin
  472. res:=0;
  473. case sig of
  474. SIGFPE :
  475. begin
  476. { this is not allways necessary but I don't know yet
  477. how to tell if it is or not PM }
  478. {$ifdef I386}
  479. fpustate:=0;
  480. res:=200;
  481. {$ifndef FreeBSD}
  482. if assigned(SigContext.fpstate) then
  483. fpuState:=SigContext.fpstate^.sw;
  484. {$else}
  485. fpustate:=SigContext.en_sw;
  486. {$ifdef SYSTEM_DEBUG}
  487. writeln('xx:',sigcontext.en_tw,' ',sigcontext.en_cw);
  488. {$endif SYSTEM_DEBUG}
  489. {$endif}
  490. {$ifdef SYSTEM_DEBUG}
  491. Writeln(stderr,'FpuState = ',FpuState);
  492. {$endif SYSTEM_DEBUG}
  493. if (FpuState and $7f) <> 0 then
  494. begin
  495. { first check te more precise options }
  496. if (FpuState and FPU_DivisionByZero)<>0 then
  497. res:=200
  498. else if (FpuState and FPU_Overflow)<>0 then
  499. res:=205
  500. else if (FpuState and FPU_Underflow)<>0 then
  501. res:=206
  502. else if (FpuState and FPU_Denormal)<>0 then
  503. res:=216
  504. else if (FpuState and (FPU_StackOverflow or FPU_StackUnderflow))<>0 then
  505. res:=207
  506. else if (FpuState and FPU_Invalid)<>0 then
  507. res:=216
  508. else
  509. res:=207; {'Coprocessor Error'}
  510. end;
  511. {$endif I386}
  512. ResetFPU;
  513. end;
  514. SIGILL,
  515. SIGBUS,
  516. SIGSEGV :
  517. res:=216;
  518. end;
  519. { give runtime error at the position where the signal was raised }
  520. if res<>0 then
  521. begin
  522. {$ifdef I386}
  523. {$ifdef FreeBSD}
  524. HandleErrorAddrFrame(res,SigContext.sc_eip,SigContext.sc_ebp);
  525. {$else}
  526. HandleErrorAddrFrame(res,SigContext.eip,SigContext.ebp);
  527. {$endif}
  528. {$else}
  529. HandleError(res);
  530. {$endif}
  531. end;
  532. end;
  533. Procedure InstallSignals;
  534. const
  535. {$Ifndef BSD}
  536. {$ifdef solaris}
  537. act: SigActionRec =(sa_flags:SA_SIGINFO;Handler:(sa:@signaltorunerror;sa_mask:0);
  538. {$else}
  539. act: SigActionRec = (handler:(Sa:@SignalToRunError);sa_mask:0;sa_flags:0;
  540. Sa_restorer: NIL);
  541. {$endif}
  542. {$ELSE}
  543. act: SigActionRec = (handler:(Sa:@SignalToRunError);sa_flags:SA_SIGINFO;
  544. sa_mask:0);
  545. {$endif}
  546. oldact: PSigActionRec = Nil; {Probably not necessary anymore, now
  547. VAR is removed}
  548. begin
  549. ResetFPU;
  550. SigAction(SIGFPE,@act,oldact);
  551. {$ifndef Solaris}
  552. SigAction(SIGSEGV,@act,oldact);
  553. SigAction(SIGBUS,@act,oldact);
  554. SigAction(SIGILL,@act,oldact);
  555. {$endif}
  556. end;
  557. procedure SetupCmdLine;
  558. var
  559. bufsize,
  560. len,j,
  561. size,i : longint;
  562. found : boolean;
  563. buf : array[0..1026] of char;
  564. procedure AddBuf;
  565. begin
  566. reallocmem(cmdline,size+bufsize);
  567. move(buf,cmdline[size],bufsize);
  568. inc(size,bufsize);
  569. bufsize:=0;
  570. end;
  571. begin
  572. size:=0;
  573. bufsize:=0;
  574. i:=0;
  575. while (i<argc) do
  576. begin
  577. len:=strlen(argv[i]);
  578. if len>sizeof(buf)-2 then
  579. len:=sizeof(buf)-2;
  580. found:=false;
  581. for j:=1 to len do
  582. if argv[i][j]=' ' then
  583. begin
  584. found:=true;
  585. break;
  586. end;
  587. if bufsize+len>=sizeof(buf)-2 then
  588. AddBuf;
  589. if found then
  590. begin
  591. buf[bufsize]:='"';
  592. inc(bufsize);
  593. end;
  594. move(argv[i]^,buf[bufsize],len);
  595. inc(bufsize,len);
  596. if found then
  597. begin
  598. buf[bufsize]:='"';
  599. inc(bufsize);
  600. end;
  601. if i<argc then
  602. buf[bufsize]:=' '
  603. else
  604. buf[bufsize]:=#0;
  605. inc(bufsize);
  606. inc(i);
  607. end;
  608. AddBuf;
  609. end;
  610. Begin
  611. { Set up signals handlers }
  612. InstallSignals;
  613. { Setup heap }
  614. InitHeap;
  615. InitExceptions;
  616. { Arguments }
  617. SetupCmdLine;
  618. { Setup stdin, stdout and stderr }
  619. OpenStdIO(Input,fmInput,StdInputHandle);
  620. OpenStdIO(Output,fmOutput,StdOutputHandle);
  621. OpenStdIO(StdOut,fmOutput,StdOutputHandle);
  622. OpenStdIO(StdErr,fmOutput,StdErrorHandle);
  623. { Reset IO Error }
  624. InOutRes:=0;
  625. End.
  626. {
  627. $Log$
  628. Revision 1.15 2001-07-16 19:51:36 marco
  629. * A small note, copied from the Solaris patch. Do_close needs errnotoiores?
  630. Revision 1.14 2001/07/15 11:57:16 peter
  631. * merged m68k updates
  632. Revision 1.13 2001/07/13 22:05:09 peter
  633. * cygwin updates
  634. Revision 1.12 2001/06/02 19:24:49 peter
  635. * chdir rte 2 mapped to 3
  636. Revision 1.11 2001/06/02 00:31:31 peter
  637. * merge unix updates from the 1.0 branch, mostly related to the
  638. solaris target
  639. Revision 1.10 2001/04/23 20:33:31 peter
  640. * also install sig handlers for sigill,sigbus
  641. Revision 1.9 2001/04/13 22:39:05 peter
  642. * removed warning
  643. Revision 1.8 2001/04/12 17:53:43 peter
  644. * fixed usage of already release memory in getdir
  645. Revision 1.7 2001/03/21 21:08:20 hajny
  646. * GetDir fixed
  647. Revision 1.6 2001/03/16 20:09:58 hajny
  648. * universal FExpand
  649. Revision 1.5 2001/02/20 21:31:12 peter
  650. * chdir,mkdir,rmdir with empty string fixed
  651. Revision 1.4 2000/12/17 14:00:57 peter
  652. * removed debug writelns
  653. Revision 1.3 2000/10/09 16:35:51 marco
  654. * Fixed the first (of many) ioctls that make building the IDE hard.
  655. Revision 1.2 2000/09/18 13:14:51 marco
  656. * Global Linux +bsd to (rtl/freebsd rtl/unix rtl/linux structure)
  657. Revision 1.6 2000/09/11 13:48:08 marco
  658. * FreeBSD support and removal of old sighandler
  659. Revision 1.5 2000/08/13 08:43:45 peter
  660. * don't check for directory in do_open (merged)
  661. Revision 1.4 2000/08/05 18:33:51 peter
  662. * paramstr(0) fix for linux 2.0 kernels (merged)
  663. Revision 1.3 2000/07/14 10:33:10 michael
  664. + Conditionals fixed
  665. Revision 1.2 2000/07/13 11:33:49 michael
  666. + removed logs
  667. }