summaryrefslogtreecommitdiff
path: root/usr/src/lib/libtsnet/spec/tsnet.spec
blob: 78e222075dc8f497abf8f8340117c75bbb309059 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
#ident	"%Z%%M%	%I%	%E% SMI"
#
# lib/libtsnet/spec/tsnet.spec
#

function	tsol_gettpbyname
include		<libtsnet.h>
declaration	tsol_tpent_t *tsol_gettpbyname(const char *name);
version		SUNWprivate_1.1
exception	$return == 0
end

function	tsol_gettpent
include		<libtsnet.h>
declaration 	tsol_tpent_t *tsol_gettpent(void);
version		SUNWprivate_1.1
exception	$return == 0
end

function	tsol_fgettpent
include		<libtsnet.h>
declaration 	tsol_tpent_t *tsol_gettpent(FILE *);
version		SUNWprivate_1.1
exception	$return == 0
end

function	tsol_freetpent
include		<libtsnet.h>
declaration 	void tsol_freetpent(tsol_tpent_t *);
version		SUNWprivate_1.1
exception	$return == 0
end

function	tsol_settpent
include		<libtsnet.h>
declaration	void tsol_settpent(int stay);
version		SUNWprivate_1.1
end

function	tsol_endtpent
include		<libtsnet.h>
declaration	void tsol_endtpent(void);
version		SUNWprivate_1.1
end

function	str_to_tpstr
include		<libtsnet.h>
declaration	int str_to_tpstr(const char *, int, void *, char *, int);
version		SUNWprivate_1.1
end

function	tpstr_to_ent
include		<libtsnet.h>
declaration	tsol_tpent_t *tpstr_to_ent(tsol_tpstr_t *, int *, char **);
version		SUNWprivate_1.1
end

function	tsol_getrhbyaddr
include		<libtsnet.h>
declaration	tsol_rhent_t *tsol_getrhbyaddr(const void *addr, size_t len, \
		    int type);
version		SUNWprivate_1.1
exception	$return == 0
end

function	tsol_getrhent
include		<libtsnet.h>
declaration 	tsol_rhent_t *tsol_getrhent(void);
version		SUNWprivate_1.1
exception	$return == 0
end

function	tsol_fgetrhent
include		<libtsnet.h>
declaration 	tsol_rhent_t *tsol_getrhent(FILE *);
version		SUNWprivate_1.1
exception	$return == 0
end

function	tsol_freerhent
include		<libtsnet.h>
declaration 	void tsol_freerhent(tsol_rhent_t *);
version		SUNWprivate_1.1
exception	$return == 0
end

function	tsol_setrhent
include		<libtsnet.h>
declaration	void tsol_setrhent(int stay);
version		SUNWprivate_1.1
end

function	tsol_endrhent
include		<libtsnet.h>
declaration	void tsol_endrhent(void);
version		SUNWprivate_1.1
end

function	str_to_rhstr
include		<libtsnet.h>
declaration	int str_to_rhstr(const char *, int, void *, char *, int);
version		SUNWprivate_1.1
end

function	rhstr_to_ent
include		<libtsnet.h>
declaration	tsol_rhent_t *rhstr_to_ent(tsol_rhstr_t *, int *, char **);
version		SUNWprivate_1.1
end

function	tsol_getrhtype
include		<libtsnet.h>
declaration	tsol_host_type_t tsol_getrhtype(char *);
version		SUNWprivate_1.1
end

function	tsol_sgetzcent
include		<libtsnet.h>
declaration	tsol_zcent_t *tsol_sgetzcent(const char *instr, int *errp, \
		    char **errstrp);
version		SUNWprivate_1.1
exception	$return == 0
end

function	tsol_freezcent
include		<libtsnet.h>
declaration 	void tsol_freezcent(tsol_zcent_t *);
version		SUNWprivate_1.1
exception	$return == 0
end

function	sl_to_str
include		<libtsnet.h>
declaration	const char *sl_to_str(const bslabel_t *sl);
version		SUNWprivate_1.1
end

function	rtsa_to_str
include		<libtsnet.h>
declaration	const char *rtsa_to_str(const struct rtsa_s *rtsa, \
		    char *line, size_t len);
version		SUNWprivate_1.1
exception	$return == 0
end

function	rtsa_keyword
include		<libtsnet.h>
declaration	boolean_t rtsa_keyword(const char *opt, struct rtsa_s *rtsa, \
		    int *errp, char **errstr);
version		SUNWprivate_1.1
exception	$return == 0
end

function	tsol_strerror
include		<libtsnet.h>
declaration	const char *tsol_strerror(int libtserr, int errnoval);
version		SUNWprivate_1.1
end

function	tnrhtp
include		<libtsnet.h>
declaration	int tnrhtp(int cmd, tsol_tpent_t *buf);
version		SUNWprivate_1.1
errno		ENOSYS EFAULT EINVAL ENOENT EOPNOTSUPP EPERM
exception	$return == -1
end

function	tnrh
include		<libtsnet.h>
declaration	int tnrh(int cmd, tsol_rhent_t *buf);
version		SUNWprivate_1.1
errno		ENOSYS EFAULT EINVAL ENOENT EOPNOTSUPP EPERM ENOMEM
exception	$return == -1
end

function	tnmlp
include		<libtsnet.h>
declaration	int tnmlp(int cmd, tsol_mlpent_t *buf);
version		SUNWprivate_1.1
errno		ENOSYS EFAULT EINVAL ENOENT EEXIST EOPNOTSUPP EPERM
exception	$return == -1
end