Print this page
remove support for non-ANSI compilation
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/head/nsctl.h
+++ new/usr/src/head/nsctl.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.
↓ open down ↓ |
11 lines elided |
↑ open up ↑ |
12 12 *
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 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
23 + *
22 24 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 25 * Use is subject to license terms.
24 26 */
25 27
26 28 #ifndef _NSCTL_H
27 29 #define _NSCTL_H
28 30
29 31 #ifdef __cplusplus
30 32 extern "C" {
31 33 #endif
32 34
33 35 #include <sys/nsctl/nsctl.h>
34 36
35 37
36 38 /*
37 39 * External file descriptor.
38 40 */
39 41
40 42 #ifndef _LIBNSCTL_H
41 43 #ifndef _KMEMUSER
42 44 typedef struct nsc_fd_s { int x; } nsc_fd_t;
43 45 #endif
44 46 #endif
45 47
46 48
47 49 /*
48 50 * Runtime Solaris release checking.
49 51 *
50 52 * nsc_check_release() is called with the string build release
51 53 * (BUILD_REV_STR) and an optional array of nsc_release_t. The array
52 54 * defines a map of build release to acceptable runtime release for the
53 55 * component. The build release is always an acceptable runtime
54 56 * release and need not be included in the map.
55 57 *
↓ open down ↓ |
24 lines elided |
↑ open up ↑ |
56 58 * build - the build release (e.g. "5.7")
57 59 * runtime - comma &/or space separated list of acceptable runtime
58 60 * releases (e.g. "5.7, 5.8")
59 61 */
60 62
61 63 typedef struct nsc_release {
62 64 const char *build; /* build release */
63 65 const char *runtime; /* runtime release(s) */
64 66 } nsc_release_t;
65 67
66 -#ifdef __STDC__
67 68 extern void _nsc_nocheck(void);
68 69 extern nsc_fd_t *nsc_open(char *, int, int);
69 70 extern nsc_fd_t *nsc_fdopen(int, char *, int);
70 71 extern int nsc_close(nsc_fd_t *);
71 72 extern int nsc_fileno(nsc_fd_t *);
72 73 extern int nsc_reserve(nsc_fd_t *);
73 74 extern int nsc_release(nsc_fd_t *);
74 75 extern int nsc_partsize(nsc_fd_t *, nsc_size_t *);
75 76 extern int nsc_freeze(char *path);
76 77 extern int nsc_unfreeze(char *path);
77 78 extern int nsc_isfrozen(char *path);
78 79 extern int nsc_getsystemid(int *id);
79 80 extern int nsc_name_to_id(char *name, int *id);
80 81 extern int nsc_id_to_name(char **name, int id);
81 82 extern int nsc_check_release(const char *, nsc_release_t *, char **);
82 -#else
83 -extern void _nsc_nocheck();
84 -extern nsc_fd_t *nsc_open();
85 -extern nsc_fd_t *nsc_fdopen();
86 -extern int nsc_close();
87 -extern int nsc_fileno();
88 -extern int nsc_reserve();
89 -extern int nsc_release();
90 -extern int nsc_partsize();
91 -extern int nsc_freeze();
92 -extern int nsc_unfreeze();
93 -extern int nsc_isfrozen();
94 -extern int nsc_getsystemid();
95 -extern int nsc_name_to_id();
96 -extern int nsc_id_to_name();
97 -extern int nsc_check_release();
98 -#endif
99 83
100 84 #ifdef __cplusplus
101 85 }
102 86 #endif
103 87
104 88 #endif /* _NSCTL_H */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX