freebsd-nq/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 Don't write data into an empty "file." 2010-12-07 16:48:01 +00:00
libauditd
libbegemot
libblocksruntime Import libcompiler_rt into HEAD and add Makefiles. 2010-11-11 15:13:11 +00:00
libbluetooth Add the following Linux BlueZ compatibility macros: htobs(), htobl(), 2010-09-22 23:41:02 +00:00
libbsm
libbsnmp Unbreak the build by temprorarily not using include directives in 2010-12-20 22:56:50 +00:00
libbz2
libc Add the posix_fallocate(2) syscall. The default implementation in 2011-04-18 16:32:22 +00:00
libcalendar
libcam Add Serial Management Protocol (SMP) passthrough support to CAM. 2010-11-30 22:39:46 +00:00
libcom_err
libcompat Small style(9) fix: use tabs instead of spaces. 2010-08-08 08:19:23 +00:00
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 mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
libdwarf
libedit Add $FreeBSD$'s. 2011-04-14 15:42:15 +00:00
libefi Spelling fixes. 2010-08-03 17:40:09 +00:00
libelf Fix some duplicate-word typos in manpages. 2011-03-02 21:59:53 +00:00
libexpat Fix buildworld -DNO_CLEAN when using with Perforce, which marks files as 2010-08-12 20:46:49 +00:00
libfetch Fix a bug related to connection caching which could cause a crash after 2011-01-17 17:25:46 +00:00
libftpio mdoc: consistently spell our email addresses <foo@FreeBSD.org> 2010-05-19 08:57:53 +00:00
libgeom Remove stale link. 2010-12-04 08:44:56 +00:00
libgpib Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while 2010-08-16 15:18:30 +00:00
libgssapi mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
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 The use of snprintf() to append to a buffer is not valid according to C99 2010-12-11 08:07:21 +00:00
libipx Fix incorrect usage of 'assure' and 'insure'. 2010-08-28 16:32:01 +00:00
libjail Introduce signed and unsigned version of CTLTYPE_QUAD, renaming 2011-01-19 23:00:25 +00:00
libkiconv
libkse Merge from tbemd: 2010-06-13 01:27:29 +00:00
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 Use CFLAGS and LDFLAGS when compiling mkmagic. This ensures that all the 2010-08-01 12:10:32 +00:00
libmd Add SHA512 (Actually, this is Colin Percival's code for SHA256, with 2011-04-09 13:56:29 +00:00
libmemstat Spelling fixes. 2010-08-03 17:40:09 +00:00
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 Regenerate our lib/libpcap/config.h for libpcap 1.1.1. 2010-10-29 22:57:14 +00:00
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 Fix a memory leak on the error condition 2010-12-14 15:14:08 +00:00
libradius Add links for libradius(3) functions. 2010-10-18 12:35:10 +00:00
librpcsec_gss Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while 2010-08-16 15:18:30 +00:00
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 Spelling fixes. 2010-08-03 17:40:09 +00:00
libsbuf
libsdp Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while 2010-08-16 15:18:30 +00:00
libsm
libsmb
libsmdb
libsmutil
libstand Fix typos - remove duplicate "the". 2011-02-21 09:01:34 +00:00
libtacplus mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
libtelnet
libthr r179417 introduced a bug into pthread_once(). Previously pthread_once() 2011-04-20 14:19:34 +00:00
libthread_db Repair some build breakage introduced in r211725 and garbage collect some 2010-08-28 15:03:11 +00:00
libufs Replace ERROR() macro with inline function. In-tree gcc cannot tolerate 2011-02-12 12:46:00 +00:00
libugidfw Quiet clang warnings by using string literal format strings. 2011-01-04 13:02:52 +00:00
libulog Fix reference to nonexistent manpage getuid(3). 2010-10-11 20:30:57 +00:00
libusb - Add missing MLINKS for libusb and some manpage fixes. 2011-02-28 18:53:06 +00:00
libusbhid - Add support for libusbhid in 32-bit compatibility mode. 2010-10-16 11:20:53 +00:00
libutil Add support for IEE/IEC (and now also SI) power of two notions of 2011-04-12 22:48:03 +00:00
libvgl Change libvgl's set4pixels() and set2lines() functions from plain 2010-10-04 18:16:38 +00:00
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