fdescfs man page on FreeBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
FreeBSD logo
[printable version]

FDESCFS(5)		    BSD File Formats Manual		    FDESCFS(5)

NAME
     fdescfs — file-descriptor file system

SYNOPSIS
     fdescfs /dev/fd fdescfs rw 0 0

DESCRIPTION
     The file-descriptor file system, or fdescfs, provides access to the per-
     process 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 cor‐
     respond 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 exist‐
     ing 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.

EXAMPLES
     To mount a fdescfs volume located on /dev/fd:

	   mount -t fdescfs null /dev/fd

FILES
     /dev/fd/#

SEE ALSO
     mount(8)

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

AUTHORS
     The fdescfs manual page was written by Mike Pritchard ⟨mpp@FreeBSD.org⟩,
     and was based on the manual page written by Jan-Simon Pendry.

BSD			       December 14, 1996			   BSD
[top]

List of man pages available for FreeBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net