Debian Codegraph @

po/ro/man3/pthread_setaffinity_np.3.po

raw
1 # Romanian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Remus-Gabriel Chelu <[email protected]>, 2024, 2025.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.23.1\n"
8 "POT-Creation-Date: 2026-06-05 06:38+0200\n"
9 "PO-Revision-Date: 2025-11-05 19:35+0100\n"
10 "Last-Translator: Remus-Gabriel Chelu <[email protected]>\n"
11 "Language-Team: Romanian <[email protected]>\n"
12 "Language: ro\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < "
17 "20)) ? 1 : 2;\n"
18 "X-Generator: Poedit 3.6\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "pthread_setaffinity_np"
25 msgstr "pthread_setaffinity_np"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2025-09-21"
32 msgstr "21 septembrie 2025"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "Pagini de manual de Linux 6.18"
39
40 #. type: SH
41 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
42 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr "NUME"
46
47 #. type: Plain text
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 msgid ""
51 "pthread_setaffinity_np, pthread_getaffinity_np - set/get CPU affinity of a "
52 "thread"
53 msgstr ""
54 "pthread_setaffinity_np, pthread_getaffinity_np - stabilește/obține "
55 "afinitatea CPU a unui fir"
56
57 #. type: SH
58 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
59 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
60 #, no-wrap
61 msgid "LIBRARY"
62 msgstr "BIBLIOTECA"
63
64 #. type: Plain text
65 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
66 #: opensuse-leap-16-1 opensuse-tumbleweed
67 msgid "POSIX threads library (I<libpthread>,\\ I<-lpthread>)"
68 msgstr "Biblioteca de fire de execuție POSIX (I<libpthread>, I<-lpthread>)"
69
70 #. type: SH
71 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
72 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
73 #, no-wrap
74 msgid "SYNOPSIS"
75 msgstr "SINOPSIS"
76
77 #. type: Plain text
78 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
79 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
80 #, no-wrap
81 msgid ""
82 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
83 "B<#include E<lt>pthread.hE<gt>>\n"
84 msgstr ""
85 "B<#define _GNU_SOURCE> /* Consultați feature_test_macros(7) */\n"
86 "B<#include E<lt>pthread.hE<gt>>\n"
87
88 #. type: Plain text
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid ""
93 "B<int pthread_setaffinity_np(pthread_t >I<thread>B<, size_t >I<cpusetsize>B<,>\n"
94 "B< const cpu_set_t *>I<cpuset>B<);>\n"
95 "B<int pthread_getaffinity_np(pthread_t >I<thread>B<, size_t >I<cpusetsize>B<,>\n"
96 "B< cpu_set_t *>I<cpuset>B<);>\n"
97 msgstr ""
98 "B<int pthread_setaffinity_np(pthread_t >I<thread>B<, size_t >I<cpusetsize>B<,>\n"
99 "B< const cpu_set_t *>I<cpuset>B<);>\n"
100 "B<int pthread_getaffinity_np(pthread_t >I<thread>B<, size_t >I<cpusetsize>B<,>\n"
101 "B< cpu_set_t *>I<cpuset>B<);>\n"
102
103 #. type: SH
104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
106 #, no-wrap
107 msgid "DESCRIPTION"
108 msgstr "DESCRIERE"
109
110 #. type: Plain text
111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
113 msgid ""
114 "The B<pthread_setaffinity_np>() function sets the CPU affinity mask of the "
115 "thread I<thread> to the CPU set pointed to by I<cpuset>. If the call is "
116 "successful, and the thread is not currently running on one of the CPUs in "
117 "I<cpuset>, then it is migrated to one of those CPUs."
118 msgstr ""
119 "Funcția B<pthread_setaffinity_np>() stabilește masca de afinitate CPU a "
120 "firului I<thread> la setul de CPU indicat de I<cpuset>. Dacă apelul are "
121 "succes, iar firul nu rulează în prezent pe unul dintre CPU-urile din "
122 "I<cpuset>, atunci acesta este migrat către unul dintre acele CPU-uri."
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 msgid ""
128 "The B<pthread_getaffinity_np>() function returns the CPU affinity mask of "
129 "the thread I<thread> in the buffer pointed to by I<cpuset>."
130 msgstr ""
131 "Funcția B<pthread_getaffinity_np>() returnează masca de afinitate CPU a "
132 "firului I<thread> în memoria tampon indicată de I<cpuset>."
133
134 #. type: Plain text
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 msgid ""
138 "For more details on CPU affinity masks, see B<sched_setaffinity>(2). For a "
139 "description of a set of macros that can be used to manipulate and inspect "
140 "CPU sets, see B<CPU_SET>(3)."
141 msgstr ""
142 "Pentru mai multe detalii despre măștile de afinitate CPU, consultați "
143 "B<sched_setaffinity>(2). Pentru o descriere a unui set de macrocomenzi care "
144 "pot fi utilizate pentru a manipula și inspecta seturile de CPU, consultați "
145 "B<CPU_SET>(3)."
146
147 #. type: Plain text
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 msgid ""
151 "The argument I<cpusetsize> is the length (in bytes) of the buffer pointed to "
152 "by I<cpuset>. Typically, this argument would be specified as "
153 "I<sizeof(cpu_set_t)>. (It may be some other value, if using the macros "
154 "described in B<CPU_SET>(3) for dynamically allocating a CPU set.)"
155 msgstr ""
156 "Argumentul I<cpusetsize> este lungimea (în octeți) a memoriei tampon "
157 "indicate de I<cpuset>. De obicei, acest argument ar fi specificat ca "
158 "I<sizeof(cpu_set_t)>; (poate fi o altă valoare, dacă se utilizează "
159 "macrocomenzile descrise în B<CPU_SET>(3) pentru alocarea dinamică a unui set "
160 "CPU)."
161
162 #. type: SH
163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
165 #, no-wrap
166 msgid "RETURN VALUE"
167 msgstr "VALOAREA RETURNATĂ"
168
169 #. type: Plain text
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 msgid ""
173 "On success, these functions return 0; on error, they return a nonzero error "
174 "number."
175 msgstr ""
176 "În caz de succes, aceste funcții returnează 0; în caz de eroare, ele "
177 "returnează un număr de eroare diferit de zero."
178
179 #. type: SH
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 #, no-wrap
183 msgid "ERRORS"
184 msgstr "ERORI-IEȘIRE"
185
186 #. type: TP
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 #, no-wrap
190 msgid "B<EFAULT>"
191 msgstr "B<EFAULT>"
192
193 #. type: Plain text
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 msgid "A supplied memory address was invalid."
197 msgstr "Adresa de memorie furnizată nu a fost validă."
198
199 #. type: TP
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 #, no-wrap
203 msgid "B<EINVAL>"
204 msgstr "B<EINVAL>"
205
206 #. type: Plain text
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
209 msgid ""
210 "(B<pthread_setaffinity_np>()) The affinity bit mask I<mask> contains no "
211 "processors that are currently physically on the system and permitted to the "
212 "thread according to any restrictions that may be imposed by the \"cpuset\" "
213 "mechanism described in B<cpuset>(7)."
214 msgstr ""
215 "(B<pthread_setaffinity_np>()) Masca de biți de afinitate I<mask> nu conține "
216 "niciun procesor care se află în prezent fizic pe sistem și care este permis "
217 "firului de execuție în conformitate cu orice restricții care pot fi impuse "
218 "de mecanismul „I<cpuset>” descris în B<cpuset>(7)."
219
220 #. cpumask_t
221 #. The raw sched_getaffinity() system call returns the size (in bytes)
222 #. of the cpumask_t type.
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 msgid ""
227 "(B<pthread_setaffinity_np>()) I<cpuset> specified a CPU that was outside "
228 "the set supported by the kernel. (The kernel configuration option "
229 "B<CONFIG_NR_CPUS> defines the range of the set supported by the kernel data "
230 "type used to represent CPU sets.)"
231 msgstr ""
232 "(B<pthread_setaffinity_np>()) I<cpuset> a specificat un CPU care se afla în "
233 "afara setului acceptat de nucleu; (opțiunea de configurare a nucleului "
234 "B<CONFIG_NR_CPUS> definește intervalul setului acceptat de tipul de date al "
235 "nucleului utilizat pentru a reprezenta seturile de CPU)."
236
237 #. type: Plain text
238 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
239 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
240 msgid ""
241 "(B<pthread_getaffinity_np>()) I<cpusetsize> is smaller than the size of the "
242 "affinity mask used by the kernel."
243 msgstr ""
244 "(B<pthread_getaffinity_np>()) I<cpusetsize> este mai mică decât dimensiunea "
245 "măștii de afinitate utilizată de nucleu."
246
247 #. type: TP
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 #, no-wrap
251 msgid "B<ESRCH>"
252 msgstr "B<ESRCH>"
253
254 #. type: Plain text
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 msgid "No thread with the ID I<thread> could be found."
258 msgstr ""
259 "Nu a putut fi găsit niciun fir de execuție cu identificatorul I<thread>."
260
261 #. type: SH
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 #, no-wrap
265 msgid "ATTRIBUTES"
266 msgstr "ATRIBUTE"
267
268 #. type: Plain text
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 msgid ""
272 "For an explanation of the terms used in this section, see B<attributes>(7)."
273 msgstr ""
274 "Pentru o explicație a termenilor folosiți în această secțiune, a se vedea "
275 "B<attributes>(7)."
276
277 #. type: tbl table
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 #, no-wrap
281 msgid "Interface"
282 msgstr "Interfață"
283
284 #. type: tbl table
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 #, no-wrap
288 msgid "Attribute"
289 msgstr "Atribut"
290
291 #. type: tbl table
292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
294 #, no-wrap
295 msgid "Value"
296 msgstr "Valoare"
297
298 #. type: tbl table
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 #, no-wrap
302 msgid ".na\n"
303 msgstr ".na\n"
304
305 #. type: tbl table
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 #, no-wrap
309 msgid ".nh\n"
310 msgstr ".nh\n"
311
312 #. type: tbl table
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 #, no-wrap
316 msgid ""
317 "B<pthread_setaffinity_np>(),\n"
318 "B<pthread_getaffinity_np>()"
319 msgstr ""
320 "B<pthread_setaffinity_np>(),\n"
321 "B<pthread_getaffinity_np>()"
322
323 #. type: tbl table
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 #, no-wrap
327 msgid "Thread safety"
328 msgstr "Siguranța firelor"
329
330 #. type: tbl table
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 #, no-wrap
334 msgid "MT-Safe"
335 msgstr "MT-Safe"
336
337 #. type: SH
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 #, no-wrap
341 msgid "STANDARDS"
342 msgstr "STANDARDE"
343
344 #. type: Plain text
345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
347 msgid "GNU; hence the suffix \"_np\" (nonportable) in the names."
348 msgstr "GNU; de aici și sufixul „_np” (neportabil) din denumiri."
349
350 #. type: SH
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 #, no-wrap
354 msgid "HISTORY"
355 msgstr "ISTORIC"
356
357 #. type: Plain text
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 msgid "glibc 2.3.4."
361 msgstr "glibc 2.3.4."
362
363 #. type: Plain text
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 msgid ""
367 "In glibc 2.3.3 only, versions of these functions were provided that did not "
368 "have a I<cpusetsize> argument. Instead the CPU set size given to the "
369 "underlying system calls was always I<sizeof(cpu_set_t)>."
370 msgstr ""
371 "Numai în glibc 2.3.3, au fost furnizate versiuni ale acestor funcții care nu "
372 "aveau un argument I<cpusetsize>. În schimb, dimensiunea setului de "
373 "procesoare transmisă apelurilor de sistem subiacente era întotdeauna "
374 "I<sizeof(cpu_set_t)>."
375
376 #. type: SH
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 #, no-wrap
380 msgid "NOTES"
381 msgstr "NOTE"
382
383 #. type: Plain text
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 msgid ""
387 "After a call to B<pthread_setaffinity_np>(), the set of CPUs on which the "
388 "thread will actually run is the intersection of the set specified in the "
389 "I<cpuset> argument and the set of CPUs actually present on the system. The "
390 "system may further restrict the set of CPUs on which the thread runs if the "
391 "\"cpuset\" mechanism described in B<cpuset>(7) is being used. These "
392 "restrictions on the actual set of CPUs on which the thread will run are "
393 "silently imposed by the kernel."
394 msgstr ""
395 "După un apel la B<pthread_setaffinity_np>(), setul de CPU-uri pe care se va "
396 "executa efectiv firul este intersecția dintre setul specificat în argumentul "
397 "I<cpuset> și setul de CPU-uri prezente efectiv în sistem. Sistemul poate "
398 "restricționa și mai mult setul de CPU-uri pe care rulează firul de execuție "
399 "dacă se utilizează mecanismul „cpuset” descris în B<cpuset>(7). Aceste "
400 "restricții privind setul real de CPU-uri pe care va rula firul sunt impuse "
401 "în mod silențios de către nucleu."
402
403 #. type: Plain text
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 msgid ""
407 "These functions are implemented on top of the B<sched_setaffinity>(2) and "
408 "B<sched_getaffinity>(2) system calls."
409 msgstr ""
410 "Aceste funcții sunt implementate pe baza apelurilor de sistem "
411 "B<sched_setaffinity>(2) și B<sched_getaffinity>(2)."
412
413 #. type: Plain text
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 msgid ""
417 "A new thread created by B<pthread_create>(3) inherits a copy of its "
418 "creator's CPU affinity mask."
419 msgstr ""
420 "Un nou fir creat de B<pthread_create>(3) moștenește o copie a măștii de "
421 "afinitate CPU a creatorului său."
422
423 #. type: SH
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 #, no-wrap
427 msgid "EXAMPLES"
428 msgstr "EXEMPLE"
429
430 #. type: Plain text
431 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
432 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
433 msgid ""
434 "In the following program, the main thread uses B<pthread_setaffinity_np>() "
435 "to set its CPU affinity mask to include CPUs 0 to 7 (which may not all be "
436 "available on the system), and then calls B<pthread_getaffinity_np>() to "
437 "check the resulting CPU affinity mask of the thread."
438 msgstr ""
439 "În următorul program, firul principal utilizează B<pthread_setaffinity_np>() "
440 "pentru a-și defini masca de afinitate CPU pentru a include CPU de la 0 la 7 "
441 "(care pot să nu fie toate disponibile în sistem) și apoi apelează "
442 "B<pthread_getaffinity_np>() pentru a verifica masca de afinitate CPU "
443 "rezultată a firului."
444
445 #. type: Plain text
446 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
447 #: opensuse-tumbleweed
448 #, no-wrap
449 msgid ""
450 "#define _GNU_SOURCE\n"
451 "#include E<lt>err.hE<gt>\n"
452 "#include E<lt>pthread.hE<gt>\n"
453 "#include E<lt>sched.hE<gt>\n"
454 "#include E<lt>stdio.hE<gt>\n"
455 "#include E<lt>stdlib.hE<gt>\n"
456 "\\&\n"
457 "int\n"
458 "main(void)\n"
459 "{\n"
460 " int s;\n"
461 " cpu_set_t cpuset;\n"
462 " pthread_t thread;\n"
463 "\\&\n"
464 " thread = pthread_self();\n"
465 "\\&\n"
466 " /* Set affinity mask to include CPUs 0 to 7. */\n"
467 "\\&\n"
468 " CPU_ZERO(&cpuset);\n"
469 " for (size_t j = 0; j E<lt> 8; j++)\n"
470 " CPU_SET(j, &cpuset);\n"
471 "\\&\n"
472 " s = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);\n"
473 " if (s != 0)\n"
474 " errc(EXIT_FAILURE, s, \"pthread_setaffinity_np\");\n"
475 "\\&\n"
476 " /* Check the actual affinity mask assigned to the thread. */\n"
477 "\\&\n"
478 " s = pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);\n"
479 " if (s != 0)\n"
480 " errc(EXIT_FAILURE, s, \"pthread_getaffinity_np\");\n"
481 "\\&\n"
482 " printf(\"Set returned by pthread_getaffinity_np() contained:\\[rs]n\");\n"
483 " for (size_t j = 0; j E<lt> CPU_SETSIZE; j++)\n"
484 " if (CPU_ISSET(j, &cpuset))\n"
485 " printf(\" CPU %zu\\[rs]n\", j);\n"
486 "\\&\n"
487 " exit(EXIT_SUCCESS);\n"
488 "}\n"
489 msgstr ""
490 "#define _GNU_SOURCE\n"
491 "#include E<lt>err.hE<gt>\n"
492 "#include E<lt>pthread.hE<gt>\n"
493 "#include E<lt>sched.hE<gt>\n"
494 "#include E<lt>stdio.hE<gt>\n"
495 "#include E<lt>stdlib.hE<gt>\n"
496 "\\&\n"
497 "int\n"
498 "main(void)\n"
499 "{\n"
500 " int s;\n"
501 " cpu_set_t cpuset;\n"
502 " pthread_t thread;\n"
503 "\\&\n"
504 " thread = pthread_self();\n"
505 "\\&\n"
506 " /* Definește masca de afinitate pentru a include CPU de la 0 la 7. */\n"
507 "\\&\n"
508 " CPU_ZERO(&cpuset);\n"
509 " for (size_t j = 0; j E<lt> 8; j++)\n"
510 " CPU_SET(j, &cpuset);\n"
511 "\\&\n"
512 " s = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);\n"
513 " if (s != 0)\n"
514 " errc(EXIT_FAILURE, s, \"pthread_setaffinity_np\");\n"
515 "\\&\n"
516 " /* Verifică masca de afinitate actuală atribuită firului. */\n"
517 "\\&\n"
518 " s = pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);\n"
519 " if (s != 0)\n"
520 " errc(EXIT_FAILURE, s, \"pthread_getaffinity_np\");\n"
521 "\\&\n"
522 " printf(\"Setul returnat de pthread_getaffinity_np() conține:\\[rs]n\");\n"
523 " for (size_t j = 0; j E<lt> CPU_SETSIZE; j++)\n"
524 " if (CPU_ISSET(j, &cpuset))\n"
525 " printf(\" CPU %zu\\[rs]n\", j);\n"
526 "\\&\n"
527 " exit(EXIT_SUCCESS);\n"
528 "}\n"
529
530 #. SRC END
531 #. type: SH
532 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
533 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
534 #, no-wrap
535 msgid "SEE ALSO"
536 msgstr "CONSULTAȚI ȘI"
537
538 #. type: Plain text
539 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
540 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
541 msgid ""
542 "B<sched_setaffinity>(2), B<CPU_SET>(3), B<pthread_attr_setaffinity_np>(3), "
543 "B<pthread_self>(3), B<sched_getcpu>(3), B<cpuset>(7), B<pthreads>(7), "
544 "B<sched>(7)"
545 msgstr ""
546 "B<sched_setaffinity>(2), B<CPU_SET>(3), B<pthread_attr_setaffinity_np>(3), "
547 "B<pthread_self>(3), B<sched_getcpu>(3), B<cpuset>(7), B<pthreads>(7), "
548 "B<sched>(7)"
549
550 #. type: TH
551 #: debian-trixie
552 #, no-wrap
553 msgid "2024-06-15"
554 msgstr "15 iunie 2024"
555
556 #. type: TH
557 #: debian-trixie
558 #, no-wrap
559 msgid "Linux man-pages 6.9.1"
560 msgstr "Pagini de manual de Linux 6.9.1"
561
562 #. type: Plain text
563 #: debian-trixie
564 msgid "POSIX threads library (I<libpthread>, I<-lpthread>)"
565 msgstr "Biblioteca de fire de execuție POSIX (I<libpthread>, I<-lpthread>)"
566
567 #. type: Plain text
568 #: debian-trixie
569 #, no-wrap
570 msgid ""
571 "#define _GNU_SOURCE\n"
572 "#include E<lt>err.hE<gt>\n"
573 "#include E<lt>errno.hE<gt>\n"
574 "#include E<lt>pthread.hE<gt>\n"
575 "#include E<lt>stdio.hE<gt>\n"
576 "#include E<lt>stdlib.hE<gt>\n"
577 "\\&\n"
578 "int\n"
579 "main(void)\n"
580 "{\n"
581 " int s;\n"
582 " cpu_set_t cpuset;\n"
583 " pthread_t thread;\n"
584 "\\&\n"
585 " thread = pthread_self();\n"
586 "\\&\n"
587 " /* Set affinity mask to include CPUs 0 to 7. */\n"
588 "\\&\n"
589 " CPU_ZERO(&cpuset);\n"
590 " for (size_t j = 0; j E<lt> 8; j++)\n"
591 " CPU_SET(j, &cpuset);\n"
592 "\\&\n"
593 " s = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);\n"
594 " if (s != 0)\n"
595 " errc(EXIT_FAILURE, s, \"pthread_setaffinity_np\");\n"
596 "\\&\n"
597 " /* Check the actual affinity mask assigned to the thread. */\n"
598 "\\&\n"
599 " s = pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);\n"
600 " if (s != 0)\n"
601 " errc(EXIT_FAILURE, s, \"pthread_getaffinity_np\");\n"
602 "\\&\n"
603 " printf(\"Set returned by pthread_getaffinity_np() contained:\\[rs]n\");\n"
604 " for (size_t j = 0; j E<lt> CPU_SETSIZE; j++)\n"
605 " if (CPU_ISSET(j, &cpuset))\n"
606 " printf(\" CPU %zu\\[rs]n\", j);\n"
607 "\\&\n"
608 " exit(EXIT_SUCCESS);\n"
609 "}\n"
610 msgstr ""
611 "#define _GNU_SOURCE\n"
612 "#include E<lt>err.hE<gt>\n"
613 "#include E<lt>errno.hE<gt>\n"
614 "#include E<lt>pthread.hE<gt>\n"
615 "#include E<lt>stdio.hE<gt>\n"
616 "#include E<lt>stdlib.hE<gt>\n"
617 "\\&\n"
618 "int\n"
619 "main(void)\n"
620 "{\n"
621 " int s;\n"
622 " cpu_set_t cpuset;\n"
623 " pthread_t thread;\n"
624 "\\&\n"
625 " thread = pthread_self();\n"
626 "\\&\n"
627 " /* Definește masca de afinitate pentru a include CPU de la 0 la 7. */\n"
628 "\\&\n"
629 " CPU_ZERO(&cpuset);\n"
630 " for (size_t j = 0; j E<lt> 8; j++)\n"
631 " CPU_SET(j, &cpuset);\n"
632 "\\&\n"
633 " s = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);\n"
634 " if (s != 0)\n"
635 " errc(EXIT_FAILURE, s, \"pthread_setaffinity_np\");\n"
636 "\\&\n"
637 " /* Verifică masca de afinitate actuală atribuită firului. */\n"
638 "\\&\n"
639 " s = pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);\n"
640 " if (s != 0)\n"
641 " errc(EXIT_FAILURE, s, \"pthread_getaffinity_np\");\n"
642 "\\&\n"
643 " printf(\"Setul returnat de pthread_getaffinity_np() conține:\\[rs]n\");\n"
644 " for (size_t j = 0; j E<lt> CPU_SETSIZE; j++)\n"
645 " if (CPU_ISSET(j, &cpuset))\n"
646 " printf(\" CPU %zu\\[rs]n\", j);\n"
647 "\\&\n"
648 " exit(EXIT_SUCCESS);\n"
649 "}\n"
650
651 #. type: TH
652 #: fedora-44 fedora-rawhide
653 #, no-wrap
654 msgid "2024-11-03"
655 msgstr "3 noiembrie 2024"
656
657 #. type: TH
658 #: fedora-44 fedora-rawhide
659 #, no-wrap
660 msgid "Linux man-pages 6.13"
661 msgstr "Pagini de manual de Linux 6.13"
662
663 #. type: Plain text
664 #: fedora-44 fedora-rawhide
665 #, no-wrap
666 msgid ""
667 "#define _GNU_SOURCE\n"
668 "#include E<lt>err.hE<gt>\n"
669 "#include E<lt>pthread.hE<gt>\n"
670 "#include E<lt>sched.hE<gt>\n"
671 "#include E<lt>stdio.hE<gt>\n"
672 "#include E<lt>stdlib.hE<gt>\n"
673 "\\&\n"
674 "int\n"
675 "main(void)\n"
676 "{\n"
677 " int s;\n"
678 " cpu_set_t cpuset;\n"
679 " pthread_t thread;\n"
680 "\\&\n"
681 " thread = pthread_self();\n"
682 "\\&\n"
683 " /* Set affinity mask to include CPUs 0 to 7. */\n"
684 "\\&\n"
685 " CPU_ZERO(&cpuset);\n"
686 " for (size_t j = 0; j E<lt> 8; j++)\n"
687 " CPU_SET(j, &cpuset);\n"
688 "\\&\n"
689 " s = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);\n"
690 " if (s != 0)\n"
691 " errc(EXIT_FAILURE, s, \"pthread_setaffinity_np\");\n"
692 "\\&\n"
693 " /* Check the actual affinity mask assigned to the thread. */\n"
694 "\\&\n"
695 " s = pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);\n"
696 " if (s != 0)\n"
697 " errc(EXIT_FAILURE, s, \"pthread_getaffinity_np\");\n"
698 "\\&\n"
699 " printf(\"Set returned by pthread_getaffinity_np() contained:\\[rs]n\");\n"
700 " for (size_t j = 0; j E<lt> CPU_SETSIZE; j++)\n"
701 " if (CPU_ISSET(j, &cpuset))\n"
702 " printf(\" CPU %zu\\[rs]n\", j);\n"
703 "\\&\n"
704 " exit(EXIT_SUCCESS);\n"
705 "}\n"
706 msgstr ""
707 "#define _GNU_SOURCE\n"
708 "#include E<lt>err.hE<gt>\n"
709 "#include E<lt>pthread.hE<gt>\n"
710 "#include E<lt>sched.hE<gt>\n"
711 "#include E<lt>stdio.hE<gt>\n"
712 "#include E<lt>stdlib.hE<gt>\n"
713 "\\&\n"
714 "int\n"
715 "main(void)\n"
716 "{\n"
717 " int s;\n"
718 " cpu_set_t cpuset;\n"
719 " pthread_t thread;\n"
720 "\\&\n"
721 " thread = pthread_self();\n"
722 "\\&\n"
723 " /* Definește masca de afinitate pentru a include CPU de la 0 la 7. */\n"
724 "\\&\n"
725 " CPU_ZERO(&cpuset);\n"
726 " for (size_t j = 0; j E<lt> 8; j++)\n"
727 " CPU_SET(j, &cpuset);\n"
728 "\\&\n"
729 " s = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);\n"
730 " if (s != 0)\n"
731 " errc(EXIT_FAILURE, s, \"pthread_setaffinity_np\");\n"
732 "\\&\n"
733 " /* Verifică masca de afinitate actuală atribuită firului. */\n"
734 "\\&\n"
735 " s = pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);\n"
736 " if (s != 0)\n"
737 " errc(EXIT_FAILURE, s, \"pthread_getaffinity_np\");\n"
738 "\\&\n"
739 " printf(\"Setul returnat de pthread_getaffinity_np() conține:\\[rs]n\");\n"
740 " for (size_t j = 0; j E<lt> CPU_SETSIZE; j++)\n"
741 " if (CPU_ISSET(j, &cpuset))\n"
742 " printf(\" CPU %zu\\[rs]n\", j);\n"
743 "\\&\n"
744 " exit(EXIT_SUCCESS);\n"
745 "}\n"
746
747 #. type: TH
748 #: mageia-cauldron
749 #, no-wrap
750 msgid "Linux man-pages 6.17"
751 msgstr "Pagini de manual de Linux 6.17"
752
753 #. type: TH
754 #: opensuse-leap-16-1 opensuse-tumbleweed
755 #, no-wrap
756 msgid "Linux man-pages (unreleased)"
757 msgstr "Pagini de manual Linux (nepublicate)"