From owner-cvs-all@FreeBSD.ORG Tue Dec 14 07:20:05 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6705C16A4D1; Tue, 14 Dec 2004 07:20:05 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DE5843D2F; Tue, 14 Dec 2004 07:20:05 +0000 (GMT) (envelope-from phk@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 iBE7K4mQ016296; Tue, 14 Dec 2004 07:20:05 GMT (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iBE7K4nt016295; Tue, 14 Dec 2004 07:20:04 GMT (envelope-from phk) Message-Id: <200412140720.iBE7K4nt016295@repoman.freebsd.org> From: Poul-Henning Kamp Date: Tue, 14 Dec 2004 07:20:03 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/sys filedesc.h src/sys/kern kern_descrip.c kern_exec.c kern_fork.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2004 07:20:05 -0000 phk 2004-12-14 07:20:03 UTC FreeBSD src repository Modified files: sys/sys filedesc.h sys/kern kern_descrip.c kern_exec.c kern_fork.c Log: Add new function fdunshare() which encapsulates the necessary light magic for ensuring that a process' filedesc is not shared with anybody. Use it in the two places which previously had private implmentations. This collects all fd_refcnt handling in kern_descrip.c Revision Changes Path 1.266 +19 -0 src/sys/kern/kern_descrip.c 1.260 +1 -10 src/sys/kern/kern_exec.c 1.248 +2 -12 src/sys/kern/kern_fork.c 1.67 +1 -0 src/sys/sys/filedesc.h