Print this page
5261 libm should stop using synonyms.h
5298 fabs is 0-sized, confuses dis(1) and others
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Approved by: Gordon Ross <gwr@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/m9x/fex_handler.c
          +++ new/usr/src/lib/libm/common/m9x/fex_handler.c
↓ open down ↓ 19 lines elided ↑ open up ↑
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  24   24   */
  25   25  /*
  26   26   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  27   27   * Use is subject to license terms.
  28   28   */
  29   29  
  30      -#pragma weak fex_get_handling = __fex_get_handling
  31      -#pragma weak fex_set_handling = __fex_set_handling
  32      -#pragma weak fex_getexcepthandler = __fex_getexcepthandler
  33      -#pragma weak fex_setexcepthandler = __fex_setexcepthandler
       30 +#pragma weak __fex_get_handling = fex_get_handling
       31 +#pragma weak __fex_set_handling = fex_set_handling
       32 +#pragma weak __fex_getexcepthandler = fex_getexcepthandler
       33 +#pragma weak __fex_setexcepthandler = fex_setexcepthandler
  34   34  
  35      -#include "fenv_synonyms.h"
  36   35  #include <fenv.h>
  37   36  #include <ucontext.h>
  38   37  #include <thread.h>
  39   38  #include "fex_handler.h"
  40   39  
  41   40  int fex_get_handling(int e)
  42   41  {
  43   42          struct fex_handler_data *thr_handlers;
  44   43          int                                             i;
  45   44  
↓ open down ↓ 47 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX