1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 # Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  22 #
  23 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 # Interface definition for libm.so.1
  27 #
  28 # For information regarding the establishment of versioned definitions see:
  29 #       The Linker and Libraries Manual (version 2.5 or greater)
  30 # This is part of the Developers Guide in the Answerbook.  Specifically refer
  31 # to Chapter 2 under section "Defining Additional Symbols" through section
  32 # "Reducing Symbol Scope", and Chapter 5 "Versioning".
  33 #
  34 # For specific rules for the modification (evolution) of these version
  35 # definitions see:
  36 #       psarc_1995_14: Integration of Scoped Libraries
  37 #               (/shared/sac/PSARC/1995/014)
  38 #       Policy for Shared Library Version Names and Interface Definitions
  39 #               (/shared/ON/general_docs/scoping-rules.ps)
  40 
  41 $mapfile_version 2
  42 
  43 $if _ELF32
  44 $add lf64
  45 $endif
  46 $if _sparc && _ELF32
  47 $add sparc32
  48 $endif
  49 $if _sparc && _ELF64
  50 $add sparcv9
  51 $endif
  52 $if _x86 && _ELF32
  53 $add i386
  54 $endif
  55 $if _x86 && _ELF64
  56 $add amd64
  57 $endif
  58 
  59 SYMBOL_VERSION SUNW_1.1.1 {
  60         global:
  61                 __acosf;
  62                 __acosl;
  63                 __asinf;
  64                 __asinl;
  65                 __atan2f;
  66                 __atan2l;
  67                 __atanf;
  68                 __atanl;
  69                 __ceilf;
  70                 __ceill;
  71                 __cosf;
  72                 __coshf;
  73                 __coshl;
  74                 __cosl;
  75                 __expf;
  76                 __expl;
  77                 __fabsf;
  78                 __fabsl;
  79                 __floorf;
  80                 __floorl;
  81                 __fmodf;
  82                 __fmodl;
  83                 __frexpf;
  84                 __frexpl;
  85                 __ldexpf;
  86                 __ldexpl;
  87                 __log10f;
  88                 __log10l;
  89                 __logf;
  90                 __logl;
  91                 __modff;
  92                 __modfl;
  93                 __powf;
  94                 __powl;
  95                 __sinf;
  96                 __sinhf;
  97                 __sinhl;
  98                 __sinl;
  99                 __sqrtf;
 100                 __sqrtl;
 101                 __tanf;
 102                 __tanhf;
 103                 __tanhl;
 104                 __tanl;
 105 } SUNW_1.1;
 106 
 107 SYMBOL_VERSION SUNW_1.1 {
 108         global:
 109                 __acos;
 110                 __acosh;
 111                 __asin;
 112                 __asinh;
 113                 __atan;
 114                 __atan2;
 115                 __atanh;
 116                 __cbrt;
 117                 __ceil;
 118                 __copysign;
 119                 __cos;
 120                 __cosh;
 121                 __erf;
 122                 __erfc;
 123                 __exp;
 124                 __expm1;
 125                 __fabs;
 126                 __floor;
 127                 __fmod;
 128                 __gamma;
 129                 __gamma_r;
 130                 __hypot;
 131                 __ilogb;
 132                 __isnan;
 133                 __j0;
 134                 __j1;
 135                 __jn;
 136                 __lgamma;
 137                 __lgamma_r;
 138                 __log;
 139                 __log10;
 140                 __log1p;
 141                 __logb;
 142                 __nextafter;
 143                 __pow;
 144                 __remainder;
 145                 __rint;
 146                 __scalb;
 147                 __scalbn;
 148                 __signgam;
 149                 __significand;
 150                 __sin;
 151                 __sinh;
 152                 __sqrt;
 153                 __tan;
 154                 __tanh;
 155                 __y0;
 156                 __y1;
 157                 __yn;
 158                 acos;
 159                 acosh;
 160                 asin;
 161                 asinh;
 162                 atan;
 163                 atan2;
 164                 atanh;
 165                 cbrt;
 166                 ceil;
 167                 copysign;
 168                 cos;
 169                 cosh;
 170                 erf;
 171                 erfc;
 172                 exp;
 173                 expm1;
 174                 fabs;
 175                 floor;
 176                 fmod;
 177                 gamma;
 178                 gamma_r;
 179                 hypot;
 180                 ilogb;
 181                 isnan;
 182                 j0;
 183                 j1;
 184                 jn;
 185                 lgamma;
 186                 lgamma_r;
 187                 log;
 188                 log10;
 189                 log1p;
 190                 logb;
 191                 matherr;
 192                 nextafter;
 193                 pow;
 194                 remainder;
 195                 rint;
 196                 scalb;
 197                 scalbn;
 198                 signgam;
 199                 significand;
 200                 sin;
 201                 sinh;
 202                 sqrt;
 203                 tan;
 204                 tanh;
 205                 y0;
 206                 y1;
 207                 yn;
 208 };
 209 
 210 $if i386
 211 SYMBOL_VERSION SUNWprivate_1.2 {
 212         global:
 213                 __libm_errno;   # SC3.0.1 -lmopt
 214 } SUNWprivate_1.1;
 215 $endif
 216 
 217 SYMBOL_VERSION SUNWprivate_1.1 {
 218         global:
 219                 _lib_version;
 220                 __libm__rem_pio2;
 221                 __libm__rem_pio2m;
 222         # anything else is local
 223         local:
 224                 *;      # symbols not mentioned in this file are scoped out
 225 };