All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Kerrisk <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Mike Frysinger <vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
Cc: Michael Kerrisk
	<mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] proc(5): document /proc/[pid]/fd/ symlinks a bit more
Date: Thu, 27 Jun 2013 01:58:33 +0200	[thread overview]
Message-ID: <51CB8029.2010706@gmail.com> (raw)
In-Reply-To: <1371230352-15529-1-git-send-email-vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>

On 06/14/13 19:19, Mike Frysinger wrote:
> This covers the type:[inode] syntax used in this dir.

Thanks, Mike. I've applied this, with some tweaks. See the 
version in Git.

Cheers,

Michael


> Signed-off-by: Mike Frysinger <vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
> ---
>  man5/proc.5 | 15 +++++++++++++--
>  1 file changed, 13 insertions(+), 2 deletions(-)
> 
> diff --git a/man5/proc.5 b/man5/proc.5
> index 5ecdd87..05675b2 100644
> --- a/man5/proc.5
> +++ b/man5/proc.5
> @@ -220,13 +220,24 @@ with the
>  .I \-inum
>  option can be used to locate the file.
>  .TP
> -.I /proc/[pid]/fd
> +.I /proc/[pid]/fd/
>  This is a subdirectory containing one entry for each file which the
>  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.
>  
> -.\" The following was still true as at kernel 2.6.13
> +For fds open to non-files, they will be symlinks to the 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
> +.IR /proc/net/ .
> +
> +.\"The following was still true as at kernel 2.6.13
>  In a multithreaded process, the contents of this directory
>  are not available if the main thread has already terminated
>  (typically by calling
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      parent reply	other threads:[~2013-06-26 23:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-14 17:19 [PATCH] proc(5): document /proc/[pid]/fd/ symlinks a bit more Mike Frysinger
     [not found] ` <1371230352-15529-1-git-send-email-vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2013-06-26 23:58   ` Michael Kerrisk [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51CB8029.2010706@gmail.com \
    --to=mtk.manpages-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.