Print this page
remove support for non-ANSI compilation
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/common/sys/acct.h
+++ new/usr/src/uts/common/sys/acct.h
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21
22 22 /*
23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
23 24 * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
24 25 */
25 26
26 27 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
27 28 /* All Rights Reserved */
28 29
29 30 #ifndef _SYS_ACCT_H
30 31 #define _SYS_ACCT_H
31 32
32 33 #include <sys/types.h>
33 34 #include <sys/types32.h>
34 35
35 36 #ifdef __cplusplus
36 37 extern "C" {
37 38 #endif
38 39
39 40 /*
40 41 * Accounting structures
41 42 */
42 43
43 44 typedef ushort_t comp_t; /* "floating point" */
44 45 /* 13-bit fraction, 3-bit exponent */
45 46
46 47 /* SVR4 acct structure */
47 48 struct acct {
48 49 char ac_flag; /* Accounting flag */
49 50 char ac_stat; /* Exit status */
50 51 uid32_t ac_uid; /* Accounting user ID */
51 52 gid32_t ac_gid; /* Accounting group ID */
52 53 dev32_t ac_tty; /* control typewriter */
53 54 time32_t ac_btime; /* Beginning time */
54 55 comp_t ac_utime; /* acctng user time in clock ticks */
55 56 comp_t ac_stime; /* acctng system time in clock ticks */
56 57 comp_t ac_etime; /* acctng elapsed time in clock ticks */
57 58 comp_t ac_mem; /* memory usage */
58 59 comp_t ac_io; /* chars transferred */
59 60 comp_t ac_rw; /* blocks read or written */
60 61 char ac_comm[8]; /* command name */
61 62 };
62 63
63 64 /*
64 65 * Account commands will use this header to read SVR3
65 66 * accounting data files.
66 67 */
67 68
68 69 struct o_acct {
69 70 char ac_flag; /* Accounting flag */
70 71 char ac_stat; /* Exit status */
71 72 o_uid_t ac_uid; /* Accounting user ID */
72 73 o_gid_t ac_gid; /* Accounting group ID */
73 74 o_dev_t ac_tty; /* control typewriter */
74 75 time32_t ac_btime; /* Beginning time */
↓ open down ↓ |
42 lines elided |
↑ open up ↑ |
75 76 comp_t ac_utime; /* acctng user time in clock ticks */
76 77 comp_t ac_stime; /* acctng system time in clock ticks */
77 78 comp_t ac_etime; /* acctng elapsed time in clock ticks */
78 79 comp_t ac_mem; /* memory usage */
79 80 comp_t ac_io; /* chars transferred */
80 81 comp_t ac_rw; /* blocks read or written */
81 82 char ac_comm[8]; /* command name */
82 83 };
83 84
84 85 #if !defined(_KERNEL)
85 -#if defined(__STDC__)
86 86 extern int acct(const char *);
87 -#else
88 -extern int acct();
89 -#endif
90 87 #endif /* !defined(_KERNEL) */
91 88
92 89 #if defined(_KERNEL)
93 90
94 91 void acct(char);
95 92 int sysacct(char *);
96 93
97 94 struct vnode;
98 95 int acct_fs_in_use(struct vnode *);
99 96 #endif
100 97
101 98 #define AFORK 0001 /* has executed fork, but no exec */
102 99 #define ASU 0002 /* used super-user privileges */
103 100 #define AEXPND 0040 /* expanded acct structure */
104 101 #define ACCTF 0300 /* record type: 00 = acct */
105 102
106 103 #ifdef __cplusplus
107 104 }
108 105 #endif
109 106
110 107 #endif /* _SYS_ACCT_H */
↓ open down ↓ |
11 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX