Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/osf1 osf1_timeval and osf1_rusage and related con...
details: https://anonhg.NetBSD.org/src/rev/9ba22c2930ba
branches: trunk
changeset: 472326:9ba22c2930ba
user: cgd <cgd%NetBSD.org@localhost>
date: Tue Apr 27 17:50:23 1999 +0000
description:
osf1_timeval and osf1_rusage and related constants
diffstat:
sys/compat/osf1/osf1.h | 34 ++++++++++++++++++++++++++++++++--
1 files changed, 32 insertions(+), 2 deletions(-)
diffs (62 lines):
diff -r b0b460f910e1 -r 9ba22c2930ba sys/compat/osf1/osf1.h
--- a/sys/compat/osf1/osf1.h Tue Apr 27 17:37:18 1999 +0000
+++ b/sys/compat/osf1/osf1.h Tue Apr 27 17:50:23 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: osf1.h,v 1.6 1999/04/26 06:10:36 cgd Exp $ */
+/* $NetBSD: osf1.h,v 1.7 1999/04/27 17:50:23 cgd Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@@ -44,7 +44,9 @@
#include <sys/types.h>
#include <compat/osf1/osf1_errno.h>
-/* type definitions used by structures */
+/*
+ * type and structure definitions used by other structures
+ */
typedef int16_t osf1_short;
typedef int32_t osf1_int;
@@ -67,6 +69,11 @@
typedef void *osf1_data_ptr; /* XXX hard to fix size */
typedef void *osf1_fcn_ptr; /* XXX hard to fix size, bogus */
+struct osf1_timeval { /* time.h */
+ osf1_time_t tv_sec;
+ osf1_int tv_usec;
+};
+
/* auxv.h */
@@ -327,6 +334,29 @@
/* resource.h */
+#define OSF1_RUSAGE_THREAD 1
+#define OSF1_RUSAGE_SELF 0
+#define OSF1_RUSAGE_CHILDREN -1
+
+struct osf1_rusage {
+ struct osf1_timeval ru_utime;
+ struct osf1_timeval ru_stime;
+ osf1_long ru_maxrss;
+ osf1_long ru_ixrss;
+ osf1_long ru_idrss;
+ osf1_long ru_isrss;
+ osf1_long ru_minflt;
+ osf1_long ru_majflt;
+ osf1_long ru_nswap;
+ osf1_long ru_inblock;
+ osf1_long ru_oublock;
+ osf1_long ru_msgsnd;
+ osf1_long ru_msgrcv;
+ osf1_long ru_nsignals;
+ osf1_long ru_nvcsw;
+ osf1_long ru_nivcsw;
+};
+
#define OSF1_RLIMIT_CPU 0
#define OSF1_RLIMIT_FSIZE 1
#define OSF1_RLIMIT_DATA 2
Home |
Main Index |
Thread Index |
Old Index