syscalls.inc 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {BSD version of the syscalls required to implement SysLinux.}
  13. {No debugging for syslinux include !}
  14. {$IFDEF SYS_LINUX}
  15. {$UNDEF SYSCALL_DEBUG}
  16. {$ENDIF SYS_LINUX}
  17. {*****************************************************************************
  18. --- Main:The System Call Self ---
  19. *****************************************************************************}
  20. {
  21. Function fpmmap(adr:pointer;len:TSize;prot:cint;flags:cint;fdes:cint;off:TOff):cint; // moved from sysunix.inc, used in sbrk
  22. begin
  23. {$ifdef LITTLE_ENDIAN}
  24. fpmmap:=do_syscall(syscall_nr_mmap,Adr,Len,Prot,Flags,fdes,lo(off),0);
  25. {$else}
  26. fpmmap:=do_syscall(syscall_nr_mmap,TSysParam(Adr),TSysParam(Len),Prot,Flags,fdes,0,lo(off));
  27. {$endif}
  28. end;
  29. }
  30. {
  31. $Log$
  32. Revision 1.13 2003-09-16 12:58:35 marco
  33. * fixje voor mmap parameter typering veranderingen
  34. Revision 1.12 2003/09/14 20:15:01 marco
  35. * Unix reform stage two. Remove all calls from Unix that exist in Baseunix.
  36. Revision 1.11 2003/06/01 16:35:28 marco
  37. * Several small fixes to harmonize the *BSD rtls and Linux.
  38. Revision 1.10 2003/01/05 19:02:29 marco
  39. * Should now work with baseunx. (gmake all works)
  40. Revision 1.9 2002/09/07 16:01:17 peter
  41. * old logs removed and tabs fixed
  42. Revision 1.8 2002/05/06 07:27:39 marco
  43. * Fixed a readdir bug, already fixed in januari in 1.0.x
  44. }