ossysc.inc 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693
  1. {
  2. $Id$
  3. Copyright (c) 2002 by Marco van de Voort
  4. The base *BSD 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 ostypes.inc}
  15. {$ifdef FPC_USE_LIBC}
  16. {$Linklib c}
  17. {$ifdef FPC_IS_SYSTEM}
  18. {$i oscdeclh.inc}
  19. {$endif}
  20. {$i bunxmacr.inc}
  21. {$else}
  22. {*****************************************************************************
  23. --- Main:The System Call Self ---
  24. *****************************************************************************}
  25. { The system designed for Linux can't be used for *BSD so easily, since
  26. *BSD pushes arguments, instead of loading them to registers.}
  27. // Var ErrNo : Longint;
  28. {$I syscallh.inc}
  29. {$I syscall.inc}
  30. {$I sysnr.inc}
  31. {$I bunxmacr.inc}
  32. // Should be moved to a FreeBSD specific unit in the future.
  33. function Fptime( tloc:ptime): time_t; [public, alias : 'FPC_SYSC_TIME'];
  34. VAR tv : timeval;
  35. tz : timezone;
  36. retval : longint;
  37. begin
  38. Retval:=do_syscall(syscall_nr_gettimeofday,TSysParam(@tv),TSysParam(@tz));
  39. If retval=-1 then
  40. Fptime:=-1
  41. else
  42. Begin
  43. If Assigned(tloc) Then
  44. TLoc^:=tv.tv_sec;
  45. Fptime:=tv.tv_sec;
  46. End;
  47. End;
  48. {*****************************************************************************
  49. --- File:File handling related calls ---
  50. *****************************************************************************}
  51. function Fpopen(path: pchar; flags : cint; mode: mode_t):cint; [public, alias : 'FPC_SYSC_OPEN'];
  52. Begin
  53. Fpopen:=do_syscall(syscall_nr_open,TSysParam(path),TSysParam(flags),TSysParam(mode));
  54. End;
  55. function Fpclose(fd : cint): cint; [public, alias : 'FPC_SYSC_CLOSE'];
  56. begin
  57. Fpclose:=do_syscall(syscall_nr_close,fd);
  58. end;
  59. {$ifdef netbsd}
  60. {$ifdef cpupowerpc}
  61. {$define netbsdmacppc}
  62. {$endif}
  63. {$endif}
  64. {$ifdef netbsdmacppc}
  65. {$i sysofft.inc} // odd ball calling convention.
  66. {$else}
  67. // generic versions.
  68. function Fplseek(fd : cint; offset : off_t; whence : cint): off_t; [public, alias : 'FPC_SYSC_LSEEK'];
  69. {
  70. this one is special for the return value being 64-bit..
  71. hi/lo offset not yet tested.
  72. NetBSD: ok, but implicit return value in edx:eax
  73. FreeBSD: same implementation as NetBSD.
  74. }
  75. begin
  76. Fplseek:=do_syscall(syscall_nr___syscall,syscall_nr_lseek,0,TSysParam(fd),0,lo(Offset),{0} hi(offset),Whence);
  77. end;
  78. function Fpftruncate(fd : cint; flength : off_t): cint; [public, alias : 'FPC_SYSC_FTRUNCATE'];
  79. begin
  80. Fpftruncate:=Do_syscall(syscall_nr___syscall,syscall_nr_ftruncate,0,fd,0,lo(flength),hi(flength));
  81. end;
  82. {$ifdef VER1_0}
  83. {$DEFINE FPC_LITTLE_ENDIAN}
  84. {$endif}
  85. Function Fpmmap(start:pointer;len:size_t;prot:cint;flags:cint;fd:cint;offst:off_t):pointer; [public, alias: 'FPC_SYSC_MMAP'];
  86. begin
  87. Fpmmap:=pointer(longint(do_syscall(syscall_nr_mmap,TSysParam(Start),Len,Prot,Flags,fd,
  88. {$ifdef FPC_BIG_ENDIAN} hi(offst),lo(offst){$endif}
  89. {$ifdef FPC_LITTLE_ENDIAN} lo(offst),hi(offst){$endif}
  90. )));
  91. end;
  92. {$endif}
  93. function Fpread(fd: cint; buf: pchar; nbytes : size_t): ssize_t; [public, alias : 'FPC_SYSC_READ'];
  94. begin
  95. Fpread:=do_syscall(syscall_nr_read,Fd,TSysParam(buf),nbytes);
  96. end;
  97. function Fpwrite(fd: cint;buf:pchar; nbytes : size_t): ssize_t; [public, alias : 'FPC_SYSC_WRITE'];
  98. begin
  99. Fpwrite:=do_syscall(syscall_nr_write,Fd,TSysParam(buf),nbytes);
  100. end;
  101. function Fpunlink(const path: pchar): cint; [public, alias : 'FPC_SYSC_UNLINK'];
  102. begin
  103. Fpunlink:=do_syscall(syscall_nr_unlink,TSysParam(path));
  104. end;
  105. function Fprename(old : pchar; newpath: pchar): cint; [public, alias : 'FPC_SYSC_RENAME'];
  106. begin
  107. Fprename:=do_syscall(syscall_nr_rename,TSysParam(old),TSysParam(newpath));
  108. end;
  109. function Fpstat(const path: pchar; var buf : stat):cint; [public, alias : 'FPC_SYSC_STAT'];
  110. begin
  111. Fpstat:=do_syscall(syscall_nr_stat,TSysParam(path),TSysParam(@buf));
  112. end;
  113. {*****************************************************************************
  114. --- Directory:Directory related calls ---
  115. *****************************************************************************}
  116. function Fpchdir(path : pchar): cint; [public, alias : 'FPC_SYSC_CHDIR'];
  117. begin
  118. Fpchdir:=do_syscall(syscall_nr_chdir,TSysParam(path));
  119. end;
  120. function Fpmkdir(path : pchar; mode: mode_t):cint; [public, alias : 'FPC_SYSC_MKDIR'];
  121. begin {Mode is 16-bit on F-BSD 4!}
  122. Fpmkdir:=do_syscall(syscall_nr_mkdir,TSysParam(path),mode);
  123. end;
  124. function Fprmdir(path : pchar): cint; [public, alias : 'FPC_SYSC_RMDIR'];
  125. begin
  126. Fprmdir:=do_syscall(syscall_nr_rmdir,TSysParam(path));
  127. end;
  128. {$ifndef NewReaddir}
  129. const DIRBLKSIZ=1024;
  130. function Fpopendir(dirname : pchar): pdir; [public, alias : 'FPC_SYSC_OPENDIR'];
  131. var
  132. fd:longint;
  133. st:stat;
  134. ptr:pdir;
  135. begin
  136. Fpopendir:=nil;
  137. if Fpstat(dirname,st)<0 then
  138. exit;
  139. { Is it a dir ? }
  140. if not((st.st_mode and $f000)=$4000)then
  141. begin
  142. errno:=ESysENOTDIR;
  143. exit
  144. end;
  145. { Open it}
  146. fd:=Fpopen(dirname,O_RDONLY,438);
  147. if fd<0 then
  148. Begin
  149. Errno:=-1;
  150. exit;
  151. End;
  152. new(ptr);
  153. if ptr=nil then
  154. Begin
  155. Errno:=1;
  156. exit;
  157. End;
  158. Getmem(ptr^.dd_buf,2*DIRBLKSIZ);
  159. if ptr^.dd_buf=nil then
  160. exit;
  161. ptr^.dd_fd:=fd;
  162. ptr^.dd_loc:=-1;
  163. ptr^.dd_rewind:=longint(ptr^.dd_buf);
  164. ptr^.dd_size:=0;
  165. // ptr^.dd_max:=sizeof(ptr^.dd_buf^);
  166. Fpopendir:=ptr;
  167. end;
  168. function Fpclosedir(dirp : pdir): cint; [public, alias : 'FPC_SYSC_CLOSEDIR'];
  169. begin
  170. Fpclosedir:=Fpclose(dirp^.dd_fd);
  171. Freemem(dirp^.dd_buf);
  172. dispose(dirp);
  173. end;
  174. function Fpreaddir(dirp : pdir) : pdirent; [public, alias : 'FPC_SYSC_READDIR'];
  175. {Different from Linux, Readdir on BSD is based on Getdents, due to the
  176. missing of the readdir syscall.
  177. Getdents requires the buffer to be larger than the blocksize.
  178. This usually the sectorsize =512 bytes, but maybe tapedrives and harddisks
  179. with blockmode have this higher?}
  180. function readbuffer:longint;
  181. var retval :longint;
  182. begin
  183. Retval:=do_syscall(syscall_nr_getdents,TSysParam(dirp^.dd_fd),TSysParam(@dirp^.dd_buf^),DIRBLKSIZ {sizeof(getdentsbuffer)});
  184. dirp^.dd_rewind:=TSysParam(dirp^.dd_buf);
  185. if retval=0 then
  186. begin
  187. dirp^.dd_rewind:=0;
  188. dirp^.dd_loc:=0;
  189. end
  190. else
  191. dirP^.dd_loc:=retval;
  192. readbuffer:=retval;
  193. end;
  194. var
  195. FinalEntry : pdirent;
  196. novalid : boolean;
  197. Reclen : Longint;
  198. CurEntry : PDirent;
  199. begin
  200. if (dirp^.dd_buf=nil) or (dirp^.dd_loc=0) THEN
  201. exit(nil);
  202. if (dirp^.dd_loc=-1) OR {First readdir on this pdir. Initial fill of buffer}
  203. (dirp^.dd_rewind>=(longint(dirp^.dd_buf)+dirblksiz)) then {no more entries left?}
  204. Begin
  205. if readbuffer=0 then {succesful read?}
  206. Exit(NIL); {No more data}
  207. End;
  208. FinalEntry:=NIL;
  209. CurEntry:=nil;
  210. repeat
  211. novalid:=false;
  212. CurEntry:=pdirent(dirp^.dd_rewind);
  213. RecLen:=CurEntry^.d_reclen;
  214. if RecLen<>0 Then
  215. begin {valid direntry?}
  216. if CurEntry^.d_fileno<>0 then
  217. FinalEntry:=CurEntry;
  218. inc(dirp^.dd_rewind,Reclen);
  219. end
  220. else
  221. begin {block entirely searched or reclen=0}
  222. Novalid:=True;
  223. if dirp^.dd_loc<>0 THEN {blocks left?}
  224. if readbuffer()<>0 then {succesful read?}
  225. novalid:=false;
  226. end;
  227. until (FinalEntry<>nil) or novalid;
  228. If novalid then
  229. FinalEntry:=nil;
  230. FpReadDir:=FinalEntry;
  231. end;
  232. {$endif}
  233. {*****************************************************************************
  234. --- Process:Process & program handling - related calls ---
  235. *****************************************************************************}
  236. procedure Fpexit(status : cint); [public, alias : 'FPC_SYSC_EXIT'];
  237. begin
  238. do_syscall(syscall_nr_exit,status);
  239. end;
  240. {
  241. Change action of process upon receipt of a signal.
  242. Signum specifies the signal (all except SigKill and SigStop).
  243. If Act is non-nil, it is used to specify the new action.
  244. If OldAct is non-nil the previous action is saved there.
  245. }
  246. function Fpsigaction(sig: cint; var act : sigactionrec; var oact : sigactionrec): cint; [public, alias : 'FPC_SYSC_SIGACTION'];
  247. {
  248. Change action of process upon receipt of a signal.
  249. Signum specifies the signal (all except SigKill and SigStop).
  250. If Act is non-nil, it is used to specify the new action.
  251. If OldAct is non-nil the previous action is saved there.
  252. }
  253. begin
  254. do_syscall(syscall_nr_sigaction,TSysParam(sig),TSysParam(@act),TSysParam(@oact));
  255. end;
  256. (*=================== MOVED from sysunix.inc ========================*)
  257. function Fpfstat(fd : cint; var sb : stat): cint; [public, alias : 'FPC_SYSC_FSTAT'];
  258. begin
  259. fpFStat:=do_SysCall(syscall_nr_fstat,fd,TSysParam(@sb));
  260. end;
  261. {$ifdef NewReaddir}
  262. {$I readdir.inc}
  263. {$endif}
  264. function Fpfork : pid_t; [public, alias : 'FPC_SYSC_FORK'];
  265. {
  266. This function issues the 'fork' System call. the program is duplicated in memory
  267. and Execution continues in parent and child process.
  268. In the parent process, fork returns the PID of the child. In the child process,
  269. zero is returned.
  270. A negative value indicates that an error has occurred, the error is returned in
  271. LinuxError.
  272. }
  273. Begin
  274. Fpfork:=Do_syscall(SysCall_nr_fork);
  275. End;
  276. {
  277. function Fpexecve(const path : pathstr; const argv : ppchar; const envp: ppchar): cint;
  278. }
  279. {
  280. Replaces the current program by the program specified in path,
  281. arguments in args are passed to Execve.
  282. environment specified in ep is passed on.
  283. }
  284. {
  285. Begin
  286. path:=path+#0;
  287. do_syscall(syscall_nr_Execve,TSysParam(@path[1]),TSysParam(Argv),TSysParam(envp));
  288. End;
  289. }
  290. {
  291. function Fpexecve(const path : pchar; const argv : ppchar; const envp: ppchar): cint; [public, alias : 'FPC_SYSC_EXECVE'];
  292. }
  293. {
  294. Replaces the current program by the program specified in path,
  295. arguments in args are passed to Execve.
  296. environment specified in ep is passed on.
  297. }
  298. {
  299. Begin
  300. do_syscall(syscall_nr_Execve,TSysParam(path),TSysParam(Argv),TSysParam(envp));
  301. End;
  302. }
  303. function Fpwaitpid(pid : pid_t; stat_loc : pcint; options: cint): pid_t; [public, alias : 'FPC_SYSC_WAITPID'];
  304. {
  305. Waits until a child with PID Pid exits, or returns if it is exited already.
  306. Any resources used by the child are freed.
  307. The exit status is reported in the adress referred to by Status. It should
  308. be a longint.
  309. }
  310. begin // actually a wait4() call with 4th arg 0.
  311. FpWaitPID:=do_syscall(syscall_nr_WaitPID,PID,TSysParam(Stat_loc),options,0);
  312. end;
  313. function Fpaccess(const pathname : pchar; amode : cint): cint; [public, alias : 'FPC_SYSC_ACCESS'];
  314. {
  315. Test users access rights on the specified file.
  316. Mode is a mask xosisting of one or more of R_OK, W_OK, X_OK, F_OK.
  317. R,W,X stand for read,write and Execute access, simultaneously.
  318. F_OK checks whether the test would be allowed on the file.
  319. i.e. It checks the search permissions in all directory components
  320. of the path.
  321. The test is done with the real user-ID, instead of the effective.
  322. If access is denied, or an error occurred, false is returned.
  323. If access is granted, true is returned.
  324. Errors other than no access,are reported in unixerror.
  325. }
  326. begin
  327. FpAccess:=do_syscall(syscall_nr_access,TSysParam(pathname),amode);
  328. end;
  329. {
  330. function Fpaccess(const pathname : pathstr; amode : cint): cint;
  331. {
  332. Test users access rights on the specified file.
  333. Mode is a mask xosisting of one or more of R_OK, W_OK, X_OK, F_OK.
  334. R,W,X stand for read,write and Execute access, simultaneously.
  335. F_OK checks whether the test would be allowed on the file.
  336. i.e. It checks the search permissions in all directory components
  337. of the path.
  338. The test is done with the real user-ID, instead of the effective.
  339. If access is denied, or an error occurred, false is returned.
  340. If access is granted, true is returned.
  341. Errors other than no access,are reported in unixerror.
  342. }
  343. begin
  344. pathname:=pathname+#0;
  345. Access:=do_syscall(syscall_nr_access, TSysParam(@pathname[1]),mode)=0;
  346. end;
  347. }
  348. Function FpDup(fildes:cint):cint; [public, alias : 'FPC_SYSC_DUP'];
  349. begin
  350. Fpdup:=Do_syscall(syscall_nr_dup,TSysParam(fildes));
  351. end;
  352. Function FpDup2(fildes,fildes2:cint):cint; [public, alias : 'FPC_SYSC_DUP2'];
  353. begin
  354. Fpdup2:=do_syscall(syscall_nr_dup2,TSysParam(fildes),TSysParam(fildes2));
  355. end;
  356. Function Fpmunmap(start:pointer;len:size_t):cint; [public, alias :'FPC_SYSC_MUNMAP'];
  357. begin
  358. Fpmunmap:=do_syscall(syscall_nr_munmap,TSysParam(start),Len);
  359. end;
  360. {
  361. Interface to Unix ioctl call.
  362. Performs various operations on the filedescriptor Handle.
  363. Ndx describes the operation to perform.
  364. Data points to data needed for the Ndx function. The structure of this
  365. data is function-dependent.
  366. }
  367. Function FpIOCtl(Handle:cint;Ndx: culong;Data: Pointer):cint; [public, alias : 'FPC_SYSC_IOCTL'];
  368. // This was missing here, instead hardcoded in Do_IsDevice
  369. begin
  370. FpIOCtl:=do_SysCall(syscall_nr_ioctl,handle,Ndx,TSysParam(data));
  371. end;
  372. Function FpGetPid:LongInt; [public, alias : 'FPC_SYSC_GETPID'];
  373. {
  374. Get Process ID.
  375. }
  376. begin
  377. FpGetPID:=do_syscall(syscall_nr_getpid);
  378. end;
  379. function fpgettimeofday(tp: ptimeval;tzp:ptimezone):cint; [public, alias: 'FPC_SYSC_GETTIMEOFDAY'];
  380. begin
  381. fpgettimeofday:=do_syscall(syscall_nr_gettimeofday,TSysParam(tp),TSysParam(tzp));
  382. end;
  383. function FPSigProcMask(how:cint;nset : psigset;oset : psigset):cint; [public, alias : 'FPC_SYSC_SIGPROCMASK'];
  384. {
  385. Change the list of currently blocked signals.
  386. How determines which signals will be blocked :
  387. SigBlock : Add SSet to the current list of blocked signals
  388. SigUnBlock : Remove the signals in SSet from the list of blocked signals.
  389. SigSetMask : Set the list of blocked signals to SSet
  390. if OldSSet is non-null, the old set will be saved there.
  391. }
  392. begin
  393. FPsigprocmask:=do_syscall(syscall_nr_sigprocmask,longint(how),longint(nset),longint(oset));
  394. end;
  395. {$user BLA!}
  396. Function FpNanoSleep(req : ptimespec;rem : ptimespec) : cint; [public, alias : 'FPC_SYSC_NANOSLEEP'];
  397. begin
  398. FpNanoSleep:=Do_SysCall(syscall_nr_nanosleep,TSysParam(req),TSysParam(rem));
  399. end;
  400. function Fpgetcwd(pt:pchar; _size:size_t):pchar;[public, alias :'FPC_SYSC_GETCWD'];
  401. const intpathmax = 1024-4; // didn't use POSIX data in libc
  402. // implementation.
  403. var ept,bpt : pchar;
  404. c : char;
  405. ret : cint;
  406. begin
  407. if pt=NIL Then
  408. begin
  409. // POSIX: undefined. (exit(nil) ?)
  410. // BSD : allocate mem for path.
  411. getmem(pt,intpathmax);
  412. if pt=nil Then
  413. exit(nil);
  414. ept:=pt+intpathmax;
  415. end
  416. else
  417. Begin
  418. if (_size=0) Then
  419. Begin
  420. seterrno(ESysEINVAL);
  421. exit(nil);
  422. End;
  423. if (_size=1) Then
  424. Begin
  425. seterrno(ESysERANGE);
  426. exit(nil);
  427. End;
  428. ept:=pt+_size;
  429. end;
  430. ret := do_syscall(syscall_nr___getcwd,TSysParam(pt),TSysParam( ept - pt));
  431. If (ret = 0) Then
  432. If (pt[0] <> '/') Then
  433. Begin
  434. bpt := pt;
  435. ept := pt + strlen(pt) - 1;
  436. While (bpt < ept) Do
  437. Begin
  438. c := bpt^;
  439. bpt^:=ept^;
  440. inc(bpt);
  441. ept^:=c;
  442. dec(ept);
  443. End;
  444. End;
  445. Fpgetcwd:=pt;
  446. end;
  447. Function fpReadLink(name,linkname:pchar;maxlen:size_t):cint; [public, alias : 'FPC_SYSC_READLINK'];
  448. begin
  449. fpreadlink:=do_syscall(syscall_nr_readlink, TSysParam(name),TSysParam(linkname),maxlen);
  450. end;
  451. {$endif}
  452. CONST
  453. IOCtl_TCGETS=$5401;
  454. Function Do_IsDevice(Handle:Longint):boolean;
  455. {
  456. Interface to Unix ioctl call.
  457. Performs various operations on the filedescriptor Handle.
  458. Ndx describes the operation to perform.
  459. Data points to data needed for the Ndx function. The structure of this
  460. data is function-dependent.
  461. }
  462. var
  463. Data : array[0..255] of byte; {Large enough for termios info}
  464. begin
  465. Do_IsDevice:=(Fpioctl(handle,IOCTL_TCGETS,@data)<>-1);
  466. end;
  467. {
  468. $Log$
  469. Revision 1.22 2005-02-13 20:01:37 peter
  470. * include file cleanup
  471. Revision 1.21 2005/02/06 12:16:52 peter
  472. * bsd thread updates
  473. Revision 1.20 2004/11/14 12:21:08 marco
  474. * moved some calls from unix to baseunix. Darwin untested.
  475. Revision 1.19 2004/07/18 11:32:24 marco
  476. * small 1.0.x fix to earlier patch
  477. Revision 1.18 2004/07/17 16:02:58 marco
  478. * generalised the $ifdef cpu_i386 ..powerpc stuff to FPC_BIG_ENDIAN and
  479. FPC_LITTLE_ENDIAN
  480. Revision 1.17 2004/02/06 20:47:00 jonas
  481. + fpnanosleep for oscdeclh.inc
  482. - removed obsolete darwin remarks from bsd/ossysc.inc
  483. Revision 1.16 2003/12/30 12:26:21 marco
  484. * FPC_USE_LIBC
  485. Revision 1.15 2003/12/16 19:43:59 marco
  486. * nil <-> 0 changes
  487. Revision 1.14 2003/10/26 17:01:04 marco
  488. * moved sigprocmask to system
  489. Revision 1.13 2003/10/17 22:10:30 olle
  490. * changed i386 to cpui386
  491. Revision 1.12 2003/09/27 13:45:58 peter
  492. * fpnanosleep exported in baseunix
  493. * fpnanosleep has pointer arguments to be C compliant
  494. Revision 1.10 2003/09/20 12:38:29 marco
  495. * FCL now compiles for FreeBSD with new 1.1. Now Linux.
  496. Revision 1.9 2003/09/17 16:02:31 marco
  497. * ostype include moved to top
  498. Revision 1.8 2003/09/16 12:45:49 marco
  499. * mmap typing fixes
  500. Revision 1.7 2003/09/15 20:08:49 marco
  501. * small fixes. FreeBSD now cycles
  502. Revision 1.6 2003/09/14 20:15:01 marco
  503. * Unix reform stage two. Remove all calls from Unix that exist in Baseunix.
  504. Revision 1.5 2003/08/21 22:23:34 olle
  505. - removed parameter from fpc_iocheck
  506. Revision 1.4 2003/05/29 21:45:23 marco
  507. * Some other workaround
  508. Revision 1.3 2003/05/29 20:52:55 marco
  509. * only moved around the off_t calls, and made an exception (includefile)
  510. for NetBSD/powerpc
  511. Revision 1.2 2003/05/26 21:29:16 jonas
  512. - disabled nanosleep for darwin for now
  513. + getcwd for darwin
  514. Revision 1.1 2003/01/05 19:01:28 marco
  515. * FreeBSD compiles now with baseunix mods.
  516. Revision 1.9 2002/11/13 18:15:08 marco
  517. * sigset functions more flexible, small changes to sys_ktime
  518. Revision 1.8 2002/10/27 17:21:29 marco
  519. * Only "difficult" functions + execvp + termios + rewinddir left to do
  520. Revision 1.7 2002/10/27 11:58:29 marco
  521. * Modifications from Saturday.
  522. Revision 1.6 2002/10/26 18:27:51 marco
  523. * First series POSIX calls commits. Including getcwd.
  524. Revision 1.5 2002/10/18 12:19:58 marco
  525. * Fixes to get the generic *BSD RTL compiling again + fixes for thread
  526. support. Still problems left in fexpand. (inoutres?) Therefore fixed
  527. sysposix not yet commited
  528. Revision 1.4 2002/10/16 18:44:18 marco
  529. * Lseek and ftruncate 64-bit fix
  530. Revision 1.3 2002/09/07 16:01:17 peter
  531. * old logs removed and tabs fixed
  532. Revision 1.2 2002/08/21 07:03:16 marco
  533. * Fixes from Tuesday.
  534. Revision 1.1 2002/08/19 12:29:11 marco
  535. * First working POSIX *BSD system unit.
  536. Revision 1.2 2002/08/04 04:29:34 marco
  537. * More POSIX updates. Small changes to lseek and ftruncate in osposix.inc
  538. Initial versions of the type includefiles
  539. Revision 1.1 2002/08/03 19:34:19 marco
  540. * Initial *BSD versions. Seems that OpenBSD doesn't need much change,
  541. NetBSD may need some fixes to stat record and ftruncate and lseek.
  542. It is all close together, and it should be doable to have just one copy
  543. of these for *BSD.
  544. }