summaryrefslogtreecommitdiff
path: root/man5
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2013-06-27 01:34:57 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2013-06-27 01:57:03 +0200
commitf75715e003dff268f3927a729a510ef368535c97 (patch)
treeff71ff18c3e9bf12647f59c5c27d87776181c910 /man5
parentd4529654b2e1fc9e3d6f162b18a539f73db9db71 (diff)
proc.5: Tweaks to Mike Frysinger's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man5')
-rw-r--r--man5/proc.517
1 files changed, 11 insertions, 6 deletions
diff --git a/man5/proc.5 b/man5/proc.5
index e2478995..9a8265d2 100644
--- a/man5/proc.5
+++ b/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