*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> fdescfs (5)              
Title
Content
Arch
Section
 

FDESCFS(5)

Contents


NAME    [Toc]    [Back]

     fdescfs -- file-descriptor file system

SYNOPSIS    [Toc]    [Back]

     fdescfs   /dev/fd	 fdescfs rw 0 0

DESCRIPTION    [Toc]    [Back]

     The file-descriptor file system, or fdescfs, provides access to the perprocess
 file descriptor namespace in the global file system namespace.
     The conventional mount point is /dev/fd.

     The file system's contents appear as a list of numbered files which correspond
 to the open files of the process reading the directory.  The
     files /dev/fd/0 through /dev/fd/# refer to file descriptors which can be
     accessed through the file system.	If the file descriptor is open and the
     mode the file is being opened with is a subset of the mode of the existing
 descriptor, the call:

	   fd = open("/dev/fd/0", mode);

     and the call:

	   fd = fcntl(0, F_DUPFD, 0);

     are equivalent.

     Flags to the open(2) call other than O_RDONLY, O_WRONLY and O_RDWR are
     ignored.

FILES    [Toc]    [Back]

     /dev/fd/#

SEE ALSO    [Toc]    [Back]

      
      
     mount_devfs(8), mount_fdescfs(8)

HISTORY    [Toc]    [Back]

     The fdescfs file system first appeared in 4.4BSD.	The fdescfs manual
     page first appeared in FreeBSD 2.2.

AUTHORS    [Toc]    [Back]

     The fdescfs manual page was written by Mike Pritchard <mpp@FreeBSD.org>,
     and was based on the mount_fdescfs(8) manual page written by Jan-Simon
     Pendry.


FreeBSD 5.2.1		       December 14, 1996		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
fattach Tru64 Attach a STREAMS-based file descriptor to a file in the file system name space
fdetach Tru64 Detach a STREAMS-based file descriptor from a file in the file system name space
endfsent OpenBSD get file system descriptor file entry
getfstype OpenBSD get file system descriptor file entry
getfsspec OpenBSD get file system descriptor file entry
getfsent NetBSD get file system descriptor file entry
setfsent OpenBSD get file system descriptor file entry
getfsfile OpenBSD get file system descriptor file entry
getmntent Linux get file system descriptor file entry
mount_fdesc OpenBSD mount the file-descriptor file system
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service