Print this page
9704 move socket functions to libc
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libsocket/common/mapfile-vers
+++ new/usr/src/lib/libsocket/common/mapfile-vers
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
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 24 # Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved.
25 25 # Copyright 2018 Nexenta Systems, Inc.
26 26 #
27 27
28 28 #
29 29 # MAPFILE HEADER START
30 30 #
31 31 # WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
32 32 # Object versioning must comply with the rules detailed in
33 33 #
34 34 # usr/src/lib/README.mapfiles
35 35 #
36 36 # You should not be making modifications here until you've read the most current
37 37 # copy of that file. If you need help, contact a gatekeeper for guidance.
38 38 #
39 39 # MAPFILE HEADER END
40 40 #
41 41
↓ open down ↓ |
41 lines elided |
↑ open up ↑ |
42 42 $mapfile_version 2
43 43
44 44 SYMBOL_VERSION ILLUMOS_0.2 { # reentrant ethers(3SOCKET)
45 45 global:
46 46 ether_aton_r;
47 47 ether_ntoa_r;
48 48 } ILLUMOS_0.1;
49 49
50 50 SYMBOL_VERSION ILLUMOS_0.1 { # illumos additions
51 51 global:
52 - accept4;
52 + accept4 { TYPE = FUNCTION; FILTER = libc.so.1 };
53 53 } SUNW_1.7;
54 54
55 55 SYMBOL_VERSION SUNW_1.7 {
56 56 global:
57 57 freeifaddrs;
58 58 getifaddrs;
59 59 } SUNW_1.6;
60 60
61 61 SYMBOL_VERSION SUNW_1.6 {
62 62 global:
63 63 getipv4sourcefilter;
64 64 getsourcefilter;
65 65 setipv4sourcefilter;
66 66 setsourcefilter;
67 67 } SUNW_1.5;
68 68
69 69 SYMBOL_VERSION SUNW_1.5 {
70 70 global:
71 71 inet6_opt_append;
72 72 inet6_opt_find;
73 73 inet6_opt_finish;
↓ open down ↓ |
11 lines elided |
↑ open up ↑ |
74 74 inet6_opt_get_val;
75 75 inet6_opt_init;
76 76 inet6_opt_next;
77 77 inet6_opt_set_val;
78 78 inet6_rth_add;
79 79 inet6_rth_getaddr;
80 80 inet6_rth_init;
81 81 inet6_rth_reverse;
82 82 inet6_rth_segments;
83 83 inet6_rth_space;
84 - sockatmark;
84 + sockatmark { TYPE = FUNCTION; FILTER = libc.so.1 };
85 85 __xnet_getaddrinfo;
86 86 } SUNW_1.4;
87 87
88 88 SYMBOL_VERSION SUNW_1.4 {
89 89 global:
90 90 freeaddrinfo;
91 91 gai_strerror;
92 92 getaddrinfo;
93 93 getnameinfo;
94 94 if_freenameindex;
95 95 if_indextoname;
96 96 if_nameindex;
97 97 if_nametoindex;
98 98 in6addr_any;
99 99 in6addr_loopback;
100 100 rcmd_af;
101 101 rexec_af;
102 102 rresvport_af;
103 103 } SUNW_1.3;
104 104
105 105 # Due to mistakes made early in the history of this library, there are
106 106 # no SUNW_1.2 or SUNW_1.3 symbols, but they are now kept as placeholders.
107 107 # Don't add any symbols to these versions.
108 108
109 109 SYMBOL_VERSION SUNW_1.3 {
110 110 global:
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
111 111 SUNW_1.3;
112 112 } SUNW_1.2;
113 113
114 114 SYMBOL_VERSION SUNW_1.2 {
115 115 global:
116 116 SUNW_1.2;
117 117 } SUNW_1.1;
118 118
119 119 SYMBOL_VERSION SUNW_1.1 {
120 120 global:
121 - __xnet_bind;
122 - __xnet_connect;
123 - __xnet_getsockopt;
124 - __xnet_listen;
125 - __xnet_recvmsg;
126 - __xnet_sendmsg;
127 - __xnet_sendto;
128 - __xnet_socket;
129 - __xnet_socketpair;
121 + __xnet_bind { TYPE = FUNCTION; FILTER = libc.so.1 };
122 + __xnet_connect { TYPE = FUNCTION; FILTER = libc.so.1 };
123 + __xnet_getsockopt { TYPE = FUNCTION; FILTER = libc.so.1 };
124 + __xnet_listen { TYPE = FUNCTION; FILTER = libc.so.1 };
125 + __xnet_recvmsg { TYPE = FUNCTION; FILTER = libc.so.1 };
126 + __xnet_sendmsg { TYPE = FUNCTION; FILTER = libc.so.1 };
127 + __xnet_sendto { TYPE = FUNCTION; FILTER = libc.so.1 };
128 + __xnet_socket { TYPE = FUNCTION; FILTER = libc.so.1 };
129 + __xnet_socketpair { TYPE = FUNCTION; FILTER = libc.so.1 };
130 130 } SUNW_0.7;
131 131
132 132 SYMBOL_VERSION SUNW_0.7 {
133 133 global:
134 134 endnetent;
135 135 endprotoent;
136 136 endservent;
137 137 ether_aton;
138 138 ether_hostton;
139 139 ether_line;
140 140 ether_ntoa;
141 141 ether_ntohost;
142 142 getnetbyaddr;
143 143 getnetbyaddr_r;
144 144 getnetbyname;
145 145 getnetbyname_r;
146 146 getnetent;
147 147 getnetent_r;
148 148 getprotobyname_r;
149 149 getprotobynumber_r;
150 150 getprotoent_r;
151 151 getservbyname_r;
152 152 getservbyport_r;
153 153 getservent;
154 154 getservent_r;
155 155 htonl { TYPE = FUNCTION; FILTER = libc.so.1 };
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
156 156 htons { TYPE = FUNCTION; FILTER = libc.so.1 };
157 157 ntohl { TYPE = FUNCTION; FILTER = libc.so.1 };
158 158 ntohs { TYPE = FUNCTION; FILTER = libc.so.1 };
159 159 rcmd;
160 160 rexec;
161 161 rresvport;
162 162 ruserok;
163 163 setnetent;
164 164 setprotoent;
165 165 setservent;
166 - socketpair;
166 + socketpair { TYPE = FUNCTION; FILTER = libc.so.1 };
167 167
168 168 # For ABI reasons, the following symbols are in SISCD_2.3 on 32-bit
169 169 # sparc, which is inherited by SUNW_0.7. On all other platforms,
170 170 # they are simply in SUNW_0.7
171 171 $if _sparc && _ELF32
172 172 } SISCD_2.3;
173 173
174 174 SYMBOL_VERSION SISCD_2.3 {
175 175 global:
176 176 $endif
177 - accept;
178 - bind;
179 - connect;
180 - getpeername;
177 + accept { TYPE = FUNCTION; FILTER = libc.so.1 };
178 + bind { TYPE = FUNCTION; FILTER = libc.so.1 };
179 + connect { TYPE = FUNCTION; FILTER = libc.so.1 };
180 + getpeername { TYPE = FUNCTION; FILTER = libc.so.1 };
181 181 getprotobyname;
182 182 getprotobynumber;
183 183 getprotoent;
184 184 getservbyname;
185 185 getservbyport;
186 - getsockname;
187 - getsockopt;
186 + getsockname { TYPE = FUNCTION; FILTER = libc.so.1 };
187 + getsockopt { TYPE = FUNCTION; FILTER = libc.so.1 };
188 188 inet_lnaof { TYPE = FUNCTION; FILTER = libc.so.1 };
189 189 inet_makeaddr { TYPE = FUNCTION; FILTER = libc.so.1 };
190 190 inet_network { TYPE = FUNCTION; FILTER = libc.so.1 };
191 - listen;
192 - recv;
193 - recvfrom;
194 - recvmsg;
195 - send;
196 - sendmsg;
197 - sendto;
198 - setsockopt;
199 - shutdown;
200 - socket;
191 + listen { TYPE = FUNCTION; FILTER = libc.so.1 };
192 + recv { TYPE = FUNCTION; FILTER = libc.so.1 };
193 + recvfrom { TYPE = FUNCTION; FILTER = libc.so.1 };
194 + recvmsg { TYPE = FUNCTION; FILTER = libc.so.1 };
195 + send { TYPE = FUNCTION; FILTER = libc.so.1 };
196 + sendmsg { TYPE = FUNCTION; FILTER = libc.so.1 };
197 + sendto { TYPE = FUNCTION; FILTER = libc.so.1 };
198 + setsockopt { TYPE = FUNCTION; FILTER = libc.so.1 };
199 + shutdown { TYPE = FUNCTION; FILTER = libc.so.1 };
200 + socket { TYPE = FUNCTION; FILTER = libc.so.1 };
201 201 };
202 202
203 203 # There really should be only one SUNWprivate version.
204 204 # Don't add any more. Add new private symbols to SUNWprivate_1.3
205 205
206 206 SYMBOL_VERSION SUNWprivate_1.3 {
207 207 global:
208 - _accept4;
208 + _accept4 { TYPE = FUNCTION; FILTER = libc.so.1 };
209 209 _link_aton;
210 210 _link_ntoa;
211 211 _nss_initf_ethers;
212 212 _nss_initf_net;
213 213 _nss_initf_netmasks;
214 214 _nss_initf_proto;
215 215 _nss_initf_services;
216 216 getallifaddrs;
217 217 getallifs;
218 218 str2ether;
219 219 str2addr;
220 220 str2netent;
221 221 str2protoent;
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
222 222 } SUNWprivate_1.2;
223 223
224 224 SYMBOL_VERSION SUNWprivate_1.2 {
225 225 global:
226 226 getnetmaskbyaddr;
227 227 getnetmaskbynet;
228 228 } SUNWprivate_1.1;
229 229
230 230 SYMBOL_VERSION SUNWprivate_1.1 {
231 231 global:
232 - _accept;
233 - _bind;
232 + _accept { TYPE = FUNCTION; FILTER = libc.so.1 };
233 + _bind { TYPE = FUNCTION; FILTER = libc.so.1 };
234 234 bindresvport;
235 235 bootparams_getbyname;
236 - _connect;
237 - _getpeername;
238 - _getsockname;
239 - _getsockopt;
240 - _listen;
241 - _recv;
242 - _recvfrom;
243 - _recvmsg;
236 + _connect { TYPE = FUNCTION; FILTER = libc.so.1 };
237 + _getpeername { TYPE = FUNCTION; FILTER = libc.so.1 };
238 + _getsockname { TYPE = FUNCTION; FILTER = libc.so.1 };
239 + _getsockopt { TYPE = FUNCTION; FILTER = libc.so.1 };
240 + _listen { TYPE = FUNCTION; FILTER = libc.so.1 };
241 + _recv { TYPE = FUNCTION; FILTER = libc.so.1 };
242 + _recvfrom { TYPE = FUNCTION; FILTER = libc.so.1 };
243 + _recvmsg { TYPE = FUNCTION; FILTER = libc.so.1 };
244 244 rresvport_addr;
245 245 _ruserpass;
246 - _send;
247 - _sendmsg;
248 - _sendto;
249 - _setsockopt;
250 - _shutdown;
251 - _socket;
252 - _socket_bsd;
253 - _socketpair;
254 - _socketpair_bsd;
246 + _send { TYPE = FUNCTION; FILTER = libc.so.1 };
247 + _sendmsg { TYPE = FUNCTION; FILTER = libc.so.1 };
248 + _sendto { TYPE = FUNCTION; FILTER = libc.so.1 };
249 + _setsockopt { TYPE = FUNCTION; FILTER = libc.so.1 };
250 + _shutdown { TYPE = FUNCTION; FILTER = libc.so.1 };
251 + _socket { TYPE = FUNCTION; FILTER = libc.so.1 };
252 + _socket_bsd { TYPE = FUNCTION; FILTER = libc.so.1 };
253 + _socketpair { TYPE = FUNCTION; FILTER = libc.so.1 };
254 + _socketpair_bsd { TYPE = FUNCTION; FILTER = libc.so.1 };
255 255 local:
256 256 *;
257 257 };
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX