2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25
26 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
27 /* All Rights Reserved */
28
29
30 #ifndef _SYS_UADMIN_H
31 #define _SYS_UADMIN_H
32
33
34 #if !defined(_ASM)
35 #include <sys/types.h>
36 #include <sys/cred.h>
37 #endif
38
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
143 #define FASTREBOOT_ONPANIC_NOTSET(p) \
144 (strcmp((p), "false") == 0 || \
145 strcmp((p), "no") == 0 || \
146 strcmp((p), "0") == 0)
147
148 #define FASTREBOOT_ONPANIC_ISSET(p) \
149 (strcmp((p), "true") == 0 || \
150 strcmp((p), "yes") == 0 || \
151 strcmp((p), "1") == 0)
152
153 #if !defined(_ASM)
154
155 #if defined(_KERNEL)
156 extern kmutex_t ualock;
157 extern void mdboot(int, int, char *, boolean_t);
158 extern void mdpreboot(int, int, char *);
159 extern int kadmin(int, int, void *, cred_t *);
160 extern void killall(zoneid_t);
161 #endif
162
163 #if defined(__STDC__)
164 extern int uadmin(int, int, uintptr_t);
165 #else
166 extern int uadmin();
167 #endif
168
169 #endif /* _ASM */
170
171 #ifdef __cplusplus
172 }
173 #endif
174
175 #endif /* _SYS_UADMIN_H */
|
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright 2014 Garrett D'Amore <garrett@damore.org>
23 *
24 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
25 * Use is subject to license terms.
26 */
27
28 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
29 /* All Rights Reserved */
30
31
32 #ifndef _SYS_UADMIN_H
33 #define _SYS_UADMIN_H
34
35
36 #if !defined(_ASM)
37 #include <sys/types.h>
38 #include <sys/cred.h>
39 #endif
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
145 #define FASTREBOOT_ONPANIC_NOTSET(p) \
146 (strcmp((p), "false") == 0 || \
147 strcmp((p), "no") == 0 || \
148 strcmp((p), "0") == 0)
149
150 #define FASTREBOOT_ONPANIC_ISSET(p) \
151 (strcmp((p), "true") == 0 || \
152 strcmp((p), "yes") == 0 || \
153 strcmp((p), "1") == 0)
154
155 #if !defined(_ASM)
156
157 #if defined(_KERNEL)
158 extern kmutex_t ualock;
159 extern void mdboot(int, int, char *, boolean_t);
160 extern void mdpreboot(int, int, char *);
161 extern int kadmin(int, int, void *, cred_t *);
162 extern void killall(zoneid_t);
163 #endif
164
165 extern int uadmin(int, int, uintptr_t);
166
167 #endif /* _ASM */
168
169 #ifdef __cplusplus
170 }
171 #endif
172
173 #endif /* _SYS_UADMIN_H */
|