Debian Codegraph @

templates/man5/proc_pid_fd.5.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:36+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "proc_pid_fd"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "/proc/pid/fd/ - file descriptors"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "DESCRIPTION"
57 msgstr ""
58
59 #. type: TP
60 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
61 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
62 #, no-wrap
63 msgid "I</proc/>pidI</fd/>"
64 msgstr ""
65
66 #. type: Plain text
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 msgid ""
70 "This is a subdirectory containing one entry for each file which the process "
71 "has open, named by its file descriptor, and which is a symbolic link to the "
72 "actual file. Thus, 0 is standard input, 1 standard output, 2 standard "
73 "error, and so on."
74 msgstr ""
75
76 #. type: Plain text
77 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
78 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
79 msgid ""
80 "For file descriptors for pipes and sockets, the entries will be symbolic "
81 "links whose content is the file type with the inode. A B<readlink>(2) call "
82 "on this file returns a string in the format:"
83 msgstr ""
84
85 #. type: Plain text
86 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
87 #: opensuse-leap-16-1 opensuse-tumbleweed
88 #, no-wrap
89 msgid "I<type>:[I<inode>]\n"
90 msgstr ""
91
92 #. type: Plain text
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 msgid ""
96 "For example, I<socket:[2248868]> will be a socket and its inode is 2248868. "
97 "For sockets, that inode can be used to find more information in one of the "
98 "files under I</proc/net/>."
99 msgstr ""
100
101 #. type: Plain text
102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
104 msgid ""
105 "For file descriptors that have no corresponding inode (e.g., file "
106 "descriptors produced by B<bpf>(2), B<epoll_create>(2), B<eventfd>(2), "
107 "B<inotify_init>(2), B<perf_event_open>(2), B<signalfd>(2), "
108 "B<timerfd_create>(2), and B<userfaultfd>(2)), the entry will be a symbolic "
109 "link with contents of the form"
110 msgstr ""
111
112 #. type: Plain text
113 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
114 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
115 #, no-wrap
116 msgid "anon_inode:I<file-type>\n"
117 msgstr ""
118
119 #. type: Plain text
120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
122 msgid ""
123 "In many cases (but not all), the I<file-type> is surrounded by square "
124 "brackets."
125 msgstr ""
126
127 #. type: Plain text
128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
130 msgid ""
131 "For example, an epoll file descriptor will have a symbolic link whose "
132 "content is the string I<anon_inode:[eventpoll]>."
133 msgstr ""
134
135 #. The following was still true as at kernel 2.6.13
136 #. type: Plain text
137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
139 msgid ""
140 "In a multithreaded process, the contents of this directory are not available "
141 "if the main thread has already terminated (typically by calling "
142 "B<pthread_exit>(3))."
143 msgstr ""
144
145 #. type: Plain text
146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
148 msgid ""
149 "Programs that take a filename as a command-line argument, but don't take "
150 "input from standard input if no argument is supplied, and programs that "
151 "write to a file named as a command-line argument, but don't send their "
152 "output to standard output if no argument is supplied, can nevertheless be "
153 "made to use standard input or standard output by using I</proc/>pidI</fd> "
154 "files as command-line arguments. For example, assuming that I<-i> is the "
155 "flag designating an input file and I<-o> is the flag designating an output "
156 "file:"
157 msgstr ""
158
159 #. type: Plain text
160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
162 #, no-wrap
163 msgid "$B< foobar -i /proc/self/fd/0 -o /proc/self/fd/1 ...>\n"
164 msgstr ""
165
166 #. The following is not true in my tests (MTK):
167 #. Note that this will not work for
168 #. programs that seek on their files, as the files in the fd directory
169 #. are not seekable.
170 #. type: Plain text
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 msgid "and you have a working filter."
174 msgstr ""
175
176 #. type: Plain text
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 msgid ""
180 "I</proc/self/fd/N> is approximately the same as I</dev/fd/N> in some UNIX "
181 "and UNIX-like systems. Most Linux MAKEDEV scripts symbolically link I</dev/"
182 "fd> to I</proc/self/fd>, in fact."
183 msgstr ""
184
185 #. type: Plain text
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 msgid ""
189 "Most systems provide symbolic links I</dev/stdin>, I</dev/stdout>, and I</"
190 "dev/stderr>, which respectively link to the files I<0>, I<1>, and I<2> in I</"
191 "proc/self/fd>. Thus the example command above could be written as:"
192 msgstr ""
193
194 #. type: Plain text
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 #, no-wrap
198 msgid "$B< foobar -i /dev/stdin -o /dev/stdout ...>\n"
199 msgstr ""
200
201 #. type: Plain text
202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
204 msgid ""
205 "Permission to dereference or read (B<readlink>(2)) the symbolic links in "
206 "this directory is governed by a ptrace access mode "
207 "B<PTRACE_MODE_READ_FSCREDS> check; see B<ptrace>(2)."
208 msgstr ""
209
210 #. type: Plain text
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 msgid ""
214 "Note that for file descriptors referring to inodes (pipes and sockets, see "
215 "above), those inodes still have permission bits and ownership information "
216 "distinct from those of the I</proc/>pidI</fd> entry, and that the owner may "
217 "differ from the user and group IDs of the process. An unprivileged process "
218 "may lack permissions to open them, as in this example:"
219 msgstr ""
220
221 #. type: Plain text
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 #, no-wrap
225 msgid ""
226 "$B< echo test | sudo -u nobody cat>\n"
227 "test\n"
228 "$B< echo test | sudo -u nobody cat /proc/self/fd/0>\n"
229 "cat: /proc/self/fd/0: Permission denied\n"
230 msgstr ""
231
232 #. type: Plain text
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 msgid ""
236 "File descriptor 0 refers to the pipe created by the shell and owned by that "
237 "shell's user, which is not I<nobody>, so B<cat> does not have permission to "
238 "create a new file descriptor to read from that inode, even though it can "
239 "still read from its existing file descriptor 0."
240 msgstr ""
241
242 #. type: SH
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 #, no-wrap
246 msgid "SEE ALSO"
247 msgstr ""
248
249 #. type: Plain text
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 msgid "B<proc>(5)"
253 msgstr ""
254
255 #. type: TH
256 #: debian-trixie
257 #, no-wrap
258 msgid "2024-05-02"
259 msgstr ""
260
261 #. type: TH
262 #: debian-trixie
263 #, no-wrap
264 msgid "Linux man-pages 6.9.1"
265 msgstr ""
266
267 #. type: Plain text
268 #: debian-trixie
269 #, no-wrap
270 msgid "type:[inode]\n"
271 msgstr ""
272
273 #. type: TH
274 #: fedora-44 fedora-rawhide
275 #, no-wrap
276 msgid "2024-11-17"
277 msgstr ""
278
279 #. type: TH
280 #: fedora-44 fedora-rawhide
281 #, no-wrap
282 msgid "Linux man-pages 6.13"
283 msgstr ""
284
285 #. type: TH
286 #: mageia-cauldron
287 #, no-wrap
288 msgid "Linux man-pages 6.17"
289 msgstr ""
290
291 #. type: TH
292 #: opensuse-leap-16-1 opensuse-tumbleweed
293 #, no-wrap
294 msgid "Linux man-pages (unreleased)"
295 msgstr ""