From owner-cvs-src@FreeBSD.ORG Wed Apr 2 07:41:25 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B13FA1065673; Wed, 2 Apr 2008 07:41:25 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 9E7D68FC23; Wed, 2 Apr 2008 07:41:25 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m327fPdn065206; Wed, 2 Apr 2008 07:41:25 GMT (envelope-from davidxu@repoman.freebsd.org) Received: (from davidxu@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m327fP1W065205; Wed, 2 Apr 2008 07:41:25 GMT (envelope-from davidxu) Message-Id: <200804020741.m327fP1W065205@repoman.freebsd.org> From: David Xu Date: Wed, 2 Apr 2008 07:41:25 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libthr/arch/amd64 Makefile.inc src/lib/libthr/arch/amd64/include pthread_md.h src/lib/libthr/arch/i386 Makefile.inc src/lib/libthr/arch/i386/include pthread_md.h src/lib/libthr/thread thr_private.h thr_rtld.c thr_umtx.c ... X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2008 07:41:25 -0000 davidxu 2008-04-02 07:41:25 UTC FreeBSD src repository Modified files: lib/libthr/arch/amd64 Makefile.inc lib/libthr/arch/amd64/include pthread_md.h lib/libthr/arch/i386 Makefile.inc lib/libthr/arch/i386/include pthread_md.h lib/libthr/thread thr_private.h thr_rtld.c thr_umtx.c Added files: lib/libthr/arch/amd64/amd64 _umtx_op_err.S lib/libthr/arch/i386/i386 _umtx_op_err.S Log: Replace function _umtx_op with _umtx_op_err, the later function directly returns errno, because errno can be mucked by user's signal handler and most of pthread api heavily depends on errno to be correct, this change should improve stability of the thread library. Revision Changes Path 1.4 +1 -1 src/lib/libthr/arch/amd64/Makefile.inc 1.1 +37 -0 src/lib/libthr/arch/amd64/amd64/_umtx_op_err.S (new) 1.5 +3 -0 src/lib/libthr/arch/amd64/include/pthread_md.h 1.4 +1 -1 src/lib/libthr/arch/i386/Makefile.inc 1.1 +36 -0 src/lib/libthr/arch/i386/i386/_umtx_op_err.S (new) 1.9 +3 -0 src/lib/libthr/arch/i386/include/pthread_md.h 1.88 +2 -0 src/lib/libthr/thread/thr_private.h 1.7 +1 -1 src/lib/libthr/thread/thr_rtld.c 1.15 +28 -48 src/lib/libthr/thread/thr_umtx.c