diff options
Diffstat (limited to 'po/fr/man2/timerfd_create.2.po')
-rw-r--r-- | po/fr/man2/timerfd_create.2.po | 280 |
1 files changed, 258 insertions, 22 deletions
diff --git a/po/fr/man2/timerfd_create.2.po b/po/fr/man2/timerfd_create.2.po index eda8657b..0398413d 100644 --- a/po/fr/man2/timerfd_create.2.po +++ b/po/fr/man2/timerfd_create.2.po @@ -20,9 +20,9 @@ # Jean-Pierre Giraud <jean-pierregiraud@neuf.fr>, 2023-2024. msgid "" msgstr "" -"Project-Id-Version: manpages-l10n\n" -"POT-Creation-Date: 2024-03-01 17:12+0100\n" -"PO-Revision-Date: 2024-02-15 14:27+0100\n" +"Project-Id-Version: manpages-l10n 4.22.0\n" +"POT-Creation-Date: 2024-06-01 06:31+0200\n" +"PO-Revision-Date: 2024-06-02 11:29+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" @@ -30,7 +30,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 2.0\n" +"X-Generator: Lokalize 22.12.3\n" #. type: TH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide @@ -40,16 +40,16 @@ msgid "timerfd_create" msgstr "timerfd_create" #. 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 @@ -653,19 +653,22 @@ msgstr "" "soit expiré, mais avant le B<read>(2) sur le descripteur de fichier." #. type: TP -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed #, no-wrap msgid "B<poll>(2)" msgstr "B<poll>(2)" #. type: TQ -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed #, no-wrap msgid "B<select>(2)" msgstr "B<select>(2)" #. type: TQ -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed #, no-wrap msgid "(and similar)" msgstr "(et similaire)" @@ -1277,8 +1280,7 @@ msgstr "Source du programme" #. #define TFD_TIMER_ABSTIME (1 << 0) #. //////////////////////////////////////////////////////////// #. type: Plain text -#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron -#: opensuse-tumbleweed +#: archlinux debian-unstable opensuse-tumbleweed #, no-wrap msgid "" "#include E<lt>err.hE<gt>\n" @@ -1286,6 +1288,7 @@ msgid "" "#include E<lt>stdio.hE<gt>\n" "#include E<lt>stdlib.hE<gt>\n" "#include E<lt>sys/timerfd.hE<gt>\n" +"#include E<lt>sys/types.hE<gt>\n" "#include E<lt>time.hE<gt>\n" "#include E<lt>unistd.hE<gt>\n" "\\&\n" @@ -1375,6 +1378,7 @@ msgstr "" "#include E<lt>stdio.hE<gt>\n" "#include E<lt>stdlib.hE<gt>\n" "#include E<lt>sys/timerfd.hE<gt>\n" +"#include E<lt>sys/types.hE<gt>\n" "#include E<lt>time.hE<gt>\n" "#include E<lt>unistd.hE<gt>\n" "\\&\n" @@ -1492,7 +1496,7 @@ msgid "Linux man-pages 6.03" msgstr "Pages du manuel de Linux 6.03" #. type: TP -#: debian-bookworm debian-unstable opensuse-leap-15-6 opensuse-tumbleweed +#: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "B<poll>(2), B<select>(2) (and similar)" msgstr "B<poll>(2), B<select>(2) (et similaire)" @@ -1791,16 +1795,242 @@ msgstr "" "}\n" #. type: TH -#: debian-unstable opensuse-tumbleweed +#: fedora-40 fedora-rawhide mageia-cauldron #, no-wrap -msgid "2023-05-03" -msgstr "3 mai 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" + +# +# +# +# +# +# +# +#. The commented out code here is what we currently need until +#. the required stuff is in glibc +#. /* Link with \-lrt */ +#. #define _GNU_SOURCE +#. #include <sys/syscall.h> +#. #include <unistd.h> +#. #include <time.h> +#. #if defined(__i386__) +#. #define __NR_timerfd_create 322 +#. #define __NR_timerfd_settime 325 +#. #define __NR_timerfd_gettime 326 +#. #endif +#. static int +#. timerfd_create(int clockid, int flags) +#. { +#. return syscall(__NR_timerfd_create, clockid, flags); +#. } +#. static int +#. timerfd_settime(int fd, int flags, struct itimerspec *new_value, +#. struct itimerspec *curr_value) +#. { +#. return syscall(__NR_timerfd_settime, fd, flags, new_value, +#. curr_value); +#. } +#. static int +#. timerfd_gettime(int fd, struct itimerspec *curr_value) +#. { +#. return syscall(__NR_timerfd_gettime, fd, curr_value); +#. } +#. #define TFD_TIMER_ABSTIME (1 << 0) +#. //////////////////////////////////////////////////////////// +#. type: Plain text +#: fedora-40 fedora-rawhide mageia-cauldron +#, no-wrap +msgid "" +"#include E<lt>err.hE<gt>\n" +"#include E<lt>inttypes.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\n" +"#include E<lt>sys/timerfd.hE<gt>\n" +"#include E<lt>time.hE<gt>\n" +"#include E<lt>unistd.hE<gt>\n" +"\\&\n" +"static void\n" +"print_elapsed_time(void)\n" +"{\n" +" int secs, nsecs;\n" +" static int first_call = 1;\n" +" struct timespec curr;\n" +" static struct timespec start;\n" +"\\&\n" +" if (first_call) {\n" +" first_call = 0;\n" +" if (clock_gettime(CLOCK_MONOTONIC, &start) == -1)\n" +" err(EXIT_FAILURE, \"clock_gettime\");\n" +" }\n" +"\\&\n" +" if (clock_gettime(CLOCK_MONOTONIC, &curr) == -1)\n" +" err(EXIT_FAILURE, \"clock_gettime\");\n" +"\\&\n" +" secs = curr.tv_sec - start.tv_sec;\n" +" nsecs = curr.tv_nsec - start.tv_nsec;\n" +" if (nsecs E<lt> 0) {\n" +" secs--;\n" +" nsecs += 1000000000;\n" +" }\n" +" printf(\"%d.%03d: \", secs, (nsecs + 500000) / 1000000);\n" +"}\n" +"\\&\n" +"int\n" +"main(int argc, char *argv[])\n" +"{\n" +" int fd;\n" +" ssize_t s;\n" +" uint64_t exp, tot_exp, max_exp;\n" +" struct timespec now;\n" +" struct itimerspec new_value;\n" +"\\&\n" +" if (argc != 2 && argc != 4) {\n" +" fprintf(stderr, \"%s init-secs [interval-secs max-exp]\\en\",\n" +" argv[0]);\n" +" exit(EXIT_FAILURE);\n" +" }\n" +"\\&\n" +" if (clock_gettime(CLOCK_REALTIME, &now) == -1)\n" +" err(EXIT_FAILURE, \"clock_gettime\");\n" +"\\&\n" +" /* Create a CLOCK_REALTIME absolute timer with initial\n" +" expiration and interval as specified in command line. */\n" +"\\&\n" +" new_value.it_value.tv_sec = now.tv_sec + atoi(argv[1]);\n" +" new_value.it_value.tv_nsec = now.tv_nsec;\n" +" if (argc == 2) {\n" +" new_value.it_interval.tv_sec = 0;\n" +" max_exp = 1;\n" +" } else {\n" +" new_value.it_interval.tv_sec = atoi(argv[2]);\n" +" max_exp = atoi(argv[3]);\n" +" }\n" +" new_value.it_interval.tv_nsec = 0;\n" +"\\&\n" +" fd = timerfd_create(CLOCK_REALTIME, 0);\n" +" if (fd == -1)\n" +" err(EXIT_FAILURE, \"timerfd_create\");\n" +"\\&\n" +" if (timerfd_settime(fd, TFD_TIMER_ABSTIME, &new_value, NULL) == -1)\n" +" err(EXIT_FAILURE, \"timerfd_settime\");\n" +"\\&\n" +" print_elapsed_time();\n" +" printf(\"timer started\\en\");\n" +"\\&\n" +" for (tot_exp = 0; tot_exp E<lt> max_exp;) {\n" +" s = read(fd, &exp, sizeof(uint64_t));\n" +" if (s != sizeof(uint64_t))\n" +" err(EXIT_FAILURE, \"read\");\n" +"\\&\n" +" tot_exp += exp;\n" +" print_elapsed_time();\n" +" printf(\"read: %\" PRIu64 \"; total=%\" PRIu64 \"\\en\", exp, tot_exp);\n" +" }\n" +"\\&\n" +" exit(EXIT_SUCCESS);\n" +"}\n" +msgstr "" +"#include E<lt>err.hE<gt>\n" +"#include E<lt>inttypes.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\n" +"#include E<lt>sys/timerfd.hE<gt>\n" +"#include E<lt>time.hE<gt>\n" +"#include E<lt>unistd.hE<gt>\n" +"\\&\n" +"static void\n" +"print_elapsed_time(void)\n" +"{\n" +" int secs, nsecs;\n" +" static int first_call = 1;\n" +" struct timespec curr;\n" +" static struct timespec start;\n" +"\\&\n" +" if (first_call) {\n" +" first_call = 0;\n" +" if (clock_gettime(CLOCK_MONOTONIC, &start) == -1)\n" +" err(EXIT_FAILURE, \"clock_gettime\");\n" +" }\n" +"\\&\n" +" if (clock_gettime(CLOCK_MONOTONIC, &curr) == -1)\n" +" err(EXIT_FAILURE, \"clock_gettime\");\n" +"\\&\n" +" secs = curr.tv_sec - start.tv_sec;\n" +" nsecs = curr.tv_nsec - start.tv_nsec;\n" +" if (nsecs E<lt> 0) {\n" +" secs--;\n" +" nsecs += 1000000000;\n" +" }\n" +" printf(\"%d.%03d: \", secs, (nsecs + 500000) / 1000000);\n" +"}\n" +"\\&\n" +"int\n" +"main(int argc, char *argv[])\n" +"{\n" +" int fd;\n" +" ssize_t s;\n" +" uint64_t exp, tot_exp, max_exp;\n" +" struct timespec now;\n" +" struct itimerspec new_value;\n" +"\\&\n" +" if (argc != 2 && argc != 4) {\n" +" fprintf(stderr, \"%s init-secs [interval-secs max-exp]\\en\",\n" +" argv[0]);\n" +" exit(EXIT_FAILURE);\n" +" }\n" +"\\&\n" +" if (clock_gettime(CLOCK_REALTIME, &now) == -1)\n" +" err(EXIT_FAILURE, \"clock_gettime\");\n" +"\\&\n" +" /* Créer une minuterie absolue CLOCK_REALTIME avec une expiration\n" +" et un intervalle initiaux comme spécifié en ligne de commande. */\n" +"\\&\n" +" new_value.it_value.tv_sec = now.tv_sec + atoi(argv[1]);\n" +" new_value.it_value.tv_nsec = now.tv_nsec;\n" +" if (argc == 2) {\n" +" new_value.it_interval.tv_sec = 0;\n" +" max_exp = 1;\n" +" } else {\n" +" new_value.it_interval.tv_sec = atoi(argv[2]);\n" +" max_exp = atoi(argv[3]);\n" +" }\n" +" new_value.it_interval.tv_nsec = 0;\n" +"\\&\n" +" fd = timerfd_create(CLOCK_REALTIME, 0);\n" +" if (fd == -1)\n" +" err(EXIT_FAILURE, \"timerfd_create\");\n" +"\\&\n" +" if (timerfd_settime(fd, TFD_TIMER_ABSTIME, &new_value, NULL) == -1)\n" +" err(EXIT_FAILURE, \"timerfd_settime\");\n" +"\\&\n" +" print_elapsed_time();\n" +" printf(\"timer started\\en\");\n" +"\\&\n" +" for (tot_exp = 0; tot_exp E<lt> max_exp;) {\n" +" s = read(fd, &exp, sizeof(uint64_t));\n" +" if (s != sizeof(uint64_t))\n" +" err(EXIT_FAILURE, \"read\");\n" +"\\&\n" +" tot_exp += exp;\n" +" print_elapsed_time();\n" +" printf(\"read: %\" PRIu64 \"; total=%\" PRIu64 \"\\en\", exp, tot_exp);\n" +" }\n" +"\\&\n" +" exit(EXIT_SUCCESS);\n" +"}\n" + +#. 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 @@ -1813,3 +2043,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)" |