summaryrefslogtreecommitdiffstats
path: root/templates/man2/wait.2.pot
diff options
context:
space:
mode:
Diffstat (limited to 'templates/man2/wait.2.pot')
-rw-r--r--templates/man2/wait.2.pot85
1 files changed, 74 insertions, 11 deletions
diff --git a/templates/man2/wait.2.pot b/templates/man2/wait.2.pot
index 0c9a202a..f0f3c850 100644
--- a/templates/man2/wait.2.pot
+++ b/templates/man2/wait.2.pot
@@ -7,7 +7,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2024-03-01 17:13+0100\n"
+"POT-Creation-Date: 2024-06-01 06:34+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 "wait"
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
@@ -1129,13 +1129,13 @@ 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>stdint.hE<gt>\n"
"#include E<lt>stdio.hE<gt>\n"
"#include E<lt>stdlib.hE<gt>\n"
+"#include E<lt>sys/types.hE<gt>\n"
"#include E<lt>sys/wait.hE<gt>\n"
"#include E<lt>unistd.hE<gt>\n"
"\\&\n"
@@ -1286,15 +1286,72 @@ 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 ""
+"#include E<lt>stdint.hE<gt>\n"
+"#include E<lt>stdio.hE<gt>\n"
+"#include E<lt>stdlib.hE<gt>\n"
+"#include E<lt>sys/wait.hE<gt>\n"
+"#include E<lt>unistd.hE<gt>\n"
+"\\&\n"
+"int\n"
+"main(int argc, char *argv[])\n"
+"{\n"
+" int wstatus;\n"
+" pid_t cpid, w;\n"
+"\\&\n"
+" cpid = fork();\n"
+" if (cpid == -1) {\n"
+" perror(\"fork\");\n"
+" exit(EXIT_FAILURE);\n"
+" }\n"
+"\\&\n"
+" if (cpid == 0) { /* Code executed by child */\n"
+" printf(\"Child PID is %jd\\en\", (intmax_t) getpid());\n"
+" if (argc == 1)\n"
+" pause(); /* Wait for signals */\n"
+" _exit(atoi(argv[1]));\n"
+"\\&\n"
+" } else { /* Code executed by parent */\n"
+" do {\n"
+" w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED);\n"
+" if (w == -1) {\n"
+" perror(\"waitpid\");\n"
+" exit(EXIT_FAILURE);\n"
+" }\n"
+"\\&\n"
+" if (WIFEXITED(wstatus)) {\n"
+" printf(\"exited, status=%d\\en\", WEXITSTATUS(wstatus));\n"
+" } else if (WIFSIGNALED(wstatus)) {\n"
+" printf(\"killed by signal %d\\en\", WTERMSIG(wstatus));\n"
+" } else if (WIFSTOPPED(wstatus)) {\n"
+" printf(\"stopped by signal %d\\en\", WSTOPSIG(wstatus));\n"
+" } else if (WIFCONTINUED(wstatus)) {\n"
+" printf(\"continued\\en\");\n"
+" }\n"
+" } while (!WIFEXITED(wstatus) && !WIFSIGNALED(wstatus));\n"
+" exit(EXIT_SUCCESS);\n"
+" }\n"
+"}\n"
+msgstr ""
+
+#. type: TH
+#: fedora-rawhide
+#, no-wrap
+msgid "Linux man-pages 6.7"
msgstr ""
#. type: TH
@@ -1308,3 +1365,9 @@ msgstr ""
#, no-wrap
msgid "Linux man-pages 6.04"
msgstr ""
+
+#. type: TH
+#: opensuse-tumbleweed
+#, no-wrap
+msgid "Linux man-pages (unreleased)"
+msgstr ""