summaryrefslogtreecommitdiffstats
path: root/po/ru/man2/timerfd_create.2.po
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:52:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:52:33 +0000
commit2c3307fb903f427be3d021c5780b75cac9af2ce8 (patch)
tree65cf431f40b7481d81ae2dfce9576342686448f7 /po/ru/man2/timerfd_create.2.po
parentReleasing progress-linux version 4.22.0-1~progress7.99u1. (diff)
downloadmanpages-l10n-2c3307fb903f427be3d021c5780b75cac9af2ce8.tar.xz
manpages-l10n-2c3307fb903f427be3d021c5780b75cac9af2ce8.zip
Merging upstream version 4.23.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'po/ru/man2/timerfd_create.2.po')
-rw-r--r--po/ru/man2/timerfd_create.2.po206
1 files changed, 177 insertions, 29 deletions
diff --git a/po/ru/man2/timerfd_create.2.po b/po/ru/man2/timerfd_create.2.po
index fd715804..d8d414c7 100644
--- a/po/ru/man2/timerfd_create.2.po
+++ b/po/ru/man2/timerfd_create.2.po
@@ -8,7 +8,7 @@
msgid ""
msgstr ""
"Project-Id-Version: manpages-l10n\n"
-"POT-Creation-Date: 2024-03-01 17:12+0100\n"
+"POT-Creation-Date: 2024-06-01 06:31+0200\n"
"PO-Revision-Date: 2019-09-16 18:46+0300\n"
"Last-Translator: Yuri Kozlov <yuray@komyakino.ru>\n"
"Language-Team: Russian <man-pages-ru-talks@lists.sourceforge.net>\n"
@@ -16,9 +16,9 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
-"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
-"(n%100>=11 && n%100<=14)? 2 : 3);\n"
+"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
+"%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n"
+"%100>=11 && n%100<=14)? 2 : 3);\n"
"X-Generator: Lokalize 2.0\n"
#. type: TH
@@ -29,16 +29,17 @@ 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 октября 2023 г."
+msgid "2024-05-02"
+msgstr "2 мая 2024 г."
#. type: TH
-#: archlinux fedora-40 fedora-rawhide mageia-cauldron
-#, no-wrap
-msgid "Linux man-pages 6.06"
-msgstr "Linux man-pages 6.06"
+#: archlinux debian-unstable
+#, fuzzy, no-wrap
+#| msgid "Linux man-pages 6.7"
+msgid "Linux man-pages 6.8"
+msgstr "Linux man-pages 6.7"
#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
@@ -570,9 +571,8 @@ msgstr "B<read>(2)"
#| "were last modified using B<timerfd_settime>(), or since the last "
#| "successful B<read>(2), then the buffer given to B<read>(2) returns an "
#| "unsigned 8-byte integer (I<uint64_t>) containing the number of "
-#| "expirations that have occurred. (The returned value is in host byte "
-#| "order\\(emthat is, the native byte order for integers on the host "
-#| "machine.)"
+#| "expirations that have occurred. (The returned value is in host byte order"
+#| "\\(emthat is, the native byte order for integers on the host machine.)"
msgid ""
"If the timer has already expired one or more times since its settings were "
"last modified using B<timerfd_settime>(), or since the last successful "
@@ -659,19 +659,22 @@ msgstr ""
"скачкообразные изменения часов)."
#. 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 ""
@@ -1045,7 +1048,7 @@ msgstr ""
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "NOTES"
-msgstr "ЗАМЕЧАНИЯ"
+msgstr "ПРИМЕЧАНИЯ"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
@@ -1139,7 +1142,7 @@ msgstr ""
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "BUGS"
-msgstr "ДЕФЕКТЫ"
+msgstr "ОШИБКИ"
#. 2.6.29
#. type: Plain text
@@ -1275,8 +1278,7 @@ msgstr "Исходный код программы"
#. #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"
@@ -1284,6 +1286,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,7 +1378,7 @@ msgstr ""
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "SEE ALSO"
-msgstr "СМ. ТАКЖЕ"
+msgstr "СМОТРИТЕ ТАКЖЕ"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
@@ -1402,7 +1405,7 @@ msgid "Linux man-pages 6.03"
msgstr "Linux man-pages 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) (и подобные)"
@@ -1714,16 +1717,154 @@ msgstr ""
"}\n"
#. type: TH
-#: debian-unstable opensuse-tumbleweed
+#: fedora-40 fedora-rawhide mageia-cauldron
+#, no-wrap
+msgid "2023-10-31"
+msgstr "31 октября 2023 г."
+
+#. type: TH
+#: fedora-40 mageia-cauldron
#, no-wrap
-msgid "2023-05-03"
-msgstr "3 мая 2023 г."
+msgid "Linux man-pages 6.06"
+msgstr "Linux man-pages 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 ""
#. type: TH
-#: debian-unstable opensuse-tumbleweed
+#: fedora-rawhide
#, no-wrap
-msgid "Linux man-pages 6.05.01"
-msgstr "Linux man-pages 6.05.01"
+msgid "Linux man-pages 6.7"
+msgstr "Linux man-pages 6.7"
#. type: TH
#: opensuse-leap-15-6
@@ -1736,3 +1877,10 @@ msgstr "30 марта 2023 г."
#, no-wrap
msgid "Linux man-pages 6.04"
msgstr "Linux man-pages 6.04"
+
+#. type: TH
+#: opensuse-tumbleweed
+#, fuzzy, no-wrap
+#| msgid "Linux man-pages 6.7"
+msgid "Linux man-pages (unreleased)"
+msgstr "Linux man-pages 6.7"