Debian Codegraph @

templates/man3/system.3.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:45+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 "system"
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 "system - execute a shell command"
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 "B<#include E<lt>stdlib.hE<gt>>\n"
77 msgstr ""
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "B<int system(const char *>I<command>B<);>\n"
84 msgstr ""
85
86 #. type: SH
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 #, no-wrap
90 msgid "DESCRIPTION"
91 msgstr ""
92
93 #. type: Plain text
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 msgid ""
97 "The B<system>() library function behaves as if it used B<fork>(2) to "
98 "create a child process that executed the shell command specified in "
99 "I<command> using B<execl>(3) as follows:"
100 msgstr ""
101
102 #. type: Plain text
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 #, no-wrap
106 msgid "execl(\"/bin/sh\", \"sh\", \"-c\", command, (char *) NULL);\n"
107 msgstr ""
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 msgid "B<system>() returns after the command has been completed."
113 msgstr ""
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 msgid ""
119 "During execution of the command, B<SIGCHLD> will be blocked, and B<SIGINT> "
120 "and B<SIGQUIT> will be ignored, in the process that calls B<system>(). "
121 "(These signals will be handled according to their defaults inside the child "
122 "process that executes I<command>.)"
123 msgstr ""
124
125 #. type: Plain text
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 msgid ""
129 "If I<command> is NULL, then B<system>() returns a status indicating whether "
130 "a shell is available on the system."
131 msgstr ""
132
133 #. type: SH
134 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
135 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
136 #, no-wrap
137 msgid "RETURN VALUE"
138 msgstr ""
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 msgid "The return value of B<system>() is one of the following:"
144 msgstr ""
145
146 #. type: IP
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 #, no-wrap
150 msgid "\\[bu]"
151 msgstr ""
152
153 #. type: Plain text
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 msgid ""
157 "If I<command> is NULL, then a nonzero value if a shell is available, or 0 if "
158 "no shell is available."
159 msgstr ""
160
161 #. type: Plain text
162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
164 msgid ""
165 "If a child process could not be created, or its status could not be "
166 "retrieved, the return value is -1 and I<errno> is set to indicate the error."
167 msgstr ""
168
169 #. type: Plain text
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 msgid ""
173 "If a shell could not be executed in the child process, then the return value "
174 "is as though the child shell terminated by calling B<_exit>(2) with the "
175 "status 127."
176 msgstr ""
177
178 #. type: Plain text
179 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
180 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
181 msgid ""
182 "If all system calls succeed, then the return value is the termination status "
183 "of the child shell used to execute I<command>. (The termination status of a "
184 "shell is the termination status of the last command it executes.)"
185 msgstr ""
186
187 #. type: Plain text
188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
190 msgid ""
191 "In the last two cases, the return value is a \"wait status\" that can be "
192 "examined using the macros described in B<waitpid>(2). (i.e., "
193 "B<WIFEXITED>(), B<WEXITSTATUS>(), and so on)."
194 msgstr ""
195
196 #. type: Plain text
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 msgid "B<system>() does not affect the wait status of any other children."
200 msgstr ""
201
202 #. type: SH
203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
205 #, no-wrap
206 msgid "ERRORS"
207 msgstr ""
208
209 #. type: Plain text
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 msgid "B<system>() can fail with any of the same errors as B<fork>(2)."
213 msgstr ""
214
215 #. type: SH
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 #, no-wrap
219 msgid "ATTRIBUTES"
220 msgstr ""
221
222 #. type: Plain text
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 msgid ""
226 "For an explanation of the terms used in this section, see B<attributes>(7)."
227 msgstr ""
228
229 #. type: tbl table
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 #, no-wrap
233 msgid "Interface"
234 msgstr ""
235
236 #. type: tbl table
237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
239 #, no-wrap
240 msgid "Attribute"
241 msgstr ""
242
243 #. type: tbl table
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 #, no-wrap
247 msgid "Value"
248 msgstr ""
249
250 #. type: tbl table
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 #, no-wrap
254 msgid ".na\n"
255 msgstr ""
256
257 #. type: tbl table
258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
260 #, no-wrap
261 msgid ".nh\n"
262 msgstr ""
263
264 #. type: tbl table
265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
267 #, no-wrap
268 msgid "B<system>()"
269 msgstr ""
270
271 #. type: tbl table
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 #, no-wrap
275 msgid "Thread safety"
276 msgstr ""
277
278 #. type: tbl table
279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
281 #, no-wrap
282 msgid "MT-Safe"
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 "C11, POSIX.1-2008."
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 "POSIX.1-2001, C89."
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 "B<system>() provides simplicity and convenience: it handles all of the "
323 "details of calling B<fork>(2), B<execl>(3), and B<waitpid>(2), as well as "
324 "the necessary manipulations of signals; in addition, the shell performs the "
325 "usual substitutions and I/O redirections for I<command>. The main cost of "
326 "B<system>() is inefficiency: additional system calls are required to create "
327 "the process that runs the shell and to execute the shell."
328 msgstr ""
329
330 #. type: Plain text
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 msgid ""
334 "If the B<_XOPEN_SOURCE> feature test macro is defined (before including "
335 "I<any> header files), then the macros described in B<waitpid>(2) "
336 "(B<WEXITSTATUS>(), etc.) are made available when including "
337 "I<E<lt>stdlib.hE<gt>>."
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 "As mentioned, B<system>() ignores B<SIGINT> and B<SIGQUIT>. This may make "
345 "programs that call it from a loop uninterruptible, unless they take care "
346 "themselves to check the exit status of the child. For example:"
347 msgstr ""
348
349 #. type: Plain text
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 #, no-wrap
353 msgid ""
354 "while (something) {\n"
355 " int ret = system(\"foo\");\n"
356 "\\&\n"
357 " if (WIFSIGNALED(ret) &&\n"
358 " (WTERMSIG(ret) == SIGINT || WTERMSIG(ret) == SIGQUIT))\n"
359 " break;\n"
360 "}\n"
361 msgstr ""
362
363 #. type: Plain text
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 msgid ""
367 "According to POSIX.1, it is unspecified whether handlers registered using "
368 "B<pthread_atfork>(3) are called during the execution of B<system>(). In "
369 "the glibc implementation, such handlers are not called."
370 msgstr ""
371
372 #. type: Plain text
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 msgid ""
376 "Before glibc 2.1.3, the check for the availability of I</bin/sh> was not "
377 "actually performed if I<command> was NULL; instead it was always assumed to "
378 "be available, and B<system>() always returned 1 in this case. Since glibc "
379 "2.1.3, this check is performed because, even though POSIX.1-2001 requires a "
380 "conforming implementation to provide a shell, that shell may not be "
381 "available or executable if the calling program has previously called "
382 "B<chroot>(2) (which is not specified by POSIX.1-2001)."
383 msgstr ""
384
385 #. type: Plain text
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 msgid ""
389 "It is possible for the shell command to terminate with a status of 127, "
390 "which yields a B<system>() return value that is indistinguishable from the "
391 "case where a shell could not be executed in the child process."
392 msgstr ""
393
394 #. type: SS
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 #, no-wrap
398 msgid "Caveats"
399 msgstr ""
400
401 #. type: Plain text
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 msgid ""
405 "Do not use B<system>() from a privileged program (a set-user-ID or set-"
406 "group-ID program, or a program with capabilities) because strange values "
407 "for some environment variables might be used to subvert system integrity. "
408 "For example, B<PATH> could be manipulated so that an arbitrary program is "
409 "executed with privilege. Use the B<exec>(3) family of functions instead, "
410 "but not B<execlp>(3) or B<execvp>(3) (which also use the B<PATH> "
411 "environment variable to search for an executable)."
412 msgstr ""
413
414 #. type: Plain text
415 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
416 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
417 msgid ""
418 "B<system>() will not, in fact, work properly from programs with set-user-ID "
419 "or set-group-ID privileges on systems on which I</bin/sh> is bash version 2: "
420 "as a security measure, bash 2 drops privileges on startup. (Debian uses a "
421 "different shell, B<dash>(1), which does not do this when invoked as B<sh>.)"
422 msgstr ""
423
424 #. type: Plain text
425 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
426 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
427 msgid ""
428 "Any user input that is employed as part of I<command> should be I<carefully> "
429 "sanitized, to ensure that unexpected shell commands or command options are "
430 "not executed. Such risks are especially grave when using B<system>() from "
431 "a privileged program."
432 msgstr ""
433
434 #. type: SH
435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
436 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
437 #, no-wrap
438 msgid "BUGS"
439 msgstr ""
440
441 #. [BUG 211029](https://bugzilla.kernel.org/show_bug.cgi?id=211029)
442 #. [glibc bug](https://sourceware.org/bugzilla/show_bug.cgi?id=27143)
443 #. [POSIX bug](https://www.austingroupbugs.net/view.php?id=1440)
444 #. type: Plain text
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 msgid ""
448 "If the command name starts with a hyphen, B<sh>(1) interprets the command "
449 "name as an option, and the behavior is undefined. (See the B<-c> option to "
450 "B<sh>(1).) To work around this problem, prepend the command with a space as "
451 "in the following call:"
452 msgstr ""
453
454 #. type: Plain text
455 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
456 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
457 #, no-wrap
458 msgid " system(\" -unfortunate-command-name\");\n"
459 msgstr ""
460
461 #. type: SH
462 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
463 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
464 #, no-wrap
465 msgid "SEE ALSO"
466 msgstr ""
467
468 #. type: Plain text
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 msgid ""
472 "B<sh>(1), B<execve>(2), B<fork>(2), B<sigaction>(2), B<sigprocmask>(2), "
473 "B<wait>(2), B<exec>(3), B<signal>(7)"
474 msgstr ""
475
476 #. type: TH
477 #: debian-trixie
478 #, no-wrap
479 msgid "2024-05-02"
480 msgstr ""
481
482 #. type: TH
483 #: debian-trixie
484 #, no-wrap
485 msgid "Linux man-pages 6.9.1"
486 msgstr ""
487
488 #. type: Plain text
489 #: debian-trixie
490 msgid "Standard C library (I<libc>, I<-lc>)"
491 msgstr ""
492
493 #. type: TH
494 #: fedora-44 fedora-rawhide
495 #, no-wrap
496 msgid "2024-07-23"
497 msgstr ""
498
499 #. type: TH
500 #: fedora-44 fedora-rawhide
501 #, no-wrap
502 msgid "Linux man-pages 6.13"
503 msgstr ""
504
505 #. type: TH
506 #: mageia-cauldron
507 #, no-wrap
508 msgid "Linux man-pages 6.17"
509 msgstr ""
510
511 #. type: TH
512 #: opensuse-leap-16-1 opensuse-tumbleweed
513 #, no-wrap
514 msgid "Linux man-pages (unreleased)"
515 msgstr ""