diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-17 10:52:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-17 10:52:03 +0000 |
commit | 932e4432596447eb9331cc2a2bb74a26a35b4efc (patch) | |
tree | 95161711ea07fd64f0c82d6e7943024c033dd5a8 /po/fr/man3/sem_wait.3.po | |
parent | Adding debian version 4.22.0-1. (diff) | |
download | manpages-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/sem_wait.3.po')
-rw-r--r-- | po/fr/man3/sem_wait.3.po | 122 |
1 files changed, 105 insertions, 17 deletions
diff --git a/po/fr/man3/sem_wait.3.po b/po/fr/man3/sem_wait.3.po index 3f7c8301..c146d877 100644 --- a/po/fr/man3/sem_wait.3.po +++ b/po/fr/man3/sem_wait.3.po @@ -19,9 +19,9 @@ # Jean-Pierre Giraud <jean-pierregiraud@neuf.fr>, 2023. msgid "" msgstr "" -"Project-Id-Version: perkamon\n" -"POT-Creation-Date: 2024-03-01 17:07+0100\n" -"PO-Revision-Date: 2023-03-09 15:13+0100\n" +"Project-Id-Version: manpages-l10n 4.22.0\n" +"POT-Creation-Date: 2024-06-01 06:20+0200\n" +"PO-Revision-Date: 2024-05-07 16:52+0200\n" "Last-Translator: Jean-Pierre Giraud <jean-pierregiraud@neuf.fr>\n" "Language-Team: French <debian-l10n-french@lists.debian.org>\n" "Language: fr\n" @@ -29,7 +29,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n > 1;\n" -"X-Generator: Lokalize 22.12.1\n" +"X-Generator: Lokalize 22.12.3\n" #. type: TH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide @@ -39,16 +39,16 @@ msgid "sem_wait" msgstr "sem_wait" #. 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 @@ -550,6 +550,82 @@ msgid "" " exit((s == 0) ? EXIT_SUCCESS : EXIT_FAILURE);\n" "}\n" msgstr "" +"#include E<lt>errno.hE<gt>\n" +"#include E<lt>semaphore.hE<gt>\n" +"#include E<lt>signal.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\n" +"#include E<lt>time.hE<gt>\n" +"#include E<lt>unistd.hE<gt>\n" +"\\&\n" +"#include E<lt>assert.hE<gt>\n" +"\\&\n" +"sem_t sem;\n" +"\\&\n" +"#define handle_error(msg) \\e\n" +" do { perror(msg); exit(EXIT_FAILURE); } while (0)\n" +"\\&\n" +"static void\n" +"handler(int sig)\n" +"{\n" +" write(STDOUT_FILENO, \"sem_post() depuis le gestionnaire\\en\", 24);\n" +" if (sem_post(&sem) == -1) {\n" +" write(STDERR_FILENO, \"sem_post() a échoué\\en\", 18);\n" +" _exit(EXIT_FAILURE);\n" +" }\n" +"}\n" +"\\&\n" +"int\n" +"main(int argc, char *argv[])\n" +"{\n" +" struct sigaction sa;\n" +" struct timespec ts;\n" +" int s;\n" +"\\&\n" +" if (argc != 3) {\n" +" fprintf(stderr, \"Utilisation : %s E<lt>alarme-secsE<gt> E<lt>attente-secsE<gt>\\en\",\n" +" argv[0]);\n" +" exit(EXIT_FAILURE);\n" +" }\n" +"\\&\n" +" if (sem_init(&sem, 0, 0) == -1)\n" +" handle_error(\"sem_init\");\n" +"\\&\n" +" /* Établit le gestionnaire de signal pour SIGALARM ;\n" +" fixe le chronomètre de l'alarme selon argv[1]. */\n" +"\\&\n" +" sa.sa_handler = handler;\n" +" sigemptyset(&sa.sa_mask);\n" +" sa.sa_flags = 0;\n" +" if (sigaction(SIGALRM, &sa, NULL) == -1)\n" +" handle_error(\"sigaction\");\n" +"\\&\n" +" alarm(atoi(argv[1]));\n" +"\\&\n" +" /* Calcule l'intervalle relatif comme l'heure actuelle plus\n" +" un certain nombre de secondes données dans argv[2]. */\n" +"\\&\n" +" if (clock_gettime(CLOCK_REALTIME, &ts) == -1)\n" +" handle_error(\"clock_gettime\");\n" +"\\&\n" +" ts.tv_sec += atoi(argv[2]);\n" +"\\&\n" +" printf(\"%s() est sur le point d'appeler sem_timedwait()\\en\");\n" +" while ((s = sem_timedwait(&sem, &ts)) == -1 && errno == EINTR)\n" +" continue; /* Redémarre si interrompu par le gestionnaire. */\n" +"\\&\n" +" /* Observe ce qui s'est passé. */\n" +"\\&\n" +" if (s == -1) {\n" +" if (errno == ETIMEDOUT)\n" +" printf(\"sem_timedwait() a expiré\\en\");\n" +" else\n" +" perror(\"sem_timedwait\");\n" +" } else\n" +" printf(\"sem_timedwait() a réussi\\en\");\n" +"\\&\n" +" exit((s == 0) ? EXIT_SUCCESS : EXIT_FAILURE);\n" +"}\n" #. SRC END #. type: SH @@ -681,7 +757,7 @@ msgid "" " }\n" msgstr "" " if (argc != 3) {\n" -" fprintf(stderr, \"Usage : %s E<lt>alarme-secsE<gt> E<lt>attente-secsE<gt>\\en\",\n" +" fprintf(stderr, \"Utilisation : %s E<lt>alarme-secsE<gt> E<lt>attente-secsE<gt>\\en\",\n" " argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" @@ -801,16 +877,22 @@ msgstr "" "}\n" #. type: TH -#: debian-unstable opensuse-tumbleweed +#: fedora-40 fedora-rawhide mageia-cauldron #, no-wrap -msgid "2023-07-20" -msgstr "20 juillet 2023" +msgid "2023-10-31" +msgstr "31 octobre 2023" #. type: TH -#: debian-unstable opensuse-tumbleweed +#: fedora-40 mageia-cauldron #, no-wrap -msgid "Linux man-pages 6.05.01" -msgstr "Pages du manuel de Linux 6.05.01" +msgid "Linux man-pages 6.06" +msgstr "Pages du manuel de Linux 6.06" + +#. type: TH +#: fedora-rawhide +#, no-wrap +msgid "Linux man-pages 6.7" +msgstr "Pages du manuel de Linux 6.7" #. type: TH #: opensuse-leap-15-6 @@ -823,3 +905,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)" |