summaryrefslogtreecommitdiffstats
path: root/templates/man2/eventfd.2.pot
diff options
context:
space:
mode:
Diffstat (limited to 'templates/man2/eventfd.2.pot')
-rw-r--r--templates/man2/eventfd.2.pot102
1 files changed, 87 insertions, 15 deletions
diff --git a/templates/man2/eventfd.2.pot b/templates/man2/eventfd.2.pot
index e4dc1cd8..ff689855 100644
--- a/templates/man2/eventfd.2.pot
+++ b/templates/man2/eventfd.2.pot
@@ -7,7 +7,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2024-03-01 16:55+0100\n"
+"POT-Creation-Date: 2024-06-01 05:48+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 "eventfd"
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
@@ -278,19 +278,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<poll>(2)"
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<select>(2)"
msgstr ""
#. 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 ""
@@ -749,8 +752,7 @@ msgid "Program source"
msgstr ""
#. 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"
@@ -758,6 +760,7 @@ msgid ""
"#include E<lt>stdio.hE<gt>\n"
"#include E<lt>stdlib.hE<gt>\n"
"#include E<lt>sys/eventfd.hE<gt>\n"
+"#include E<lt>sys/types.hE<gt>\n"
"#include E<lt>unistd.hE<gt>\n"
"\\&\n"
"int\n"
@@ -836,7 +839,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<poll>(2), B<select>(2) (and similar)"
msgstr ""
@@ -967,15 +970,78 @@ msgid ""
msgstr ""
#. type: TH
-#: debian-unstable opensuse-tumbleweed
+#: fedora-40 fedora-rawhide mageia-cauldron
+#, no-wrap
+msgid "2023-10-31"
+msgstr ""
+
+#. type: TH
+#: fedora-40 mageia-cauldron
#, no-wrap
-msgid "2023-07-20"
+msgid "Linux man-pages 6.06"
+msgstr ""
+
+#. 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/eventfd.hE<gt>\n"
+"#include E<lt>unistd.hE<gt>\n"
+"\\&\n"
+"int\n"
+"main(int argc, char *argv[])\n"
+"{\n"
+" int efd;\n"
+" uint64_t u;\n"
+" ssize_t s;\n"
+"\\&\n"
+" if (argc E<lt> 2) {\n"
+" fprintf(stderr, \"Usage: %s E<lt>numE<gt>...\\en\", argv[0]);\n"
+" exit(EXIT_FAILURE);\n"
+" }\n"
+"\\&\n"
+" efd = eventfd(0, 0);\n"
+" if (efd == -1)\n"
+" err(EXIT_FAILURE, \"eventfd\");\n"
+"\\&\n"
+" switch (fork()) {\n"
+" case 0:\n"
+" for (size_t j = 1; j E<lt> argc; j++) {\n"
+" printf(\"Child writing %s to efd\\en\", argv[j]);\n"
+" u = strtoull(argv[j], NULL, 0);\n"
+" /* strtoull() allows various bases */\n"
+" s = write(efd, &u, sizeof(uint64_t));\n"
+" if (s != sizeof(uint64_t))\n"
+" err(EXIT_FAILURE, \"write\");\n"
+" }\n"
+" printf(\"Child completed write loop\\en\");\n"
+"\\&\n"
+" exit(EXIT_SUCCESS);\n"
+"\\&\n"
+" default:\n"
+" sleep(2);\n"
+"\\&\n"
+" printf(\"Parent about to read\\en\");\n"
+" s = read(efd, &u, sizeof(uint64_t));\n"
+" if (s != sizeof(uint64_t))\n"
+" err(EXIT_FAILURE, \"read\");\n"
+" printf(\"Parent read %\"PRIu64\" (%#\"PRIx64\") from efd\\en\", u, u);\n"
+" exit(EXIT_SUCCESS);\n"
+"\\&\n"
+" case -1:\n"
+" err(EXIT_FAILURE, \"fork\");\n"
+" }\n"
+"}\n"
msgstr ""
#. type: TH
-#: debian-unstable opensuse-tumbleweed
+#: fedora-rawhide
#, no-wrap
-msgid "Linux man-pages 6.05.01"
+msgid "Linux man-pages 6.7"
msgstr ""
#. type: TH
@@ -989,3 +1055,9 @@ msgstr ""
#, no-wrap
msgid "Linux man-pages 6.04"
msgstr ""
+
+#. type: TH
+#: opensuse-tumbleweed
+#, no-wrap
+msgid "Linux man-pages (unreleased)"
+msgstr ""