Print this page
8548 want memset_s(3C)
Reviewed by: Robert Mustacchi <rm@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libc/port/threads/assfail.c
          +++ new/usr/src/lib/libc/port/threads/assfail.c
↓ open down ↓ 87 lines elided ↑ open up ↑
  88   88  
  89   89          (void) _lwp_kill(lwpid, SIGABRT);       /* never returns */
  90   90          (void) kill(getpid(), SIGABRT); /* if it does, try harder */
  91   91          _exit(127);
  92   92  }
  93   93  
  94   94  /*
  95   95   * Write a panic message w/o grabbing any locks other than assert_lock.
  96   96   * We have no idea what locks are held at this point.
  97   97   */
  98      -static void
       98 +void
  99   99  common_panic(const char *head, const char *why)
 100  100  {
 101  101          char msg[400];  /* no panic() message in the library is this long */
 102  102          ulwp_t *self;
 103  103          size_t len1, len2;
 104  104  
 105  105          if ((self = __curthread()) != NULL)
 106  106                  enter_critical(self);
 107  107          (void) _lwp_mutex_lock(&assert_lock);
 108  108  
↓ open down ↓ 381 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX