freebsd-skq/lib
Ryan Stone aad93b043a r179417 introduced a bug into pthread_once(). Previously pthread_once()
used a global pthread_mutex_t for synchronization.  r179417 replaced that
with an implementation that directly used atomic instructions and thr_*
syscalls to synchronize callers to pthread_once.  However, calling
pthread_mutex_lock on the global mutex implicitly ensured that
_thr_check_init() had been called but with r179417 this was no longer
guaranteed.  This meant that if you were unlucky enough to have your first
call into libthr be a call to pthread_once(), you would segfault when
trying to access the pointer returned by _get_curthread().

The fix is to explicitly call _thr_check_init() from pthread_once().

Reviewed by:	davidxu
Approved by:	emaste (mentor)
MFC after:	1 week
2011-04-20 14:19:34 +00:00
..
bind Update to BIND 9.6.3, the latest from ISC on the 9.6 branch. 2011-02-06 22:46:07 +00:00
clang Update llvm/clang to trunk r126547. 2011-02-27 01:32:10 +00:00
csu Turn off default generation of userland dot symbols on powerpc64 now that 2011-02-18 21:44:53 +00:00
libalias
libarchive
libauditd
libbegemot
libblocksruntime
libbluetooth
libbsm
libbsnmp
libbz2
libc Add the posix_fallocate(2) syscall. The default implementation in 2011-04-18 16:32:22 +00:00
libcalendar
libcam
libcom_err
libcompat
libcompiler_rt Mark libcompiler_rt as not needed executable stack on powerpc. 2011-01-14 11:23:39 +00:00
libcrypt Document SHA256/512 modes. 2011-04-09 14:09:46 +00:00
libdevinfo sys/rman.h now requires sys/types.h. Include it to make the API match 2011-02-10 04:53:09 +00:00
libdevstat Do not increment num_args if strsep(3) returned an empty field. 2011-04-04 09:25:27 +00:00
libdisk
libdwarf
libedit Add $FreeBSD$'s. 2011-04-14 15:42:15 +00:00
libefi
libelf Fix some duplicate-word typos in manpages. 2011-03-02 21:59:53 +00:00
libexpat
libfetch Fix a bug related to connection caching which could cause a crash after 2011-01-17 17:25:46 +00:00
libftpio
libgeom
libgpib
libgssapi
libiconv Add the BSD-licensed Citrus iconv to the base system with default off 2011-02-25 00:04:39 +00:00
libiconv_modules Add the BSD-licensed Citrus iconv to the base system with default off 2011-02-25 00:04:39 +00:00
libipsec
libipx
libjail Introduce signed and unsigned version of CTLTYPE_QUAD, renaming 2011-01-19 23:00:25 +00:00
libkiconv
libkse
libkvm libkvm: fix logic inversion introduced with last commit 2011-02-02 17:01:26 +00:00
liblzma Fix some leftover binaries and shared libraries in the system that still 2011-02-15 22:03:09 +00:00
libmagic
libmd Add SHA512 (Actually, this is Colin Percival's code for SHA256, with 2011-04-09 13:56:29 +00:00
libmemstat
libmilter
libmp
libncp
libnetgraph
libngatm
libopie
libpam Mention the name of the module in warning messages. 2011-03-12 11:26:37 +00:00
libpcap
libpkg Fix typos - remove duplicate "the". 2011-02-21 09:01:34 +00:00
libpmc Revert last commit: CPUTYPE will be defined here 2011-02-11 02:34:26 +00:00
libproc
libradius
librpcsec_gss
librpcsvc
librt Fix the 32-bit build stage on amd64 when WITH_CTF is enabled. It seems 2011-02-23 21:17:38 +00:00
librtld_db
libsbuf
libsdp
libsm
libsmb
libsmdb
libsmutil
libstand Fix typos - remove duplicate "the". 2011-02-21 09:01:34 +00:00
libtacplus
libtelnet
libthr r179417 introduced a bug into pthread_once(). Previously pthread_once() 2011-04-20 14:19:34 +00:00
libthread_db
libufs Replace ERROR() macro with inline function. In-tree gcc cannot tolerate 2011-02-12 12:46:00 +00:00
libugidfw
libulog
libusb - Add missing MLINKS for libusb and some manpage fixes. 2011-02-28 18:53:06 +00:00
libusbhid
libutil Add support for IEE/IEC (and now also SI) power of two notions of 2011-04-12 22:48:03 +00:00
libvgl
libwrap
liby
libypclnt
libz Upgrade our copy of llvm/clang to r126079, from upstream's trunk. 2011-02-20 19:33:47 +00:00
msun Take two. Add the missing file that should have been committed 2011-03-12 19:37:35 +00:00
ncurses
Makefile Add the BSD-licensed Citrus iconv to the base system with default off 2011-02-25 00:04:39 +00:00
Makefile.inc