sysunix.inc 18 KB

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