bsdtypes.inc 2.4 KB

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