Print this page
Thread safety fixes.

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libc/port/locale/collate.c
          +++ new/usr/src/lib/libc/port/locale/collate.c
↓ open down ↓ 54 lines elided ↑ open up ↑
  55   55  
  56   56  /*
  57   57   * POSIX uses empty tables and falls down to strcmp.
  58   58   */
  59   59  struct lc_collate lc_collate_posix = {
  60   60          .lc_is_posix = 1,
  61   61  };
  62   62  
  63   63  struct locdata __posix_collate_locdata = {
  64   64          .l_lname = "C",
  65      -        .l_refcnt = (uint32_t)-1,
  66   65          .l_data = { &lc_collate_posix }
  67   66  };
  68   67  
  69   68  
  70   69  struct locdata *
  71   70  __lc_collate_load(const char *locname)
  72   71  {
  73   72          int i, chains, z;
  74   73          char buf[PATH_MAX];
  75   74          char *TMP;
↓ open down ↓ 575 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX