ostypes.inc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {
  2. $Id$
  3. Copyright (c) 2000-2002 by Marco van de Voort
  4. Some non POSIX BSD types used internally in the system unit.
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  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. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. Type
  19. timezone = packed record
  20. minuteswest,
  21. dsttime : cint;
  22. end;
  23. ptimezone =^timezone;
  24. TTimeZone = timezone;
  25. rusage = packed record
  26. ru_utime : timeval; { user time used }
  27. ru_stime : timeval; { system time used }
  28. ru_maxrss : clong; { max resident set size }
  29. ru_ixrss : clong; { integral shared memory size }
  30. ru_idrss : clong; { integral unshared data " }
  31. ru_isrss : clong; { integral unshared stack " }
  32. ru_minflt : clong; { page reclaims }
  33. ru_majflt : clong; { page faults }
  34. ru_nswap : clong; { swaps }
  35. ru_inblock : clong; { block input operations }
  36. ru_oublock : clong; { block output operations }
  37. ru_msgsnd : clong; { messages sent }
  38. ru_msgrcv : clong; { messages received }
  39. ru_nsignals : clong; { signals received }
  40. ru_nvcsw : clong; { voluntary context switches }
  41. ru_nivcsw : clong; { involuntary " }
  42. end;
  43. // #define ru_last ru_nivcsw
  44. // #define ru_first ru_ixrss
  45. { auto generated by a c prog, statmacr.c}
  46. Const
  47. S_IFMT = 61440;
  48. S_IFIFO = 4096;
  49. S_IFCHR = 8192;
  50. S_IFDIR = 16384;
  51. S_IFBLK = 24576;
  52. S_IFREG = 32768;
  53. S_IFLNK = 40960;
  54. S_IFSOCK= 49152;
  55. S_IFWHT = 57344;
  56. S_ISVTX = 512;
  57. {
  58. $Log$
  59. Revision 1.5 2003-09-27 13:45:58 peter
  60. * fpnanosleep exported in baseunix
  61. * fpnanosleep has pointer arguments to be C compliant
  62. Revision 1.4 2003/09/17 11:52:05 marco
  63. * stat macro fixes voor BSD
  64. Revision 1.3 2003/09/15 07:23:51 marco
  65. * fix
  66. Revision 1.2 2003/09/14 20:15:01 marco
  67. * Unix reform stage two. Remove all calls from Unix that exist in Baseunix.
  68. Revision 1.1 2003/01/05 19:01:28 marco
  69. * FreeBSD compiles now with baseunix mods.
  70. Revision 1.4 2002/10/27 17:21:29 marco
  71. * Only "difficult" functions + execvp + termios + rewinddir left to do
  72. Revision 1.3 2002/10/27 11:58:30 marco
  73. * Modifications from Saturday.
  74. Revision 1.2 2002/09/07 16:01:17 peter
  75. * old logs removed and tabs fixed
  76. Revision 1.1 2002/08/19 12:29:11 marco
  77. * First working POSIX *BSD system unit.
  78. }