Print this page
5262 libm needs to be carefully unifdef'd
5268 libm doesn't need to hide symbols which are already local


  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 
  22 /*
  23  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  24  */
  25 /*
  26  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  27  * Use is subject to license terms.
  28  */
  29 
  30 #ifndef _LIBM_SYNONYMS_H
  31 #define _LIBM_SYNONYMS_H
  32 
  33 #if defined(ELFOBJ) && !defined(lint)
  34 
  35 #define cabs                    __cabs                  /* C99 <complex.h> */
  36 #define cabsf                   __cabsf                 /* C99 <complex.h> */
  37 #define cabsl                   __cabsl                 /* C99 <complex.h> */
  38 #define cacos                   __cacos                 /* C99 <complex.h> */
  39 #define cacosf                  __cacosf                /* C99 <complex.h> */
  40 #define cacosl                  __cacosl                /* C99 <complex.h> */
  41 #define cacosh                  __cacosh                /* C99 <complex.h> */
  42 #define cacoshf                 __cacoshf               /* C99 <complex.h> */
  43 #define cacoshl                 __cacoshl               /* C99 <complex.h> */
  44 #define carg                    __carg                  /* C99 <complex.h> */
  45 #define cargf                   __cargf                 /* C99 <complex.h> */
  46 #define cargl                   __cargl                 /* C99 <complex.h> */
  47 #define casin                   __casin                 /* C99 <complex.h> */
  48 #define casinf                  __casinf                /* C99 <complex.h> */
  49 #define casinl                  __casinl                /* C99 <complex.h> */
  50 #define casinh                  __casinh                /* C99 <complex.h> */
  51 #define casinhf                 __casinhf               /* C99 <complex.h> */
  52 #define casinhl                 __casinhl               /* C99 <complex.h> */
  53 #define catan                   __catan                 /* C99 <complex.h> */


 727 
 728 /*
 729  *  these are libc entry points
 730  */
 731 #define finite                  _finite
 732 #define fpclass                 _fpclass
 733 #define isnand                  _isnand
 734 #define sigaction               _sigaction
 735 #define sigemptyset             _sigemptyset
 736 #define unordered               _unordered
 737 #define write                   _write
 738 #ifdef _REENTRANT
 739 #define mutex_lock              _mutex_lock
 740 #define mutex_unlock            _mutex_unlock
 741 #define thr_getspecific         _thr_getspecific
 742 #define thr_keycreate           _thr_keycreate
 743 #define thr_main                _thr_main
 744 #define thr_setspecific         _thr_setspecific
 745 #endif
 746 
 747 #endif /* defined(ELFOBJ) && !defined(lint) */
 748 
 749 #endif  /* _LIBM_SYNONYMS_H */


  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 
  22 /*
  23  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  24  */
  25 /*
  26  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  27  * Use is subject to license terms.
  28  */
  29 
  30 #ifndef _LIBM_SYNONYMS_H
  31 #define _LIBM_SYNONYMS_H
  32 
  33 #if !defined(lint)
  34 
  35 #define cabs                    __cabs                  /* C99 <complex.h> */
  36 #define cabsf                   __cabsf                 /* C99 <complex.h> */
  37 #define cabsl                   __cabsl                 /* C99 <complex.h> */
  38 #define cacos                   __cacos                 /* C99 <complex.h> */
  39 #define cacosf                  __cacosf                /* C99 <complex.h> */
  40 #define cacosl                  __cacosl                /* C99 <complex.h> */
  41 #define cacosh                  __cacosh                /* C99 <complex.h> */
  42 #define cacoshf                 __cacoshf               /* C99 <complex.h> */
  43 #define cacoshl                 __cacoshl               /* C99 <complex.h> */
  44 #define carg                    __carg                  /* C99 <complex.h> */
  45 #define cargf                   __cargf                 /* C99 <complex.h> */
  46 #define cargl                   __cargl                 /* C99 <complex.h> */
  47 #define casin                   __casin                 /* C99 <complex.h> */
  48 #define casinf                  __casinf                /* C99 <complex.h> */
  49 #define casinl                  __casinl                /* C99 <complex.h> */
  50 #define casinh                  __casinh                /* C99 <complex.h> */
  51 #define casinhf                 __casinhf               /* C99 <complex.h> */
  52 #define casinhl                 __casinhl               /* C99 <complex.h> */
  53 #define catan                   __catan                 /* C99 <complex.h> */


 727 
 728 /*
 729  *  these are libc entry points
 730  */
 731 #define finite                  _finite
 732 #define fpclass                 _fpclass
 733 #define isnand                  _isnand
 734 #define sigaction               _sigaction
 735 #define sigemptyset             _sigemptyset
 736 #define unordered               _unordered
 737 #define write                   _write
 738 #ifdef _REENTRANT
 739 #define mutex_lock              _mutex_lock
 740 #define mutex_unlock            _mutex_unlock
 741 #define thr_getspecific         _thr_getspecific
 742 #define thr_keycreate           _thr_keycreate
 743 #define thr_main                _thr_main
 744 #define thr_setspecific         _thr_setspecific
 745 #endif
 746 
 747 #endif /* !defined(lint) */
 748 
 749 #endif  /* _LIBM_SYNONYMS_H */