Print this page
remove support for non-ANSI compilation
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/head/pfmt.h
+++ new/usr/src/head/pfmt.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
↓ open down ↓ |
11 lines elided |
↑ open up ↑ |
12 12 * and limitations under the License.
13 13 *
14 14 * When distributing Covered Code, include this CDDL HEADER in each
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 +/*
23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
24 + */
22 25 /* Copyright (c) 1988 AT&T */
23 26 /* All Rights Reserved */
24 27
25 -
26 28 #ifndef _PFMT_H
27 29 #define _PFMT_H
28 30
29 -#pragma ident "%Z%%M% %I% %E% SMI"
30 -
31 31 #include <stdio.h>
32 32 #ifndef va_args
33 33 #include <stdarg.h>
34 34 #endif
35 35
36 36 #ifdef __cplusplus
37 37 extern "C" {
38 38 #endif
39 39
40 40 #define MM_STD 0
41 41 #define MM_NOSTD 0x100
42 42 #define MM_GET 0
43 43 #define MM_NOGET 0x200
44 44
45 45 #define MM_ACTION 0x400
46 46
47 47 #define MM_NOCONSOLE 0
48 48 #define MM_CONSOLE 0x800
49 49
50 50 /* Classification */
51 51 #define MM_NULLMC 0
52 52 #define MM_HARD 0x1000
53 53 #define MM_SOFT 0x2000
54 54 #define MM_FIRM 0x4000
55 55 #define MM_APPL 0x8000
56 56 #define MM_UTIL 0x10000
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
57 57 #define MM_OPSYS 0x20000
58 58
59 59 /* Most commonly used combinations */
60 60 #define MM_SVCMD MM_UTIL|MM_SOFT
61 61
62 62 #define MM_ERROR 0
63 63 #define MM_HALT 1
64 64 #define MM_WARNING 2
65 65 #define MM_INFO 3
66 66
67 -#ifdef __STDC__
68 67 int pfmt(FILE *, long, const char *, ...);
69 68 int lfmt(FILE *, long, const char *, ...);
70 69 int vpfmt(FILE *, long, const char *, va_list);
71 70 int vlfmt(FILE *, long, const char *, va_list);
72 71 const char *setcat(const char *);
73 72 int setlabel(const char *);
74 73 int addsev(int, const char *);
75 -#else
76 -int pfmt();
77 -int lfmt();
78 -int vpfmt();
79 -int vlfmt();
80 -char *setcat();
81 -int setlabel();
82 -int addsev();
83 -#endif
84 74
85 75 #define DB_NAME_LEN 15
86 76 #define MAXLABEL 25
87 77
88 78 #ifdef __cplusplus
89 79 }
90 80 #endif
91 81
92 82 #endif /* _PFMT_H */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX