mirror of https://github.com/mkerrisk/man-pages
proc.5: Tweaks to Mike Frysinger's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
d4529654b2
commit
f75715e003
17
man5/proc.5
17
man5/proc.5
|
@ -59,7 +59,7 @@
|
|||
.\" to see what information could be imported from that file
|
||||
.\" into this file.
|
||||
.\"
|
||||
.TH PROC 5 2013-04-17 "Linux" "Linux Programmer's Manual"
|
||||
.TH PROC 5 2013-06-27 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
proc \- process information pseudo-file system
|
||||
.SH DESCRIPTION
|
||||
|
@ -226,15 +226,20 @@ process has open, named by its file descriptor, and which is a
|
|||
symbolic link to the actual file.
|
||||
Thus, 0 is standard input, 1 standard output, 2 standard error, etc.
|
||||
|
||||
For fds open to non-files, they will be symlinks to the type with the inode.
|
||||
For file descriptors for pipes and sockets,
|
||||
the entries will be symbolic links whose content is the
|
||||
file type with the inode.
|
||||
A
|
||||
.BR readlink (2)
|
||||
call on this file returns a string in the format:
|
||||
.br
|
||||
|
||||
type:[inode]
|
||||
.br
|
||||
For example, socket:[2248868] will be a socket and its inode is 2248868.
|
||||
For sockets, that inode can be used to find more info in one of the files under
|
||||
|
||||
For example,
|
||||
.I socket:[2248868]
|
||||
will be a socket and its inode is 2248868.
|
||||
For sockets, that inode can be used to find more information
|
||||
in one of the files under
|
||||
.IR /proc/net/ .
|
||||
|
||||
.\"The following was still true as at kernel 2.6.13
|
||||
|
|
Loading…
Reference in New Issue