diff options
Diffstat (limited to 'man5/proc_pid_fd.5')
-rw-r--r-- | man5/proc_pid_fd.5 | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/man5/proc_pid_fd.5 b/man5/proc_pid_fd.5 index 2e3341ad8..67f98768b 100644 --- a/man5/proc_pid_fd.5 +++ b/man5/proc_pid_fd.5 @@ -19,7 +19,7 @@ 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) +.MR readlink 2 call on this file returns a string in the format: .IP .in +4n @@ -37,15 +37,15 @@ in one of the files under .IP For file descriptors that have no corresponding inode (e.g., file descriptors produced by -.BR bpf (2), -.BR epoll_create (2), -.BR eventfd (2), -.BR inotify_init (2), -.BR perf_event_open (2), -.BR signalfd (2), -.BR timerfd_create (2), +.MR bpf 2 , +.MR epoll_create 2 , +.MR eventfd 2 , +.MR inotify_init 2 , +.MR perf_event_open 2 , +.MR signalfd 2 , +.MR timerfd_create 2 , and -.BR userfaultfd (2)), +.MR userfaultfd 2 ), the entry will be a symbolic link with contents of the form .IP .in +4n @@ -66,7 +66,7 @@ whose content is the string In a multithreaded process, the contents of this directory are not available if the main thread has already terminated (typically by calling -.BR pthread_exit (3)). +.MR pthread_exit 3 ). .IP Programs that take a filename as a command-line argument, but don't take input from standard input if no argument is supplied, @@ -125,11 +125,12 @@ Thus the example command above could be written as: .in .IP Permission to dereference or read -.RB ( readlink (2)) +\%(\c +.MR readlink 2 ) the symbolic links in this directory is governed by a ptrace access mode .B PTRACE_MODE_READ_FSCREDS check; see -.BR ptrace (2). +.MR ptrace 2 . .IP Note that for file descriptors referring to inodes (pipes and sockets, see above), @@ -158,4 +159,4 @@ does not have permission to create a new file descriptor to read from that inode, even though it can still read from its existing file descriptor 0. .SH SEE ALSO -.BR proc (5) +.MR proc 5 |