Date: Tue, 14 Dec 2004 07:20:03 +0000 (UTC) From: Poul-Henning Kamp <phk@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys filedesc.h src/sys/kern kern_descrip.c kern_exec.c kern_fork.c Message-ID: <200412140720.iBE7K4nt016295@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412140720.iBE7K4nt016295>