Query: fdescfs
OS: freebsd
Section: 5
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
FDESCFS(5) BSD File Formats Manual FDESCFS(5)NAMEfdescfs -- file-descriptor file systemSYNOPSISfdescfs /dev/fd fdescfs rw 0 0DESCRIPTIONThe file-descriptor file system, or fdescfs, provides access to the per-process file descriptor namespace in the global file system names- pace. 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. Note: /dev/fd/0, /dev/fd/1 and /dev/fd/2 files are created by default when devfs alone is mounted. fdescfs creates entries for all file descriptors opened by the process.FILES/dev/fd/#EXAMPLESTo mount a fdescfs volume located on /dev/fd: mount -t fdescfs null /dev/fdSEE ALSOdevfs(5), mount(8)HISTORYThe fdescfs file system first appeared in 4.4BSD. The fdescfs manual page first appeared in FreeBSD 2.2.AUTHORSThe fdescfs manual page was written by Mike Pritchard <mpp@FreeBSD.org>, and was based on the manual page written by Jan-Simon Pendry.BSDSeptember 18, 2010 BSD
Related Man Pages |
---|
stdin(4) - debian |
stdout(4) - debian |
mount_fdesc(8) - opendarwin |
mount_fdesc(8) - netbsd |
stdout(4) - freebsd |
Similar Topics in the Unix Linux Community |
---|
/dev/null 2>&1 question |
Dev9 1 (Default branch) |
help with sorting files |
Process to use open files |
Housekeeping null 2>&1 in /dev |