sysunix.inc 17 KB

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