summaryrefslogtreecommitdiffstats
path: root/po/fr/man2/kcmp.2.po
diff options
context:
space:
mode:
Diffstat (limited to 'po/fr/man2/kcmp.2.po')
-rw-r--r--po/fr/man2/kcmp.2.po201
1 files changed, 184 insertions, 17 deletions
diff --git a/po/fr/man2/kcmp.2.po b/po/fr/man2/kcmp.2.po
index e43dee15..7528b5ee 100644
--- a/po/fr/man2/kcmp.2.po
+++ b/po/fr/man2/kcmp.2.po
@@ -20,9 +20,9 @@
# Jean-Philippe MENGUAL <jpmengual@debian.org>, 2020-2024.
msgid ""
msgstr ""
-"Project-Id-Version: manpages-l10n\n"
-"POT-Creation-Date: 2024-03-01 16:59+0100\n"
-"PO-Revision-Date: 2024-01-30 17:23+0100\n"
+"Project-Id-Version: manpages-l10n 4.22.0\n"
+"POT-Creation-Date: 2024-06-01 05:59+0200\n"
+"PO-Revision-Date: 2024-06-02 09:57+0200\n"
"Last-Translator: Jean-Philippe MENGUAL <jpmengual@debian.org>\n"
"Language-Team: French <debian-l10n-french@lists.debian.org>\n"
"Language: fr\n"
@@ -40,16 +40,16 @@ msgid "kcmp"
msgstr "kcmp"
#. 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
@@ -717,8 +717,7 @@ msgid "Program source"
msgstr "Source du programme"
#. type: Plain text
-#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron
-#: opensuse-tumbleweed
+#: archlinux debian-unstable opensuse-tumbleweed
#, no-wrap
msgid ""
"#define _GNU_SOURCE\n"
@@ -729,6 +728,7 @@ msgid ""
"#include E<lt>stdio.hE<gt>\n"
"#include E<lt>stdlib.hE<gt>\n"
"#include E<lt>sys/syscall.hE<gt>\n"
+"#include E<lt>sys/types.hE<gt>\n"
"#include E<lt>sys/wait.hE<gt>\n"
"#include E<lt>unistd.hE<gt>\n"
"\\&\n"
@@ -804,6 +804,7 @@ msgstr ""
"#include E<lt>stdio.hE<gt>\n"
"#include E<lt>stdlib.hE<gt>\n"
"#include E<lt>sys/syscall.hE<gt>\n"
+"#include E<lt>sys/types.hE<gt>\n"
"#include E<lt>sys/wait.hE<gt>\n"
"#include E<lt>unistd.hE<gt>\n"
"\\&\n"
@@ -1165,16 +1166,176 @@ 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: Plain text
+#: fedora-40 fedora-rawhide mageia-cauldron
+#, no-wrap
+msgid ""
+"#define _GNU_SOURCE\n"
+"#include E<lt>err.hE<gt>\n"
+"#include E<lt>fcntl.hE<gt>\n"
+"#include E<lt>linux/kcmp.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>sys/syscall.hE<gt>\n"
+"#include E<lt>sys/wait.hE<gt>\n"
+"#include E<lt>unistd.hE<gt>\n"
+"\\&\n"
+"static int\n"
+"kcmp(pid_t pid1, pid_t pid2, int type,\n"
+" unsigned long idx1, unsigned long idx2)\n"
+"{\n"
+" return syscall(SYS_kcmp, pid1, pid2, type, idx1, idx2);\n"
+"}\n"
+"\\&\n"
+"static void\n"
+"test_kcmp(char *msg, pid_t pid1, pid_t pid2, int fd_a, int fd_b)\n"
+"{\n"
+" printf(\"\\et%s\\en\", msg);\n"
+" printf(\"\\et\\etkcmp(%jd, %jd, KCMP_FILE, %d, %d) ==E<gt> %s\\en\",\n"
+" (intmax_t) pid1, (intmax_t) pid2, fd_a, fd_b,\n"
+" (kcmp(pid1, pid2, KCMP_FILE, fd_a, fd_b) == 0) ?\n"
+" \"same\" : \"different\");\n"
+"}\n"
+"\\&\n"
+"int\n"
+"main(void)\n"
+"{\n"
+" int fd1, fd2, fd3;\n"
+" static const char pathname[] = \"/tmp/kcmp.test\";\n"
+"\\&\n"
+" fd1 = open(pathname, O_CREAT | O_RDWR, 0600);\n"
+" if (fd1 == -1)\n"
+" err(EXIT_FAILURE, \"open\");\n"
+"\\&\n"
+" printf(\"Parent PID is %jd\\en\", (intmax_t) getpid());\n"
+" printf(\"Parent opened file on FD %d\\en\\en\", fd1);\n"
+"\\&\n"
+" switch (fork()) {\n"
+" case -1:\n"
+" err(EXIT_FAILURE, \"fork\");\n"
+"\\&\n"
+" case 0:\n"
+" printf(\"PID of child of fork() is %jd\\en\", (intmax_t) getpid());\n"
+"\\&\n"
+" test_kcmp(\"Compare duplicate FDs from different processes:\",\n"
+" getpid(), getppid(), fd1, fd1);\n"
+"\\&\n"
+" fd2 = open(pathname, O_CREAT | O_RDWR, 0600);\n"
+" if (fd2 == -1)\n"
+" err(EXIT_FAILURE, \"open\");\n"
+" printf(\"Child opened file on FD %d\\en\", fd2);\n"
+"\\&\n"
+" test_kcmp(\"Compare FDs from distinct open()s in same process:\",\n"
+" getpid(), getpid(), fd1, fd2);\n"
+"\\&\n"
+" fd3 = dup(fd1);\n"
+" if (fd3 == -1)\n"
+" err(EXIT_FAILURE, \"dup\");\n"
+" printf(\"Child duplicated FD %d to create FD %d\\en\", fd1, fd3);\n"
+"\\&\n"
+" test_kcmp(\"Compare duplicated FDs in same process:\",\n"
+" getpid(), getpid(), fd1, fd3);\n"
+" break;\n"
+"\\&\n"
+" default:\n"
+" wait(NULL);\n"
+" }\n"
+"\\&\n"
+" exit(EXIT_SUCCESS);\n"
+"}\n"
+msgstr ""
+"#define _GNU_SOURCE\n"
+"#include E<lt>err.hE<gt>\n"
+"#include E<lt>fcntl.hE<gt>\n"
+"#include E<lt>linux/kcmp.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>sys/syscall.hE<gt>\n"
+"#include E<lt>sys/wait.hE<gt>\n"
+"#include E<lt>unistd.hE<gt>\n"
+"\\&\n"
+"static int\n"
+"kcmp(pid_t pid1, pid_t pid2, int type,\n"
+" unsigned long idx1, unsigned long idx2)\n"
+"{\n"
+" return syscall(SYS_kcmp, pid1, pid2, type, idx1, idx2);\n"
+"}\n"
+"\\&\n"
+"static void\n"
+"test_kcmp(char *msg, pid_t pid1, pid_t pid2, int fd_a, int fd_b)\n"
+"{\n"
+" printf(\"\\et%s\\en\", msg);\n"
+" printf(\"\\et\\etkcmp(%jd, %jd, KCMP_FILE, %d, %d) ==E<gt> %s\\en\",\n"
+" (intmax_t) pid1, (intmax_t) pid2, fd_a, fd_b,\n"
+" (kcmp(pid1, pid2, KCMP_FILE, fd_a, fd_b) == 0) ?\n"
+" \"same\" : \"different\");\n"
+"}\n"
+"\\&\n"
+"int\n"
+"main(void)\n"
+"{\n"
+" int fd1, fd2, fd3;\n"
+" static const char pathname[] = \"/tmp/kcmp.test\";\n"
+"\\&\n"
+" fd1 = open(pathname, O_CREAT | O_RDWR, 0600);\n"
+" if (fd1 == -1)\n"
+" err(EXIT_FAILURE, \"open\");\n"
+"\\&\n"
+" printf(\"Le PID parent est %jd\\en\", (intmax_t) getpid());\n"
+" printf(\"Fichier ouvert parent sur le FD %d\\en\\en\", fd1);\n"
+"\\&\n"
+" switch (fork()) {\n"
+" case -1:\n"
+" err(EXIT_FAILURE, \"fork\");\n"
+"\\&\n"
+" case 0:\n"
+" printf(\"Le PID de l'enfant de fork() est %jd\\en\", (intmax_t) getpid());\n"
+"\\&\n"
+" test_kcmp(\"Comparer les FDs dupliqués issus de processus différents :\",\n"
+" getpid(), getppid(), fd1, fd1);\n"
+"\\&\n"
+" fd2 = open(pathname, O_CREAT | O_RDWR, 0600);\n"
+" if (fd2 == -1)\n"
+" err(EXIT_FAILURE, \"open\");\n"
+" printf(\"L'enfant a ouvert le fichier sur le FD %d\\en\", fd2);\n"
+"\\&\n"
+" test_kcmp(\"Comparer des FDs issus des mêmes processus open()s :\",\n"
+" getpid(), getpid(), fd1, fd2);\n"
+"\\&\n"
+" fd3 = dup(fd1);\n"
+" if (fd3 == -1)\n"
+" err(EXIT_FAILURE, \"dup\");\n"
+" printf(\"L'enfant a dupliqué le FD %d pour créer le FD %d\\en\", fd1, fd3);\n"
+"\\&\n"
+" test_kcmp(\"Comparaison de FDs dupliqués dans le même processus :\",\n"
+" getpid(), getpid(), fd1, fd3);\n"
+" break;\n"
+"\\&\n"
+" default:\n"
+" wait(NULL);\n"
+" }\n"
+"\\&\n"
+" exit(EXIT_SUCCESS);\n"
+"}\n"
#. 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
@@ -1187,3 +1348,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)"