# Romanian translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # Remus-Gabriel Chelu , 2024, 2025. msgid "" msgstr "" "Project-Id-Version: manpages-l10n 4.24.0\n" "POT-Creation-Date: 2026-06-05 06:38+0200\n" "PO-Revision-Date: 2025-11-05 19:47+0100\n" "Last-Translator: Remus-Gabriel Chelu \n" "Language-Team: Romanian \n" "Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < " "20)) ? 1 : 2;\n" "X-Generator: Poedit 3.6\n" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "pthread_setname_np" msgstr "pthread_setname_np" #. type: TH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "2026-02-08" msgstr "8 februarie 2026" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "Pagini de manual de Linux 6.18" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "NUME" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "pthread_setname_np, pthread_getname_np - set/get the name of a thread" msgstr "" "pthread_setname_np, pthread_getname_np - stabilește/obține numele unui fir" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "BIBLIOTECA" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "POSIX threads library (I,\\ I<-lpthread>)" msgstr "Biblioteca de fire de execuție POSIX (I, I<-lpthread>)" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "SINOPSIS" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" "B<#include Epthread.hE>\n" msgstr "" "B<#define _GNU_SOURCE> /* Consultați feature_test_macros(7) */\n" "B<#include Epthread.hE>\n" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "BIB<, const char *>IB<);>\n" "Bsize_t size;\n" "B< pthread_t >IB<, char >IB<[>IB<], size_t >IB<);>\n" msgstr "" "BIB<, const char *>IB<);>\n" "Bsize_t size;\n" "B< pthread_t >IB<, char >IB<[>IB<], size_t >IB<);>\n" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "DESCRIERE" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "By default, all the threads created using B() inherit the " "program name. The B() function can be used to set a " "unique name for a thread, which can be useful for debugging multithreaded " "applications. The thread name is a meaningful C language string, whose " "length is restricted to 16 characters, including the terminating null byte " "(\\[aq]\\[rs]0\\[aq]). The I argument specifies the thread whose " "name is to be changed; I specifies the new name." msgstr "" "În mod implicit, toate firele create cu ajutorul funcției " "B() moștenesc numele programului. Funcția " "B() poate fi utilizată pentru a stabili un nume unic " "pentru un fir, ceea ce poate fi util pentru depanarea aplicațiilor cu mai " "multe fire. Numele firului este un șir semnificativ în limbajul C, a cărui " "lungime este limitată la 16 caractere, inclusiv octetul nul de terminare („\\" "[rs]0”). Argumentul I specifică firul al cărui nume urmează să fie " "schimbat; I specifică noul nume." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() function can be used to retrieve the name of " "the thread. The I argument specifies the thread whose name is to be " "retrieved. The buffer I is used to return the thread name; I " "specifies the number of bytes available in I. The buffer specified by " "I should be at least 16 characters in length. The returned thread " "name in the output buffer will be null terminated." msgstr "" "Funcția B() poate fi utilizată pentru a prelua numele " "firului. Argumentul I specifică firul al cărui nume trebuie să fie " "recuperat. Memoria tampon I este utilizată pentru a returna numele " "firului; I specifică numărul de octeți disponibili în I. Memoria " "tampon specificată de I trebuie să aibă o lungime de cel puțin 16 " "caractere. Numele firului returnat în memoria tampon de ieșire va avea " "terminație nulă." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "RETURN VALUE" msgstr "VALOAREA RETURNATĂ" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On success, these functions return 0; on error, they return a nonzero error " "number." msgstr "" "În caz de succes, aceste funcții returnează 0; în caz de eroare, ele " "returnează un număr de eroare diferit de zero." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ERRORS" msgstr "ERORI-IEȘIRE" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() function can fail with the following error:" msgstr "Funcția B() poate eșua cu următoarea eroare:" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The length of the string specified pointed to by I exceeds the allowed " "limit." msgstr "" "Lungimea șirului specificat indicat de I depășește limita permisă." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() function can fail with the following error:" msgstr "Funcția B() poate eșua cu următoarea eroare:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The buffer specified by I and I is too small to hold the thread " "name." msgstr "" "Memoria tampon specificată de I și I este prea mică pentru a " "conține numele firului." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If either of these functions fails to open ItidI, " "then the call may fail with one of the errors described in B(2)." msgstr "" "Dacă oricare dintre aceste funcții nu reușește să deschidă ItidI, apelul poate eșua cu una dintre erorile descrise în B(2)." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ATTRIBUTES" msgstr "ATRIBUTE" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For an explanation of the terms used in this section, see B(7)." msgstr "" "Pentru o explicație a termenilor folosiți în această secțiune, a se vedea " "B(7)." #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Interface" msgstr "Interfață" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Attribute" msgstr "Atribut" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Value" msgstr "Valoare" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid ".na\n" msgstr ".na\n" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid ".nh\n" msgstr ".nh\n" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "B(),\n" "B()" msgstr "" "B(),\n" "B()" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Thread safety" msgstr "Siguranța firelor" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "MT-Safe" msgstr "MT-Safe" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "STANDARDE" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "GNU; hence the suffix \"_np\" (nonportable) in the names." msgstr "GNU; de aici și sufixul „_np” (neportabil) din denumiri." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "ISTORIC" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "glibc 2.12." msgstr "glibc 2.12." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NOTES" msgstr "NOTE" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() internally writes to the thread-specific I " "file under the I filesystem: ItidI. " "B() retrieves it from the same location." msgstr "" "B() scrie intern în fișierul specific firului I " "din cadrul sistemului de fișiere I: ItidI. " "B() îl recuperează din aceeași locație." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "EXEMPLE" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The program below demonstrates the use of B() and " "B()." msgstr "" "Programul de mai jos demonstrează utilizarea B() și " "B()." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The following shell session shows a sample run of the program:" msgstr "Următoarea sesiune shell arată un exemplu de execuție a programului:" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "$B< ./a.out>;\n" "Created a thread. Default name is: a.out\n" "The thread name after setting it is THREADFOO.\n" "\\f[B]\\[ha]Z\\fR # Suspend the program\n" "[1]+ Stopped ./a.out\n" "$ B\n" " PID TID CMD COMMAND\n" " 5990 5990 ./a.out a.out\n" " 5990 5991 ./a.out THREADFOO\n" "$ B\n" "a.out\n" "$ B\n" "THREADFOO\n" msgstr "" "$B< ./a.out>;\n" "A fost creat un fir. Numele implicit este: a.out\n" "Numele firului după definire este THREADFOO.\n" "B<\\[ha]Z> # Suspendă programul\n" "[1]+ Stopped ./a.out\n" "$ B\n" " PID TID CMD COMMAND\n" " 5990 5990 ./a.out a.out\n" " 5990 5991 ./a.out THREADFOO\n" "$ B\n" "a.out\n" "$ B\n" "THREADFOO\n" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Program source" msgstr "Sursa programului" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "#define _GNU_SOURCE\n" "#include Eerr.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 NAMELEN 16\n" "\\&\n" "static void *\n" "threadfunc(void *parm)\n" "{\n" " sleep(5); // allow main program to set the thread name\n" " return NULL;\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " pthread_t thread;\n" " int rc;\n" " char thread_name[NAMELEN];\n" "\\&\n" " rc = pthread_create(&thread, NULL, threadfunc, NULL);\n" " if (rc != 0)\n" " errc(EXIT_FAILURE, rc, \"pthread_create\");\n" "\\&\n" " rc = pthread_getname_np(thread, thread_name, NAMELEN);\n" " if (rc != 0)\n" " errc(EXIT_FAILURE, rc, \"pthread_getname_np\");\n" "\\&\n" " printf(\"Created a thread. Default name is: %s\\[rs]n\", thread_name);\n" " rc = pthread_setname_np(thread, (argc E 1) ? argv[1] : \"THREADFOO\");\n" " if (rc != 0)\n" " errc(EXIT_FAILURE, rc, \"pthread_setname_np\");\n" "\\&\n" " sleep(2);\n" "\\&\n" " rc = pthread_getname_np(thread, thread_name, NAMELEN);\n" " if (rc != 0)\n" " errc(EXIT_FAILURE, rc, \"pthread_getname_np\");\n" " printf(\"The thread name after setting it is %s.\\[rs]n\", thread_name);\n" "\\&\n" " rc = pthread_join(thread, NULL);\n" " if (rc != 0)\n" " errc(EXIT_FAILURE, rc, \"pthread_join\");\n" "\\&\n" " printf(\"Done\\[rs]n\");\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#define _GNU_SOURCE\n" "#include Eerr.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 NAMELEN 16\n" "\\&\n" "static void *\n" "threadfunc(void *parm)\n" "{\n" " sleep(5); // permite programului principal să stabilească numele firului\n" " return NULL;\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " pthread_t thread;\n" " int rc;\n" " char thread_name[NAMELEN];\n" "\\&\n" " rc = pthread_create(&thread, NULL, threadfunc, NULL);\n" " if (rc != 0)\n" " errc(EXIT_FAILURE, rc, \"pthread_create\");\n" "\\&\n" " rc = pthread_getname_np(thread, thread_name, NAMELEN);\n" " if (rc != 0)\n" " errc(EXIT_FAILURE, rc, \"pthread_getname_np\");\n" "\\&\n" " printf(\"A fost creat un fir. Numele implicit este: %s\\[rs]n\", thread_name);\n" " rc = pthread_setname_np(thread, (argc E 1) ? argv[1] : \"THREADFOO\");\n" " if (rc != 0)\n" " errc(EXIT_FAILURE, rc, \"pthread_setname_np\");\n" "\\&\n" " sleep(2);\n" "\\&\n" " rc = pthread_getname_np(thread, thread_name, NAMELEN);\n" " if (rc != 0)\n" " errc(EXIT_FAILURE, rc, \"pthread_getname_np\");\n" " printf(\"Numele firului după definire este %s.\\[rs]n\", thread_name);\n" "\\&\n" " rc = pthread_join(thread, NULL);\n" " if (rc != 0)\n" " errc(EXIT_FAILURE, rc, \"pthread_join\");\n" "\\&\n" " printf(\"Gata\\[rs]n\");\n" " exit(EXIT_SUCCESS);\n" "}\n" #. SRC END #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "CONSULTAȚI ȘI" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B(2), B(3), B(7)" msgstr "B(2), B(3), B(7)" #. type: TH #: debian-trixie #, no-wrap msgid "2024-06-15" msgstr "15 iunie 2024" #. type: TH #: debian-trixie #, no-wrap msgid "Linux man-pages 6.9.1" msgstr "Pagini de manual de Linux 6.9.1" #. type: Plain text #: debian-trixie msgid "POSIX threads library (I, I<-lpthread>)" msgstr "Biblioteca de fire de execuție POSIX (I, I<-lpthread>)" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "BIB<, const char *>IB<);>\n" "BIB<, char >IB<[.>IB<], size_t >IB<);>\n" msgstr "" "BIB<, const char *>IB<);>\n" "BIB<, char >IB<[.>IB<], size_t >IB<);>\n" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "$B< ./a.out>\n" "Created a thread. Default name is: a.out\n" "The thread name after setting it is THREADFOO.\n" "B<\\[ha]Z> # Suspend the program\n" "[1]+ Stopped ./a.out\n" "$ B\n" " PID TID CMD COMMAND\n" " 5990 5990 ./a.out a.out\n" " 5990 5991 ./a.out THREADFOO\n" "$ B\n" "a.out\n" "$ B\n" "THREADFOO\n" msgstr "" "$B< ./a.out>\n" "A fost creat un fir. Numele implicit este: a.out\n" "Numele firului după definire este THREADFOO.\n" "B<\\[ha]Z> # Suspendă programul\n" "[1]+ Stopped ./a.out\n" "$ B\n" " PID TID CMD COMMAND\n" " 5990 5990 ./a.out a.out\n" " 5990 5991 ./a.out THREADFOO\n" "$ B\n" "a.out\n" "$ B\n" "THREADFOO\n" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "#define _GNU_SOURCE\n" "#include Eerr.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 NAMELEN 16\n" "\\&\n" "static void *\n" "threadfunc(void *parm)\n" "{\n" " sleep(5); // allow main program to set the thread name\n" " return NULL;\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " pthread_t thread;\n" " int rc;\n" " char thread_name[NAMELEN];\n" "\\&\n" " rc = pthread_create(&thread, NULL, threadfunc, NULL);\n" " if (rc != 0)\n" " errc(EXIT_FAILURE, rc, \"pthread_create\");\n" "\\&\n" " rc = pthread_getname_np(thread, thread_name, NAMELEN);\n" " if (rc != 0)\n" " errc(EXIT_FAILURE, rc, \"pthread_getname_np\");\n" "\\&\n" " printf(\"Created a thread. Default name is: %s\\[rs]n\", thread_name);\n" " rc = pthread_setname_np(thread, (argc E 1) ? argv[1] : \"THREADFOO\");\n" " if (rc != 0)\n" " errc(EXIT_FAILURE, rc, \"pthread_setname_np\");\n" "\\&\n" " sleep(2);\n" "\\&\n" " rc = pthread_getname_np(thread, thread_name, NAMELEN);\n" " if (rc != 0)\n" " errc(EXIT_FAILURE, rc, \"pthread_getname_np\");\n" " printf(\"The thread name after setting it is %s.\\[rs]n\", thread_name);\n" "\\&\n" " rc = pthread_join(thread, NULL);\n" " if (rc != 0)\n" " errc(EXIT_FAILURE, rc, \"pthread_join\");\n" "\\&\n" " printf(\"Done\\[rs]n\");\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#define _GNU_SOURCE\n" "#include Eerr.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 NAMELEN 16\n" "\\&\n" "static void *\n" "threadfunc(void *parm)\n" "{\n" " sleep(5); // permite programului principal să stabilească numele firului\n" " return NULL;\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " pthread_t thread;\n" " int rc;\n" " char thread_name[NAMELEN];\n" "\\&\n" " rc = pthread_create(&thread, NULL, threadfunc, NULL);\n" " if (rc != 0)\n" " errc(EXIT_FAILURE, rc, \"pthread_create\");\n" "\\&\n" " rc = pthread_getname_np(thread, thread_name, NAMELEN);\n" " if (rc != 0)\n" " errc(EXIT_FAILURE, rc, \"pthread_getname_np\");\n" "\\&\n" " printf(\"A fost creat un fir. Numele implicit este: %s\\[rs]n\", thread_name);\n" " rc = pthread_setname_np(thread, (argc E 1) ? argv[1] : \"THREADFOO\");\n" " if (rc != 0)\n" " errc(EXIT_FAILURE, rc, \"pthread_setname_np\");\n" "\\&\n" " sleep(2);\n" "\\&\n" " rc = pthread_getname_np(thread, thread_name, NAMELEN);\n" " if (rc != 0)\n" " errc(EXIT_FAILURE, rc, \"pthread_getname_np\");\n" " printf(\"Numele firului după definire este %s.\\[rs]n\", thread_name);\n" "\\&\n" " rc = pthread_join(thread, NULL);\n" " if (rc != 0)\n" " errc(EXIT_FAILURE, rc, \"pthread_join\");\n" "\\&\n" " printf(\"Gata\\[rs]n\");\n" " exit(EXIT_SUCCESS);\n" "}\n" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2024-07-23" msgstr "23 iulie 2024" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "Pagini de manual de Linux 6.13" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "Pagini de manual de Linux 6.17" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr "Pagini de manual Linux (nepublicate)"