| 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.24.0\n" |
| 8 |
"POT-Creation-Date: 2026-06-05 06:38+0200\n" |
| 9 |
"PO-Revision-Date: 2025-11-05 19:47+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_setname_np" |
| 25 |
msgstr "pthread_setname_np" |
| 26 |
|
| 27 |
#. type: TH |
| 28 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 29 |
#: opensuse-tumbleweed |
| 30 |
#, no-wrap |
| 31 |
msgid "2026-02-08" |
| 32 |
msgstr "8 februarie 2026" |
| 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 "pthread_setname_np, pthread_getname_np - set/get the name of a thread" |
| 51 |
msgstr "" |
| 52 |
"pthread_setname_np, pthread_getname_np - stabilește/obține numele unui fir" |
| 53 |
|
| 54 |
#. type: SH |
| 55 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 56 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 57 |
#, no-wrap |
| 58 |
msgid "LIBRARY" |
| 59 |
msgstr "BIBLIOTECA" |
| 60 |
|
| 61 |
#. type: Plain text |
| 62 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 63 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 64 |
msgid "POSIX threads library (I<libpthread>,\\ I<-lpthread>)" |
| 65 |
msgstr "Biblioteca de fire de execuție POSIX (I<libpthread>, I<-lpthread>)" |
| 66 |
|
| 67 |
#. type: SH |
| 68 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 69 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 70 |
#, no-wrap |
| 71 |
msgid "SYNOPSIS" |
| 72 |
msgstr "SINOPSIS" |
| 73 |
|
| 74 |
#. type: Plain text |
| 75 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 76 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 77 |
#, no-wrap |
| 78 |
msgid "" |
| 79 |
"B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" |
| 80 |
"B<#include E<lt>pthread.hE<gt>>\n" |
| 81 |
msgstr "" |
| 82 |
"B<#define _GNU_SOURCE> /* Consultați feature_test_macros(7) */\n" |
| 83 |
"B<#include E<lt>pthread.hE<gt>>\n" |
| 84 |
|
| 85 |
#. type: Plain text |
| 86 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 87 |
#: opensuse-tumbleweed |
| 88 |
#, no-wrap |
| 89 |
msgid "" |
| 90 |
"B<int pthread_setname_np(pthread_t >I<thread>B<, const char *>I<name>B<);>\n" |
| 91 |
"B<int pthread_getname_np(>size_t size;\n" |
| 92 |
"B< pthread_t >I<thread>B<, char >I<name>B<[>I<size>B<], size_t >I<size>B<);>\n" |
| 93 |
msgstr "" |
| 94 |
"B<int pthread_setname_np(pthread_t >I<thread>B<, const char *>I<name>B<);>\n" |
| 95 |
"B<int pthread_getname_np(>size_t size;\n" |
| 96 |
"B< pthread_t >I<thread>B<, char >I<name>B<[>I<size>B<], size_t >I<size>B<);>\n" |
| 97 |
|
| 98 |
#. type: SH |
| 99 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 100 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 101 |
#, no-wrap |
| 102 |
msgid "DESCRIPTION" |
| 103 |
msgstr "DESCRIERE" |
| 104 |
|
| 105 |
#. type: Plain text |
| 106 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 107 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 108 |
msgid "" |
| 109 |
"By default, all the threads created using B<pthread_create>() inherit the " |
| 110 |
"program name. The B<pthread_setname_np>() function can be used to set a " |
| 111 |
"unique name for a thread, which can be useful for debugging multithreaded " |
| 112 |
"applications. The thread name is a meaningful C language string, whose " |
| 113 |
"length is restricted to 16 characters, including the terminating null byte " |
| 114 |
"(\\[aq]\\[rs]0\\[aq]). The I<thread> argument specifies the thread whose " |
| 115 |
"name is to be changed; I<name> specifies the new name." |
| 116 |
msgstr "" |
| 117 |
"În mod implicit, toate firele create cu ajutorul funcției " |
| 118 |
"B<pthread_create>() moștenesc numele programului. Funcția " |
| 119 |
"B<pthread_setname_np>() poate fi utilizată pentru a stabili un nume unic " |
| 120 |
"pentru un fir, ceea ce poate fi util pentru depanarea aplicațiilor cu mai " |
| 121 |
"multe fire. Numele firului este un șir semnificativ în limbajul C, a cărui " |
| 122 |
"lungime este limitată la 16 caractere, inclusiv octetul nul de terminare („\\" |
| 123 |
"[rs]0”). Argumentul I<thread> specifică firul al cărui nume urmează să fie " |
| 124 |
"schimbat; I<name> specifică noul nume." |
| 125 |
|
| 126 |
#. type: Plain text |
| 127 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 128 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 129 |
msgid "" |
| 130 |
"The B<pthread_getname_np>() function can be used to retrieve the name of " |
| 131 |
"the thread. The I<thread> argument specifies the thread whose name is to be " |
| 132 |
"retrieved. The buffer I<name> is used to return the thread name; I<size> " |
| 133 |
"specifies the number of bytes available in I<name>. The buffer specified by " |
| 134 |
"I<name> should be at least 16 characters in length. The returned thread " |
| 135 |
"name in the output buffer will be null terminated." |
| 136 |
msgstr "" |
| 137 |
"Funcția B<pthread_getname_np>() poate fi utilizată pentru a prelua numele " |
| 138 |
"firului. Argumentul I<thread> specifică firul al cărui nume trebuie să fie " |
| 139 |
"recuperat. Memoria tampon I<name> este utilizată pentru a returna numele " |
| 140 |
"firului; I<size> specifică numărul de octeți disponibili în I<name>. Memoria " |
| 141 |
"tampon specificată de I<name> trebuie să aibă o lungime de cel puțin 16 " |
| 142 |
"caractere. Numele firului returnat în memoria tampon de ieșire va avea " |
| 143 |
"terminație nulă." |
| 144 |
|
| 145 |
#. type: SH |
| 146 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 147 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 148 |
#, no-wrap |
| 149 |
msgid "RETURN VALUE" |
| 150 |
msgstr "VALOAREA RETURNATĂ" |
| 151 |
|
| 152 |
#. type: Plain text |
| 153 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 154 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 155 |
msgid "" |
| 156 |
"On success, these functions return 0; on error, they return a nonzero error " |
| 157 |
"number." |
| 158 |
msgstr "" |
| 159 |
"În caz de succes, aceste funcții returnează 0; în caz de eroare, ele " |
| 160 |
"returnează un număr de eroare diferit de zero." |
| 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 "ERRORS" |
| 167 |
msgstr "ERORI-IEȘIRE" |
| 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 |
"The B<pthread_setname_np>() function can fail with the following error:" |
| 174 |
msgstr "Funcția B<pthread_setname_np>() poate eșua cu următoarea eroare:" |
| 175 |
|
| 176 |
#. type: TP |
| 177 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 178 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 179 |
#, no-wrap |
| 180 |
msgid "B<ERANGE>" |
| 181 |
msgstr "B<ERANGE>" |
| 182 |
|
| 183 |
#. type: Plain text |
| 184 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 185 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 186 |
msgid "" |
| 187 |
"The length of the string specified pointed to by I<name> exceeds the allowed " |
| 188 |
"limit." |
| 189 |
msgstr "" |
| 190 |
"Lungimea șirului specificat indicat de I<name> depășește limita permisă." |
| 191 |
|
| 192 |
#. type: Plain text |
| 193 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 194 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 195 |
msgid "" |
| 196 |
"The B<pthread_getname_np>() function can fail with the following error:" |
| 197 |
msgstr "Funcția B<pthread_getname_np>() poate eșua cu următoarea eroare:" |
| 198 |
|
| 199 |
#. type: Plain text |
| 200 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 201 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 202 |
msgid "" |
| 203 |
"The buffer specified by I<name> and I<size> is too small to hold the thread " |
| 204 |
"name." |
| 205 |
msgstr "" |
| 206 |
"Memoria tampon specificată de I<name> și I<size> este prea mică pentru a " |
| 207 |
"conține numele firului." |
| 208 |
|
| 209 |
#. type: Plain text |
| 210 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 211 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 212 |
msgid "" |
| 213 |
"If either of these functions fails to open I</proc/self/task/>tidI</comm>, " |
| 214 |
"then the call may fail with one of the errors described in B<open>(2)." |
| 215 |
msgstr "" |
| 216 |
"Dacă oricare dintre aceste funcții nu reușește să deschidă I</proc/self/task/" |
| 217 |
">tidI</comm>, apelul poate eșua cu una dintre erorile descrise în B<open>(2)." |
| 218 |
|
| 219 |
#. type: SH |
| 220 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 221 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 222 |
#, no-wrap |
| 223 |
msgid "ATTRIBUTES" |
| 224 |
msgstr "ATRIBUTE" |
| 225 |
|
| 226 |
#. type: Plain text |
| 227 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 228 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 229 |
msgid "" |
| 230 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 231 |
msgstr "" |
| 232 |
"Pentru o explicație a termenilor folosiți în această secțiune, a se vedea " |
| 233 |
"B<attributes>(7)." |
| 234 |
|
| 235 |
#. type: tbl table |
| 236 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 237 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 238 |
#, no-wrap |
| 239 |
msgid "Interface" |
| 240 |
msgstr "Interfață" |
| 241 |
|
| 242 |
#. type: tbl table |
| 243 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 244 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 245 |
#, no-wrap |
| 246 |
msgid "Attribute" |
| 247 |
msgstr "Atribut" |
| 248 |
|
| 249 |
#. type: tbl table |
| 250 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 251 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 252 |
#, no-wrap |
| 253 |
msgid "Value" |
| 254 |
msgstr "Valoare" |
| 255 |
|
| 256 |
#. type: tbl table |
| 257 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 258 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 259 |
#, no-wrap |
| 260 |
msgid ".na\n" |
| 261 |
msgstr ".na\n" |
| 262 |
|
| 263 |
#. type: tbl table |
| 264 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 265 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 266 |
#, no-wrap |
| 267 |
msgid ".nh\n" |
| 268 |
msgstr ".nh\n" |
| 269 |
|
| 270 |
#. type: tbl table |
| 271 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 272 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 273 |
#, no-wrap |
| 274 |
msgid "" |
| 275 |
"B<pthread_setname_np>(),\n" |
| 276 |
"B<pthread_getname_np>()" |
| 277 |
msgstr "" |
| 278 |
"B<pthread_setname_np>(),\n" |
| 279 |
"B<pthread_getname_np>()" |
| 280 |
|
| 281 |
#. type: tbl table |
| 282 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 283 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 284 |
#, no-wrap |
| 285 |
msgid "Thread safety" |
| 286 |
msgstr "Siguranța firelor" |
| 287 |
|
| 288 |
#. type: tbl table |
| 289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 290 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 291 |
#, no-wrap |
| 292 |
msgid "MT-Safe" |
| 293 |
msgstr "MT-Safe" |
| 294 |
|
| 295 |
#. type: SH |
| 296 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 297 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 298 |
#, no-wrap |
| 299 |
msgid "STANDARDS" |
| 300 |
msgstr "STANDARDE" |
| 301 |
|
| 302 |
#. type: Plain text |
| 303 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 304 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 305 |
msgid "GNU; hence the suffix \"_np\" (nonportable) in the names." |
| 306 |
msgstr "GNU; de aici și sufixul „_np” (neportabil) din denumiri." |
| 307 |
|
| 308 |
#. type: SH |
| 309 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 310 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 311 |
#, no-wrap |
| 312 |
msgid "HISTORY" |
| 313 |
msgstr "ISTORIC" |
| 314 |
|
| 315 |
#. type: Plain text |
| 316 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 317 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 318 |
msgid "glibc 2.12." |
| 319 |
msgstr "glibc 2.12." |
| 320 |
|
| 321 |
#. type: SH |
| 322 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 323 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 324 |
#, no-wrap |
| 325 |
msgid "NOTES" |
| 326 |
msgstr "NOTE" |
| 327 |
|
| 328 |
#. type: Plain text |
| 329 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 330 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 331 |
msgid "" |
| 332 |
"B<pthread_setname_np>() internally writes to the thread-specific I<comm> " |
| 333 |
"file under the I</proc> filesystem: I</proc/self/task/>tidI</comm>. " |
| 334 |
"B<pthread_getname_np>() retrieves it from the same location." |
| 335 |
msgstr "" |
| 336 |
"B<pthread_setname_np>() scrie intern în fișierul specific firului I<comm> " |
| 337 |
"din cadrul sistemului de fișiere I</proc>: I</proc/self/task/>tidI</comm>. " |
| 338 |
"B<pthread_getname_np>() îl recuperează din aceeași locație." |
| 339 |
|
| 340 |
#. type: SH |
| 341 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 342 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 343 |
#, no-wrap |
| 344 |
msgid "EXAMPLES" |
| 345 |
msgstr "EXEMPLE" |
| 346 |
|
| 347 |
#. type: Plain text |
| 348 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 349 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 350 |
msgid "" |
| 351 |
"The program below demonstrates the use of B<pthread_setname_np>() and " |
| 352 |
"B<pthread_getname_np>()." |
| 353 |
msgstr "" |
| 354 |
"Programul de mai jos demonstrează utilizarea B<pthread_setname_np>() și " |
| 355 |
"B<pthread_getname_np>()." |
| 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 "The following shell session shows a sample run of the program:" |
| 361 |
msgstr "Următoarea sesiune shell arată un exemplu de execuție a programului:" |
| 362 |
|
| 363 |
#. type: Plain text |
| 364 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 365 |
#: opensuse-tumbleweed |
| 366 |
#, no-wrap |
| 367 |
msgid "" |
| 368 |
"$B< ./a.out>;\n" |
| 369 |
"Created a thread. Default name is: a.out\n" |
| 370 |
"The thread name after setting it is THREADFOO.\n" |
| 371 |
"\\f[B]\\[ha]Z\\fR # Suspend the program\n" |
| 372 |
"[1]+ Stopped ./a.out\n" |
| 373 |
"$ B<ps H -C a.out -o \\[aq]pid tid cmd comm\\[aq]>\n" |
| 374 |
" PID TID CMD COMMAND\n" |
| 375 |
" 5990 5990 ./a.out a.out\n" |
| 376 |
" 5990 5991 ./a.out THREADFOO\n" |
| 377 |
"$ B<cat /proc/5990/task/5990/comm>\n" |
| 378 |
"a.out\n" |
| 379 |
"$ B<cat /proc/5990/task/5991/comm>\n" |
| 380 |
"THREADFOO\n" |
| 381 |
msgstr "" |
| 382 |
"$B< ./a.out>;\n" |
| 383 |
"A fost creat un fir. Numele implicit este: a.out\n" |
| 384 |
"Numele firului după definire este THREADFOO.\n" |
| 385 |
"B<\\[ha]Z> # Suspendă programul\n" |
| 386 |
"[1]+ Stopped ./a.out\n" |
| 387 |
"$ B<ps H -C a.out -o \\[aq]pid tid cmd comm\\[aq]>\n" |
| 388 |
" PID TID CMD COMMAND\n" |
| 389 |
" 5990 5990 ./a.out a.out\n" |
| 390 |
" 5990 5991 ./a.out THREADFOO\n" |
| 391 |
"$ B<cat /proc/5990/task/5990/comm>\n" |
| 392 |
"a.out\n" |
| 393 |
"$ B<cat /proc/5990/task/5991/comm>\n" |
| 394 |
"THREADFOO\n" |
| 395 |
|
| 396 |
#. type: SS |
| 397 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 398 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 399 |
#, no-wrap |
| 400 |
msgid "Program source" |
| 401 |
msgstr "Sursa programului" |
| 402 |
|
| 403 |
#. type: Plain text |
| 404 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 405 |
#: opensuse-tumbleweed |
| 406 |
#, no-wrap |
| 407 |
msgid "" |
| 408 |
"#define _GNU_SOURCE\n" |
| 409 |
"#include E<lt>err.hE<gt>\n" |
| 410 |
"#include E<lt>errno.hE<gt>\n" |
| 411 |
"#include E<lt>pthread.hE<gt>\n" |
| 412 |
"#include E<lt>stdio.hE<gt>\n" |
| 413 |
"#include E<lt>stdlib.hE<gt>\n" |
| 414 |
"#include E<lt>string.hE<gt>\n" |
| 415 |
"#include E<lt>unistd.hE<gt>\n" |
| 416 |
"\\&\n" |
| 417 |
"#define NAMELEN 16\n" |
| 418 |
"\\&\n" |
| 419 |
"static void *\n" |
| 420 |
"threadfunc(void *parm)\n" |
| 421 |
"{\n" |
| 422 |
" sleep(5); // allow main program to set the thread name\n" |
| 423 |
" return NULL;\n" |
| 424 |
"}\n" |
| 425 |
"\\&\n" |
| 426 |
"int\n" |
| 427 |
"main(int argc, char *argv[])\n" |
| 428 |
"{\n" |
| 429 |
" pthread_t thread;\n" |
| 430 |
" int rc;\n" |
| 431 |
" char thread_name[NAMELEN];\n" |
| 432 |
"\\&\n" |
| 433 |
" rc = pthread_create(&thread, NULL, threadfunc, NULL);\n" |
| 434 |
" if (rc != 0)\n" |
| 435 |
" errc(EXIT_FAILURE, rc, \"pthread_create\");\n" |
| 436 |
"\\&\n" |
| 437 |
" rc = pthread_getname_np(thread, thread_name, NAMELEN);\n" |
| 438 |
" if (rc != 0)\n" |
| 439 |
" errc(EXIT_FAILURE, rc, \"pthread_getname_np\");\n" |
| 440 |
"\\&\n" |
| 441 |
" printf(\"Created a thread. Default name is: %s\\[rs]n\", thread_name);\n" |
| 442 |
" rc = pthread_setname_np(thread, (argc E<gt> 1) ? argv[1] : \"THREADFOO\");\n" |
| 443 |
" if (rc != 0)\n" |
| 444 |
" errc(EXIT_FAILURE, rc, \"pthread_setname_np\");\n" |
| 445 |
"\\&\n" |
| 446 |
" sleep(2);\n" |
| 447 |
"\\&\n" |
| 448 |
" rc = pthread_getname_np(thread, thread_name, NAMELEN);\n" |
| 449 |
" if (rc != 0)\n" |
| 450 |
" errc(EXIT_FAILURE, rc, \"pthread_getname_np\");\n" |
| 451 |
" printf(\"The thread name after setting it is %s.\\[rs]n\", thread_name);\n" |
| 452 |
"\\&\n" |
| 453 |
" rc = pthread_join(thread, NULL);\n" |
| 454 |
" if (rc != 0)\n" |
| 455 |
" errc(EXIT_FAILURE, rc, \"pthread_join\");\n" |
| 456 |
"\\&\n" |
| 457 |
" printf(\"Done\\[rs]n\");\n" |
| 458 |
" exit(EXIT_SUCCESS);\n" |
| 459 |
"}\n" |
| 460 |
msgstr "" |
| 461 |
"#define _GNU_SOURCE\n" |
| 462 |
"#include E<lt>err.hE<gt>\n" |
| 463 |
"#include E<lt>errno.hE<gt>\n" |
| 464 |
"#include E<lt>pthread.hE<gt>\n" |
| 465 |
"#include E<lt>stdio.hE<gt>\n" |
| 466 |
"#include E<lt>stdlib.hE<gt>\n" |
| 467 |
"#include E<lt>string.hE<gt>\n" |
| 468 |
"#include E<lt>unistd.hE<gt>\n" |
| 469 |
"\\&\n" |
| 470 |
"#define NAMELEN 16\n" |
| 471 |
"\\&\n" |
| 472 |
"static void *\n" |
| 473 |
"threadfunc(void *parm)\n" |
| 474 |
"{\n" |
| 475 |
" sleep(5); // permite programului principal să stabilească numele firului\n" |
| 476 |
" return NULL;\n" |
| 477 |
"}\n" |
| 478 |
"\\&\n" |
| 479 |
"int\n" |
| 480 |
"main(int argc, char *argv[])\n" |
| 481 |
"{\n" |
| 482 |
" pthread_t thread;\n" |
| 483 |
" int rc;\n" |
| 484 |
" char thread_name[NAMELEN];\n" |
| 485 |
"\\&\n" |
| 486 |
" rc = pthread_create(&thread, NULL, threadfunc, NULL);\n" |
| 487 |
" if (rc != 0)\n" |
| 488 |
" errc(EXIT_FAILURE, rc, \"pthread_create\");\n" |
| 489 |
"\\&\n" |
| 490 |
" rc = pthread_getname_np(thread, thread_name, NAMELEN);\n" |
| 491 |
" if (rc != 0)\n" |
| 492 |
" errc(EXIT_FAILURE, rc, \"pthread_getname_np\");\n" |
| 493 |
"\\&\n" |
| 494 |
" printf(\"A fost creat un fir. Numele implicit este: %s\\[rs]n\", thread_name);\n" |
| 495 |
" rc = pthread_setname_np(thread, (argc E<gt> 1) ? argv[1] : \"THREADFOO\");\n" |
| 496 |
" if (rc != 0)\n" |
| 497 |
" errc(EXIT_FAILURE, rc, \"pthread_setname_np\");\n" |
| 498 |
"\\&\n" |
| 499 |
" sleep(2);\n" |
| 500 |
"\\&\n" |
| 501 |
" rc = pthread_getname_np(thread, thread_name, NAMELEN);\n" |
| 502 |
" if (rc != 0)\n" |
| 503 |
" errc(EXIT_FAILURE, rc, \"pthread_getname_np\");\n" |
| 504 |
" printf(\"Numele firului după definire este %s.\\[rs]n\", thread_name);\n" |
| 505 |
"\\&\n" |
| 506 |
" rc = pthread_join(thread, NULL);\n" |
| 507 |
" if (rc != 0)\n" |
| 508 |
" errc(EXIT_FAILURE, rc, \"pthread_join\");\n" |
| 509 |
"\\&\n" |
| 510 |
" printf(\"Gata\\[rs]n\");\n" |
| 511 |
" exit(EXIT_SUCCESS);\n" |
| 512 |
"}\n" |
| 513 |
|
| 514 |
#. SRC END |
| 515 |
#. type: SH |
| 516 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 517 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 518 |
#, no-wrap |
| 519 |
msgid "SEE ALSO" |
| 520 |
msgstr "CONSULTAȚI ȘI" |
| 521 |
|
| 522 |
#. type: Plain text |
| 523 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 524 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 525 |
msgid "B<prctl>(2), B<pthread_create>(3), B<pthreads>(7)" |
| 526 |
msgstr "B<prctl>(2), B<pthread_create>(3), B<pthreads>(7)" |
| 527 |
|
| 528 |
#. type: TH |
| 529 |
#: debian-trixie |
| 530 |
#, no-wrap |
| 531 |
msgid "2024-06-15" |
| 532 |
msgstr "15 iunie 2024" |
| 533 |
|
| 534 |
#. type: TH |
| 535 |
#: debian-trixie |
| 536 |
#, no-wrap |
| 537 |
msgid "Linux man-pages 6.9.1" |
| 538 |
msgstr "Pagini de manual de Linux 6.9.1" |
| 539 |
|
| 540 |
#. type: Plain text |
| 541 |
#: debian-trixie |
| 542 |
msgid "POSIX threads library (I<libpthread>, I<-lpthread>)" |
| 543 |
msgstr "Biblioteca de fire de execuție POSIX (I<libpthread>, I<-lpthread>)" |
| 544 |
|
| 545 |
#. type: Plain text |
| 546 |
#: debian-trixie fedora-44 fedora-rawhide |
| 547 |
#, no-wrap |
| 548 |
msgid "" |
| 549 |
"B<int pthread_setname_np(pthread_t >I<thread>B<, const char *>I<name>B<);>\n" |
| 550 |
"B<int pthread_getname_np(pthread_t >I<thread>B<, char >I<name>B<[.>I<size>B<], size_t >I<size>B<);>\n" |
| 551 |
msgstr "" |
| 552 |
"B<int pthread_setname_np(pthread_t >I<thread>B<, const char *>I<name>B<);>\n" |
| 553 |
"B<int pthread_getname_np(pthread_t >I<thread>B<, char >I<name>B<[.>I<size>B<], size_t >I<size>B<);>\n" |
| 554 |
|
| 555 |
#. type: Plain text |
| 556 |
#: debian-trixie fedora-44 fedora-rawhide |
| 557 |
#, no-wrap |
| 558 |
msgid "" |
| 559 |
"$B< ./a.out>\n" |
| 560 |
"Created a thread. Default name is: a.out\n" |
| 561 |
"The thread name after setting it is THREADFOO.\n" |
| 562 |
"B<\\[ha]Z> # Suspend the program\n" |
| 563 |
"[1]+ Stopped ./a.out\n" |
| 564 |
"$ B<ps H -C a.out -o \\[aq]pid tid cmd comm\\[aq]>\n" |
| 565 |
" PID TID CMD COMMAND\n" |
| 566 |
" 5990 5990 ./a.out a.out\n" |
| 567 |
" 5990 5991 ./a.out THREADFOO\n" |
| 568 |
"$ B<cat /proc/5990/task/5990/comm>\n" |
| 569 |
"a.out\n" |
| 570 |
"$ B<cat /proc/5990/task/5991/comm>\n" |
| 571 |
"THREADFOO\n" |
| 572 |
msgstr "" |
| 573 |
"$B< ./a.out>\n" |
| 574 |
"A fost creat un fir. Numele implicit este: a.out\n" |
| 575 |
"Numele firului după definire este THREADFOO.\n" |
| 576 |
"B<\\[ha]Z> # Suspendă programul\n" |
| 577 |
"[1]+ Stopped ./a.out\n" |
| 578 |
"$ B<ps H -C a.out -o \\[aq]pid tid cmd comm\\[aq]>\n" |
| 579 |
" PID TID CMD COMMAND\n" |
| 580 |
" 5990 5990 ./a.out a.out\n" |
| 581 |
" 5990 5991 ./a.out THREADFOO\n" |
| 582 |
"$ B<cat /proc/5990/task/5990/comm>\n" |
| 583 |
"a.out\n" |
| 584 |
"$ B<cat /proc/5990/task/5991/comm>\n" |
| 585 |
"THREADFOO\n" |
| 586 |
|
| 587 |
#. type: Plain text |
| 588 |
#: debian-trixie fedora-44 fedora-rawhide |
| 589 |
#, no-wrap |
| 590 |
msgid "" |
| 591 |
"#define _GNU_SOURCE\n" |
| 592 |
"#include E<lt>err.hE<gt>\n" |
| 593 |
"#include E<lt>errno.hE<gt>\n" |
| 594 |
"#include E<lt>pthread.hE<gt>\n" |
| 595 |
"#include E<lt>stdio.hE<gt>\n" |
| 596 |
"#include E<lt>stdlib.hE<gt>\n" |
| 597 |
"#include E<lt>string.hE<gt>\n" |
| 598 |
"#include E<lt>unistd.hE<gt>\n" |
| 599 |
"\\&\n" |
| 600 |
"#define NAMELEN 16\n" |
| 601 |
"\\&\n" |
| 602 |
"static void *\n" |
| 603 |
"threadfunc(void *parm)\n" |
| 604 |
"{\n" |
| 605 |
" sleep(5); // allow main program to set the thread name\n" |
| 606 |
" return NULL;\n" |
| 607 |
"}\n" |
| 608 |
"\\&\n" |
| 609 |
"int\n" |
| 610 |
"main(int argc, char *argv[])\n" |
| 611 |
"{\n" |
| 612 |
" pthread_t thread;\n" |
| 613 |
" int rc;\n" |
| 614 |
" char thread_name[NAMELEN];\n" |
| 615 |
"\\&\n" |
| 616 |
" rc = pthread_create(&thread, NULL, threadfunc, NULL);\n" |
| 617 |
" if (rc != 0)\n" |
| 618 |
" errc(EXIT_FAILURE, rc, \"pthread_create\");\n" |
| 619 |
"\\&\n" |
| 620 |
" rc = pthread_getname_np(thread, thread_name, NAMELEN);\n" |
| 621 |
" if (rc != 0)\n" |
| 622 |
" errc(EXIT_FAILURE, rc, \"pthread_getname_np\");\n" |
| 623 |
"\\&\n" |
| 624 |
" printf(\"Created a thread. Default name is: %s\\[rs]n\", thread_name);\n" |
| 625 |
" rc = pthread_setname_np(thread, (argc E<gt> 1) ? argv[1] : \"THREADFOO\");\n" |
| 626 |
" if (rc != 0)\n" |
| 627 |
" errc(EXIT_FAILURE, rc, \"pthread_setname_np\");\n" |
| 628 |
"\\&\n" |
| 629 |
" sleep(2);\n" |
| 630 |
"\\&\n" |
| 631 |
" rc = pthread_getname_np(thread, thread_name, NAMELEN);\n" |
| 632 |
" if (rc != 0)\n" |
| 633 |
" errc(EXIT_FAILURE, rc, \"pthread_getname_np\");\n" |
| 634 |
" printf(\"The thread name after setting it is %s.\\[rs]n\", thread_name);\n" |
| 635 |
"\\&\n" |
| 636 |
" rc = pthread_join(thread, NULL);\n" |
| 637 |
" if (rc != 0)\n" |
| 638 |
" errc(EXIT_FAILURE, rc, \"pthread_join\");\n" |
| 639 |
"\\&\n" |
| 640 |
" printf(\"Done\\[rs]n\");\n" |
| 641 |
" exit(EXIT_SUCCESS);\n" |
| 642 |
"}\n" |
| 643 |
msgstr "" |
| 644 |
"#define _GNU_SOURCE\n" |
| 645 |
"#include E<lt>err.hE<gt>\n" |
| 646 |
"#include E<lt>errno.hE<gt>\n" |
| 647 |
"#include E<lt>pthread.hE<gt>\n" |
| 648 |
"#include E<lt>stdio.hE<gt>\n" |
| 649 |
"#include E<lt>stdlib.hE<gt>\n" |
| 650 |
"#include E<lt>string.hE<gt>\n" |
| 651 |
"#include E<lt>unistd.hE<gt>\n" |
| 652 |
"\\&\n" |
| 653 |
"#define NAMELEN 16\n" |
| 654 |
"\\&\n" |
| 655 |
"static void *\n" |
| 656 |
"threadfunc(void *parm)\n" |
| 657 |
"{\n" |
| 658 |
" sleep(5); // permite programului principal să stabilească numele firului\n" |
| 659 |
" return NULL;\n" |
| 660 |
"}\n" |
| 661 |
"\\&\n" |
| 662 |
"int\n" |
| 663 |
"main(int argc, char *argv[])\n" |
| 664 |
"{\n" |
| 665 |
" pthread_t thread;\n" |
| 666 |
" int rc;\n" |
| 667 |
" char thread_name[NAMELEN];\n" |
| 668 |
"\\&\n" |
| 669 |
" rc = pthread_create(&thread, NULL, threadfunc, NULL);\n" |
| 670 |
" if (rc != 0)\n" |
| 671 |
" errc(EXIT_FAILURE, rc, \"pthread_create\");\n" |
| 672 |
"\\&\n" |
| 673 |
" rc = pthread_getname_np(thread, thread_name, NAMELEN);\n" |
| 674 |
" if (rc != 0)\n" |
| 675 |
" errc(EXIT_FAILURE, rc, \"pthread_getname_np\");\n" |
| 676 |
"\\&\n" |
| 677 |
" printf(\"A fost creat un fir. Numele implicit este: %s\\[rs]n\", thread_name);\n" |
| 678 |
" rc = pthread_setname_np(thread, (argc E<gt> 1) ? argv[1] : \"THREADFOO\");\n" |
| 679 |
" if (rc != 0)\n" |
| 680 |
" errc(EXIT_FAILURE, rc, \"pthread_setname_np\");\n" |
| 681 |
"\\&\n" |
| 682 |
" sleep(2);\n" |
| 683 |
"\\&\n" |
| 684 |
" rc = pthread_getname_np(thread, thread_name, NAMELEN);\n" |
| 685 |
" if (rc != 0)\n" |
| 686 |
" errc(EXIT_FAILURE, rc, \"pthread_getname_np\");\n" |
| 687 |
" printf(\"Numele firului după definire este %s.\\[rs]n\", thread_name);\n" |
| 688 |
"\\&\n" |
| 689 |
" rc = pthread_join(thread, NULL);\n" |
| 690 |
" if (rc != 0)\n" |
| 691 |
" errc(EXIT_FAILURE, rc, \"pthread_join\");\n" |
| 692 |
"\\&\n" |
| 693 |
" printf(\"Gata\\[rs]n\");\n" |
| 694 |
" exit(EXIT_SUCCESS);\n" |
| 695 |
"}\n" |
| 696 |
|
| 697 |
#. type: TH |
| 698 |
#: fedora-44 fedora-rawhide |
| 699 |
#, no-wrap |
| 700 |
msgid "2024-07-23" |
| 701 |
msgstr "23 iulie 2024" |
| 702 |
|
| 703 |
#. type: TH |
| 704 |
#: fedora-44 fedora-rawhide |
| 705 |
#, no-wrap |
| 706 |
msgid "Linux man-pages 6.13" |
| 707 |
msgstr "Pagini de manual de Linux 6.13" |
| 708 |
|
| 709 |
#. type: TH |
| 710 |
#: mageia-cauldron |
| 711 |
#, no-wrap |
| 712 |
msgid "Linux man-pages 6.17" |
| 713 |
msgstr "Pagini de manual de Linux 6.17" |
| 714 |
|
| 715 |
#. type: TH |
| 716 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 717 |
#, no-wrap |
| 718 |
msgid "Linux man-pages (unreleased)" |
| 719 |
msgstr "Pagini de manual Linux (nepublicate)" |