syscallh.inc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. syscall headers for *Beos
  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. Type
  13. TSysResult = longint; // all platforms, cint=32-bit.
  14. // On platforms with off_t =64-bit, people should
  15. // use int64, and typecast all calls that don't
  16. // return off_t to cint.
  17. // I don't think this is going to work on several platforms
  18. // 64-bit machines don't have only 64-bit params.
  19. TSysParam = longint;
  20. type
  21. SysCallArgs = packed record
  22. param: array[1..8] of longint; // cint but not defined in unix.pp
  23. End;
  24. {$IFDEF FPC_USE_LIBC}
  25. //var
  26. // Errno : cint;
  27. {$else}
  28. //var
  29. // Errno : cint;
  30. {$ENDIF}
  31. procedure sys_call; external name 'sys_call'; // BeOS
  32. //begin
  33. //end;
  34. //function Do_SysCall( callnr : longint; var regs : SysCallArgs ): longint; external name 'FPC_SYSCALL';//forward;
  35. //Function SysCall( callnr:longint;var args : SysCallArgs ):longint; external name 'sys_call';//forward;