From owner-cvs-src-old@FreeBSD.ORG Thu Dec 17 20:41:43 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 657F5106566B for ; Thu, 17 Dec 2009 20:41:43 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 53DFA8FC12 for ; Thu, 17 Dec 2009 20:41:43 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id nBHKfhMj041026 for ; Thu, 17 Dec 2009 20:41:43 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nBHKfhW7041025 for cvs-src-old@freebsd.org; Thu, 17 Dec 2009 20:41:43 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200912172041.nBHKfhW7041025@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Thu, 17 Dec 2009 20:41:27 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/lib/libc/gen Makefile.inc _once_stub.c src/lib/libc/include libc_private.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2009 20:41:43 -0000 jhb 2009-12-17 20:41:27 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) lib/libc/gen Makefile.inc lib/libc/include libc_private.h Added files: (Branch: RELENG_8) lib/libc/gen _once_stub.c Log: SVN rev 200648 on 2009-12-17 20:41:27Z by jhb MFC 199606, 199614: Add an internal _once() method. This works identical to pthread_once(3) with the additional property that it is safe for routines in libc to use in both single-threaded and multi-threaded processes. Multi-threaded processes use the pthread_once() implementation from the threading library while single-threaded processes use a simplified "stub" version internal to libc. Revision Changes Path 1.144.2.3 +2 -1 src/lib/libc/gen/Makefile.inc 1.2.2.2 +64 -0 src/lib/libc/gen/_once_stub.c (new) 1.20.2.2 +7 -0 src/lib/libc/include/libc_private.h