summaryrefslogtreecommitdiffstats
path: root/templates/man2/memfd_create.2.pot
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:52:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:52:03 +0000
commit932e4432596447eb9331cc2a2bb74a26a35b4efc (patch)
tree95161711ea07fd64f0c82d6e7943024c033dd5a8 /templates/man2/memfd_create.2.pot
parentAdding debian version 4.22.0-1. (diff)
downloadmanpages-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 'templates/man2/memfd_create.2.pot')
-rw-r--r--templates/man2/memfd_create.2.pot131
1 files changed, 116 insertions, 15 deletions
diff --git a/templates/man2/memfd_create.2.pot b/templates/man2/memfd_create.2.pot
index 9ab1273a..11572e53 100644
--- a/templates/man2/memfd_create.2.pot
+++ b/templates/man2/memfd_create.2.pot
@@ -7,7 +7,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2024-03-01 17:01+0100\n"
+"POT-Creation-Date: 2024-06-01 06:02+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -24,15 +24,15 @@ msgid "memfd_create"
msgstr ""
#. type: TH
-#: archlinux fedora-40 fedora-rawhide mageia-cauldron
+#: archlinux debian-unstable opensuse-tumbleweed
#, no-wrap
-msgid "2023-10-31"
+msgid "2024-05-02"
msgstr ""
#. type: TH
-#: archlinux fedora-40 fedora-rawhide mageia-cauldron
+#: archlinux debian-unstable
#, no-wrap
-msgid "Linux man-pages 6.06"
+msgid "Linux man-pages 6.8"
msgstr ""
#. type: SH
@@ -198,19 +198,22 @@ msgid ""
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<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 ""
@@ -694,8 +697,7 @@ msgid "Program source: t_memfd_create.c"
msgstr ""
#. 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"
@@ -706,6 +708,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"
@@ -867,7 +870,7 @@ msgid "Linux man-pages 6.03"
msgstr ""
#. 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 ""
@@ -1141,15 +1144,107 @@ msgid ""
msgstr ""
#. type: TH
-#: debian-unstable opensuse-tumbleweed
+#: fedora-40 fedora-rawhide mageia-cauldron
#, no-wrap
-msgid "2023-05-03"
+msgid "2023-10-31"
msgstr ""
#. type: TH
-#: debian-unstable opensuse-tumbleweed
+#: fedora-40 mageia-cauldron
#, no-wrap
-msgid "Linux man-pages 6.05.01"
+msgid "Linux man-pages 6.06"
+msgstr ""
+
+#. 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 ""
#. type: TH
@@ -1163,3 +1258,9 @@ msgstr ""
#, no-wrap
msgid "Linux man-pages 6.04"
msgstr ""
+
+#. type: TH
+#: opensuse-tumbleweed
+#, no-wrap
+msgid "Linux man-pages (unreleased)"
+msgstr ""