ostypes.inc 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. timespec = packed record
  20. tv_sec : time_t;
  21. tv_nsec : clong;
  22. end;
  23. timezone = packed record
  24. minuteswest,
  25. dsttime : cint;
  26. end;
  27. ptimezone =^timezone;
  28. TTimeZone = timezone;
  29. rusage = packed record
  30. ru_utime : timeval; { user time used }
  31. ru_stime : timeval; { system time used }
  32. ru_maxrss : clong; { max resident set size }
  33. ru_ixrss : clong; { integral shared memory size }
  34. ru_idrss : clong; { integral unshared data " }
  35. ru_isrss : clong; { integral unshared stack " }
  36. ru_minflt : clong; { page reclaims }
  37. ru_majflt : clong; { page faults }
  38. ru_nswap : clong; { swaps }
  39. ru_inblock : clong; { block input operations }
  40. ru_oublock : clong; { block output operations }
  41. ru_msgsnd : clong; { messages sent }
  42. ru_msgrcv : clong; { messages received }
  43. ru_nsignals : clong; { signals received }
  44. ru_nvcsw : clong; { voluntary context switches }
  45. ru_nivcsw : clong; { involuntary " }
  46. end;
  47. // #define ru_last ru_nivcsw
  48. // #define ru_first ru_ixrss
  49. {
  50. $Log$
  51. Revision 1.2 2003-09-14 20:15:01 marco
  52. * Unix reform stage two. Remove all calls from Unix that exist in Baseunix.
  53. Revision 1.1 2003/01/05 19:01:28 marco
  54. * FreeBSD compiles now with baseunix mods.
  55. Revision 1.4 2002/10/27 17:21:29 marco
  56. * Only "difficult" functions + execvp + termios + rewinddir left to do
  57. Revision 1.3 2002/10/27 11:58:30 marco
  58. * Modifications from Saturday.
  59. Revision 1.2 2002/09/07 16:01:17 peter
  60. * old logs removed and tabs fixed
  61. Revision 1.1 2002/08/19 12:29:11 marco
  62. * First working POSIX *BSD system unit.
  63. }