diff options
Diffstat (limited to 'po/ru/man3/pthread_create.3.po')
-rw-r--r-- | po/ru/man3/pthread_create.3.po | 220 |
1 files changed, 183 insertions, 37 deletions
diff --git a/po/ru/man3/pthread_create.3.po b/po/ru/man3/pthread_create.3.po index 4bc59443..ebc01783 100644 --- a/po/ru/man3/pthread_create.3.po +++ b/po/ru/man3/pthread_create.3.po @@ -4,14 +4,14 @@ # Alexey, 2016. # Azamat Hackimov <azamat.hackimov@gmail.com>, 2014-2017. # kogamatranslator49 <r.podarov@yandex.ru>, 2015. -# Kogan, Darima <silverdk99@gmail.com>, 2014. +# Darima Kogan <silverdk99@gmail.com>, 2014. # Max Is <ismax799@gmail.com>, 2016. # Yuri Kozlov <yuray@komyakino.ru>, 2011-2019. # Иван Павлов <pavia00@gmail.com>, 2017. msgid "" msgstr "" "Project-Id-Version: manpages-l10n\n" -"POT-Creation-Date: 2024-03-01 17:04+0100\n" +"POT-Creation-Date: 2024-06-01 06:13+0200\n" "PO-Revision-Date: 2019-10-12 08:58+0300\n" "Last-Translator: Yuri Kozlov <yuray@komyakino.ru>\n" "Language-Team: Russian <man-pages-ru-talks@lists.sourceforge.net>\n" @@ -19,9 +19,9 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " -"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " -"(n%100>=11 && n%100<=14)? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n" +"%100>=11 && n%100<=14)? 2 : 3);\n" "X-Generator: Lokalize 2.0\n" #. type: TH @@ -33,16 +33,17 @@ msgid "pthread_create" msgstr "B<pthread_create>()" #. type: TH -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable opensuse-tumbleweed #, no-wrap -msgid "2024-02-12" -msgstr "12 февраля 2024 г." +msgid "2024-05-02" +msgstr "2 мая 2024 г." #. type: TH -#: archlinux fedora-40 fedora-rawhide mageia-cauldron -#, no-wrap -msgid "Linux man-pages 6.06" -msgstr "Linux man-pages 6.06" +#: archlinux debian-unstable +#, fuzzy, no-wrap +#| msgid "Linux man-pages 6.7" +msgid "Linux man-pages 6.8" +msgstr "Linux man-pages 6.7" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide @@ -440,7 +441,7 @@ msgstr "POSIX.1-2001." #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "NOTES" -msgstr "ЗАМЕЧАНИЯ" +msgstr "ПРИМЕЧАНИЯ" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide @@ -493,7 +494,8 @@ msgstr "" "B<pthread_attr_setdetachstate>(3))." #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed #, fuzzy #| msgid "" #| "Under the NPTL threading implementation, if the B<RLIMIT_STACK> soft " @@ -528,7 +530,7 @@ msgstr "" #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "BUGS" -msgstr "ДЕФЕКТЫ" +msgstr "ОШИБКИ" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide @@ -635,8 +637,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>ctype.hE<gt>\n" @@ -645,6 +646,7 @@ msgid "" "#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/types.hE<gt>\n" "#include E<lt>unistd.hE<gt>\n" "\\&\n" "#define handle_error_en(en, msg) \\e\n" @@ -772,7 +774,7 @@ msgstr "" #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" -msgstr "СМ. ТАКЖЕ" +msgstr "СМОТРИТЕ ТАКЖЕ" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide @@ -806,7 +808,7 @@ msgid "POSIX.1-2001, POSIX.1-2008." msgstr "POSIX.1-2001, POSIX.1-2008." #. 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<RLIMIT_STACK> soft " "resource limit I<at the time the program started> has any value other than " @@ -826,73 +828,73 @@ 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 "i386" #. 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 "2 МБ" #. 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 "IA-64" #. 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 "32 МБ" #. type: tbl table -#: debian-bookworm debian-unstable opensuse-leap-15-6 opensuse-tumbleweed +#: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "PowerPC" msgstr "PowerPC" #. 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 "4 МБ" #. 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 "S/390" #. 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 "Sparc-32" #. 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 "Sparc-64" #. 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 "x86_64" @@ -1311,16 +1313,153 @@ msgstr "" "}\n" #. type: TH -#: debian-unstable opensuse-tumbleweed +#: fedora-40 fedora-rawhide mageia-cauldron #, no-wrap -msgid "2023-07-20" -msgstr "20 июля 2023 г." +msgid "2024-02-12" +msgstr "12 февраля 2024 г." #. type: TH -#: debian-unstable opensuse-tumbleweed +#: fedora-40 mageia-cauldron #, no-wrap -msgid "Linux man-pages 6.05.01" -msgstr "Linux man-pages 6.05.01" +msgid "Linux man-pages 6.06" +msgstr "Linux man-pages 6.06" + +#. type: Plain text +#: fedora-40 fedora-rawhide mageia-cauldron +#, no-wrap +msgid "" +"#include E<lt>ctype.hE<gt>\n" +"#include E<lt>errno.hE<gt>\n" +"#include E<lt>pthread.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>unistd.hE<gt>\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-E<gt>thread_num, (void *) &tinfo, tinfo-E<gt>argv_string);\n" +"\\&\n" +" uargv = strdup(tinfo-E<gt>argv_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<gt> 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<lt> 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<lt> 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 +#: fedora-rawhide +#, no-wrap +msgid "Linux man-pages 6.7" +msgstr "Linux man-pages 6.7" #. type: TH #: opensuse-leap-15-6 @@ -1333,3 +1472,10 @@ msgstr "30 марта 2023 г." #, no-wrap msgid "Linux man-pages 6.04" msgstr "Linux man-pages 6.04" + +#. type: TH +#: opensuse-tumbleweed +#, fuzzy, no-wrap +#| msgid "Linux man-pages 6.7" +msgid "Linux man-pages (unreleased)" +msgstr "Linux man-pages 6.7" |