syscallh.inc 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2002 Marco van de Voort
  4. member of the Free Pascal development team.
  5. x86_64 syscall headers for *BSD
  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. {$ifdef FPC_USE_SYSCALL}
  13. Type
  14. TSysResult = int64; // all platforms, cint=32-bit.
  15. // On platforms with off_t =64-bit, people should
  16. // use int64, and typecast all calls that don't
  17. // return off_t to cint.
  18. TSysParam = int64;
  19. function do_sysCall(sysnr:TSysParam):TSysResult; external name 'FPC_DOSYS0';
  20. function do_sysCall(sysnr,param1:TSysParam):TSysResult; external name 'FPC_DOSYS1';
  21. function do_sysCall(sysnr,param1,param2:TSysParam):TSysResult; external name 'FPC_DOSYS2';
  22. function do_sysCall(sysnr,param1,param2,param3:TSysParam):TSysResult; external name 'FPC_DOSYS3';
  23. function do_sysCall(sysnr,param1,param2,param3,param4:TSysParam):TSysResult; external name 'FPC_DOSYS4';
  24. function do_sysCall(sysnr,param1,param2,param3,param4,param5:TSysParam):TSysResult; external name 'FPC_DOSYS5';
  25. function do_sysCall(sysnr,param1,param2,param3,param4,param5,param6:TSysParam):int64; external name 'FPC_DOSYS6';
  26. function do_sysCall(sysnr,param1,param2,param3,param4,param5,param6,param7:TSysParam):int64; external name 'FPC_DOSYS7';
  27. {$endif}