From 2c3307fb903f427be3d021c5780b75cac9af2ce8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 17 Jun 2024 12:52:33 +0200 Subject: Merging upstream version 4.23.0. Signed-off-by: Daniel Baumann --- templates/man3/pthread_create.3.pot | 194 +++++++++++++++++++++++++++++++----- 1 file changed, 169 insertions(+), 25 deletions(-) (limited to 'templates/man3/pthread_create.3.pot') diff --git a/templates/man3/pthread_create.3.pot b/templates/man3/pthread_create.3.pot index a150a1ed..4f2c8fa4 100644 --- a/templates/man3/pthread_create.3.pot +++ b/templates/man3/pthread_create.3.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2024-03-01 17:04+0100\n" +"POT-Creation-Date: 2024-06-01 06:13+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 "pthread_create" msgstr "" #. type: TH -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable opensuse-tumbleweed #, no-wrap -msgid "2024-02-12" +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 @@ -418,7 +418,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 "" "Under the NPTL threading implementation, if the B soft " "resource limit I has any value other than " @@ -517,8 +518,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 Ectype.hE\n" @@ -527,6 +527,7 @@ msgid "" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" +"#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "#define handle_error_en(en, msg) \\e\n" @@ -684,7 +685,7 @@ msgid "POSIX.1-2001, POSIX.1-2008." msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable opensuse-leap-15-6 opensuse-tumbleweed +#: debian-bookworm opensuse-leap-15-6 msgid "" "Under the NPTL threading implementation, if the B soft " "resource limit I has any value other than " @@ -697,73 +698,73 @@ msgid "" msgstr "" #. type: tbl table -#: debian-bookworm debian-unstable opensuse-leap-15-6 opensuse-tumbleweed +#: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "Architecture" msgstr "" #. type: tbl table -#: debian-bookworm debian-unstable opensuse-leap-15-6 opensuse-tumbleweed +#: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "Default stack size" msgstr "" #. type: tbl table -#: debian-bookworm debian-unstable opensuse-leap-15-6 opensuse-tumbleweed +#: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "i386" msgstr "" #. type: tbl table -#: debian-bookworm debian-unstable opensuse-leap-15-6 opensuse-tumbleweed +#: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "2 MB" msgstr "" #. type: tbl table -#: debian-bookworm debian-unstable opensuse-leap-15-6 opensuse-tumbleweed +#: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "IA-64" msgstr "" #. type: tbl table -#: debian-bookworm debian-unstable opensuse-leap-15-6 opensuse-tumbleweed +#: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "32 MB" msgstr "" #. type: tbl table -#: debian-bookworm debian-unstable opensuse-leap-15-6 opensuse-tumbleweed +#: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "PowerPC" msgstr "" #. type: tbl table -#: debian-bookworm debian-unstable opensuse-leap-15-6 opensuse-tumbleweed +#: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "4 MB" msgstr "" #. type: tbl table -#: debian-bookworm debian-unstable opensuse-leap-15-6 opensuse-tumbleweed +#: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "S/390" msgstr "" #. type: tbl table -#: debian-bookworm debian-unstable opensuse-leap-15-6 opensuse-tumbleweed +#: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "Sparc-32" msgstr "" #. type: tbl table -#: debian-bookworm debian-unstable opensuse-leap-15-6 opensuse-tumbleweed +#: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "Sparc-64" msgstr "" #. type: tbl table -#: debian-bookworm debian-unstable opensuse-leap-15-6 opensuse-tumbleweed +#: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "x86_64" msgstr "" @@ -1039,15 +1040,152 @@ msgid "" msgstr "" #. type: TH -#: debian-unstable opensuse-tumbleweed +#: fedora-40 fedora-rawhide mageia-cauldron +#, no-wrap +msgid "2024-02-12" +msgstr "" + +#. type: TH +#: fedora-40 mageia-cauldron +#, no-wrap +msgid "Linux man-pages 6.06" +msgstr "" + +#. type: Plain text +#: fedora-40 fedora-rawhide mageia-cauldron #, no-wrap -msgid "2023-07-20" +msgid "" +"#include Ectype.hE\n" +"#include Eerrno.hE\n" +"#include Epthread.hE\n" +"#include Estdio.hE\n" +"#include Estdlib.hE\n" +"#include Estring.hE\n" +"#include Eunistd.hE\n" +"\\&\n" +"#define handle_error_en(en, msg) \\e\n" +" do { errno = en; perror(msg); exit(EXIT_FAILURE); } while (0)\n" +"\\&\n" +"#define handle_error(msg) \\e\n" +" do { perror(msg); exit(EXIT_FAILURE); } while (0)\n" +"\\&\n" +"struct thread_info { /* Used as argument to thread_start() */\n" +" pthread_t thread_id; /* ID returned by pthread_create() */\n" +" int thread_num; /* Application-defined thread # */\n" +" char *argv_string; /* From command-line argument */\n" +"};\n" +"\\&\n" +"/* Thread start function: display address near top of our stack,\n" +" and return upper-cased copy of argv_string. */\n" +"\\&\n" +"static void *\n" +"thread_start(void *arg)\n" +"{\n" +" struct thread_info *tinfo = arg;\n" +" char *uargv;\n" +"\\&\n" +" printf(\"Thread %d: top of stack near %p; argv_string=%s\\en\",\n" +" tinfo-Ethread_num, (void *) &tinfo, tinfo-Eargv_string);\n" +"\\&\n" +" uargv = strdup(tinfo-Eargv_string);\n" +" if (uargv == NULL)\n" +" handle_error(\"strdup\");\n" +"\\&\n" +" for (char *p = uargv; *p != \\[aq]\\e0\\[aq]; p++)\n" +" *p = toupper(*p);\n" +"\\&\n" +" return uargv;\n" +"}\n" +"\\&\n" +"int\n" +"main(int argc, char *argv[])\n" +"{\n" +" int s, opt;\n" +" void *res;\n" +" size_t num_threads;\n" +" ssize_t stack_size;\n" +" pthread_attr_t attr;\n" +" struct thread_info *tinfo;\n" +"\\&\n" +" /* The \"-s\" option specifies a stack size for our threads. */\n" +"\\&\n" +" stack_size = -1;\n" +" while ((opt = getopt(argc, argv, \"s:\")) != -1) {\n" +" switch (opt) {\n" +" case \\[aq]s\\[aq]:\n" +" stack_size = strtoul(optarg, NULL, 0);\n" +" break;\n" +"\\&\n" +" default:\n" +" fprintf(stderr, \"Usage: %s [-s stack-size] arg...\\en\",\n" +" argv[0]);\n" +" exit(EXIT_FAILURE);\n" +" }\n" +" }\n" +"\\&\n" +" num_threads = argc - optind;\n" +"\\&\n" +" /* Initialize thread creation attributes. */\n" +"\\&\n" +" s = pthread_attr_init(&attr);\n" +" if (s != 0)\n" +" handle_error_en(s, \"pthread_attr_init\");\n" +"\\&\n" +" if (stack_size E 0) {\n" +" s = pthread_attr_setstacksize(&attr, stack_size);\n" +" if (s != 0)\n" +" handle_error_en(s, \"pthread_attr_setstacksize\");\n" +" }\n" +"\\&\n" +" /* Allocate memory for pthread_create() arguments. */\n" +"\\&\n" +" tinfo = calloc(num_threads, sizeof(*tinfo));\n" +" if (tinfo == NULL)\n" +" handle_error(\"calloc\");\n" +"\\&\n" +" /* Create one thread for each command-line argument. */\n" +"\\&\n" +" for (size_t tnum = 0; tnum E num_threads; tnum++) {\n" +" tinfo[tnum].thread_num = tnum + 1;\n" +" tinfo[tnum].argv_string = argv[optind + tnum];\n" +"\\&\n" +" /* The pthread_create() call stores the thread ID into\n" +" corresponding element of tinfo[]. */\n" +"\\&\n" +" s = pthread_create(&tinfo[tnum].thread_id, &attr,\n" +" &thread_start, &tinfo[tnum]);\n" +" if (s != 0)\n" +" handle_error_en(s, \"pthread_create\");\n" +" }\n" +"\\&\n" +" /* Destroy the thread attributes object, since it is no\n" +" longer needed. */\n" +"\\&\n" +" s = pthread_attr_destroy(&attr);\n" +" if (s != 0)\n" +" handle_error_en(s, \"pthread_attr_destroy\");\n" +"\\&\n" +" /* Now join with each thread, and display its returned value. */\n" +"\\&\n" +" for (size_t tnum = 0; tnum E num_threads; tnum++) {\n" +" s = pthread_join(tinfo[tnum].thread_id, &res);\n" +" if (s != 0)\n" +" handle_error_en(s, \"pthread_join\");\n" +"\\&\n" +" printf(\"Joined with thread %d; returned value was %s\\en\",\n" +" tinfo[tnum].thread_num, (char *) res);\n" +" free(res); /* Free memory allocated by thread */\n" +" }\n" +"\\&\n" +" free(tinfo);\n" +" exit(EXIT_SUCCESS);\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 @@ -1061,3 +1199,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