sysunix.inc 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758
  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. { file not exists is path not found under tp7 }
  351. if InOutRes=2 then
  352. InOutRes:=3;
  353. End;
  354. procedure GetDir (DriveNr: byte; var Dir: ShortString);
  355. var
  356. thisdir : stat;
  357. rootino,
  358. thisino,
  359. dotdotino : longint;
  360. rootdev,
  361. thisdev,
  362. dotdotdev : dev_t;
  363. thedir,dummy : string[255];
  364. dirstream : pdir;
  365. d : pdirent;
  366. mountpoint,validdir : boolean;
  367. predot : string[255];
  368. begin
  369. drivenr:=0;
  370. dir:='';
  371. thedir:='/'#0;
  372. if sys_stat(@thedir[1],thisdir)<0 then
  373. exit;
  374. rootino:=thisdir.ino;
  375. rootdev:=thisdir.dev;
  376. thedir:='.'#0;
  377. if sys_stat(@thedir[1],thisdir)<0 then
  378. exit;
  379. thisino:=thisdir.ino;
  380. thisdev:=thisdir.dev;
  381. { Now we can uniquely identify the current and root dir }
  382. thedir:='';
  383. predot:='';
  384. while not ((thisino=rootino) and (thisdev=rootdev)) do
  385. begin
  386. { Are we on a mount point ? }
  387. dummy:=predot+'..'#0;
  388. if sys_stat(@dummy[1],thisdir)<0 then
  389. exit;
  390. dotdotino:=thisdir.ino;
  391. dotdotdev:=thisdir.dev;
  392. mountpoint:=(thisdev<>dotdotdev);
  393. { Now, Try to find the name of this dir in the previous one }
  394. dirstream:=opendir (@dummy[1]);
  395. if dirstream=nil then
  396. exit;
  397. repeat
  398. d:=sys_readdir (dirstream);
  399. validdir:=false;
  400. if (d<>nil) and
  401. (not ((d^.name[0]='.') and ((d^.name[1]=#0) or ((d^.name[1]='.')
  402. and (d^.name[2]=#0))))) and
  403. (mountpoint or (d^.ino=thisino)) then
  404. begin
  405. dummy:=predot+'../'+strpas(@(d^.name[0]))+#0;
  406. validdir:=not (sys_stat (@(dummy[1]),thisdir)<0);
  407. end
  408. else
  409. validdir:=false;
  410. until (d=nil) or
  411. ((validdir) and (thisdir.dev=thisdev) and (thisdir.ino=thisino) );
  412. { At this point, d.name contains the name of the current dir}
  413. if (d<>nil) then
  414. thedir:='/'+strpas(@(d^.name[0]))+thedir;
  415. { closedir also makes d invalid }
  416. if (closedir(dirstream)<0) or (d=nil) then
  417. exit;
  418. thisdev:=dotdotdev;
  419. thisino:=dotdotino;
  420. predot:=predot+'../';
  421. end;
  422. { Now rootino=thisino and rootdev=thisdev so we've reached / }
  423. dir:=thedir
  424. end;
  425. {*****************************************************************************
  426. SystemUnit Initialization
  427. *****************************************************************************}
  428. {$ifdef I386}
  429. { this should be defined in i386 directory !! PM }
  430. const
  431. fpucw : word = $1332;
  432. FPU_Invalid = 1;
  433. FPU_Denormal = 2;
  434. FPU_DivisionByZero = 4;
  435. FPU_Overflow = 8;
  436. FPU_Underflow = $10;
  437. FPU_StackUnderflow = $20;
  438. FPU_StackOverflow = $40;
  439. {$endif I386}
  440. Procedure ResetFPU;
  441. begin
  442. {$ifdef I386}
  443. asm
  444. fninit
  445. fldcw fpucw
  446. end;
  447. {$endif I386}
  448. end;
  449. {$ifdef BSD}
  450. procedure SignalToRunerror(Sig: longint; SigContext: SigContextRec;someptr:pointer); cdecl;
  451. {$else}
  452. {$ifdef Solaris}
  453. procedure SignalToRunerror(Sig: longint; SigContext: SigContextRec;someptr:pointer); cdecl;
  454. {$else}
  455. procedure SignalToRunerror(Sig: longint; SigContext: SigContextRec); cdecl;
  456. {$endif}
  457. {$ENDIF}
  458. var
  459. res,fpustate : word;
  460. begin
  461. res:=0;
  462. case sig of
  463. SIGFPE :
  464. begin
  465. { this is not allways necessary but I don't know yet
  466. how to tell if it is or not PM }
  467. {$ifdef I386}
  468. fpustate:=0;
  469. res:=200;
  470. {$ifndef BSD}
  471. if assigned(SigContext.fpstate) then
  472. fpuState:=SigContext.fpstate^.sw;
  473. {$else}
  474. fpustate:=SigContext.en_sw;
  475. {$ifdef SYSTEM_DEBUG}
  476. writeln('xx:',sigcontext.en_tw,' ',sigcontext.en_cw);
  477. {$endif SYSTEM_DEBUG}
  478. {$endif}
  479. {$ifdef SYSTEM_DEBUG}
  480. Writeln(stderr,'FpuState = ',FpuState);
  481. {$endif SYSTEM_DEBUG}
  482. if (FpuState and $7f) <> 0 then
  483. begin
  484. { first check te more precise options }
  485. if (FpuState and FPU_DivisionByZero)<>0 then
  486. res:=200
  487. else if (FpuState and FPU_Overflow)<>0 then
  488. res:=205
  489. else if (FpuState and FPU_Underflow)<>0 then
  490. res:=206
  491. else if (FpuState and FPU_Denormal)<>0 then
  492. res:=216
  493. else if (FpuState and (FPU_StackOverflow or FPU_StackUnderflow))<>0 then
  494. res:=207
  495. else if (FpuState and FPU_Invalid)<>0 then
  496. res:=216
  497. else
  498. res:=207; {'Coprocessor Error'}
  499. end;
  500. {$endif I386}
  501. ResetFPU;
  502. end;
  503. SIGILL,
  504. SIGBUS,
  505. SIGSEGV :
  506. res:=216;
  507. end;
  508. { give runtime error at the position where the signal was raised }
  509. if res<>0 then
  510. begin
  511. {$ifdef I386}
  512. {$ifdef BSD}
  513. HandleErrorAddrFrame(res,SigContext.sc_eip,SigContext.sc_ebp);
  514. {$else}
  515. HandleErrorAddrFrame(res,SigContext.eip,SigContext.ebp);
  516. {$endif}
  517. {$else}
  518. HandleError(res);
  519. {$endif}
  520. end;
  521. end;
  522. Procedure InstallSignals;
  523. const
  524. {$Ifndef BSD}
  525. {$ifdef solaris}
  526. act: SigActionRec =(sa_flags:SA_SIGINFO;Handler:(sa:@signaltorunerror;sa_mask:0);
  527. {$else}
  528. act: SigActionRec = (handler:(Sa:@SignalToRunError);sa_mask:0;sa_flags:0;
  529. Sa_restorer: NIL);
  530. {$endif}
  531. {$ELSE}
  532. act: SigActionRec = (handler:(Sa:@SignalToRunError);sa_flags:SA_SIGINFO;
  533. sa_mask:0);
  534. {$endif}
  535. oldact: PSigActionRec = Nil; {Probably not necessary anymore, now
  536. VAR is removed}
  537. begin
  538. ResetFPU;
  539. SigAction(SIGFPE,@act,oldact);
  540. {$ifndef Solaris}
  541. SigAction(SIGSEGV,@act,oldact);
  542. SigAction(SIGBUS,@act,oldact);
  543. SigAction(SIGILL,@act,oldact);
  544. {$endif}
  545. end;
  546. procedure SetupCmdLine;
  547. var
  548. bufsize,
  549. len,j,
  550. size,i : longint;
  551. found : boolean;
  552. buf : array[0..1026] of char;
  553. procedure AddBuf;
  554. begin
  555. reallocmem(cmdline,size+bufsize);
  556. move(buf,cmdline[size],bufsize);
  557. inc(size,bufsize);
  558. bufsize:=0;
  559. end;
  560. begin
  561. size:=0;
  562. bufsize:=0;
  563. i:=0;
  564. while (i<argc) do
  565. begin
  566. len:=strlen(argv[i]);
  567. if len>sizeof(buf)-2 then
  568. len:=sizeof(buf)-2;
  569. found:=false;
  570. for j:=1 to len do
  571. if argv[i][j]=' ' then
  572. begin
  573. found:=true;
  574. break;
  575. end;
  576. if bufsize+len>=sizeof(buf)-2 then
  577. AddBuf;
  578. if found then
  579. begin
  580. buf[bufsize]:='"';
  581. inc(bufsize);
  582. end;
  583. move(argv[i]^,buf[bufsize],len);
  584. inc(bufsize,len);
  585. if found then
  586. begin
  587. buf[bufsize]:='"';
  588. inc(bufsize);
  589. end;
  590. if i<argc then
  591. buf[bufsize]:=' '
  592. else
  593. buf[bufsize]:=#0;
  594. inc(bufsize);
  595. inc(i);
  596. end;
  597. AddBuf;
  598. end;
  599. Begin
  600. { Set up signals handlers }
  601. InstallSignals;
  602. { Setup heap }
  603. InitHeap;
  604. InitExceptions;
  605. { Arguments }
  606. SetupCmdLine;
  607. { Setup stdin, stdout and stderr }
  608. OpenStdIO(Input,fmInput,StdInputHandle);
  609. OpenStdIO(Output,fmOutput,StdOutputHandle);
  610. OpenStdIO(StdOut,fmOutput,StdOutputHandle);
  611. OpenStdIO(StdErr,fmOutput,StdErrorHandle);
  612. { Reset IO Error }
  613. InOutRes:=0;
  614. End.
  615. {
  616. $Log$
  617. Revision 1.12 2001-06-02 19:24:49 peter
  618. * chdir rte 2 mapped to 3
  619. Revision 1.11 2001/06/02 00:31:31 peter
  620. * merge unix updates from the 1.0 branch, mostly related to the
  621. solaris target
  622. Revision 1.10 2001/04/23 20:33:31 peter
  623. * also install sig handlers for sigill,sigbus
  624. Revision 1.9 2001/04/13 22:39:05 peter
  625. * removed warning
  626. Revision 1.8 2001/04/12 17:53:43 peter
  627. * fixed usage of already release memory in getdir
  628. Revision 1.7 2001/03/21 21:08:20 hajny
  629. * GetDir fixed
  630. Revision 1.6 2001/03/16 20:09:58 hajny
  631. * universal FExpand
  632. Revision 1.5 2001/02/20 21:31:12 peter
  633. * chdir,mkdir,rmdir with empty string fixed
  634. Revision 1.4 2000/12/17 14:00:57 peter
  635. * removed debug writelns
  636. Revision 1.3 2000/10/09 16:35:51 marco
  637. * Fixed the first (of many) ioctls that make building the IDE hard.
  638. Revision 1.2 2000/09/18 13:14:51 marco
  639. * Global Linux +bsd to (rtl/freebsd rtl/unix rtl/linux structure)
  640. Revision 1.6 2000/09/11 13:48:08 marco
  641. * FreeBSD support and removal of old sighandler
  642. Revision 1.5 2000/08/13 08:43:45 peter
  643. * don't check for directory in do_open (merged)
  644. Revision 1.4 2000/08/05 18:33:51 peter
  645. * paramstr(0) fix for linux 2.0 kernels (merged)
  646. Revision 1.3 2000/07/14 10:33:10 michael
  647. + Conditionals fixed
  648. Revision 1.2 2000/07/13 11:33:49 michael
  649. + removed logs
  650. }