sysunix.inc 18 KB

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