From f75715e003dff268f3927a729a510ef368535c97 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 27 Jun 2013 01:34:57 +0200 Subject: [PATCH] proc.5: Tweaks to Mike Frysinger's patch Signed-off-by: Michael Kerrisk --- man5/proc.5 | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/man5/proc.5 b/man5/proc.5 index e2478995c..9a8265d2c 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