syscallh.inc 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2005 by Thomas Schatzl,
  4. member of the Free Pascal development team.
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. type
  12. TSysResult = Int64; // all platforms, cint=32-bit.
  13. // On platforms with off_t =64-bit, people should
  14. // use int64, and typecast all calls that don't
  15. // return off_t to cint.
  16. // I don't think this is going to work on several platforms
  17. // 64-bit machines don't have only 64-bit params.
  18. TSysParam = Int64;
  19. function Do_SysCall(sysnr:TSysParam):TSysResult; external name 'FPC_SYSCALL0';
  20. function Do_SysCall(sysnr,param1:TSysParam):TSysResult; external name 'FPC_SYSCALL1';
  21. function Do_SysCall(sysnr,param1,param2:TSysParam):TSysResult; external name 'FPC_SYSCALL2';
  22. function Do_SysCall(sysnr,param1,param2,param3:TSysParam):TSysResult; external name 'FPC_SYSCALL3';
  23. function Do_SysCall(sysnr,param1,param2,param3,param4:TSysParam):TSysResult; external name 'FPC_SYSCALL4';
  24. function Do_SysCall(sysnr,param1,param2,param3,param4,param5:TSysParam):TSysResult; external name 'FPC_SYSCALL5';
  25. function Do_SysCall(sysnr,param1,param2,param3,param4,param5,param6:TSysParam):TSysResult; external name 'FPC_SYSCALL6';