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 
  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 #include <sys/isa_defs.h>
  31 
  32 /* feexcept.c */
  33 #define feclearexcept   __feclearexcept
  34 #define feraiseexcept   __feraiseexcept
  35 #define fetestexcept    __fetestexcept
  36 #define fegetexceptflag __fegetexceptflag
  37 #define fesetexceptflag __fesetexceptflag
  38 
  39 /* fenv.c */
  40 #define feholdexcept    __feholdexcept
  41 #define feholdexcept96  __feholdexcept96
  42 #define feupdateenv             __feupdateenv
  43 #define fegetenv                __fegetenv
  44 #define fesetenv                __fesetenv
  45 #define fex_merge_flags __fex_merge_flags
  46 
  47 #if defined(__x86)
  48 /* feprec.c */
  49 #define fegetprec               __fegetprec
  50 #define fesetprec               __fesetprec
  51 #endif
  52 
  53 /* feround.c */
  54 #define fegetround              __fegetround
  55 #define fesetround              __fesetround
  56 #define fesetround96    __fesetround96
  57 
  58 /* fex_handler.c */
  59 #define fex_get_handling                __fex_get_handling
  60 #define fex_set_handling                __fex_set_handling
  61 #define fex_getexcepthandler    __fex_getexcepthandler
  62 #define fex_setexcepthandler    __fex_setexcepthandler
  63 
  64 /* fex_log.c */
  65 #define fex_get_log                     __fex_get_log
  66 #define fex_set_log                     __fex_set_log
  67 #define fex_get_log_depth       __fex_get_log_depth
  68 #define fex_set_log_depth       __fex_set_log_depth
  69 #define fex_log_entry           __fex_log_entry
  70 
  71 /* libc, libthread */
  72 #define close                   _close
  73 #define getcontext              _getcontext
  74 #define getpid                  _getpid
  75 #define kill                    _kill
  76 #define lseek                   _lseek
  77 #define mutex_lock              _mutex_lock
  78 #define mutex_unlock    _mutex_unlock
  79 #define open                    _open
  80 #define read                    _read
  81 #define sigaction               _sigaction
  82 #define sigemptyset             _sigemptyset
  83 #define sigismember             _sigismember
  84 #define sigprocmask             _sigprocmask
  85 #define stat                    _stat
  86 #define thr_getspecific _thr_getspecific
  87 #define thr_keycreate   _thr_keycreate
  88 #define thr_main                _thr_main
  89 #define thr_setspecific _thr_setspecific
  90 #define write                   _write
  91 
  92 /* ??? see V9 /usr/include/stdio.h */
  93 #ifdef __sparcv9
  94 #define fileno                  _fileno
  95 #endif
  96 
  97 #ifdef __sparc
  98 /* libm, libsunmath */
  99 #define fp_class                __fp_class
 100 #define fp_classf               __fp_classf
 101 #define sqrt                    __sqrt
 102 #define sqrtf                   __sqrtf
 103 #endif