ostypes.inc 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. OS dependant types internal to the Linux RTL.
  7. See the file COPYING.FPC, included in this distribution,
  8. for details about the copyright.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. **********************************************************************}
  13. Type
  14. {
  15. Linux system calls take arguments as follows :
  16. i386 m68k ppc
  17. %eax %d0 r0 System call number
  18. %ebx %d1 r3 first argument
  19. %ecx %d2 r4 second argument
  20. %edx %d3 r5 third argumens
  21. %esi %d3 r6 fourth argument
  22. %edi %d4 r7 fifth argument
  23. }
  24. timezone = packed record
  25. tz_minuteswest,tz_dsttime:cint;
  26. end;
  27. ptimezone =^timezone;
  28. TTimeZone = timezone;
  29. Const // generated by statmacr.c
  30. S_IFMT = 61440; { type of file mask}
  31. S_IFIFO = 4096; { named pipe (fifo)}
  32. S_IFCHR = 8192; { character special}
  33. S_IFDIR = 16384; { directory }
  34. S_IFBLK = 24576; { block special}
  35. S_IFREG = 32768; { regular }
  36. S_IFLNK = 40960; { symbolic link }
  37. S_IFSOCK= 49152; { socket }
  38. {
  39. $Log$
  40. Revision 1.9 2004-12-02 11:23:06 marco
  41. * tz_ added to ttimezoen fields
  42. Revision 1.8 2004/02/06 23:06:16 florian
  43. - killed tsyscallregs
  44. Revision 1.7 2004/02/06 21:17:41 daniel
  45. * Revert back to longint (it broke make cycle)
  46. Revision 1.6 2004/02/06 15:58:21 florian
  47. * fixed x86-64 assembler problems
  48. Revision 1.5 2003/09/27 13:45:58 peter
  49. * fpnanosleep exported in baseunix
  50. * fpnanosleep has pointer arguments to be C compliant
  51. Revision 1.4 2003/09/17 11:24:46 marco
  52. * fixes for new macro's
  53. Revision 1.3 2003/09/14 20:15:01 marco
  54. * Unix reform stage two. Remove all calls from Unix that exist in Baseunix.
  55. Revision 1.2 2002/12/18 16:43:26 marco
  56. * new unix rtl, linux part.....
  57. Revision 1.1 2002/11/12 14:37:59 marco
  58. * Parts of new unix rtl
  59. }