+
+
+// LP64todo - should this move?
+#ifdef KERNEL
+#include <machine/types.h> /* user_time_t */
+
+/* LP64 version of struct timeval. time_t is a long and must grow when
+ * we're dealing with a 64-bit process.
+ * WARNING - keep in sync with struct timeval
+ */
+
+struct user_rusage_timeval {
+ user_time_t tv_sec; /* seconds */
+ __darwin_suseconds_t tv_usec __attribute((aligned(8))); /* and microseconds */
+};
+struct user_rusage {
+ struct user_rusage_timeval ru_utime; /* user time used */
+ struct user_rusage_timeval ru_stime; /* system time used */
+ user_long_t ru_maxrss; /* max resident set size */
+ user_long_t ru_ixrss; /* integral shared memory size */
+ user_long_t ru_idrss; /* integral unshared data " */
+ user_long_t ru_isrss; /* integral unshared stack " */
+ user_long_t ru_minflt; /* page reclaims */
+ user_long_t ru_majflt; /* page faults */
+ user_long_t ru_nswap; /* swaps */
+ user_long_t ru_inblock; /* block input operations */
+ user_long_t ru_oublock; /* block output operations */
+ user_long_t ru_msgsnd; /* messages sent */
+ user_long_t ru_msgrcv; /* messages received */
+ user_long_t ru_nsignals; /* signals received */
+ user_long_t ru_nvcsw; /* voluntary context switches */
+ user_long_t ru_nivcsw; /* involuntary " */
+};
+
+#endif // KERNEL
+
+
+/*****
+ * RESOURCE LIMITS
+ */
+