Print this page
remove support for non-ANSI compilation
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/head/mon.h
+++ new/usr/src/head/mon.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, Version 1.0 only
6 6 * (the "License"). You may not use this file except in compliance
7 7 * with the License.
8 8 *
9 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 10 * or http://www.opensolaris.org/os/licensing.
11 11 * See the License for the specific language governing permissions
12 12 * and limitations under the License.
13 13 *
14 14 * When distributing Covered Code, include this CDDL HEADER in each
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
15 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 16 * If applicable, add the following below this CDDL HEADER, with the
17 17 * fields enclosed by brackets "[]" replaced with your own identifying
18 18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 19 *
20 20 * CDDL HEADER END
21 21 */
22 22 /* Copyright (c) 1988 AT&T */
23 23 /* All Rights Reserved */
24 24
25 -
26 25 /*
26 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
27 + *
27 28 * Copyright 1997-2003 Sun Microsystems, Inc. All rights reserved.
28 29 * Use is subject to license terms.
29 30 */
30 31
31 32 #ifndef _MON_H
32 33 #define _MON_H
33 34
34 -#pragma ident "%Z%%M% %I% %E% SMI"
35 -
36 35 #ifdef __cplusplus
37 36 extern "C" {
38 37 #endif
39 38
40 39 /*
41 40 * Inclusion of <sys/types.h> will break SVID namespace, hence only
42 41 * the size_t type is defined in this header.
43 42 */
44 43 #if !defined(_SIZE_T) || __cplusplus >= 199711L
45 44 #define _SIZE_T
46 45 #if defined(_LP64) || defined(_I32LPx)
47 46 typedef unsigned long size_t; /* size of something in bytes */
48 47 #else
49 48 typedef unsigned int size_t; /* (historical version) */
50 49 #endif
51 50 #endif /* _SIZE_T */
52 51
53 52 struct hdr {
54 53 char *lpc;
55 54 char *hpc;
56 55 size_t nfns;
57 56 };
58 57
59 58 struct cnt {
60 59 char *fnpc;
61 60 long mcnt;
62 61 };
63 62
64 63 typedef unsigned short WORD;
65 64
66 65 #define MON_OUT "mon.out"
67 66 #define MPROGS0 (150 * sizeof (WORD)) /* 300 for pdp11, 600 for 32-bits */
↓ open down ↓ |
22 lines elided |
↑ open up ↑ |
68 67 #define MSCALE0 4
69 68
70 69 #ifndef NULL
71 70 #if defined(_LP64)
72 71 #define NULL 0L
73 72 #else
74 73 #define NULL 0
75 74 #endif
76 75 #endif
77 76
78 -#if defined(__STDC__)
79 77 extern void monitor(int (*)(void), int (*)(void), WORD *, size_t, size_t);
80 -#else
81 -extern void monitor();
82 -#endif
83 78
84 79 #ifdef __cplusplus
85 80 }
86 81 #endif
87 82
88 83 #endif /* _MON_H */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX