summaryrefslogtreecommitdiffstats
path: root/po/fr/man3/posix_spawn.3.po
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:52:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:52:03 +0000
commit932e4432596447eb9331cc2a2bb74a26a35b4efc (patch)
tree95161711ea07fd64f0c82d6e7943024c033dd5a8 /po/fr/man3/posix_spawn.3.po
parentAdding debian version 4.22.0-1. (diff)
downloadmanpages-l10n-932e4432596447eb9331cc2a2bb74a26a35b4efc.tar.xz
manpages-l10n-932e4432596447eb9331cc2a2bb74a26a35b4efc.zip
Merging upstream version 4.23.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'po/fr/man3/posix_spawn.3.po')
-rw-r--r--po/fr/man3/posix_spawn.3.po173
1 files changed, 156 insertions, 17 deletions
diff --git a/po/fr/man3/posix_spawn.3.po b/po/fr/man3/posix_spawn.3.po
index 1e584aa2..b30d53a5 100644
--- a/po/fr/man3/posix_spawn.3.po
+++ b/po/fr/man3/posix_spawn.3.po
@@ -18,9 +18,9 @@
# Grégoire Scano <gregoire.scano@malloc.fr>, 2021.
msgid ""
msgstr ""
-"Project-Id-Version: perkamon\n"
-"POT-Creation-Date: 2024-03-01 17:04+0100\n"
-"PO-Revision-Date: 2023-07-03 16:23+0200\n"
+"Project-Id-Version: manpages-l10n 4.22.0\n"
+"POT-Creation-Date: 2024-06-01 06:09+0200\n"
+"PO-Revision-Date: 2024-05-07 12:32+0200\n"
"Last-Translator: Grégoire Scano <gregoire.scano@malloc.fr>\n"
"Language-Team: French <debian-l10n-french@lists.debian.org>\n"
"Language: fr\n"
@@ -38,16 +38,16 @@ msgid "posix_spawn"
msgstr "posix_spawn"
#. type: TH
-#: archlinux fedora-40 fedora-rawhide mageia-cauldron
+#: archlinux debian-unstable opensuse-tumbleweed
#, no-wrap
-msgid "2023-10-31"
-msgstr "31 octobre 2023"
+msgid "2024-05-02"
+msgstr "2 mai 2024"
#. type: TH
-#: archlinux fedora-40 fedora-rawhide mageia-cauldron
+#: archlinux debian-unstable
#, no-wrap
-msgid "Linux man-pages 6.06"
-msgstr "Pages du manuel de Linux 6.06"
+msgid "Linux man-pages 6.8"
+msgstr "Pages du manuel de Linux 6.8"
#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
@@ -1333,6 +1333,132 @@ msgid ""
" exit(EXIT_SUCCESS);\n"
"}\n"
msgstr ""
+"#include E<lt>errno.hE<gt>\n"
+"#include E<lt>spawn.hE<gt>\n"
+"#include E<lt>stdint.hE<gt>\n"
+"#include E<lt>stdio.hE<gt>\n"
+"#include E<lt>stdlib.hE<gt>\n"
+"#include E<lt>string.hE<gt>\n"
+"#include E<lt>unistd.hE<gt>\n"
+"#include E<lt>wait.hE<gt>\n"
+"\\&\n"
+"#define errExit(msg) do { perror(msg); \\e\n"
+" exit(EXIT_FAILURE); } while (0)\n"
+"\\&\n"
+"#define errExitEN(en, msg) \\e\n"
+" do { errno = en; perror(msg); \\e\n"
+" exit(EXIT_FAILURE); } while (0)\n"
+"\\&\n"
+"char **environ;\n"
+"\\&\n"
+"int\n"
+"main(int argc, char *argv[])\n"
+"{\n"
+" pid_t child_pid;\n"
+" int s, opt, status;\n"
+" sigset_t mask;\n"
+" posix_spawnattr_t attr;\n"
+" posix_spawnattr_t *attrp;\n"
+" posix_spawn_file_actions_t file_actions;\n"
+" posix_spawn_file_actions_t *file_actionsp;\n"
+"\\&\n"
+" /* Lire les options de la ligne de commande pouvant être utilisées\n"
+" pour indiquer un objet d'attributs et un objet d'actions sur fichier\n"
+" fichier pour l'enfant. */\n"
+"\\&\n"
+" attrp = NULL;\n"
+" file_actionsp = NULL;\n"
+"\\&\n"
+" while ((opt = getopt(argc, argv, \"sc\")) != -1) {\n"
+" switch (opt) {\n"
+" case \\[aq]c\\[aq]: /* -c: fermer la sortie standard dans\n"
+" l'enfant */\n"
+"\\&\n"
+" /* Créer un objet d'actions de fichier et lui ajouter\n"
+" une action \"fermer\". */\n"
+"\\&\n"
+" s = posix_spawn_file_actions_init(&file_actions);\n"
+" if (s != 0)\n"
+" errExitEN(s, \"posix_spawn_file_actions_init\");\n"
+"\\&\n"
+" s = posix_spawn_file_actions_addclose(&file_actions,\n"
+" STDOUT_FILENO);\n"
+" if (s != 0)\n"
+" errExitEN(s, \"posix_spawn_file_actions_addclose\");\n"
+"\\&\n"
+" file_actionsp = &file_actions;\n"
+" break;\n"
+"\\&\n"
+" case \\[aq]s\\[aq]: /* -s: bloquer tous les signaux dans\n"
+" l'enfant */\n"
+"\\&\n"
+" /* Créer un objet d'attributs et lui ajouter\n"
+" une action \"établir un masque de signaux\". */\n"
+"\\&\n"
+" s = posix_spawnattr_init(&attr);\n"
+" if (s != 0)\n"
+" errExitEN(s, \"posix_spawnattr_init\");\n"
+" s = posix_spawnattr_setflags(&attr, POSIX_SPAWN_SETSIGMASK);\n"
+" if (s != 0)\n"
+" errExitEN(s, \"posix_spawnattr_setflags\");\n"
+"\\&\n"
+" sigfillset(&mask);\n"
+" s = posix_spawnattr_setsigmask(&attr, &mask);\n"
+" if (s != 0)\n"
+" errExitEN(s, \"posix_spawnattr_setsigmask\");\n"
+"\\&\n"
+" attrp = &attr;\n"
+" break;\n"
+" }\n"
+" }\n"
+"\\&\n"
+" /* Créer l'enfant. Le nom du programme à exécuter et les arguments de\n"
+" la ligne de commande sont récupérés dans les arguments de la ligne\n"
+" de commande de ce programme. L'environnement du programme exécuté\n"
+" dans l'enfant est identique à l'environnement du parent. */\n"
+"\\&\n"
+" s = posix_spawnp(&child_pid, argv[optind], file_actionsp, attrp,\n"
+" &argv[optind], environ);\n"
+" if (s != 0)\n"
+" errExitEN(s, \"posix_spawn\");\n"
+"\\&\n"
+" /* Détruire tout objet créé précédemment. */\n"
+"\\&\n"
+" if (attrp != NULL) {\n"
+" s = posix_spawnattr_destroy(attrp);\n"
+" if (s != 0)\n"
+" errExitEN(s, \"posix_spawnattr_destroy\");\n"
+" }\n"
+"\\&\n"
+" if (file_actionsp != NULL) {\n"
+" s = posix_spawn_file_actions_destroy(file_actionsp);\n"
+" if (s != 0)\n"
+" errExitEN(s, \"posix_spawn_file_actions_destroy\");\n"
+" }\n"
+"\\&\n"
+" printf(\"PID de l'enfant : %jd\\en\", (intmax_t) child_pid);\n"
+"\\&\n"
+" /* Observer l’état de l'enfant jusqu'à son arrêt. */\n"
+"\\&\n"
+" do {\n"
+" s = waitpid(child_pid, &status, WUNTRACED | WCONTINUED);\n"
+" if (s == -1)\n"
+" errExit(\"waitpid\");\n"
+"\\&\n"
+" printf(\"Child status: \");\n"
+" if (WIFEXITED(status)) {\n"
+" printf(\"terminé, état=%d\\en\", WEXITSTATUS(status));\n"
+" } else if (WIFSIGNALED(status)) {\n"
+" printf(\"tué par le signal %d\\en\", WTERMSIG(status));\n"
+" } else if (WIFSTOPPED(status)) {\n"
+" printf(\"arrêté par le signal %d\\en\", WSTOPSIG(status));\n"
+" } else if (WIFCONTINUED(status)) {\n"
+" printf(\"reprise\\en\");\n"
+" }\n"
+" } while (!WIFEXITED(status) && !WIFSIGNALED(status));\n"
+"\\&\n"
+" exit(EXIT_SUCCESS);\n"
+"}\n"
#. SRC END
#. type: SH
@@ -1500,8 +1626,9 @@ msgid ""
" /* Parse command-line options, which can be used to specify an\n"
" attributes object and file actions object for the child. */\n"
msgstr ""
-" /* Lire les options de la ligne de commande pouvant être utilisées pour indiquer\n"
-" un objet d'attributs et un objet d'actions sur fichier pour l'enfant. */\n"
+" /* Lire les options de la ligne de commande pouvant être utilisées\n"
+" pour indiquer un objet d'attributs et un objet d'actions sur fichier\n"
+" fichier pour l'enfant. */\n"
#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
@@ -1767,16 +1894,22 @@ msgstr ""
"}\n"
#. type: TH
-#: debian-unstable opensuse-tumbleweed
+#: fedora-40 fedora-rawhide mageia-cauldron
+#, no-wrap
+msgid "2023-10-31"
+msgstr "31 octobre 2023"
+
+#. type: TH
+#: fedora-40 mageia-cauldron
#, no-wrap
-msgid "2023-05-03"
-msgstr "3 mai 2023"
+msgid "Linux man-pages 6.06"
+msgstr "Pages du manuel de Linux 6.06"
#. type: TH
-#: debian-unstable opensuse-tumbleweed
+#: fedora-rawhide
#, no-wrap
-msgid "Linux man-pages 6.05.01"
-msgstr "Pages du manuel de Linux 6.05.01"
+msgid "Linux man-pages 6.7"
+msgstr "Pages du manuel de Linux 6.7"
#. type: TH
#: opensuse-leap-15-6
@@ -1789,3 +1922,9 @@ msgstr "30 mars 2023"
#, no-wrap
msgid "Linux man-pages 6.04"
msgstr "Pages du manuel de Linux 6.04"
+
+#. type: TH
+#: opensuse-tumbleweed
+#, no-wrap
+msgid "Linux man-pages (unreleased)"
+msgstr "Pages du manuel de Linux (non publiées)"