# 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.23.1\n" "POT-Creation-Date: 2026-06-05 06:38+0200\n" "PO-Revision-Date: 2025-11-05 19:35+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_setaffinity_np" msgstr "pthread_setaffinity_np" #. type: TH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "2025-09-21" msgstr "21 septembrie 2025" #. 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_setaffinity_np, pthread_getaffinity_np - set/get CPU affinity of a " "thread" msgstr "" "pthread_setaffinity_np, pthread_getaffinity_np - stabilește/obține " "afinitatea CPU a 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-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "BIB<, size_t >IB<,>\n" "B< const cpu_set_t *>IB<);>\n" "BIB<, size_t >IB<,>\n" "B< cpu_set_t *>IB<);>\n" msgstr "" "BIB<, size_t >IB<,>\n" "B< const cpu_set_t *>IB<);>\n" "BIB<, size_t >IB<,>\n" "B< cpu_set_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 "" "The B() function sets the CPU affinity mask of the " "thread I to the CPU set pointed to by I. If the call is " "successful, and the thread is not currently running on one of the CPUs in " "I, then it is migrated to one of those CPUs." msgstr "" "Funcția B() stabilește masca de afinitate CPU a " "firului I la setul de CPU indicat de I. Dacă apelul are " "succes, iar firul nu rulează în prezent pe unul dintre CPU-urile din " "I, atunci acesta este migrat către unul dintre acele CPU-uri." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() function returns the CPU affinity mask of " "the thread I in the buffer pointed to by I." msgstr "" "Funcția B() returnează masca de afinitate CPU a " "firului I în memoria tampon indicată de I." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For more details on CPU affinity masks, see B(2). For a " "description of a set of macros that can be used to manipulate and inspect " "CPU sets, see B(3)." msgstr "" "Pentru mai multe detalii despre măștile de afinitate CPU, consultați " "B(2). Pentru o descriere a unui set de macrocomenzi care " "pot fi utilizate pentru a manipula și inspecta seturile de CPU, consultați " "B(3)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The argument I is the length (in bytes) of the buffer pointed to " "by I. Typically, this argument would be specified as " "I. (It may be some other value, if using the macros " "described in B(3) for dynamically allocating a CPU set.)" msgstr "" "Argumentul I este lungimea (în octeți) a memoriei tampon " "indicate de I. De obicei, acest argument ar fi specificat ca " "I; (poate fi o altă valoare, dacă se utilizează " "macrocomenzile descrise în B(3) pentru alocarea dinamică a unui set " "CPU)." #. 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: 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 "A supplied memory address was invalid." msgstr "Adresa de memorie furnizată nu a fost validă." #. 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 "" "(B()) The affinity bit mask I contains no " "processors that are currently physically on the system and permitted to the " "thread according to any restrictions that may be imposed by the \"cpuset\" " "mechanism described in B(7)." msgstr "" "(B()) Masca de biți de afinitate I nu conține " "niciun procesor care se află în prezent fizic pe sistem și care este permis " "firului de execuție în conformitate cu orice restricții care pot fi impuse " "de mecanismul „I” descris în B(7)." #. cpumask_t #. The raw sched_getaffinity() system call returns the size (in bytes) #. of the cpumask_t type. #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "(B()) I specified a CPU that was outside " "the set supported by the kernel. (The kernel configuration option " "B defines the range of the set supported by the kernel data " "type used to represent CPU sets.)" msgstr "" "(B()) I a specificat un CPU care se afla în " "afara setului acceptat de nucleu; (opțiunea de configurare a nucleului " "B definește intervalul setului acceptat de tipul de date al " "nucleului utilizat pentru a reprezenta seturile de CPU)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "(B()) I is smaller than the size of the " "affinity mask used by the kernel." msgstr "" "(B()) I este mai mică decât dimensiunea " "măștii de afinitate utilizată de nucleu." #. 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 "No thread with the ID I could be found." msgstr "" "Nu a putut fi găsit niciun fir de execuție cu identificatorul I." #. 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.3.4." msgstr "glibc 2.3.4." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "In glibc 2.3.3 only, versions of these functions were provided that did not " "have a I argument. Instead the CPU set size given to the " "underlying system calls was always I." msgstr "" "Numai în glibc 2.3.3, au fost furnizate versiuni ale acestor funcții care nu " "aveau un argument I. În schimb, dimensiunea setului de " "procesoare transmisă apelurilor de sistem subiacente era întotdeauna " "I." #. 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 "" "After a call to B(), the set of CPUs on which the " "thread will actually run is the intersection of the set specified in the " "I argument and the set of CPUs actually present on the system. The " "system may further restrict the set of CPUs on which the thread runs if the " "\"cpuset\" mechanism described in B(7) is being used. These " "restrictions on the actual set of CPUs on which the thread will run are " "silently imposed by the kernel." msgstr "" "După un apel la B(), setul de CPU-uri pe care se va " "executa efectiv firul este intersecția dintre setul specificat în argumentul " "I și setul de CPU-uri prezente efectiv în sistem. Sistemul poate " "restricționa și mai mult setul de CPU-uri pe care rulează firul de execuție " "dacă se utilizează mecanismul „cpuset” descris în B(7). Aceste " "restricții privind setul real de CPU-uri pe care va rula firul sunt impuse " "în mod silențios de către nucleu." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "These functions are implemented on top of the B(2) and " "B(2) system calls." msgstr "" "Aceste funcții sunt implementate pe baza apelurilor de sistem " "B(2) și B(2)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A new thread created by B(3) inherits a copy of its " "creator's CPU affinity mask." msgstr "" "Un nou fir creat de B(3) moștenește o copie a măștii de " "afinitate CPU a creatorului său." #. 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 "" "In the following program, the main thread uses B() " "to set its CPU affinity mask to include CPUs 0 to 7 (which may not all be " "available on the system), and then calls B() to " "check the resulting CPU affinity mask of the thread." msgstr "" "În următorul program, firul principal utilizează B() " "pentru a-și defini masca de afinitate CPU pentru a include CPU de la 0 la 7 " "(care pot să nu fie toate disponibile în sistem) și apoi apelează " "B() pentru a verifica masca de afinitate CPU " "rezultată a firului." #. 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 Epthread.hE\n" "#include Esched.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int s;\n" " cpu_set_t cpuset;\n" " pthread_t thread;\n" "\\&\n" " thread = pthread_self();\n" "\\&\n" " /* Set affinity mask to include CPUs 0 to 7. */\n" "\\&\n" " CPU_ZERO(&cpuset);\n" " for (size_t j = 0; j E 8; j++)\n" " CPU_SET(j, &cpuset);\n" "\\&\n" " s = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_setaffinity_np\");\n" "\\&\n" " /* Check the actual affinity mask assigned to the thread. */\n" "\\&\n" " s = pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_getaffinity_np\");\n" "\\&\n" " printf(\"Set returned by pthread_getaffinity_np() contained:\\[rs]n\");\n" " for (size_t j = 0; j E CPU_SETSIZE; j++)\n" " if (CPU_ISSET(j, &cpuset))\n" " printf(\" CPU %zu\\[rs]n\", j);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#define _GNU_SOURCE\n" "#include Eerr.hE\n" "#include Epthread.hE\n" "#include Esched.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int s;\n" " cpu_set_t cpuset;\n" " pthread_t thread;\n" "\\&\n" " thread = pthread_self();\n" "\\&\n" " /* Definește masca de afinitate pentru a include CPU de la 0 la 7. */\n" "\\&\n" " CPU_ZERO(&cpuset);\n" " for (size_t j = 0; j E 8; j++)\n" " CPU_SET(j, &cpuset);\n" "\\&\n" " s = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_setaffinity_np\");\n" "\\&\n" " /* Verifică masca de afinitate actuală atribuită firului. */\n" "\\&\n" " s = pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_getaffinity_np\");\n" "\\&\n" " printf(\"Setul returnat de pthread_getaffinity_np() conține:\\[rs]n\");\n" " for (size_t j = 0; j E CPU_SETSIZE; j++)\n" " if (CPU_ISSET(j, &cpuset))\n" " printf(\" CPU %zu\\[rs]n\", j);\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(3), " "B(3), B(3), B(7), B(7), " "B(7)" msgstr "" "B(2), B(3), B(3), " "B(3), B(3), B(7), B(7), " "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 #, 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" "\\&\n" "int\n" "main(void)\n" "{\n" " int s;\n" " cpu_set_t cpuset;\n" " pthread_t thread;\n" "\\&\n" " thread = pthread_self();\n" "\\&\n" " /* Set affinity mask to include CPUs 0 to 7. */\n" "\\&\n" " CPU_ZERO(&cpuset);\n" " for (size_t j = 0; j E 8; j++)\n" " CPU_SET(j, &cpuset);\n" "\\&\n" " s = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_setaffinity_np\");\n" "\\&\n" " /* Check the actual affinity mask assigned to the thread. */\n" "\\&\n" " s = pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_getaffinity_np\");\n" "\\&\n" " printf(\"Set returned by pthread_getaffinity_np() contained:\\[rs]n\");\n" " for (size_t j = 0; j E CPU_SETSIZE; j++)\n" " if (CPU_ISSET(j, &cpuset))\n" " printf(\" CPU %zu\\[rs]n\", j);\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" "\\&\n" "int\n" "main(void)\n" "{\n" " int s;\n" " cpu_set_t cpuset;\n" " pthread_t thread;\n" "\\&\n" " thread = pthread_self();\n" "\\&\n" " /* Definește masca de afinitate pentru a include CPU de la 0 la 7. */\n" "\\&\n" " CPU_ZERO(&cpuset);\n" " for (size_t j = 0; j E 8; j++)\n" " CPU_SET(j, &cpuset);\n" "\\&\n" " s = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_setaffinity_np\");\n" "\\&\n" " /* Verifică masca de afinitate actuală atribuită firului. */\n" "\\&\n" " s = pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_getaffinity_np\");\n" "\\&\n" " printf(\"Setul returnat de pthread_getaffinity_np() conține:\\[rs]n\");\n" " for (size_t j = 0; j E CPU_SETSIZE; j++)\n" " if (CPU_ISSET(j, &cpuset))\n" " printf(\" CPU %zu\\[rs]n\", j);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2024-11-03" msgstr "3 noiembrie 2024" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "Pagini de manual de Linux 6.13" #. type: Plain text #: fedora-44 fedora-rawhide #, no-wrap msgid "" "#define _GNU_SOURCE\n" "#include Eerr.hE\n" "#include Epthread.hE\n" "#include Esched.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int s;\n" " cpu_set_t cpuset;\n" " pthread_t thread;\n" "\\&\n" " thread = pthread_self();\n" "\\&\n" " /* Set affinity mask to include CPUs 0 to 7. */\n" "\\&\n" " CPU_ZERO(&cpuset);\n" " for (size_t j = 0; j E 8; j++)\n" " CPU_SET(j, &cpuset);\n" "\\&\n" " s = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_setaffinity_np\");\n" "\\&\n" " /* Check the actual affinity mask assigned to the thread. */\n" "\\&\n" " s = pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_getaffinity_np\");\n" "\\&\n" " printf(\"Set returned by pthread_getaffinity_np() contained:\\[rs]n\");\n" " for (size_t j = 0; j E CPU_SETSIZE; j++)\n" " if (CPU_ISSET(j, &cpuset))\n" " printf(\" CPU %zu\\[rs]n\", j);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#define _GNU_SOURCE\n" "#include Eerr.hE\n" "#include Epthread.hE\n" "#include Esched.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int s;\n" " cpu_set_t cpuset;\n" " pthread_t thread;\n" "\\&\n" " thread = pthread_self();\n" "\\&\n" " /* Definește masca de afinitate pentru a include CPU de la 0 la 7. */\n" "\\&\n" " CPU_ZERO(&cpuset);\n" " for (size_t j = 0; j E 8; j++)\n" " CPU_SET(j, &cpuset);\n" "\\&\n" " s = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_setaffinity_np\");\n" "\\&\n" " /* Verifică masca de afinitate actuală atribuită firului. */\n" "\\&\n" " s = pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_getaffinity_np\");\n" "\\&\n" " printf(\"Setul returnat de pthread_getaffinity_np() conține:\\[rs]n\");\n" " for (size_t j = 0; j E CPU_SETSIZE; j++)\n" " if (CPU_ISSET(j, &cpuset))\n" " printf(\" CPU %zu\\[rs]n\", j);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. 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)"