8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / ucbhead / sys / rusage.h
blob0ae0ab1309caf32bde4803adaf604a447b6f1de2
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
20 * CDDL HEADER END
23 * Copyright (c) 1991-1997, by Sun Microsystems, Inc.
24 * All rights reserved.
27 #ifndef _SYS_RUSAGE_H
28 #define _SYS_RUSAGE_H
30 #pragma ident "%Z%%M% %I% %E% SMI"
32 #include <sys/time.h>
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
39 * Resource utilization information.
42 #define RUSAGE_SELF 0
43 #define RUSAGE_CHILDREN -1
45 struct rusage {
46 struct timeval ru_utime; /* user time used */
47 struct timeval ru_stime; /* system time used */
48 long ru_maxrss;
49 #define ru_first ru_ixrss
50 long ru_ixrss; /* XXX: 0 */
51 long ru_idrss; /* XXX: sum of rm_asrss */
52 long ru_isrss; /* XXX: 0 */
53 long ru_minflt; /* any page faults not requiring I/O */
54 long ru_majflt; /* any page faults requiring I/O */
55 long ru_nswap; /* swaps */
56 long ru_inblock; /* block input operations */
57 long ru_oublock; /* block output operations */
58 long ru_msgsnd; /* messages sent */
59 long ru_msgrcv; /* messages received */
60 long ru_nsignals; /* signals received */
61 long ru_nvcsw; /* voluntary context switches */
62 long ru_nivcsw; /* involuntary " */
63 #define ru_last ru_nivcsw
66 #ifdef __cplusplus
68 #endif
70 #endif /* _SYS_RUSAGE_H */