ossysc.inc 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629
  1. {
  2. $Id$
  3. Copyright (c) 2002 by Marco van de Voort
  4. The base Linux syscalls required to implement the system unit. These
  5. are aliased for use in other units (to avoid poluting the system units
  6. interface)
  7. See the file COPYING.FPC, included in this distribution,
  8. for details about the copyright.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. ****************************************************************************
  13. }
  14. {$I syscallh.inc}
  15. {$I ostypes.inc}
  16. {$ifdef FPC_USE_LIBC}
  17. {$Linklib c}
  18. {$ifdef FPC_IS_SYSTEM}
  19. {$i oscdeclh.inc}
  20. {$endif}
  21. {$I bunxmacr.inc}
  22. {$else}
  23. {*****************************************************************************
  24. --- Main:The System Call Self ---
  25. *****************************************************************************}
  26. {$I syscall.inc}
  27. {$I sysnr.inc}
  28. {$I bunxmacr.inc}
  29. function Fptime(tloc:pTime): TTime; [public, alias : 'FPC_SYSC_TIME'];
  30. begin
  31. Fptime:=do_syscall(syscall_nr_time,TSysParam(tloc));
  32. End;
  33. {*****************************************************************************
  34. --- File:File handling related calls ---
  35. *****************************************************************************}
  36. function Fpopen(path: pchar; flags : cint; mode: mode_t):cint; [public, alias : 'FPC_SYSC_OPEN'];
  37. Begin
  38. Fpopen:=do_syscall(syscall_nr_open,TSysParam(path),TSysParam(flags),TSysParam(mode));
  39. End;
  40. function Fpclose(fd : cint): cint; [public, alias : 'FPC_SYSC_CLOSE'];
  41. begin
  42. Fpclose:=do_syscall(syscall_nr_close,fd);
  43. end;
  44. function Fplseek(fd : cint; offset : off_t; whence : cint): off_t; [public, alias : 'FPC_SYSC_LSEEK'];
  45. {
  46. Must be adapted/overloaded for 64-bit support, but that is a different call under
  47. Linux?
  48. }
  49. begin
  50. Fplseek:=do_syscall(syscall_nr_lseek,tsysparam(fd),tsysparam(offset),tsysparam(whence));
  51. end;
  52. function Fpread(fd: cint; buf: pchar; nbytes : size_t): ssize_t; [public, alias : 'FPC_SYSC_READ'];
  53. begin
  54. Fpread:=do_syscall(syscall_nr_read,Fd,TSysParam(buf),nbytes);
  55. end;
  56. function Fpwrite(fd: cint;buf:pchar; nbytes : size_t): ssize_t; [public, alias : 'FPC_SYSC_WRITE'];
  57. begin
  58. Fpwrite:=do_syscall(syscall_nr_write,Fd,TSysParam(buf),nbytes);
  59. end;
  60. function Fpunlink(path: pchar): cint; [public, alias : 'FPC_SYSC_UNLINK'];
  61. begin
  62. Fpunlink:=do_syscall(syscall_nr_unlink,TSysParam(path));
  63. end;
  64. function Fprename(old : pchar; newpath: pchar): cint; [public, alias : 'FPC_SYSC_RENAME'];
  65. begin
  66. Fprename:=do_syscall(syscall_nr_rename,TSysParam(old),TSysParam(newpath));
  67. end;
  68. function Fpstat(path: pchar; var buf : stat):cint; [public, alias : 'FPC_SYSC_STAT'];
  69. begin
  70. Fpstat:=do_syscall(syscall_nr_stat,TSysParam(path),TSysParam(@buf));
  71. end;
  72. {*****************************************************************************
  73. --- Directory:Directory related calls ---
  74. *****************************************************************************}
  75. function Fpchdir(path : pchar): cint; [public, alias : 'FPC_SYSC_CHDIR'];
  76. begin
  77. Fpchdir:=do_syscall(syscall_nr_chdir,TSysParam(path));
  78. end;
  79. function Fpmkdir(path : pchar; mode: mode_t):cint; [public, alias : 'FPC_SYSC_MKDIR'];
  80. begin
  81. Fpmkdir:=do_syscall(syscall_nr_mkdir,TSysParam(path),TSysParam(mode));
  82. end;
  83. function Fprmdir(path : pchar): cint; [public, alias : 'FPC_SYSC_RMDIR'];
  84. begin
  85. Fprmdir:=do_syscall(syscall_nr_rmdir,TSysParam(path));
  86. end;
  87. function Fpopendir(dirname : pchar): pdir; [public, alias : 'FPC_SYSC_OPENDIR'];
  88. var
  89. fd:integer;
  90. st:stat;
  91. ptr:pdir;
  92. begin
  93. Fpopendir:=nil;
  94. if Fpstat(dirname,st)<0 then
  95. exit;
  96. { Is it a dir ? }
  97. if not((st.st_mode and $f000)=$4000)then
  98. begin
  99. errno:=ESysENOTDIR;
  100. exit
  101. end;
  102. { Open it}
  103. fd:=Fpopen(dirname,O_RDONLY,438);
  104. if fd<0 then
  105. exit;
  106. new(ptr);
  107. if ptr=nil then
  108. exit;
  109. getmem(ptr^.dd_buf,sizeof(dirent));
  110. if ptr^.dd_buf=nil then
  111. exit;
  112. ptr^.dd_fd:=fd;
  113. ptr^.dd_loc:=0;
  114. ptr^.dd_size:=0;
  115. ptr^.dd_nextoff:=0;
  116. ptr^.dd_max:=sizeof(ptr^.dd_buf^);
  117. Fpopendir:=ptr;
  118. end;
  119. function Fpclosedir(dirp : pdir): cint; [public, alias : 'FPC_SYSC_CLOSEDIR'];
  120. begin
  121. Fpclosedir:=Fpclose(dirp^.dd_fd);
  122. freemem(dirp^.dd_buf,sizeof(dirent));
  123. dispose(dirp);
  124. end;
  125. Function Fpreaddir(dirp : pdir) : pdirent; [public, alias: 'FPC_SYSC_READDIR'];
  126. var bytes : longint;
  127. dp : pdirent;
  128. begin
  129. repeat
  130. if dirp^.dd_nextoff >= dirp^.dd_size then
  131. begin
  132. bytes := do_SysCall(SysCall_nr_getdents,TSysParam(dirp^.dd_fd),TSysParam(dirp^.dd_buf),TSysParam(dirp^.dd_max));
  133. if bytes <= 0 then
  134. begin
  135. fpreaddir := nil;
  136. exit;
  137. end;
  138. dirp^.dd_size := bytes;
  139. dirp^.dd_nextoff := 0;
  140. end;
  141. dp := pdirent(ptrint(dirp^.dd_buf)+dirp^.dd_nextoff);
  142. inc(dirp^.dd_nextoff,dp^.d_reclen);
  143. inc(dirp^.dd_loc,dp^.d_reclen);
  144. until dp^.d_fileno <> 0; // Don't show deleted files
  145. Fpreaddir := dp;
  146. end;
  147. {*****************************************************************************
  148. --- Process:Process & program handling - related calls ---
  149. *****************************************************************************}
  150. procedure Fpexit(status : cint); [public, alias : 'FPC_SYSC_EXIT'];
  151. begin
  152. do_syscall(syscall_nr_exit,status);
  153. end;
  154. {
  155. Change action of process upon receipt of a signal.
  156. Signum specifies the signal (all except SigKill and SigStop).
  157. If Act is non-nil, it is used to specify the new action.
  158. If OldAct is non-nil the previous action is saved there.
  159. }
  160. {$ifdef cpusparc}
  161. procedure Fprt_sigreturn_stub;assembler;nostackframe;
  162. asm
  163. mov syscall_nr_rt_sigreturn,%g1
  164. ta 0x10
  165. end;
  166. {$endif cpusparc}
  167. function Fpsigaction(sig: cint; act : psigactionrec; oact : psigactionrec): cint; [public, alias : 'FPC_SYSC_SIGACTION'];
  168. {
  169. Change action of process upon receipt of a signal.
  170. Signum specifies the signal (all except SigKill and SigStop).
  171. If Act is non-nil, it is used to specify the new action.
  172. If OldAct is non-nil the previous action is saved there.
  173. }
  174. begin
  175. {$ifdef cpusparc}
  176. { Sparc has an extra stub parameter }
  177. Fpsigaction:=do_syscall(syscall_nr_rt_sigaction,TSysParam(sig),TSysParam(act),TSysParam(oact),TSysParam(PtrInt(@Fprt_sigreturn_stub)-8),TSysParam(8));
  178. {$else cpusparc}
  179. Fpsigaction:=do_syscall(syscall_nr_rt_sigaction,TSysParam(sig),TSysParam(act),TSysParam(oact),TSysParam(8));
  180. {$endif cpusparc}
  181. end;
  182. function Fpftruncate(fd : cint; flength : off_t): cint; [public, alias : 'FPC_SYSC_FTRUNCATE'];
  183. { See notes lseek. This one is completely similar for the parameter (but
  184. doesn't have the returnvalue 64-bit problem)}
  185. begin
  186. Fpftruncate:=Do_syscall(syscall_nr_ftruncate,TSysParam(fd),TSysParam(flength));
  187. end;
  188. function Fpfstat(fd : cint; var sb : stat): cint; [public, alias : 'FPC_SYSC_FSTAT'];
  189. begin
  190. FpFStat:=do_SysCall(syscall_nr_fstat,TSysParam(fd),TSysParam(@sb));
  191. end;
  192. {$ifndef FPC_SYSTEM_HAS_FPFORK}
  193. function Fpfork : pid_t; [public, alias : 'FPC_SYSC_FORK'];
  194. {
  195. This function issues the 'fork' System call. the program is duplicated in memory
  196. and Execution continues in parent and child process.
  197. In the parent process, fork returns the PID of the child. In the child process,
  198. zero is returned.
  199. A negative value indicates that an error has occurred, the error is returned in
  200. LinuxError.
  201. }
  202. Begin
  203. Fpfork:=Do_syscall(SysCall_nr_fork);
  204. End;
  205. {$endif FPC_SYSTEM_HAS_FPFORK}
  206. // Look at execve variants later, when overloaded is determined.
  207. {
  208. function Fpexecve(path : pathstr; argv : ppchar; envp: ppchar): cint;
  209. }
  210. {
  211. Replaces the current program by the program specified in path,
  212. arguments in args are passed to Execve.
  213. environment specified in ep is passed on.
  214. }
  215. {
  216. Begin
  217. path:=path+#0;
  218. do_syscall(syscall_nr_Execve,TSysParam(@path[1]),TSysParam(Argv),TSysParam(envp));
  219. End;
  220. }
  221. {
  222. function Fpexecve(path : pchar; argv : ppchar; envp: ppchar): cint; [public, alias : 'FPC_SYSC_EXECVE'];
  223. }
  224. {
  225. Replaces the current program by the program specified in path,
  226. arguments in args are passed to Execve.
  227. environment specified in ep is passed on.
  228. }
  229. {
  230. Begin
  231. do_syscall(syscall_nr_Execve,TSysParam(path),TSysParam(Argv),TSysParam(envp));
  232. End;
  233. }
  234. {$ifdef CPUARM}
  235. {$define WAIT4}
  236. {$endif CPUARM}
  237. {$ifdef CPUx86_64}
  238. {$define WAIT4}
  239. {$endif CPUx86_64}
  240. {$ifdef CPUSPARC}
  241. {$define WAIT4}
  242. {$endif CPUSPARC}
  243. function Fpwaitpid(pid : pid_t; stat_loc : pcint; options: cint): pid_t; [public, alias : 'FPC_SYSC_WAITPID'];
  244. {
  245. Waits until a child with PID Pid exits, or returns if it is exited already.
  246. Any resources used by the child are freed.
  247. The exit status is reported in the adress referred to by Status. It should
  248. be a longint.
  249. }
  250. begin
  251. {$ifdef WAIT4}
  252. FpWaitPID:=do_syscall(syscall_nr_Wait4,PID,TSysParam(Stat_loc),options,0);
  253. {$else WAIT4}
  254. FpWaitPID:=do_syscall(syscall_nr_WaitPID,PID,TSysParam(Stat_loc),options);
  255. {$endif WAIT4}
  256. end;
  257. function Fpaccess(pathname : pchar; amode : cint): cint; [public, alias : 'FPC_SYSC_ACCESS'];
  258. {
  259. Test users access rights on the specified file.
  260. Mode is a mask xosisting of one or more of R_OK, W_OK, X_OK, F_OK.
  261. R,W,X stand for read,write and Execute access, simultaneously.
  262. F_OK checks whether the test would be allowed on the file.
  263. i.e. It checks the search permissions in all directory components
  264. of the path.
  265. The test is done with the real user-ID, instead of the effective.
  266. If access is denied, or an error occurred, false is returned.
  267. If access is granted, true is returned.
  268. Errors other than no access,are reported in unixerror.
  269. }
  270. begin
  271. FpAccess:=do_syscall(syscall_nr_access,TSysParam(pathname),amode);
  272. end;
  273. (* overloaded
  274. function Fpaccess(pathname : pathstr; amode : cint): cint;
  275. {
  276. Test users access rights on the specified file.
  277. Mode is a mask xosisting of one or more of R_OK, W_OK, X_OK, F_OK.
  278. R,W,X stand for read,write and Execute access, simultaneously.
  279. F_OK checks whether the test would be allowed on the file.
  280. i.e. It checks the search permissions in all directory components
  281. of the path.
  282. The test is done with the real user-ID, instead of the effective.
  283. If access is denied, or an error occurred, false is returned.
  284. If access is granted, true is returned.
  285. Errors other than no access,are reported in unixerror.
  286. }
  287. begin
  288. pathname:=pathname+#0;
  289. Access:=do_syscall(syscall_nr_access, TSysParam(@pathname[1]),mode)=0;
  290. end;
  291. *)
  292. Function FpDup(fildes:cint):cint; [public, alias : 'FPC_SYSC_DUP'];
  293. begin
  294. Fpdup:=Do_syscall(syscall_nr_dup,TSysParam(fildes));
  295. end;
  296. Function FpDup2(fildes,fildes2:cint):cint; [public, alias : 'FPC_SYSC_DUP2'];
  297. begin
  298. Fpdup2:=do_syscall(syscall_nr_dup2,TSysParam(fildes),TSysParam(fildes2));
  299. end;
  300. type
  301. tmmapargs = packed record
  302. address : TSysParam;
  303. size : TSysParam;
  304. prot : TSysParam;
  305. flags : TSysParam;
  306. fd : TSysParam;
  307. offset : TSysParam;
  308. end;
  309. {$ifdef cpui386}
  310. {$define OLDMMAP}
  311. {$endif cpui386}
  312. {$ifdef cpum68k}
  313. {$define OLDMMAP}
  314. {$endif cpum68k}
  315. {$ifdef cpuarm}
  316. {$define OLDMMAP}
  317. {$endif cpuarm}
  318. Function Fpmmap(adr:pointer;len:size_t;prot:cint;flags:cint;fd:cint;off:off_t):pointer; [public, alias : 'FPC_SYSC_MMAP'];
  319. // OFF_T procedure, and returns a pointer, NOT cint.
  320. {$ifdef OLDMMAP}
  321. var
  322. mmapargs : tmmapargs;
  323. begin
  324. mmapargs.address:=TSysParam(adr);
  325. mmapargs.size:=TSysParam(len);
  326. mmapargs.prot:=TSysParam(prot);
  327. mmapargs.flags:=TSysParam(flags);
  328. mmapargs.fd:=TSysParam(fd);
  329. mmapargs.offset:=TSysParam(off);
  330. Fpmmap:=pointer(do_syscall(syscall_nr_mmap,TSysParam(@MMapArgs)));
  331. end;
  332. {$else OLDMMAP}
  333. begin
  334. Fpmmap:= pointer(do_syscall(syscall_nr_mmap,TSysParam(adr),TSysParam(len),
  335. TSysParam(prot),TSysParam(flags),TSysParam(fd),TSysParam(off)));
  336. end;
  337. {$endif OLDMMAP}
  338. Function Fpmunmap(adr:pointer;len:size_t):cint; [public, alias :'FPC_SYSC_MUNMAP'];
  339. begin
  340. Fpmunmap:=do_syscall(syscall_nr_munmap,TSysParam(Adr),TSysParam(Len));
  341. end;
  342. {
  343. Interface to Unix ioctl call.
  344. Performs various operations on the filedescriptor Handle.
  345. Ndx describes the operation to perform.
  346. Data points to data needed for the Ndx function. The structure of this
  347. data is function-dependent.
  348. }
  349. // prototype is cint __P(cint,culong,....)
  350. // actual meaning of return value depends on request.
  351. Function FpIOCtl(fd:cint;request:culong;Data: Pointer):cint; [public, alias : 'FPC_SYSC_IOCTL'];
  352. // This was missing here, instead hardcoded in Do_IsDevice
  353. begin
  354. FpIOCtl:=do_SysCall(syscall_nr_ioctl,tsysparam(fd),tsysparam(Request),TSysParam(data));
  355. end;
  356. Function FpGetPid:pid_t; [public, alias : 'FPC_SYSC_GETPID'];
  357. {
  358. Get Process ID.
  359. }
  360. begin
  361. FpGetPID:=do_syscall(syscall_nr_getpid);
  362. end;
  363. Function FpReadLink(name,linkname:pchar;maxlen:size_t):cint; [public, alias : 'FPC_SYSC_READLINK'];
  364. begin
  365. Fpreadlink:=do_syscall(syscall_nr_readlink, TSysParam(name),TSysParam(linkname),maxlen);
  366. end;
  367. function FPSigProcMask(how:cint;nset : psigset;oset : psigset):cint; [public, alias : 'FPC_SYSC_SIGPROCMASK'];
  368. {
  369. Change the list of currently blocked signals.
  370. How determines which signals will be blocked :
  371. SigBlock : Add SSet to the current list of blocked signals
  372. SigUnBlock : Remove the signals in SSet from the list of blocked signals.
  373. SigSetMask : Set the list of blocked signals to SSet
  374. if OldSSet is non-null, the old set will be saved there.
  375. }
  376. begin
  377. FPsigprocmask:=do_syscall(syscall_nr_rt_sigprocmask,TSysParam(how),TSysParam(nset),TSysParam(oset),TSysParam(8));
  378. end;
  379. Function FpNanoSleep(req : ptimespec;rem : ptimespec):cint; [public, alias : 'FPC_SYSC_NANOSLEEP'];
  380. begin
  381. FpNanoSleep:=Do_SysCall(syscall_nr_nanosleep,TSysParam(req),TSysParam(rem));
  382. end;
  383. // The following belongs here, but this should be researched more.
  384. // function Fpgetcwd(pt:pchar; _size:size_t):pchar;[public, alias :'FPC_SYSC_GETCWD'];
  385. function fpgettimeofday(tp: ptimeval;tzp:ptimezone):cint; [public, alias: 'FPC_SYSC_GETTIMEOFDAY'];
  386. begin
  387. fpgettimeofday:=do_syscall(syscall_nr_gettimeofday,TSysParam(tp),TSysParam(tzp));
  388. end;
  389. {$ENDIF}
  390. CONST
  391. {Constansts Termios/Ioctl (used in Do_IsDevice) }
  392. {$ifdef PowerPC}
  393. IOCtl_TCGETS=$402c7413;
  394. {$else}
  395. IOCtl_TCGETS=$5401; // TCGETS is also in termios.inc, but the sysunix needs only this
  396. {$endif}
  397. Function Do_IsDevice(Handle:THandle):boolean;
  398. {
  399. Interface to Unix ioctl call.
  400. Performs various operations on the filedescriptor Handle.
  401. Ndx describes the operation to perform.
  402. Data points to data needed for the Ndx function. The structure of this
  403. data is function-dependent.
  404. }
  405. var
  406. Data : array[0..255] of byte; {Large enough for termios info}
  407. begin
  408. Do_IsDevice:=(Fpioctl(handle,IOCTL_TCGETS,@data)<>-1);
  409. end;
  410. {
  411. $Log$
  412. Revision 1.34 2005-02-13 20:01:38 peter
  413. * include file cleanup
  414. Revision 1.33 2005/02/06 12:16:52 peter
  415. * bsd thread updates
  416. Revision 1.32 2005/01/31 20:13:24 peter
  417. * rt_sigaction for all cpus
  418. Revision 1.31 2005/01/31 19:22:48 peter
  419. * i386 also needs rtsignal
  420. Revision 1.30 2004/08/22 12:34:11 florian
  421. * fixed fork for sparc
  422. Revision 1.29 2004/08/18 21:03:35 florian
  423. * sparc uses wait4 as well
  424. Revision 1.28 2004/05/31 20:25:04 peter
  425. * removed warnings
  426. Revision 1.27 2004/05/31 14:31:57 peter
  427. * remove comment warnings
  428. Revision 1.26 2004/05/31 09:22:42 peter
  429. * sigaction fixed for sparc
  430. Revision 1.25 2004/05/16 18:51:20 peter
  431. * use thandle in do_*
  432. Revision 1.24 2004/05/01 15:59:17 florian
  433. * x86_64 exception handling fixed
  434. Revision 1.23 2004/04/27 20:47:00 florian
  435. * tried to fix x86-64 signal handling
  436. Revision 1.22 2004/04/25 07:18:49 florian
  437. * mmap for x86-64 fixed
  438. Revision 1.21 2004/04/20 20:27:01 florian
  439. * x86_64 syscall numbers fixed
  440. Revision 1.20 2004/04/12 16:33:42 peter
  441. * readdir now uses getdents, patch from Joost van der Sluis
  442. Revision 1.19 2004/03/27 14:34:23 florian
  443. * use rt_sigaction syscall on arm
  444. Revision 1.18 2004/02/21 16:27:29 marco
  445. * hmprf, Linux has different ioctls kernel<->libc
  446. Revision 1.17 2004/02/21 15:14:55 marco
  447. * ppc ioctl nr fixed
  448. Revision 1.16 2004/02/06 15:58:21 florian
  449. * fixed x86-64 assembler problems
  450. Revision 1.15 2004/02/05 01:16:12 florian
  451. + completed x86-64/linux system unit
  452. Revision 1.14 2004/01/31 16:25:48 florian
  453. * use wait4 instead of waitpid on arm
  454. Revision 1.13 2004/01/23 00:00:06 florian
  455. * arm requires oldmmap call as well
  456. Revision 1.12 2003/12/30 16:26:10 marco
  457. * some more fixes. Testing on idefix
  458. Revision 1.11 2003/12/30 15:43:20 marco
  459. * linux now compiles with FPC_USE_LIBC
  460. Revision 1.10 2003/12/16 09:43:04 daniel
  461. * Use of 0 instead of nil fixed
  462. Revision 1.9 2003/10/17 20:56:24 olle
  463. * Changed m68k to cpum68k, i386 to cpui386
  464. Revision 1.8 2003/09/27 13:45:58 peter
  465. * fpnanosleep exported in baseunix
  466. * fpnanosleep has pointer arguments to be C compliant
  467. Revision 1.7 2003/09/27 12:58:23 peter
  468. * mmap returns -1 on error
  469. Revision 1.6 2003/09/27 11:52:35 peter
  470. * sbrk returns pointer
  471. Revision 1.5 2003/09/15 20:29:50 marco
  472. * small fix
  473. Revision 1.4 2003/09/14 20:15:01 marco
  474. * Unix reform stage two. Remove all calls from Unix that exist in Baseunix.
  475. Revision 1.3 2003/05/11 16:07:55 jonas
  476. * fixed mmap for non-i386 non-m68k architectures (not sure about
  477. x86-64)
  478. Revision 1.2 2002/12/18 17:38:01 marco
  479. * small fix, new rtl now cycles
  480. Revision 1.1 2002/12/18 16:43:26 marco
  481. * new unix rtl, linux part.....
  482. Revision 1.1 2002/11/12 14:40:18 marco
  483. * The syscall core of the new system unit.
  484. }