Print this page
2594 implement graceful shutdown for local zones in zoneadm
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libbrand/common/libbrand.h
+++ new/usr/src/lib/libbrand/common/libbrand.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 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
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 23 * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
24 + * Copyright 2014 Nexenta Systems, Inc. All rights reserved.
24 25 */
25 26
26 27 #ifndef _LIBBRAND_H
27 28 #define _LIBBRAND_H
28 29
29 30 #ifdef __cplusplus
30 31 extern "C" {
31 32 #endif
32 33
33 34 #include <sys/types.h>
34 35
35 36 typedef struct __brand_handle *brand_handle_t;
36 37
37 38 typedef struct priv_iter_s {
38 39 char *pi_name;
39 40 char *pi_set;
40 41 char *pi_iptype;
41 42 } priv_iter_t;
42 43
43 44 extern brand_handle_t brand_open(const char *);
44 45 extern void brand_close(brand_handle_t);
45 46
46 47 extern boolean_t brand_allow_exclusive_ip(brand_handle_t);
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
47 48
48 49 extern int brand_get_attach(brand_handle_t, const char *, const char *,
49 50 char *, size_t);
50 51 extern int brand_get_boot(brand_handle_t, const char *, const char *,
51 52 char *, size_t);
52 53 extern int brand_get_brandname(brand_handle_t, char *, size_t);
53 54 extern int brand_get_clone(brand_handle_t, const char *, const char *,
54 55 char *, size_t);
55 56 extern int brand_get_detach(brand_handle_t, const char *, const char *,
56 57 char *, size_t);
58 +extern int brand_get_shutdown(brand_handle_t, const char *, const char *,
59 + char *, size_t);
57 60 extern int brand_get_halt(brand_handle_t, const char *, const char *,
58 61 char *, size_t);
59 62 extern int brand_get_initname(brand_handle_t, char *, size_t);
60 63 extern int brand_get_install(brand_handle_t, const char *, const char *,
61 64 char *, size_t);
62 65 extern int brand_get_installopts(brand_handle_t, char *, size_t);
63 66 extern int brand_get_login_cmd(brand_handle_t, const char *, char *, size_t);
64 67 extern int brand_get_forcedlogin_cmd(brand_handle_t, const char *,
65 68 char *, size_t);
66 69 extern int brand_get_modname(brand_handle_t, char *, size_t);
67 70 extern int brand_get_postattach(brand_handle_t, const char *, const char *,
68 71 char *, size_t);
69 72 extern int brand_get_postclone(brand_handle_t, const char *, const char *,
70 73 char *, size_t);
71 74 extern int brand_get_postinstall(brand_handle_t, const char *, const char *,
72 75 char *, size_t);
73 76 extern int brand_get_postsnap(brand_handle_t, const char *, const char *,
74 77 char *, size_t);
75 78 extern int brand_get_poststatechange(brand_handle_t, const char *, const char *,
76 79 char *, size_t);
77 80 extern int brand_get_predetach(brand_handle_t, const char *, const char *,
78 81 char *, size_t);
79 82 extern int brand_get_presnap(brand_handle_t, const char *, const char *,
80 83 char *, size_t);
81 84 extern int brand_get_prestatechange(brand_handle_t, const char *, const char *,
82 85 char *, size_t);
83 86 extern int brand_get_preuninstall(brand_handle_t, const char *, const char *,
84 87 char *, size_t);
85 88 extern int brand_get_query(brand_handle_t, const char *, const char *,
86 89 char *, size_t);
87 90 extern int brand_get_uninstall(brand_handle_t, const char *, const char *,
88 91 char *, size_t);
89 92 extern int brand_get_validatesnap(brand_handle_t, const char *, const char *,
90 93 char *, size_t);
91 94 extern int brand_get_user_cmd(brand_handle_t, const char *, char *, size_t);
92 95 extern int brand_get_verify_cfg(brand_handle_t, char *, size_t);
93 96 extern int brand_get_verify_adm(brand_handle_t, const char *, const char *,
94 97 char *, size_t);
95 98 extern int brand_get_sysboot(brand_handle_t, const char *, const char *, char *,
96 99 size_t);
97 100
98 101 extern int brand_config_iter_privilege(brand_handle_t,
99 102 int (*func)(void *, priv_iter_t *), void *);
100 103
101 104 extern int brand_platform_iter_devices(brand_handle_t, const char *,
102 105 int (*)(void *, const char *, const char *), void *, const char *);
103 106 extern int brand_platform_iter_gmounts(brand_handle_t, const char *,
104 107 int (*)(void *, const char *, const char *, const char *, const char *),
105 108 void *);
106 109 extern int brand_platform_iter_link(brand_handle_t, int (*)(void *,
107 110 const char *, const char *), void *);
108 111 extern int brand_platform_iter_mounts(brand_handle_t, int (*)(void *,
109 112 const char *, const char *, const char *, const char *), void *);
110 113
111 114 #ifdef __cplusplus
112 115 }
113 116 #endif
114 117
115 118 #endif /* _LIBBRAND_H */
↓ open down ↓ |
49 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX