From 932e4432596447eb9331cc2a2bb74a26a35b4efc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 17 Jun 2024 12:52:03 +0200 Subject: Merging upstream version 4.23.0. Signed-off-by: Daniel Baumann --- templates/man3/getaddrinfo_a.3.pot | 296 +++++-------------------------------- 1 file changed, 34 insertions(+), 262 deletions(-) (limited to 'templates/man3/getaddrinfo_a.3.pot') diff --git a/templates/man3/getaddrinfo_a.3.pot b/templates/man3/getaddrinfo_a.3.pot index bb6e836e..5851bbe4 100644 --- a/templates/man3/getaddrinfo_a.3.pot +++ b/templates/man3/getaddrinfo_a.3.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2024-03-01 16:56+0100\n" +"POT-Creation-Date: 2024-06-01 05:51+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -24,15 +24,15 @@ msgid "getaddrinfo_a" 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 @@ -192,7 +192,8 @@ msgid "" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed msgid "" "When I is specified as B, notifications about resolved " "requests can be obtained by employing the I structure pointed to " @@ -224,7 +225,8 @@ msgstr "" #. si_pid and si_uid are also set, to the values of the calling process, #. which doesn't provide useful information, so we'll skip mentioning it. #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed msgid "" "When a look-up completes, generate the signal I for the " "process. See B(3type) for general details. The I field " @@ -239,7 +241,8 @@ msgid "B" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed msgid "" "When a look-up completes, invoke I as if it were the " "start function of a new thread. See B(3type) for details." @@ -639,7 +642,8 @@ msgid "Here is the program source code" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed #, no-wrap msgid "" "#define _GNU_SOURCE\n" @@ -754,7 +758,8 @@ msgid "The program source is as follows:" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed #, no-wrap msgid "" "#define _GNU_SOURCE\n" @@ -976,7 +981,8 @@ msgid "SEE ALSO" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed msgid "" "B(3), B(3), B(3), B(7), B(7), " "B(3type)" @@ -995,7 +1001,7 @@ msgid "Linux man-pages 6.03" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable opensuse-leap-15-6 opensuse-tumbleweed +#: debian-bookworm opensuse-leap-15-6 msgid "" "When I is specified as B, notifications about resolved " "requests can be obtained by employing the I structure pointed to " @@ -1007,7 +1013,7 @@ msgstr "" #. si_pid and si_uid are also set, to the values of the calling process, #. which doesn't provide useful information, so we'll skip mentioning it. #. type: Plain text -#: debian-bookworm debian-unstable opensuse-leap-15-6 opensuse-tumbleweed +#: debian-bookworm opensuse-leap-15-6 msgid "" "When a look-up completes, generate the signal I for the " "process. See B(7) for general details. The I field of " @@ -1015,7 +1021,7 @@ msgid "" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable opensuse-leap-15-6 opensuse-tumbleweed +#: debian-bookworm opensuse-leap-15-6 msgid "" "When a look-up completes, invoke I as if it were the " "start function of a new thread. See B(7) for details." @@ -1429,268 +1435,28 @@ msgid "" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable opensuse-leap-15-6 opensuse-tumbleweed +#: debian-bookworm opensuse-leap-15-6 msgid "" "B(3), B(3), B(3), B(7), B(7), " "B(7)" msgstr "" #. type: TH -#: debian-unstable opensuse-tumbleweed +#: fedora-40 fedora-rawhide mageia-cauldron #, no-wrap -msgid "2023-07-20" +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 -#: debian-unstable opensuse-tumbleweed +#. type: TH +#: fedora-rawhide #, no-wrap -msgid "" -"#define _GNU_SOURCE\n" -"#include Enetdb.hE\n" -"#include Estdio.hE\n" -"#include Estdlib.hE\n" -"#include Estring.hE\n" -"\\&\n" -"int\n" -"main(int argc, char *argv[])\n" -"{\n" -" int ret;\n" -" struct gaicb *reqs[argc - 1];\n" -" char host[NI_MAXHOST];\n" -" struct addrinfo *res;\n" -"\\&\n" -" if (argc E 2) {\n" -" fprintf(stderr, \"Usage: %s HOST...\\en\", argv[0]);\n" -" exit(EXIT_FAILURE);\n" -" }\n" -"\\&\n" -" for (size_t i = 0; i E argc - 1; i++) {\n" -" reqs[i] = malloc(sizeof(*reqs[0]));\n" -" if (reqs[i] == NULL) {\n" -" perror(\"malloc\");\n" -" exit(EXIT_FAILURE);\n" -" }\n" -" memset(reqs[i], 0, sizeof(*reqs[0]));\n" -" reqs[i]-Ear_name = argv[i + 1];\n" -" }\n" -"\\&\n" -" ret = getaddrinfo_a(GAI_WAIT, reqs, argc - 1, NULL);\n" -" if (ret != 0) {\n" -" fprintf(stderr, \"getaddrinfo_a() failed: %s\\en\",\n" -" gai_strerror(ret));\n" -" exit(EXIT_FAILURE);\n" -" }\n" -"\\&\n" -" for (size_t i = 0; i E argc - 1; i++) {\n" -" printf(\"%s: \", reqs[i]-Ear_name);\n" -" ret = gai_error(reqs[i]);\n" -" if (ret == 0) {\n" -" res = reqs[i]-Ear_result;\n" -"\\&\n" -" ret = getnameinfo(res-Eai_addr, res-Eai_addrlen,\n" -" host, sizeof(host),\n" -" NULL, 0, NI_NUMERICHOST);\n" -" if (ret != 0) {\n" -" fprintf(stderr, \"getnameinfo() failed: %s\\en\",\n" -" gai_strerror(ret));\n" -" exit(EXIT_FAILURE);\n" -" }\n" -" puts(host);\n" -"\\&\n" -" } else {\n" -" puts(gai_strerror(ret));\n" -" }\n" -" }\n" -" exit(EXIT_SUCCESS);\n" -"}\n" -msgstr "" - -#. type: Plain text -#: debian-unstable opensuse-tumbleweed -#, no-wrap -msgid "" -"#define _GNU_SOURCE\n" -"#include Enetdb.hE\n" -"#include Estdio.hE\n" -"#include Estdlib.hE\n" -"#include Estring.hE\n" -"\\&\n" -"static struct gaicb **reqs = NULL;\n" -"static size_t nreqs = 0;\n" -"\\&\n" -"static char *\n" -"getcmd(void)\n" -"{\n" -" static char buf[256];\n" -"\\&\n" -" fputs(\"E \", stdout); fflush(stdout);\n" -" if (fgets(buf, sizeof(buf), stdin) == NULL)\n" -" return NULL;\n" -"\\&\n" -" if (buf[strlen(buf) - 1] == \\[aq]\\en\\[aq])\n" -" buf[strlen(buf) - 1] = 0;\n" -"\\&\n" -" return buf;\n" -"}\n" -"\\&\n" -"/* Add requests for specified hostnames. */\n" -"static void\n" -"add_requests(void)\n" -"{\n" -" size_t nreqs_base = nreqs;\n" -" char *host;\n" -" int ret;\n" -"\\&\n" -" while ((host = strtok(NULL, \" \"))) {\n" -" nreqs++;\n" -" reqs = realloc(reqs, sizeof(reqs[0]) * nreqs);\n" -"\\&\n" -" reqs[nreqs - 1] = calloc(1, sizeof(*reqs[0]));\n" -" reqs[nreqs - 1]-Ear_name = strdup(host);\n" -" }\n" -"\\&\n" -" /* Queue nreqs_base..nreqs requests. */\n" -"\\&\n" -" ret = getaddrinfo_a(GAI_NOWAIT, &reqs[nreqs_base],\n" -" nreqs - nreqs_base, NULL);\n" -" if (ret) {\n" -" fprintf(stderr, \"getaddrinfo_a() failed: %s\\en\",\n" -" gai_strerror(ret));\n" -" exit(EXIT_FAILURE);\n" -" }\n" -"}\n" -"\\&\n" -"/* Wait until at least one of specified requests completes. */\n" -"static void\n" -"wait_requests(void)\n" -"{\n" -" char *id;\n" -" int ret;\n" -" size_t n;\n" -" struct gaicb const **wait_reqs = calloc(nreqs, sizeof(*wait_reqs));\n" -" /* NULL elements are ignored by gai_suspend(). */\n" -"\\&\n" -" while ((id = strtok(NULL, \" \")) != NULL) {\n" -" n = atoi(id);\n" -"\\&\n" -" if (n E= nreqs) {\n" -" printf(\"Bad request number: %s\\en\", id);\n" -" return;\n" -" }\n" -"\\&\n" -" wait_reqs[n] = reqs[n];\n" -" }\n" -"\\&\n" -" ret = gai_suspend(wait_reqs, nreqs, NULL);\n" -" if (ret) {\n" -" printf(\"gai_suspend(): %s\\en\", gai_strerror(ret));\n" -" return;\n" -" }\n" -"\\&\n" -" for (size_t i = 0; i E nreqs; i++) {\n" -" if (wait_reqs[i] == NULL)\n" -" continue;\n" -"\\&\n" -" ret = gai_error(reqs[i]);\n" -" if (ret == EAI_INPROGRESS)\n" -" continue;\n" -"\\&\n" -" printf(\"[%02zu] %s: %s\\en\", i, reqs[i]-Ear_name,\n" -" ret == 0 ? \"Finished\" : gai_strerror(ret));\n" -" }\n" -"}\n" -"\\&\n" -"/* Cancel specified requests. */\n" -"static void\n" -"cancel_requests(void)\n" -"{\n" -" char *id;\n" -" int ret;\n" -" size_t n;\n" -"\\&\n" -" while ((id = strtok(NULL, \" \")) != NULL) {\n" -" n = atoi(id);\n" -"\\&\n" -" if (n E= nreqs) {\n" -" printf(\"Bad request number: %s\\en\", id);\n" -" return;\n" -" }\n" -"\\&\n" -" ret = gai_cancel(reqs[n]);\n" -" printf(\"[%s] %s: %s\\en\", id, reqs[atoi(id)]-Ear_name,\n" -" gai_strerror(ret));\n" -" }\n" -"}\n" -"\\&\n" -"/* List all requests. */\n" -"static void\n" -"list_requests(void)\n" -"{\n" -" int ret;\n" -" char host[NI_MAXHOST];\n" -" struct addrinfo *res;\n" -"\\&\n" -" for (size_t i = 0; i E nreqs; i++) {\n" -" printf(\"[%02zu] %s: \", i, reqs[i]-Ear_name);\n" -" ret = gai_error(reqs[i]);\n" -"\\&\n" -" if (!ret) {\n" -" res = reqs[i]-Ear_result;\n" -"\\&\n" -" ret = getnameinfo(res-Eai_addr, res-Eai_addrlen,\n" -" host, sizeof(host),\n" -" NULL, 0, NI_NUMERICHOST);\n" -" if (ret) {\n" -" fprintf(stderr, \"getnameinfo() failed: %s\\en\",\n" -" gai_strerror(ret));\n" -" exit(EXIT_FAILURE);\n" -" }\n" -" puts(host);\n" -" } else {\n" -" puts(gai_strerror(ret));\n" -" }\n" -" }\n" -"}\n" -"\\&\n" -"int\n" -"main(void)\n" -"{\n" -" char *cmdline;\n" -" char *cmd;\n" -"\\&\n" -" while ((cmdline = getcmd()) != NULL) {\n" -" cmd = strtok(cmdline, \" \");\n" -"\\&\n" -" if (cmd == NULL) {\n" -" list_requests();\n" -" } else {\n" -" switch (cmd[0]) {\n" -" case \\[aq]a\\[aq]:\n" -" add_requests();\n" -" break;\n" -" case \\[aq]w\\[aq]:\n" -" wait_requests();\n" -" break;\n" -" case \\[aq]c\\[aq]:\n" -" cancel_requests();\n" -" break;\n" -" case \\[aq]l\\[aq]:\n" -" list_requests();\n" -" break;\n" -" default:\n" -" fprintf(stderr, \"Bad command: %c\\en\", cmd[0]);\n" -" break;\n" -" }\n" -" }\n" -" }\n" -" exit(EXIT_SUCCESS);\n" -"}\n" +msgid "Linux man-pages 6.7" msgstr "" #. type: TH @@ -1704,3 +1470,9 @@ msgstr "" #, no-wrap msgid "Linux man-pages 6.04" msgstr "" + +#. type: TH +#: opensuse-tumbleweed +#, no-wrap +msgid "Linux man-pages (unreleased)" +msgstr "" -- cgit v1.2.3