Debian Codegraph @

templates/man2/execveat.2.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:23+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 "execveat"
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 "execveat - execute program relative to a directory file descriptor"
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 "LIBRARY"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>)"
63 msgstr ""
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr ""
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid ""
77 "B<#include E<lt>linux/fcntl.hE<gt>> /* Definition of B<AT_*> constants */\n"
78 "B<#include E<lt>unistd.hE<gt>>\n"
79 msgstr ""
80
81 #. type: Plain text
82 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
83 #: opensuse-tumbleweed
84 #, no-wrap
85 msgid ""
86 "B<int execveat(int >I<dirfd>B<, const char *>I<path>B<,>\n"
87 "B< char *const _Nullable >I<argv>B<[],>\n"
88 "B< char *const _Nullable >I<envp>B<[],>\n"
89 "B< int >I<flags>B<);>\n"
90 msgstr ""
91
92 #. type: SH
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 #, no-wrap
96 msgid "DESCRIPTION"
97 msgstr ""
98
99 #. commit 51f39a1f0cea1cacf8c787f652f26dfee9611874
100 #. type: Plain text
101 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
102 #: opensuse-tumbleweed
103 msgid ""
104 "The B<execveat>() system call executes the program referred to by the "
105 "combination of I<dirfd> and I<path>. It operates in exactly the same way as "
106 "B<execve>(2), except for the differences described in this manual page."
107 msgstr ""
108
109 #. type: Plain text
110 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
111 #: opensuse-tumbleweed
112 msgid ""
113 "If I<path> is relative, then it is interpreted relative to the directory "
114 "referred to by the file descriptor I<dirfd> (rather than relative to the "
115 "current working directory of the calling process, as is done by "
116 "B<execve>(2) for a relative pathname)."
117 msgstr ""
118
119 #. type: Plain text
120 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
121 #: opensuse-tumbleweed
122 msgid ""
123 "If I<path> is relative and I<dirfd> is the special value B<AT_FDCWD>, then "
124 "I<path> is interpreted relative to the current working directory of the "
125 "calling process (like B<execve>(2))."
126 msgstr ""
127
128 #. type: Plain text
129 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
130 #: opensuse-tumbleweed
131 msgid "If I<path> is absolute, then I<dirfd> is ignored."
132 msgstr ""
133
134 #. type: Plain text
135 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
136 #: opensuse-tumbleweed
137 msgid ""
138 "If I<path> is an empty string and the B<AT_EMPTY_PATH> flag is specified, "
139 "then the file descriptor I<dirfd> specifies the file to be executed (i.e., "
140 "I<dirfd> refers to an executable file, rather than a directory)."
141 msgstr ""
142
143 #. type: Plain text
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 msgid ""
147 "The I<flags> argument is a bit mask that can include zero or more of the "
148 "following flags:"
149 msgstr ""
150
151 #. type: TP
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 #, no-wrap
155 msgid "B<AT_EMPTY_PATH>"
156 msgstr ""
157
158 #. type: Plain text
159 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
160 #: opensuse-tumbleweed
161 msgid ""
162 "If I<path> is an empty string, operate on the file referred to by I<dirfd> "
163 "(which may have been obtained using the B<open>(2) B<O_PATH> flag)."
164 msgstr ""
165
166 #. type: TP
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 #, no-wrap
170 msgid "B<AT_SYMLINK_NOFOLLOW>"
171 msgstr ""
172
173 #. type: Plain text
174 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
175 #: opensuse-tumbleweed
176 msgid ""
177 "If the file identified by I<dirfd> and a non-NULL I<path> is a symbolic "
178 "link, then the call fails with the error B<ELOOP>."
179 msgstr ""
180
181 #. type: SH
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 #, no-wrap
185 msgid "RETURN VALUE"
186 msgstr ""
187
188 #. type: Plain text
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 msgid ""
192 "On success, B<execveat>() does not return. On error, -1 is returned, and "
193 "I<errno> is set to indicate the error."
194 msgstr ""
195
196 #. type: SH
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 #, no-wrap
200 msgid "ERRORS"
201 msgstr ""
202
203 #. type: Plain text
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 msgid ""
207 "The same errors that occur for B<execve>(2) can also occur for "
208 "B<execveat>(). The following additional errors can occur for B<execveat>():"
209 msgstr ""
210
211 #. type: TP
212 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
213 #: opensuse-tumbleweed
214 #, no-wrap
215 msgid "I<path>"
216 msgstr ""
217
218 #. type: Plain text
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 msgid ""
222 "is relative but I<dirfd> is neither B<AT_FDCWD> nor a valid file descriptor."
223 msgstr ""
224
225 #. type: TP
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 #, no-wrap
229 msgid "B<EINVAL>"
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 "Invalid flag specified in I<flags>."
236 msgstr ""
237
238 #. type: TP
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 #, no-wrap
242 msgid "B<ELOOP>"
243 msgstr ""
244
245 #. type: Plain text
246 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
247 #: opensuse-tumbleweed
248 msgid ""
249 "I<flags> includes B<AT_SYMLINK_NOFOLLOW> and the file identified by I<dirfd> "
250 "and a non-NULL I<path> is a symbolic link."
251 msgstr ""
252
253 #. type: TP
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 #, no-wrap
257 msgid "B<ENOENT>"
258 msgstr ""
259
260 #. type: Plain text
261 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
262 #: opensuse-tumbleweed
263 msgid ""
264 "The program identified by I<dirfd> and I<path> requires the use of an "
265 "interpreter program (such as a script starting with \"#!\"), but the file "
266 "descriptor I<dirfd> was opened with the B<O_CLOEXEC> flag, with the result "
267 "that the program file is inaccessible to the launched interpreter. See BUGS."
268 msgstr ""
269
270 #. type: TP
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 #, no-wrap
274 msgid "B<ENOTDIR>"
275 msgstr ""
276
277 #. type: Plain text
278 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
279 #: opensuse-tumbleweed
280 msgid ""
281 "I<path> is relative and I<dirfd> is a file descriptor referring to a file "
282 "other than a directory."
283 msgstr ""
284
285 #. type: SH
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 #, no-wrap
289 msgid "STANDARDS"
290 msgstr ""
291
292 #. type: Plain text
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 msgid "Linux."
296 msgstr ""
297
298 #. type: SH
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 #, no-wrap
302 msgid "HISTORY"
303 msgstr ""
304
305 #. type: Plain text
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 msgid "Linux 3.19, glibc 2.34."
309 msgstr ""
310
311 #. type: SH
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 #, no-wrap
315 msgid "NOTES"
316 msgstr ""
317
318 #. type: Plain text
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 msgid ""
322 "In addition to the reasons explained in B<openat>(2), the B<execveat>() "
323 "system call is also needed to allow B<fexecve>(3) to be implemented on "
324 "systems that do not have the I</proc> filesystem mounted."
325 msgstr ""
326
327 #. type: Plain text
328 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
329 #: opensuse-tumbleweed
330 msgid ""
331 "When asked to execute a script file, the I<argv[0]> that is passed to the "
332 "script interpreter is a string of the form I</dev/fd/N> or I</dev/fd/N/P>, "
333 "where I<N> is the number of the file descriptor passed via the I<dirfd> "
334 "argument. A string of the first form occurs when B<AT_EMPTY_PATH> is "
335 "employed. A string of the second form occurs when the script is specified "
336 "via both I<dirfd> and I<path>; in this case, I<P> is the value given in "
337 "I<path>."
338 msgstr ""
339
340 #. type: Plain text
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 msgid ""
344 "For the same reasons described in B<fexecve>(3), the natural idiom when "
345 "using B<execveat>() is to set the close-on-exec flag on I<dirfd>. (But see "
346 "BUGS.)"
347 msgstr ""
348
349 #. type: SH
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 #, no-wrap
353 msgid "BUGS"
354 msgstr ""
355
356 #. type: Plain text
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 msgid ""
360 "The B<ENOENT> error described above means that it is not possible to set the "
361 "close-on-exec flag on the file descriptor given to a call of the form:"
362 msgstr ""
363
364 #. type: Plain text
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 #, no-wrap
368 msgid "execveat(fd, \"\", argv, envp, AT_EMPTY_PATH);\n"
369 msgstr ""
370
371 #
372 #. For an example, see Michael Kerrisk's 2015-01-10 reply in this LKML
373 #. thread (http://thread.gmane.org/gmane.linux.kernel/1836105/focus=20229):
374 #. Subject: [PATCHv10 man-pages 5/5] execveat.2: initial man page.\" for execveat(2
375 #. Date: Mon, 24 Nov 2014 11:53:59 +0000
376 #. type: Plain text
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 msgid ""
380 "However, the inability to set the close-on-exec flag means that a file "
381 "descriptor referring to the script leaks through to the script itself. As "
382 "well as wasting a file descriptor, this leakage can lead to file-descriptor "
383 "exhaustion in scenarios where scripts recursively employ B<execveat>()."
384 msgstr ""
385
386 #. type: SH
387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
389 #, no-wrap
390 msgid "SEE ALSO"
391 msgstr ""
392
393 #. type: Plain text
394 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
395 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
396 msgid "B<execve>(2), B<openat>(2), B<fexecve>(3)"
397 msgstr ""
398
399 #. type: TH
400 #: debian-trixie
401 #, no-wrap
402 msgid "2024-05-02"
403 msgstr ""
404
405 #. type: TH
406 #: debian-trixie
407 #, no-wrap
408 msgid "Linux man-pages 6.9.1"
409 msgstr ""
410
411 #. type: Plain text
412 #: debian-trixie
413 msgid "Standard C library (I<libc>, I<-lc>)"
414 msgstr ""
415
416 #. type: Plain text
417 #: debian-trixie fedora-44 fedora-rawhide
418 #, no-wrap
419 msgid ""
420 "B<int execveat(int >I<dirfd>B<, const char *>I<pathname>B<,>\n"
421 "B< char *const _Nullable >I<argv>B<[],>\n"
422 "B< char *const _Nullable >I<envp>B<[],>\n"
423 "B< int >I<flags>B<);>\n"
424 msgstr ""
425
426 #. commit 51f39a1f0cea1cacf8c787f652f26dfee9611874
427 #. type: Plain text
428 #: debian-trixie fedora-44 fedora-rawhide
429 msgid ""
430 "The B<execveat>() system call executes the program referred to by the "
431 "combination of I<dirfd> and I<pathname>. It operates in exactly the same "
432 "way as B<execve>(2), except for the differences described in this manual "
433 "page."
434 msgstr ""
435
436 #. type: Plain text
437 #: debian-trixie fedora-44 fedora-rawhide
438 msgid ""
439 "If the pathname given in I<pathname> is relative, then it is interpreted "
440 "relative to the directory referred to by the file descriptor I<dirfd> "
441 "(rather than relative to the current working directory of the calling "
442 "process, as is done by B<execve>(2) for a relative pathname)."
443 msgstr ""
444
445 #. type: Plain text
446 #: debian-trixie fedora-44 fedora-rawhide
447 msgid ""
448 "If I<pathname> is relative and I<dirfd> is the special value B<AT_FDCWD>, "
449 "then I<pathname> is interpreted relative to the current working directory of "
450 "the calling process (like B<execve>(2))."
451 msgstr ""
452
453 #. type: Plain text
454 #: debian-trixie fedora-44 fedora-rawhide
455 msgid "If I<pathname> is absolute, then I<dirfd> is ignored."
456 msgstr ""
457
458 #. type: Plain text
459 #: debian-trixie fedora-44 fedora-rawhide
460 msgid ""
461 "If I<pathname> is an empty string and the B<AT_EMPTY_PATH> flag is "
462 "specified, then the file descriptor I<dirfd> specifies the file to be "
463 "executed (i.e., I<dirfd> refers to an executable file, rather than a "
464 "directory)."
465 msgstr ""
466
467 #. type: Plain text
468 #: debian-trixie fedora-44 fedora-rawhide
469 msgid ""
470 "If I<pathname> is an empty string, operate on the file referred to by "
471 "I<dirfd> (which may have been obtained using the B<open>(2) B<O_PATH> flag)."
472 msgstr ""
473
474 #. type: Plain text
475 #: debian-trixie fedora-44 fedora-rawhide
476 msgid ""
477 "If the file identified by I<dirfd> and a non-NULL I<pathname> is a symbolic "
478 "link, then the call fails with the error B<ELOOP>."
479 msgstr ""
480
481 #. type: TP
482 #: debian-trixie fedora-44 fedora-rawhide
483 #, no-wrap
484 msgid "I<pathname>"
485 msgstr ""
486
487 #. type: Plain text
488 #: debian-trixie fedora-44 fedora-rawhide
489 msgid ""
490 "I<flags> includes B<AT_SYMLINK_NOFOLLOW> and the file identified by I<dirfd> "
491 "and a non-NULL I<pathname> is a symbolic link."
492 msgstr ""
493
494 #. type: Plain text
495 #: debian-trixie fedora-44 fedora-rawhide
496 msgid ""
497 "The program identified by I<dirfd> and I<pathname> requires the use of an "
498 "interpreter program (such as a script starting with \"#!\"), but the file "
499 "descriptor I<dirfd> was opened with the B<O_CLOEXEC> flag, with the result "
500 "that the program file is inaccessible to the launched interpreter. See BUGS."
501 msgstr ""
502
503 #. type: Plain text
504 #: debian-trixie fedora-44 fedora-rawhide
505 msgid ""
506 "I<pathname> is relative and I<dirfd> is a file descriptor referring to a "
507 "file other than a directory."
508 msgstr ""
509
510 #. type: Plain text
511 #: debian-trixie fedora-44 fedora-rawhide
512 msgid ""
513 "When asked to execute a script file, the I<argv[0]> that is passed to the "
514 "script interpreter is a string of the form I</dev/fd/N> or I</dev/fd/N/P>, "
515 "where I<N> is the number of the file descriptor passed via the I<dirfd> "
516 "argument. A string of the first form occurs when B<AT_EMPTY_PATH> is "
517 "employed. A string of the second form occurs when the script is specified "
518 "via both I<dirfd> and I<pathname>; in this case, I<P> is the value given in "
519 "I<pathname>."
520 msgstr ""
521
522 #. type: TH
523 #: fedora-44 fedora-rawhide
524 #, no-wrap
525 msgid "2024-07-23"
526 msgstr ""
527
528 #. type: TH
529 #: fedora-44 fedora-rawhide
530 #, no-wrap
531 msgid "Linux man-pages 6.13"
532 msgstr ""
533
534 #. type: TH
535 #: mageia-cauldron
536 #, no-wrap
537 msgid "Linux man-pages 6.17"
538 msgstr ""
539
540 #. type: TH
541 #: opensuse-leap-16-1 opensuse-tumbleweed
542 #, no-wrap
543 msgid "Linux man-pages (unreleased)"
544 msgstr ""