summaryrefslogtreecommitdiffstats
path: root/po/ru/man2/memfd_create.2.po
diff options
context:
space:
mode:
Diffstat (limited to 'po/ru/man2/memfd_create.2.po')
-rw-r--r--po/ru/man2/memfd_create.2.po153
1 files changed, 128 insertions, 25 deletions
diff --git a/po/ru/man2/memfd_create.2.po b/po/ru/man2/memfd_create.2.po
index 44e0ba61..7f3d2be9 100644
--- a/po/ru/man2/memfd_create.2.po
+++ b/po/ru/man2/memfd_create.2.po
@@ -14,7 +14,7 @@
msgid ""
msgstr ""
"Project-Id-Version: manpages-l10n\n"
-"POT-Creation-Date: 2024-03-01 17:01+0100\n"
+"POT-Creation-Date: 2024-06-01 06:02+0200\n"
"PO-Revision-Date: 2019-10-06 08:59+0300\n"
"Last-Translator: Yuri Kozlov <yuray@komyakino.ru>\n"
"Language-Team: Russian <man-pages-ru-talks@lists.sourceforge.net>\n"
@@ -22,9 +22,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
@@ -35,16 +35,17 @@ msgid "memfd_create"
msgstr "memfd_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
@@ -242,19 +243,22 @@ msgstr ""
"начиная с Linux 4.16."
#. type: TP
-#: archlinux fedora-40 fedora-rawhide mageia-cauldron
+#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron
+#: opensuse-tumbleweed
#, no-wrap
msgid "B<MFD_HUGE_2MB>"
msgstr ""
#. type: TQ
-#: archlinux fedora-40 fedora-rawhide mageia-cauldron
+#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron
+#: opensuse-tumbleweed
#, no-wrap
msgid "B<MFD_HUGE_1GB>"
msgstr ""
#. type: TQ
-#: archlinux fedora-40 fedora-rawhide mageia-cauldron
+#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron
+#: opensuse-tumbleweed
#, no-wrap
msgid "\\&.\\|.\\|."
msgstr ""
@@ -483,7 +487,7 @@ msgstr "Начиная с glibc 2.2.2:"
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "NOTES"
-msgstr "ЗАМЕЧАНИЯ"
+msgstr "ПРИМЕЧАНИЯ"
#. See also http://lwn.net/Articles/593918/
#. and http://lwn.net/Articles/594919/ and http://lwn.net/Articles/591108/
@@ -860,8 +864,7 @@ msgid "Program source: t_memfd_create.c"
msgstr "Исходный код программы: t_memfd_create.c"
#. 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"
@@ -872,6 +875,7 @@ msgid ""
"#include E<lt>stdlib.hE<gt>\n"
"#include E<lt>string.hE<gt>\n"
"#include E<lt>sys/mman.hE<gt>\n"
+"#include E<lt>sys/types.hE<gt>\n"
"#include E<lt>unistd.hE<gt>\n"
"\\&\n"
"int\n"
@@ -1010,7 +1014,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
@@ -1035,7 +1039,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<MFD_HUGE_2MB>, B<MFD_HUGE_1GB>, B<...>"
msgstr "B<MFD_HUGE_2MB>, B<MFD_HUGE_1GB>, B<...>"
@@ -1438,16 +1442,108 @@ msgid ""
msgstr " /* Здесь может быть код для отображения и доступа к содержимому файла. */\n"
#. type: TH
-#: debian-unstable opensuse-tumbleweed
+#: fedora-40 fedora-rawhide mageia-cauldron
#, no-wrap
-msgid "2023-05-03"
-msgstr "3 мая 2023 г."
+msgid "2023-10-31"
+msgstr "31 октября 2023 г."
#. type: TH
-#: debian-unstable opensuse-tumbleweed
+#: fedora-40 mageia-cauldron
#, no-wrap
-msgid "Linux man-pages 6.05.01"
-msgstr "Linux man-pages 6.05.01"
+msgid "Linux man-pages 6.06"
+msgstr "Linux man-pages 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>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>sys/mman.hE<gt>\n"
+"#include E<lt>unistd.hE<gt>\n"
+"\\&\n"
+"int\n"
+"main(int argc, char *argv[])\n"
+"{\n"
+" int fd;\n"
+" char *name, *seals_arg;\n"
+" ssize_t len;\n"
+" unsigned int seals;\n"
+"\\&\n"
+" if (argc E<lt> 3) {\n"
+" fprintf(stderr, \"%s name size [seals]\\en\", argv[0]);\n"
+" fprintf(stderr, \"\\et\\[aq]seals\\[aq] can contain any of the \"\n"
+" \"following characters:\\en\");\n"
+" fprintf(stderr, \"\\et\\etg - F_SEAL_GROW\\en\");\n"
+" fprintf(stderr, \"\\et\\ets - F_SEAL_SHRINK\\en\");\n"
+" fprintf(stderr, \"\\et\\etw - F_SEAL_WRITE\\en\");\n"
+" fprintf(stderr, \"\\et\\etW - F_SEAL_FUTURE_WRITE\\en\");\n"
+" fprintf(stderr, \"\\et\\etS - F_SEAL_SEAL\\en\");\n"
+" exit(EXIT_FAILURE);\n"
+" }\n"
+"\\&\n"
+" name = argv[1];\n"
+" len = atoi(argv[2]);\n"
+" seals_arg = argv[3];\n"
+"\\&\n"
+" /* Create an anonymous file in tmpfs; allow seals to be\n"
+" placed on the file. */\n"
+"\\&\n"
+" fd = memfd_create(name, MFD_ALLOW_SEALING);\n"
+" if (fd == -1)\n"
+" err(EXIT_FAILURE, \"memfd_create\");\n"
+"\\&\n"
+" /* Size the file as specified on the command line. */\n"
+"\\&\n"
+" if (ftruncate(fd, len) == -1)\n"
+" err(EXIT_FAILURE, \"truncate\");\n"
+"\\&\n"
+" printf(\"PID: %jd; fd: %d; /proc/%jd/fd/%d\\en\",\n"
+" (intmax_t) getpid(), fd, (intmax_t) getpid(), fd);\n"
+"\\&\n"
+" /* Code to map the file and populate the mapping with data\n"
+" omitted. */\n"
+"\\&\n"
+" /* If a \\[aq]seals\\[aq] command-line argument was supplied, set some\n"
+" seals on the file. */\n"
+"\\&\n"
+" if (seals_arg != NULL) {\n"
+" seals = 0;\n"
+"\\&\n"
+" if (strchr(seals_arg, \\[aq]g\\[aq]) != NULL)\n"
+" seals |= F_SEAL_GROW;\n"
+" if (strchr(seals_arg, \\[aq]s\\[aq]) != NULL)\n"
+" seals |= F_SEAL_SHRINK;\n"
+" if (strchr(seals_arg, \\[aq]w\\[aq]) != NULL)\n"
+" seals |= F_SEAL_WRITE;\n"
+" if (strchr(seals_arg, \\[aq]W\\[aq]) != NULL)\n"
+" seals |= F_SEAL_FUTURE_WRITE;\n"
+" if (strchr(seals_arg, \\[aq]S\\[aq]) != NULL)\n"
+" seals |= F_SEAL_SEAL;\n"
+"\\&\n"
+" if (fcntl(fd, F_ADD_SEALS, seals) == -1)\n"
+" err(EXIT_FAILURE, \"fcntl\");\n"
+" }\n"
+"\\&\n"
+" /* Keep running, so that the file created by memfd_create()\n"
+" continues to exist. */\n"
+"\\&\n"
+" pause();\n"
+"\\&\n"
+" exit(EXIT_SUCCESS);\n"
+"}\n"
+msgstr ""
+
+#. type: TH
+#: fedora-rawhide
+#, no-wrap
+msgid "Linux man-pages 6.7"
+msgstr "Linux man-pages 6.7"
#. type: TH
#: opensuse-leap-15-6
@@ -1460,3 +1556,10 @@ msgstr "3 апреля 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"