From owner-svn-src-all@FreeBSD.ORG Sat Feb 12 17:57:57 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58CEE106566B; Sat, 12 Feb 2011 17:57:57 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2DF2C8FC15; Sat, 12 Feb 2011 17:57:57 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p1CHvu0b009871; Sat, 12 Feb 2011 17:57:56 GMT (envelope-from gjb@svn.freebsd.org) Received: (from gjb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p1CHvuQv009868; Sat, 12 Feb 2011 17:57:56 GMT (envelope-from gjb@svn.freebsd.org) Message-Id: <201102121757.p1CHvuQv009868@svn.freebsd.org> From: Glen Barber Date: Sat, 12 Feb 2011 17:57:56 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r218614 - stable/8/share/man/man5 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Feb 2011 17:57:57 -0000 Author: gjb (doc committer) Date: Sat Feb 12 17:57:56 2011 New Revision: 218614 URL: http://svn.freebsd.org/changeset/base/218614 Log: MFC 212827, 217717: Note that devfs(5) and fdescfs(5) both create /dev/fd file descriptors. PR: 144534 Approved by: keramida (mentor) Modified: stable/8/share/man/man5/devfs.5 stable/8/share/man/man5/fdescfs.5 Directory Properties: stable/8/share/man/man5/ (props changed) Modified: stable/8/share/man/man5/devfs.5 ============================================================================== --- stable/8/share/man/man5/devfs.5 Sat Feb 12 16:33:00 2011 (r218613) +++ stable/8/share/man/man5/devfs.5 Sat Feb 12 17:57:56 2011 (r218614) @@ -38,7 +38,7 @@ .\" .\" $FreeBSD$ .\" -.Dd May 30, 2010 +.Dd September 18, 2010 .Dt DEVFS 5 .Os .Sh NAME @@ -69,6 +69,27 @@ The .Xr mknod 8 tool can be used to recover deleted device entries under .Nm . +.Pp +The +.Xr fdescfs 5 +filesystem is an alternate means for populating +.Pa /dev/fd . +The character devices that both +.Nm +and +.Xr fdescfs 5 +present in +.Pa /dev/fd +correspond to the open file descriptors of the process +accessing the directory. +.Nm +only creates files for the standard file descriptors +.Pa 0 , +.Pa 1 +and +.Pa 2 . +.Xr fdescfs 5 +creates files for all open descriptors. .Sh FILES .Bl -tag -width /dev/XXXX -compact .It Pa /dev @@ -84,6 +105,7 @@ volume located on .Pp .Dl "mount -t devfs devfs /mychroot/dev" .Sh SEE ALSO +.Xr fdescfs 5 , .Xr devfs 8 , .Xr mount 8 .Sh HISTORY Modified: stable/8/share/man/man5/fdescfs.5 ============================================================================== --- stable/8/share/man/man5/fdescfs.5 Sat Feb 12 16:33:00 2011 (r218613) +++ stable/8/share/man/man5/fdescfs.5 Sat Feb 12 17:57:56 2011 (r218614) @@ -38,7 +38,7 @@ .\" .\" $FreeBSD$ .\" -.Dd December 14, 1996 +.Dd September 18, 2010 .Dt FDESCFS 5 .Os .Sh NAME @@ -87,6 +87,19 @@ call other than and .Dv O_RDWR are ignored. +.Pp +.Em "Note:" +.Pa /dev/fd/0 , +.Pa /dev/fd/1 +and +.Pa /dev/fd/2 +files are created by default when devfs alone is mounted. +.Nm +creates entries for all file descriptors opened by the process. +.Sh FILES +.Bl -tag -width /dev/stderr -compact +.It Pa /dev/fd/# +.El .Sh EXAMPLES To mount a .Nm @@ -94,11 +107,8 @@ volume located on .Pa /dev/fd : .Pp .Dl "mount -t fdescfs null /dev/fd" -.Sh FILES -.Bl -tag -width /dev/stderr -compact -.It Pa /dev/fd/# -.El .Sh SEE ALSO +.Xr devfs 5 , .Xr mount 8 .Sh HISTORY The