sysc11.inc 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. { Include syscall itself }
  13. {i syscallo.inc}
  14. Function Sys_mmap(adr:pointer;len:size_t;prot,flags,fdes:cint;off:off_t):cint; // moved from sysunix.inc, used in sbrk
  15. begin
  16. fpmmap(adr,len,prot,flags,fdes,off);
  17. end;
  18. Function Sys_munmap(adr:pointer;len:cint):cint; // moved from sysunix.inc, used in sbrk
  19. begin
  20. fpmunmap(adr,len);
  21. end;
  22. {
  23. Interface to Unix ioctl call.
  24. Performs various operations on the filedescriptor Handle.
  25. Ndx describes the operation to perform.
  26. Data points to data needed for the Ndx function. The structure of this
  27. data is function-dependent.
  28. }
  29. Function Sys_IOCtl(Handle,Ndx: cint;Data: Pointer):cint; // This was missing here, instead hardcode in Do_IsDevice
  30. begin
  31. sys_ioctl:=fpioctl(handle,ndx,data);
  32. end;
  33. {
  34. $Log$
  35. Revision 1.4 2004-04-28 20:48:20 peter
  36. * ordinal-pointer conversions fixed
  37. Revision 1.3 2003/11/17 11:28:08 marco
  38. * Clone moved to linux, + few small unit unix changes
  39. Revision 1.2 2003/10/31 08:55:11 mazen
  40. + assembler mode forced to ATT style for x86 cpu
  41. Revision 1.1 2003/10/30 16:42:25 marco
  42. * Killing off old syscall convention anywhere except for oldlinux
  43. Revision 1.19 2003/10/17 20:56:24 olle
  44. * Changed m68k to cpum68k, i386 to cpui386
  45. Revision 1.18 2003/09/14 20:15:01 marco
  46. * Unix reform stage two. Remove all calls from Unix that exist in Baseunix.
  47. Revision 1.17 2002/12/18 16:43:26 marco
  48. * new unix rtl, linux part.....
  49. Revision 1.16 2002/11/11 21:40:26 marco
  50. * rename syscall.inc -> syscallo.inc
  51. Revision 1.15 2002/10/14 19:39:17 peter
  52. * threads unit added for thread support
  53. Revision 1.14 2002/09/10 21:32:14 jonas
  54. + added "nop" after sc instruction, since normally in case of success,
  55. sc returns to the second instruction after itself
  56. Revision 1.13 2002/09/07 16:01:19 peter
  57. * old logs removed and tabs fixed
  58. Revision 1.12 2002/09/07 13:14:04 florian
  59. * hopefully final fix for ppc syscall BTW: The regX numbering is somehow messy
  60. Revision 1.11 2002/09/03 21:37:54 florian
  61. * hopefully final fix for ppc syscall
  62. Revision 1.10 2002/09/02 20:42:22 florian
  63. * another ppc syscall fix
  64. Revision 1.9 2002/09/02 20:03:20 florian
  65. * ppc syscall code fixed
  66. Revision 1.8 2002/08/19 18:24:05 jonas
  67. + ppc support for do_syscall
  68. Revision 1.7 2002/07/29 21:28:17 florian
  69. * several fixes to get further with linux/ppc system unit compilation
  70. Revision 1.6 2002/07/28 20:43:48 florian
  71. * several fixes for linux/powerpc
  72. * several fixes to MT
  73. }