From owner-cvs-projects@FreeBSD.ORG Sun Feb 5 22:26:55 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0DF116A420; Sun, 5 Feb 2006 22:26:55 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C04543D45; Sun, 5 Feb 2006 22:26:55 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k15MQt9V079126; Sun, 5 Feb 2006 22:26:55 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k15MQthI079125; Sun, 5 Feb 2006 22:26:55 GMT (envelope-from mux) Message-Id: <200602052226.k15MQthI079125@repoman.freebsd.org> From: Maxime Henrion Date: Sun, 5 Feb 2006 22:26:55 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup fattr.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Feb 2006 22:26:55 -0000 mux 2006-02-05 22:26:55 UTC FreeBSD projects repository Modified files: csup fattr.c Log: - Ignore the return value of a chflags() call in fattr_install(). It can fail over NFS and CVSup also ignore these errors. - While I'm here, fix fattr_frompath() to set the linktarget attribute when called on symlinks. We use a static buffer of 1024 bytes, to mimic CVSup's behaviour. Revision Changes Path 1.31 +20 -7 projects/csup/fattr.c From owner-cvs-projects@FreeBSD.ORG Mon Feb 6 01:44:24 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59E5916A420; Mon, 6 Feb 2006 01:44:24 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A47943D46; Mon, 6 Feb 2006 01:44:24 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k161iOUj096406; Mon, 6 Feb 2006 01:44:24 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k161iOHM096405; Mon, 6 Feb 2006 01:44:24 GMT (envelope-from mux) Message-Id: <200602060144.k161iOHM096405@repoman.freebsd.org> From: Maxime Henrion Date: Mon, 6 Feb 2006 01:44:24 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup csup.1 main.c misc.c misc.h X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Feb 2006 01:44:24 -0000 mux 2006-02-06 01:44:24 UTC FreeBSD projects repository Modified files: csup csup.1 main.c misc.c misc.h Log: - Add support for retries when the connection is rejected by the server, using an exponential backoff timer identical to the one in CVSup. The timer is implemented in misc.c with the bt_new(), bt_get(), bt_pause() and bt_free() functions. It is used in main.c. - Add support for the associated -1 and -r n options. - Document the -r n and -1 options in csup.1. While I'm here, document -4 and -6 too, and replace any capitalized form of csup ("Csup") with just "csup". The capitalized form is just too ugly. Submitted by: Ulf Lilleengen [1, 2] (with many mods by me) Revision Changes Path 1.3 +41 -9 projects/csup/csup.1 1.29 +47 -8 projects/csup/main.c 1.23 +74 -1 projects/csup/misc.c 1.21 +7 -1 projects/csup/misc.h From owner-cvs-projects@FreeBSD.ORG Tue Feb 7 02:35:27 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C499A16A420; Tue, 7 Feb 2006 02:35:27 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6630343D49; Tue, 7 Feb 2006 02:35:27 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k172ZRjd027968; Tue, 7 Feb 2006 02:35:27 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k172ZRtI027967; Tue, 7 Feb 2006 02:35:27 GMT (envelope-from mux) Message-Id: <200602070235.k172ZRtI027967@repoman.freebsd.org> From: Maxime Henrion Date: Tue, 7 Feb 2006 02:35:27 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup fattr.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2006 02:35:27 -0000 mux 2006-02-07 02:35:27 UTC FreeBSD projects repository Modified files: csup fattr.c Log: Fix typo in assertion. Revision Changes Path 1.32 +2 -2 projects/csup/fattr.c From owner-cvs-projects@FreeBSD.ORG Tue Feb 7 02:46:10 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8511B16A420; Tue, 7 Feb 2006 02:46:10 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A2BB43D46; Tue, 7 Feb 2006 02:46:10 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k172kAGx028417; Tue, 7 Feb 2006 02:46:10 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k172kArU028414; Tue, 7 Feb 2006 02:46:10 GMT (envelope-from mux) Message-Id: <200602070246.k172kArU028414@repoman.freebsd.org> From: Maxime Henrion Date: Tue, 7 Feb 2006 02:46:09 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup threads.h X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2006 02:46:10 -0000 mux 2006-02-07 02:46:09 UTC FreeBSD projects repository Modified files: csup threads.h Log: Remove two prototypes for non-existent functions. Probably dates back from the time when I was designing this API. Revision Changes Path 1.5 +1 -3 projects/csup/threads.h From owner-cvs-projects@FreeBSD.ORG Tue Feb 7 03:31:45 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6422816A420; Tue, 7 Feb 2006 03:31:45 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1539B43D53; Tue, 7 Feb 2006 03:31:45 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k173Vid0030572; Tue, 7 Feb 2006 03:31:44 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k173ViC2030571; Tue, 7 Feb 2006 03:31:44 GMT (envelope-from mux) Message-Id: <200602070331.k173ViC2030571@repoman.freebsd.org> From: Maxime Henrion Date: Tue, 7 Feb 2006 03:31:44 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup stream.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2006 03:31:45 -0000 mux 2006-02-07 03:31:44 UTC FreeBSD projects repository Modified files: csup stream.c Log: Ignore an error in zfilter_fini(). At this point, we can do nothing about it and it can happen legitimately if we're being disconnected. Revision Changes Path 1.49 +6 -6 projects/csup/stream.c From owner-cvs-projects@FreeBSD.ORG Tue Feb 7 04:00:31 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7FF7316A420; Tue, 7 Feb 2006 04:00:31 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33FC043D45; Tue, 7 Feb 2006 04:00:31 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1740UXp031751; Tue, 7 Feb 2006 04:00:31 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1740Uhe031750; Tue, 7 Feb 2006 04:00:30 GMT (envelope-from mux) Message-Id: <200602070400.k1740Uhe031750@repoman.freebsd.org> From: Maxime Henrion Date: Tue, 7 Feb 2006 04:00:30 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup misc.c mux.c threads.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2006 04:00:31 -0000 mux 2006-02-07 04:00:30 UTC FreeBSD projects repository Modified files: csup misc.c mux.c threads.c Log: - Add assertions to ensure that no pthread_mutex_{lock,unlock}() call fails, wrapping them into foo_lock()/foo_unlock() functions when necessary. - Fix a few places in the multiplexer code where we were locking the channel by hand instead of using the already existing chan_lock() function. - Many more changes in the multiplexer code so that we can properly terminate the threads and close the multiplexer. This is the first step into making csup able to handle unexpected errors during the multi-threaded run. Changes: - Make the sender and receiver threads safe to terminate with pthread_cancel(). This was quite easy since those threads hold nearly no resources. Both can hold the multiplexer lock or a channel lock, but the receiver thread never holds any lock at the cancellation points, so no change was needed for this one. The sender thread however can be cancelled while blocking in a pthread_cond_timewait() call, holding the multiplexer mutex as expected, so it needs a cleanup routine, sender_cleanup() to unlock it, using the pthread_cleanup_push() and pthread_cleanup_pop() API. - Implement a mux_shutdown() function that will signal all the threads waiting for read or write on the open channels, close them, pthread_cancel() the appropriate threads and handle the error, if any. - Maintain a "closed" flag and call mux_shutdown() in mux_fini() if it's not closed already. - Have the sender and receiver threads call mux_shutdown() on error. - Remove the useless structs receiver_data and sender_data, and only pass a pointer to the socket to the threads. - Don't use static initializers for mutexes and condvars of the multiplexer, create them and destroy them in mux_init() and mux_fini(). With these changes to the multiplexer code, csup now longer stupidly hangs when it has been disconnected for instance. Revision Changes Path 1.24 +7 -4 projects/csup/misc.c 1.56 +167 -83 projects/csup/mux.c 1.5 +29 -8 projects/csup/threads.c From owner-cvs-projects@FreeBSD.ORG Tue Feb 7 07:40:57 2006 Return-Path: X-Original-To: cvs-projects@freebsd.org Delivered-To: cvs-projects@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E7C2616A420; Tue, 7 Feb 2006 07:40:57 +0000 (GMT) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45ABB43D48; Tue, 7 Feb 2006 07:40:56 +0000 (GMT) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.13.4/8.13.4) with ESMTP id k177etOY011483; Tue, 7 Feb 2006 10:40:55 +0300 (MSK) (envelope-from marck@rinet.ru) Date: Tue, 7 Feb 2006 10:40:55 +0300 (MSK) From: Dmitry Morozovsky To: Maxime Henrion In-Reply-To: <200602070400.k1740Uhe031750@repoman.freebsd.org> Message-ID: <20060207104034.I1493@woozle.rinet.ru> References: <200602070400.k1740Uhe031750@repoman.freebsd.org> X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (woozle.rinet.ru [0.0.0.0]); Tue, 07 Feb 2006 10:40:55 +0300 (MSK) Cc: projects-committers@freebsd.org, cvs-projects@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: projects/csup misc.c mux.c threads.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2006 07:40:58 -0000 On Tue, 7 Feb 2006, Maxime Henrion wrote: MH> mux 2006-02-07 04:00:30 UTC MH> MH> FreeBSD projects repository MH> MH> Modified files: MH> csup misc.c mux.c threads.c [snip] MH> With these changes to the multiplexer code, csup now longer stupidly MH> hangs when it has been disconnected for instance. s/now/no/ I suppose? ;-) Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ From owner-cvs-projects@FreeBSD.ORG Tue Feb 7 16:15:38 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C38D16A420; Tue, 7 Feb 2006 16:15:38 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF7EE43D46; Tue, 7 Feb 2006 16:15:37 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k17GFbNj085379; Tue, 7 Feb 2006 16:15:37 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k17GFbuD085378; Tue, 7 Feb 2006 16:15:37 GMT (envelope-from mux) Message-Id: <200602071615.k17GFbuD085378@repoman.freebsd.org> From: Maxime Henrion Date: Tue, 7 Feb 2006 16:15:37 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup mux.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2006 16:15:38 -0000 mux 2006-02-07 16:15:37 UTC FreeBSD projects repository Modified files: csup mux.c Log: Simplify code. Revision Changes Path 1.57 +7 -5 projects/csup/mux.c From owner-cvs-projects@FreeBSD.ORG Tue Feb 7 16:38:22 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 457D116A420; Tue, 7 Feb 2006 16:38:22 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 032AE43D46; Tue, 7 Feb 2006 16:38:22 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k17GcLwF086207; Tue, 7 Feb 2006 16:38:21 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k17GcLd9086206; Tue, 7 Feb 2006 16:38:21 GMT (envelope-from mux) Message-Id: <200602071638.k17GcLd9086206@repoman.freebsd.org> From: Maxime Henrion Date: Tue, 7 Feb 2006 16:38:21 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup mux.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2006 16:38:22 -0000 mux 2006-02-07 16:38:21 UTC FreeBSD projects repository Modified files: csup mux.c Log: Assert that the pthread_cancel() calls don't fail. Revision Changes Path 1.58 +6 -4 projects/csup/mux.c From owner-cvs-projects@FreeBSD.ORG Tue Feb 7 22:46:17 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 17BCF16A420; Tue, 7 Feb 2006 22:46:17 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C37AC43D45; Tue, 7 Feb 2006 22:46:16 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k17MkGfX018336; Tue, 7 Feb 2006 22:46:16 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k17MkGi0018335; Tue, 7 Feb 2006 22:46:16 GMT (envelope-from rwatson) Message-Id: <200602072246.k17MkGi0018335@repoman.freebsd.org> From: Robert Watson Date: Tue, 7 Feb 2006 22:46:16 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/trustedbsd/www developers.dev X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2006 22:46:17 -0000 rwatson 2006-02-07 22:46:16 UTC FreeBSD projects repository Modified files: trustedbsd/www developers.dev Log: Correct typo in sbahra e-mail address. Revision Changes Path 1.16 +2 -2 projects/trustedbsd/www/developers.dev From owner-cvs-projects@FreeBSD.ORG Wed Feb 8 15:40:05 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6371B16A423; Wed, 8 Feb 2006 15:40:05 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3476E43D60; Wed, 8 Feb 2006 15:40:02 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k18Fe2hq099597; Wed, 8 Feb 2006 15:40:02 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k18Fe2p7099588; Wed, 8 Feb 2006 15:40:02 GMT (envelope-from mux) Message-Id: <200602081540.k18Fe2p7099588@repoman.freebsd.org> From: Maxime Henrion Date: Wed, 8 Feb 2006 15:40:01 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup mux.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2006 15:40:05 -0000 mux 2006-02-08 15:40:01 UTC FreeBSD projects repository Modified files: csup mux.c Log: Fix a race condition in mux_fini() where we were checking the "closed" flag without holding the multiplexer lock, so it was possible to have two threads racing for the shutdown. Fix this by calling mux_shutdown() unconditionally in mux_fini() and by checking the closed flag in mux_shutdown() when we hold the multiplexer lock. Revision Changes Path 1.59 +7 -4 projects/csup/mux.c From owner-cvs-projects@FreeBSD.ORG Thu Feb 9 20:47:37 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9790616A420; Thu, 9 Feb 2006 20:47:37 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A1D9D43D77; Thu, 9 Feb 2006 20:47:31 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k19KlV7e039935; Thu, 9 Feb 2006 20:47:31 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k19KlV5a039934; Thu, 9 Feb 2006 20:47:31 GMT (envelope-from rwatson) Message-Id: <200602092047.k19KlV5a039934@repoman.freebsd.org> From: Robert Watson Date: Thu, 9 Feb 2006 20:47:31 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/trustedbsd/www robots.txt X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2006 20:47:37 -0000 rwatson 2006-02-09 20:47:31 UTC FreeBSD projects repository Added files: trustedbsd/www robots.txt Log: Add robots.txt for /downloads. Suggested by: christopher dot vance at sparta dot com Revision Changes Path 1.1 +2 -0 projects/trustedbsd/www/robots.txt (new) From owner-cvs-projects@FreeBSD.ORG Thu Feb 9 20:50:34 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B820416A420; Thu, 9 Feb 2006 20:50:34 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E5F543D55; Thu, 9 Feb 2006 20:50:23 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k19KoN25040198; Thu, 9 Feb 2006 20:50:23 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k19KoNuk040197; Thu, 9 Feb 2006 20:50:23 GMT (envelope-from rwatson) Message-Id: <200602092050.k19KoNuk040197@repoman.freebsd.org> From: Robert Watson Date: Thu, 9 Feb 2006 20:50:23 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/trustedbsd/www Makefile robots.txt X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2006 20:50:34 -0000 rwatson 2006-02-09 20:50:23 UTC FreeBSD projects repository Modified files: trustedbsd/www Makefile robots.txt Log: Install robots.txt with other data files. Tweak capitalization. Revision Changes Path 1.17 +2 -1 projects/trustedbsd/www/Makefile 1.2 +1 -1 projects/trustedbsd/www/robots.txt From owner-cvs-projects@FreeBSD.ORG Thu Feb 9 22:24:10 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E96116A420; Thu, 9 Feb 2006 22:24:10 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4671743D45; Thu, 9 Feb 2006 22:24:10 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k19MOA8Z046003; Thu, 9 Feb 2006 22:24:10 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k19MOA11046002; Thu, 9 Feb 2006 22:24:10 GMT (envelope-from mux) Message-Id: <200602092224.k19MOA11046002@repoman.freebsd.org> From: Maxime Henrion Date: Thu, 9 Feb 2006 22:24:10 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup attrstack.c stream.c threads.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2006 22:24:10 -0000 mux 2006-02-09 22:24:10 UTC FreeBSD projects repository Modified files: csup attrstack.c stream.c threads.c Log: - Use xrealloc() instead of realloc() in stream.c. - Better use of xrealloc() in attrstack.c. - Remove include of err.h in a few places where it's not needed anymore. Revision Changes Path 1.3 +2 -4 projects/csup/attrstack.c 1.50 +2 -6 projects/csup/stream.c 1.6 +1 -2 projects/csup/threads.c From owner-cvs-projects@FreeBSD.ORG Fri Feb 10 04:00:44 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2FF816A420; Fri, 10 Feb 2006 04:00:44 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57D0E43D46; Fri, 10 Feb 2006 04:00:44 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1A40ig9067815; Fri, 10 Feb 2006 04:00:44 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1A40ivC067814; Fri, 10 Feb 2006 04:00:44 GMT (envelope-from mux) Message-Id: <200602100400.k1A40ivC067814@repoman.freebsd.org> From: Maxime Henrion Date: Fri, 10 Feb 2006 04:00:43 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup main.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2006 04:00:44 -0000 mux 2006-02-10 04:00:43 UTC FreeBSD projects repository Modified files: csup main.c Log: - Remove a now useless O_NONBLOCK. - Don't try to close() lockfd if it's -1. Revision Changes Path 1.30 +4 -3 projects/csup/main.c From owner-cvs-projects@FreeBSD.ORG Fri Feb 10 17:03:26 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94C4B16A422; Fri, 10 Feb 2006 17:03:26 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 123FF43D48; Fri, 10 Feb 2006 17:03:26 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1AH3Pge030450; Fri, 10 Feb 2006 17:03:25 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1AH3POX030449; Fri, 10 Feb 2006 17:03:25 GMT (envelope-from mux) Message-Id: <200602101703.k1AH3POX030449@repoman.freebsd.org> From: Maxime Henrion Date: Fri, 10 Feb 2006 17:03:25 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup misc.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2006 17:03:26 -0000 mux 2006-02-10 17:03:25 UTC FreeBSD projects repository Modified files: csup misc.c Log: Optimize mkdirhier() by minimizing the number of calls to access() we do and avoiding to allocate a file attribute if no directory creation is needed. The previous version was horrible in that we were doing a lot of access() calls on average, which was bad since we call mkdirhier() once per updated file. Revision Changes Path 1.25 +37 -13 projects/csup/misc.c From owner-cvs-projects@FreeBSD.ORG Fri Feb 10 18:18:48 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C776716A420; Fri, 10 Feb 2006 18:18:48 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC9F343D62; Fri, 10 Feb 2006 18:18:47 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1AIIlbh033500; Fri, 10 Feb 2006 18:18:47 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1AIIlr9033499; Fri, 10 Feb 2006 18:18:47 GMT (envelope-from mux) Message-Id: <200602101818.k1AIIlr9033499@repoman.freebsd.org> From: Maxime Henrion Date: Fri, 10 Feb 2006 18:18:47 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup config.h detailer.c lister.c main.c mux.c mux.h proto.c stream.c stream.h updater.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2006 18:18:49 -0000 mux 2006-02-10 18:18:47 UTC FreeBSD projects repository Modified files: csup config.h detailer.c lister.c main.c mux.c mux.h proto.c stream.c stream.h updater.c Log: - Change the stream API so that a stream is associated with a void *, rather than with an int. This changes the type of the read/write/close functions of the stream API. - Have a stream_open_fd() function to replace stream_fdopen() and new convenience functions for handling file descriptors : stream_read_fd(), stream_write_fd() and stream_close_fd(). - Have stream_fileno() that will return the file descriptor associated with the stream or -1 if it's not associated with any. - There is now a stream_open() funtion which is the most generic way to open a stream, associating it with a void *. - Inspect the open() flags in stream_open_file() to only create the necessary buffers. - Automatically connect the channel 0 in mux_init(), like CVSup, and get rid of the now useless chan_open() function. - Create the channel if it doesn't exist in chan_get(). - Now that I can, change the multiplexer API so that chan_connect() and chan_accept() return a struct chan * and not an id. Thanks to this, we now don't pass an ID but a struct chan * to the following functions: chan_read(), chan_write(), chan_close() and chan_wait(). This means that for each of these functions, we now spare a mutex lock and unlock and also reduce contention on the multiplexer lock. - Because of the previous change, use the new stream_open() in the worker threads to bind the channel to the chan_read() and chan_write() functions. - Optimize the scheduling of the sender thread by restarting the scan at the last channel + 1. This avoids starving high id channels with low id channels. That's a quite successful hacking night :-). Revision Changes Path 1.29 +3 -2 projects/csup/config.h 1.38 +5 -3 projects/csup/detailer.c 1.23 +3 -2 projects/csup/lister.c 1.31 +5 -3 projects/csup/main.c 1.60 +65 -51 projects/csup/mux.c 1.20 +11 -10 projects/csup/mux.h 1.63 +21 -24 projects/csup/proto.c 1.51 +126 -27 projects/csup/stream.c 1.21 +15 -7 projects/csup/stream.h 1.69 +3 -2 projects/csup/updater.c From owner-cvs-projects@FreeBSD.ORG Fri Feb 10 23:06:37 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDEAB16A420; Fri, 10 Feb 2006 23:06:37 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4325E43D46; Fri, 10 Feb 2006 23:06:37 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1AN6btg054519; Fri, 10 Feb 2006 23:06:37 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1AN6bYx054518; Fri, 10 Feb 2006 23:06:37 GMT (envelope-from mux) Message-Id: <200602102306.k1AN6bYx054518@repoman.freebsd.org> From: Maxime Henrion Date: Fri, 10 Feb 2006 23:06:36 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup stream.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2006 23:06:37 -0000 mux 2006-02-10 23:06:36 UTC FreeBSD projects repository Modified files: csup stream.c Log: Handle the fact that any of the O_RDONLY, O_WRONLY and O_RDWR flags may actually be defined to 0, thus prevent to test for their presence with a simple binary AND. Under FreeBSD, O_RDONLY is 0 so we were easily triggering this problem. Revision Changes Path 1.52 +5 -4 projects/csup/stream.c From owner-cvs-projects@FreeBSD.ORG Sat Feb 11 01:17:05 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48CE716A420; Sat, 11 Feb 2006 01:17:05 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 044E943D45; Sat, 11 Feb 2006 01:17:05 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1B1H47a076896; Sat, 11 Feb 2006 01:17:04 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1B1H484076895; Sat, 11 Feb 2006 01:17:04 GMT (envelope-from mux) Message-Id: <200602110117.k1B1H484076895@repoman.freebsd.org> From: Maxime Henrion Date: Sat, 11 Feb 2006 01:17:04 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup stream.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2006 01:17:05 -0000 mux 2006-02-11 01:17:04 UTC FreeBSD projects repository Modified files: csup stream.c Log: Simplify the code to handle the file access mode in stream_open_file(). Since we have ANDed the flags value with O_ACCMODE, we can just use the == operator to test for the flags without needing any special handling in case one of the flags is defined to 0. Revision Changes Path 1.53 +10 -5 projects/csup/stream.c From owner-cvs-projects@FreeBSD.ORG Sat Feb 11 02:27:58 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF9CA16A420; Sat, 11 Feb 2006 02:27:58 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D67743D45; Sat, 11 Feb 2006 02:27:58 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1B2RwUT080286; Sat, 11 Feb 2006 02:27:58 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1B2RwC8080285; Sat, 11 Feb 2006 02:27:58 GMT (envelope-from mux) Message-Id: <200602110227.k1B2RwC8080285@repoman.freebsd.org> From: Maxime Henrion Date: Sat, 11 Feb 2006 02:27:58 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup mux.c mux.h proto.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2006 02:27:58 -0000 mux 2006-02-11 02:27:58 UTC FreeBSD projects repository Modified files: csup mux.c mux.h proto.c Log: Do something I've been wanting to do for a lot of time but couldn't before: remove all the global variables from the multiplexer code and have an opaque structure to hand to consumers, like for all the other APIs. This means that it is now possible to open several multiplexers on several sockets, which is needed if someone wants to code a csupd with this code. It is also less error-prone when we need to start a new multiplexer code after the previous run failed. It also allows me to have cool structure names! :-) To sum up: - The mux_init() function becomes mux_open() and returns a struct mux *. - The mux_fini() function becomes mux_close() and takes a struct mux *. - Several functions of the chan API take a struct mux * as a parameter too now. - And a lot of code churn in mux.c. Revision Changes Path 1.61 +196 -178 projects/csup/mux.c 1.21 +6 -5 projects/csup/mux.h 1.64 +28 -23 projects/csup/proto.c From owner-cvs-projects@FreeBSD.ORG Sat Feb 11 02:48:45 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13D7E16A42C; Sat, 11 Feb 2006 02:48:45 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9565443D48; Sat, 11 Feb 2006 02:48:44 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1B2miaq081766; Sat, 11 Feb 2006 02:48:44 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1B2mioU081765; Sat, 11 Feb 2006 02:48:44 GMT (envelope-from mux) Message-Id: <200602110248.k1B2mioU081765@repoman.freebsd.org> From: Maxime Henrion Date: Sat, 11 Feb 2006 02:48:44 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup config.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2006 02:48:45 -0000 mux 2006-02-11 02:48:44 UTC FreeBSD projects repository Modified files: csup config.c Log: Always set the "no rsync" option to the collections, since we don't support the rsync updating algorithm yet. Also add an XXX comment explaining this. I've never seen a CVSup server trying to send me rsync updates of files in checkout mode but better safe than sorry. Revision Changes Path 1.41 +3 -1 projects/csup/config.c From owner-cvs-projects@FreeBSD.ORG Sat Feb 11 04:13:44 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38AE116A420; Sat, 11 Feb 2006 04:13:44 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5B9343D45; Sat, 11 Feb 2006 04:13:43 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1B4Dh5R085723; Sat, 11 Feb 2006 04:13:43 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1B4DhPU085722; Sat, 11 Feb 2006 04:13:43 GMT (envelope-from mux) Message-Id: <200602110413.k1B4DhPU085722@repoman.freebsd.org> From: Maxime Henrion Date: Sat, 11 Feb 2006 04:13:43 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup mux.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2006 04:13:44 -0000 mux 2006-02-11 04:13:43 UTC FreeBSD projects repository Modified files: csup mux.c Log: Use a macro to make the code in receiver_loop() nicer. Revision Changes Path 1.62 +11 -19 projects/csup/mux.c From owner-cvs-projects@FreeBSD.ORG Sat Feb 11 18:32:09 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEA1A16A420; Sat, 11 Feb 2006 18:32:09 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90E2543D46; Sat, 11 Feb 2006 18:32:09 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1BIW9C2083753; Sat, 11 Feb 2006 18:32:09 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1BIW93M083752; Sat, 11 Feb 2006 18:32:09 GMT (envelope-from mux) Message-Id: <200602111832.k1BIW93M083752@repoman.freebsd.org> From: Maxime Henrion Date: Sat, 11 Feb 2006 18:32:09 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup keyword.c keyword.h misc.h proto.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2006 18:32:09 -0000 mux 2006-02-11 18:32:09 UTC FreeBSD projects repository Modified files: csup keyword.c keyword.h misc.h proto.c Log: - Rewrite handling of RCS keywords/aliases so that it works as intended. - Fix the keyword API so that a newly created keyword object has all the default RCS tags enabled. - Add a keyword_prepare() function to purge the disabled keywords from the list and compute the minimum and maximum length of a keyword, used as an optimisation in keyword_expand(). It might be interesting to have a hash table of the keywords to further optimize some day. - Use keyword_prepare() when done with the KEYALIAS, KEYON and KEYOFF commands. With the second fix, I can update files from an OpenBSD CVSup server without crashing. Revision Changes Path 1.25 +63 -59 projects/csup/keyword.c 1.8 +5 -4 projects/csup/keyword.h 1.22 +2 -1 projects/csup/misc.h 1.65 +2 -1 projects/csup/proto.c From owner-cvs-projects@FreeBSD.ORG Sat Feb 11 19:09:29 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2E2016A420; Sat, 11 Feb 2006 19:09:28 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFE9143D49; Sat, 11 Feb 2006 19:09:28 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1BJ9S0t085361; Sat, 11 Feb 2006 19:09:28 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1BJ9SZe085360; Sat, 11 Feb 2006 19:09:28 GMT (envelope-from mux) Message-Id: <200602111909.k1BJ9SZe085360@repoman.freebsd.org> From: Maxime Henrion Date: Sat, 11 Feb 2006 19:09:28 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup fattr.c fattr.h updater.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2006 19:09:29 -0000 mux 2006-02-11 19:09:28 UTC FreeBSD projects repository Modified files: csup fattr.c fattr.h updater.c Log: - Implement fattr_delete(). - Use fattr_delete() in the updater when asked to delete a file. This makes us correctly handle deletion requests for directories. - Fix an error message. Revision Changes Path 1.33 +27 -1 projects/csup/fattr.c 1.22 +2 -1 projects/csup/fattr.h 1.70 +3 -3 projects/csup/updater.c From owner-cvs-projects@FreeBSD.ORG Sat Feb 11 19:15:04 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6A6216A420; Sat, 11 Feb 2006 19:15:04 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8504B43D45; Sat, 11 Feb 2006 19:15:04 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1BJF4wY085635; Sat, 11 Feb 2006 19:15:04 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1BJF4Bf085634; Sat, 11 Feb 2006 19:15:04 GMT (envelope-from mux) Message-Id: <200602111915.k1BJF4Bf085634@repoman.freebsd.org> From: Maxime Henrion Date: Sat, 11 Feb 2006 19:15:03 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup updater.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2006 19:15:04 -0000 mux 2006-02-11 19:15:03 UTC FreeBSD projects repository Modified files: csup updater.c Log: Return from updater_delete() when fattr_delete() failed, no need to try to remove the ancestor directories. Revision Changes Path 1.71 +4 -2 projects/csup/updater.c From owner-cvs-projects@FreeBSD.ORG Sat Feb 11 19:20:34 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C97916A420; Sat, 11 Feb 2006 19:20:34 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C2BE43D48; Sat, 11 Feb 2006 19:20:34 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1BJKYMq086031; Sat, 11 Feb 2006 19:20:34 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1BJKY2V086030; Sat, 11 Feb 2006 19:20:34 GMT (envelope-from mux) Message-Id: <200602111920.k1BJKY2V086030@repoman.freebsd.org> From: Maxime Henrion Date: Sat, 11 Feb 2006 19:20:34 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup fattr.c X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2006 19:20:34 -0000 mux 2006-02-11 19:20:34 UTC FreeBSD projects repository Modified files: csup fattr.c Log: Plug a memory leak in fattr_delete(). Revision Changes Path 1.34 +2 -1 projects/csup/fattr.c From owner-cvs-projects@FreeBSD.ORG Sat Feb 11 19:27:15 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B3D3616A420; Sat, 11 Feb 2006 19:27:15 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7134243D48; Sat, 11 Feb 2006 19:27:15 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1BJRFKM086363; Sat, 11 Feb 2006 19:27:15 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1BJRFv5086362; Sat, 11 Feb 2006 19:27:15 GMT (envelope-from mux) Message-Id: <200602111927.k1BJRFv5086362@repoman.freebsd.org> From: Maxime Henrion Date: Sat, 11 Feb 2006 19:27:15 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup keyword.h X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2006 19:27:15 -0000 mux 2006-02-11 19:27:15 UTC FreeBSD projects repository Modified files: csup keyword.h Log: Update copyright for 2006. Revision Changes Path 1.9 +2 -2 projects/csup/keyword.h From owner-cvs-projects@FreeBSD.ORG Sat Feb 11 19:28:58 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E03516A420; Sat, 11 Feb 2006 19:28:58 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A22A43D45; Sat, 11 Feb 2006 19:28:58 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1BJSwen086474; Sat, 11 Feb 2006 19:28:58 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1BJSwhG086473; Sat, 11 Feb 2006 19:28:58 GMT (envelope-from mux) Message-Id: <200602111928.k1BJSwhG086473@repoman.freebsd.org> From: Maxime Henrion Date: Sat, 11 Feb 2006 19:28:58 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup fattr.c fattr.h X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2006 19:28:58 -0000 mux 2006-02-11 19:28:58 UTC FreeBSD projects repository Modified files: csup fattr.c fattr.h Log: More copyright updates for 2006. Revision Changes Path 1.35 +2 -2 projects/csup/fattr.c 1.23 +2 -2 projects/csup/fattr.h From owner-cvs-projects@FreeBSD.ORG Sat Feb 11 23:23:22 2006 Return-Path: X-Original-To: cvs-projects@FreeBSD.org Delivered-To: cvs-projects@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC68916A420; Sat, 11 Feb 2006 23:23:22 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B52543D48; Sat, 11 Feb 2006 23:23:16 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1BNNG5q009027; Sat, 11 Feb 2006 23:23:16 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1BNNGr1009026; Sat, 11 Feb 2006 23:23:16 GMT (envelope-from rwatson) Message-Id: <200602112323.k1BNNGr1009026@repoman.freebsd.org> From: Robert Watson Date: Sat, 11 Feb 2006 23:23:16 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/trustedbsd/www mailinglists.page X-BeenThere: cvs-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the projects tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2006 23:23:23 -0000 rwatson 2006-02-11 23:23:16 UTC FreeBSD projects repository Modified files: trustedbsd/www mailinglists.page Log: Update TrustedBSD mailing list page to reflect move of TrustedBSD.org mailing list hosting to lists.FreeBSD.org. Add links for web archives. Thanks to: David Wolfskill Revision Changes Path 1.6 +22 -17 projects/trustedbsd/www/mailinglists.page