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
↓ 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:
↓ 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;
↓ 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;
↓ 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;
↓ 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