6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright 2014 Garrrett D'Amore <garrett@damore.org>
23 *
24 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
25 * Use is subject to license terms.
26 */
27
28 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
29 /* All Rights Reserved */
30
31 /*
32 * University Copyright- Copyright (c) 1982, 1986, 1988
33 * The Regents of the University of California
34 * All Rights Reserved
35 *
36 * University Acknowledgment- Portions of this document are derived from
37 * software developed by the University of California, Berkeley, and its
38 * contributors.
39 */
40
41 #ifndef _SYS_RESOURCE_H
42 #define _SYS_RESOURCE_H
43
44 #include <sys/feature_tests.h>
45
174 long ru_maxrss; /* <unimp> */
175 long ru_ixrss; /* <unimp> */
176 long ru_idrss; /* <unimp> */
177 long ru_isrss; /* <unimp> */
178 long ru_minflt; /* any page faults not requiring I/O */
179 long ru_majflt; /* any page faults requiring I/O */
180 long ru_nswap; /* swaps */
181 long ru_inblock; /* block input operations */
182 long ru_oublock; /* block output operations */
183 long ru_msgsnd; /* streams messsages sent */
184 long ru_msgrcv; /* streams messages received */
185 long ru_nsignals; /* signals received */
186 long ru_nvcsw; /* voluntary context switches */
187 long ru_nivcsw; /* involuntary " */
188 };
189
190 #define _RUSAGESYS_GETRUSAGE 0 /* rusage process */
191 #define _RUSAGESYS_GETRUSAGE_CHLD 1 /* rusage child process */
192 #define _RUSAGESYS_GETRUSAGE_LWP 2 /* rusage lwp */
193 #define _RUSAGESYS_GETVMUSAGE 3 /* getvmusage */
194
195 #if defined(_SYSCALL32)
196
197 struct rusage32 {
198 struct timeval32 ru_utime; /* user time used */
199 struct timeval32 ru_stime; /* system time used */
200 int ru_maxrss; /* <unimp> */
201 int ru_ixrss; /* <unimp> */
202 int ru_idrss; /* <unimp> */
203 int ru_isrss; /* <unimp> */
204 int ru_minflt; /* any page faults not requiring I/O */
205 int ru_majflt; /* any page faults requiring I/O */
206 int ru_nswap; /* swaps */
207 int ru_inblock; /* block input operations */
208 int ru_oublock; /* block output operations */
209 int ru_msgsnd; /* streams messages sent */
210 int ru_msgrcv; /* streams messages received */
211 int ru_nsignals; /* signals received */
212 int ru_nvcsw; /* voluntary context switches */
213 int ru_nivcsw; /* involuntary " */
|
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright 2014 Garrrett D'Amore <garrett@damore.org>
23 *
24 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
25 * Use is subject to license terms.
26 * Copyright 2014 Joyent, Inc. All rights reserved.
27 */
28
29 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
30 /* All Rights Reserved */
31
32 /*
33 * University Copyright- Copyright (c) 1982, 1986, 1988
34 * The Regents of the University of California
35 * All Rights Reserved
36 *
37 * University Acknowledgment- Portions of this document are derived from
38 * software developed by the University of California, Berkeley, and its
39 * contributors.
40 */
41
42 #ifndef _SYS_RESOURCE_H
43 #define _SYS_RESOURCE_H
44
45 #include <sys/feature_tests.h>
46
175 long ru_maxrss; /* <unimp> */
176 long ru_ixrss; /* <unimp> */
177 long ru_idrss; /* <unimp> */
178 long ru_isrss; /* <unimp> */
179 long ru_minflt; /* any page faults not requiring I/O */
180 long ru_majflt; /* any page faults requiring I/O */
181 long ru_nswap; /* swaps */
182 long ru_inblock; /* block input operations */
183 long ru_oublock; /* block output operations */
184 long ru_msgsnd; /* streams messsages sent */
185 long ru_msgrcv; /* streams messages received */
186 long ru_nsignals; /* signals received */
187 long ru_nvcsw; /* voluntary context switches */
188 long ru_nivcsw; /* involuntary " */
189 };
190
191 #define _RUSAGESYS_GETRUSAGE 0 /* rusage process */
192 #define _RUSAGESYS_GETRUSAGE_CHLD 1 /* rusage child process */
193 #define _RUSAGESYS_GETRUSAGE_LWP 2 /* rusage lwp */
194 #define _RUSAGESYS_GETVMUSAGE 3 /* getvmusage */
195 #define _RUSAGESYS_INVALMAP 4 /* vm_map_inval */
196
197 #if defined(_SYSCALL32)
198
199 struct rusage32 {
200 struct timeval32 ru_utime; /* user time used */
201 struct timeval32 ru_stime; /* system time used */
202 int ru_maxrss; /* <unimp> */
203 int ru_ixrss; /* <unimp> */
204 int ru_idrss; /* <unimp> */
205 int ru_isrss; /* <unimp> */
206 int ru_minflt; /* any page faults not requiring I/O */
207 int ru_majflt; /* any page faults requiring I/O */
208 int ru_nswap; /* swaps */
209 int ru_inblock; /* block input operations */
210 int ru_oublock; /* block output operations */
211 int ru_msgsnd; /* streams messages sent */
212 int ru_msgrcv; /* streams messages received */
213 int ru_nsignals; /* signals received */
214 int ru_nvcsw; /* voluntary context switches */
215 int ru_nivcsw; /* involuntary " */
|