Print this page
9704 move socket functions to libc

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libxnet/common/mapfile-vers
          +++ new/usr/src/lib/libxnet/common/mapfile-vers
↓ open down ↓ 50 lines elided ↑ open up ↑
  51   51          inet_ntop               { TYPE = FUNCTION; FILTER = libc.so.1 };
  52   52          inet_pton               { TYPE = FUNCTION; FILTER = libc.so.1 };
  53   53  } SUNW_1.3;
  54   54  
  55   55  SYMBOL_VERSION SUNW_1.3 {
  56   56      global:
  57   57          if_freenameindex        { TYPE = FUNCTION; FILTER = libsocket.so.1 };
  58   58          if_indextoname          { TYPE = FUNCTION; FILTER = libsocket.so.1 };
  59   59          if_nameindex            { TYPE = FUNCTION; FILTER = libsocket.so.1 };
  60   60          if_nametoindex          { TYPE = FUNCTION; FILTER = libsocket.so.1 };
  61      -        sockatmark              { TYPE = FUNCTION; FILTER = libsocket.so.1 };
       61 +        sockatmark              { TYPE = FUNCTION; FILTER = libc.so.1 };
  62   62  } SUNW_1.2;
  63   63  
  64   64  SYMBOL_VERSION SUNW_1.2 {
  65   65      global:
  66   66          _xti_rcvreldata         { TYPE = FUNCTION; FILTER = libnsl.so.1 };
  67   67          _xti_rcvv               { TYPE = FUNCTION; FILTER = libnsl.so.1 };
  68   68          _xti_rcvvudata          { TYPE = FUNCTION; FILTER = libnsl.so.1 };
  69   69          _xti_sndreldata         { TYPE = FUNCTION; FILTER = libnsl.so.1 };
  70   70          _xti_sndv               { TYPE = FUNCTION; FILTER = libnsl.so.1 };
  71   71          _xti_sndvudata          { TYPE = FUNCTION; FILTER = libnsl.so.1 };
  72   72          _xti_sysconf            { TYPE = FUNCTION; FILTER = libnsl.so.1 };
  73   73          _xti_xns5_accept        { TYPE = FUNCTION; FILTER = libnsl.so.1 };
  74   74          _xti_xns5_snd           { TYPE = FUNCTION; FILTER = libnsl.so.1 };
  75   75  } SUNW_1.1;
  76   76  
  77   77  SYMBOL_VERSION SUNW_1.1 {
  78   78      global:
  79   79          __t_errno               { TYPE = FUNCTION; FILTER = libnsl.so.1 };
  80      -        __xnet_bind             { TYPE = FUNCTION; FILTER = libsocket.so.1 };
  81      -        __xnet_connect          { TYPE = FUNCTION; FILTER = libsocket.so.1 };
  82      -        __xnet_getsockopt       { TYPE = FUNCTION; FILTER = libsocket.so.1 };
  83      -        __xnet_listen           { TYPE = FUNCTION; FILTER = libsocket.so.1 };
  84      -        __xnet_recvmsg          { TYPE = FUNCTION; FILTER = libsocket.so.1 };
  85      -        __xnet_sendmsg          { TYPE = FUNCTION; FILTER = libsocket.so.1 };
  86      -        __xnet_sendto           { TYPE = FUNCTION; FILTER = libsocket.so.1 };
  87      -        __xnet_socket           { TYPE = FUNCTION; FILTER = libsocket.so.1 };
  88      -        __xnet_socketpair       { TYPE = FUNCTION; FILTER = libsocket.so.1 };
       80 +        __xnet_bind             { TYPE = FUNCTION; FILTER = libc.so.1 };
       81 +        __xnet_connect          { TYPE = FUNCTION; FILTER = libc.so.1 };
       82 +        __xnet_getsockopt       { TYPE = FUNCTION; FILTER = libc.so.1 };
       83 +        __xnet_listen           { TYPE = FUNCTION; FILTER = libc.so.1 };
       84 +        __xnet_recvmsg          { TYPE = FUNCTION; FILTER = libc.so.1 };
       85 +        __xnet_sendmsg          { TYPE = FUNCTION; FILTER = libc.so.1 };
       86 +        __xnet_sendto           { TYPE = FUNCTION; FILTER = libc.so.1 };
       87 +        __xnet_socket           { TYPE = FUNCTION; FILTER = libc.so.1 };
       88 +        __xnet_socketpair       { TYPE = FUNCTION; FILTER = libc.so.1 };
  89   89          _xti_accept             { TYPE = FUNCTION; FILTER = libnsl.so.1 };
  90   90          _xti_alloc              { TYPE = FUNCTION; FILTER = libnsl.so.1 };
  91   91          _xti_bind               { TYPE = FUNCTION; FILTER = libnsl.so.1 };
  92   92          _xti_close              { TYPE = FUNCTION; FILTER = libnsl.so.1 };
  93   93          _xti_connect            { TYPE = FUNCTION; FILTER = libnsl.so.1 };
  94   94          _xti_error              { TYPE = FUNCTION; FILTER = libnsl.so.1 };
  95   95          _xti_free               { TYPE = FUNCTION; FILTER = libnsl.so.1 };
  96   96          _xti_getinfo            { TYPE = FUNCTION; FILTER = libnsl.so.1 };
  97   97          _xti_getprotaddr        { TYPE = FUNCTION; FILTER = libnsl.so.1 };
  98   98          _xti_getstate           { TYPE = FUNCTION; FILTER = libnsl.so.1 };
↓ open down ↓ 7 lines elided ↑ open up ↑
 106  106          _xti_rcvrel             { TYPE = FUNCTION; FILTER = libnsl.so.1 };
 107  107          _xti_rcvudata           { TYPE = FUNCTION; FILTER = libnsl.so.1 };
 108  108          _xti_rcvuderr           { TYPE = FUNCTION; FILTER = libnsl.so.1 };
 109  109          _xti_snd                { TYPE = FUNCTION; FILTER = libnsl.so.1 };
 110  110          _xti_snddis             { TYPE = FUNCTION; FILTER = libnsl.so.1 };
 111  111          _xti_sndrel             { TYPE = FUNCTION; FILTER = libnsl.so.1 };
 112  112          _xti_sndudata           { TYPE = FUNCTION; FILTER = libnsl.so.1 };
 113  113          _xti_strerror           { TYPE = FUNCTION; FILTER = libnsl.so.1 };
 114  114          _xti_sync               { TYPE = FUNCTION; FILTER = libnsl.so.1 };
 115  115          _xti_unbind             { TYPE = FUNCTION; FILTER = libnsl.so.1 };
 116      -        accept                  { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 117      -        bind                    { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 118      -        connect                 { TYPE = FUNCTION; FILTER = libsocket.so.1 };
      116 +        accept                  { TYPE = FUNCTION; FILTER = libc.so.1 };
      117 +        bind                    { TYPE = FUNCTION; FILTER = libc.so.1 };
      118 +        connect                 { TYPE = FUNCTION; FILTER = libc.so.1 };
 119  119          endhostent              { TYPE = FUNCTION; FILTER = libnsl.so.1 };
 120  120          endnetent               { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 121  121          endprotoent             { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 122  122          endservent              { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 123  123          gethostbyaddr           { TYPE = FUNCTION; FILTER = libnsl.so.1 };
 124  124          gethostbyname           { TYPE = FUNCTION; FILTER = libnsl.so.1 };
 125  125          gethostent              { TYPE = FUNCTION; FILTER = libnsl.so.1 };
 126  126          gethostname             { TYPE = FUNCTION; FILTER = libc.so.1 };
 127  127          getnetbyaddr            { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 128  128          getnetbyname            { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 129  129          getnetent               { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 130      -        getpeername             { TYPE = FUNCTION; FILTER = libsocket.so.1 };
      130 +        getpeername             { TYPE = FUNCTION; FILTER = libc.so.1 };
 131  131          getprotobyname          { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 132  132          getprotobynumber        { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 133  133          getprotoent             { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 134  134          getservbyname           { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 135  135          getservbyport           { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 136  136          getservent              { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 137      -        getsockname             { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 138      -        getsockopt              { TYPE = FUNCTION; FILTER = libsocket.so.1 };
      137 +        getsockname             { TYPE = FUNCTION; FILTER = libc.so.1 };
      138 +        getsockopt              { TYPE = FUNCTION; FILTER = libc.so.1 };
 139  139          h_errno {
 140  140                  TYPE = DATA;
 141  141                  SIZE = 0x4;
 142  142                  FLAGS = NODIRECT;
 143  143                  FILTER = libnsl.so.1;
 144  144          };
 145  145          htonl                   { TYPE = FUNCTION; FILTER = libc.so.1 };
 146  146          htons                   { TYPE = FUNCTION; FILTER = libc.so.1 };
 147  147          inet_addr               { TYPE = FUNCTION; FILTER = libc.so.1 };
 148  148          inet_lnaof              { TYPE = FUNCTION; FILTER = libc.so.1 };
 149  149          inet_makeaddr           { TYPE = FUNCTION; FILTER = libc.so.1 };
 150  150          inet_netof              { TYPE = FUNCTION; FILTER = libc.so.1 };
 151  151          inet_network            { TYPE = FUNCTION; FILTER = libc.so.1 };
 152  152          inet_ntoa               { TYPE = FUNCTION; FILTER = libc.so.1 };
 153      -        listen                  { TYPE = FUNCTION; FILTER = libsocket.so.1 };
      153 +        listen                  { TYPE = FUNCTION; FILTER = libc.so.1 };
 154  154          ntohl                   { TYPE = FUNCTION; FILTER = libc.so.1 };
 155  155          ntohs                   { TYPE = FUNCTION; FILTER = libc.so.1 };
 156      -        recv                    { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 157      -        recvfrom                { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 158      -        recvmsg                 { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 159      -        send                    { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 160      -        sendmsg                 { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 161      -        sendto                  { TYPE = FUNCTION; FILTER = libsocket.so.1 };
      156 +        recv                    { TYPE = FUNCTION; FILTER = libc.so.1 };
      157 +        recvfrom                { TYPE = FUNCTION; FILTER = libc.so.1 };
      158 +        recvmsg                 { TYPE = FUNCTION; FILTER = libc.so.1 };
      159 +        send                    { TYPE = FUNCTION; FILTER = libc.so.1 };
      160 +        sendmsg                 { TYPE = FUNCTION; FILTER = libc.so.1 };
      161 +        sendto                  { TYPE = FUNCTION; FILTER = libc.so.1 };
 162  162          sethostent              { TYPE = FUNCTION; FILTER = libnsl.so.1 };
 163  163          setnetent               { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 164  164          setprotoent             { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 165  165          setservent              { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 166      -        setsockopt              { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 167      -        shutdown                { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 168      -        socket                  { TYPE = FUNCTION; FILTER = libsocket.so.1 };
 169      -        socketpair              { TYPE = FUNCTION; FILTER = libsocket.so.1 };
      166 +        setsockopt              { TYPE = FUNCTION; FILTER = libc.so.1 };
      167 +        shutdown                { TYPE = FUNCTION; FILTER = libc.so.1 };
      168 +        socket                  { TYPE = FUNCTION; FILTER = libc.so.1 };
      169 +        socketpair              { TYPE = FUNCTION; FILTER = libc.so.1 };
 170  170          t_errno {
 171  171                  TYPE = DATA;
 172  172                  SIZE = 0x4;
 173  173                  FILTER = libnsl.so.1;
 174  174          };
 175  175      local:
 176  176          *;
 177  177  };
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX