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