Debian Codegraph @

po/ro/man3/getpwent_r.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, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.21.0\n"
8 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
9 "PO-Revision-Date: 2026-05-07 00:55+0200\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.8\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 "getpwent_r"
25 msgstr "getpwent_r"
26
27 #. type: TH
28 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-14"
31 msgstr "14 februarie 2026"
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr "Pagini de manual de Linux 6.18"
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr "NUME"
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "getpwent_r, fgetpwent_r - get passwd file entry reentrantly"
50 msgstr ""
51 "getpwent_r, fgetpwent_r - obține intrarea din fișierul passwd în mod "
52 "reentrant"
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 "Standard C library (I<libc>,\\ I<-lc>)"
65 msgstr "Biblioteca C standard (I<libc>, I<-lc>)"
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 "B<#include E<lt>pwd.hE<gt>>\n"
79 msgstr "B<#include E<lt>pwd.hE<gt>>\n"
80
81 #. type: Plain text
82 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
83 #: opensuse-tumbleweed
84 #, no-wrap
85 msgid ""
86 "B<int getpwent_r(>size_t size;\n"
87 "B< struct passwd *restrict >I<pwbuf>B<,>\n"
88 "B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
89 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
90 "B<int fgetpwent_r(>size_t size;\n"
91 "B< FILE *restrict >I<stream>B<, struct passwd *restrict >I<pwbuf>B<,>\n"
92 "B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
93 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
94 msgstr ""
95 "B<int getpwent_r(>size_t size;\n"
96 "B< struct passwd *restrict >I<pwbuf>B<,>\n"
97 "B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
98 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
99 "B<int fgetpwent_r(>size_t size;\n"
100 "B< FILE *restrict >I<stream>B<, struct passwd *restrict >I<pwbuf>B<,>\n"
101 "B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
102 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
103
104 #. type: Plain text
105 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
106 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
107 msgid ""
108 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
109 msgstr ""
110 "Cerințe pentru macrocomenzi de testare a caracteristicilor pentru glibc "
111 "(consultați B<feature_test_macros>(7)):"
112
113 #. type: Plain text
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 msgid "B<getpwent_r>(),"
117 msgstr "B<getpwent_r>(),"
118
119 #. type: Plain text
120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
122 #, no-wrap
123 msgid ""
124 " Since glibc 2.19:\n"
125 " _DEFAULT_SOURCE\n"
126 " glibc 2.19 and earlier:\n"
127 " _BSD_SOURCE || _SVID_SOURCE\n"
128 msgstr ""
129 " Începând cu glibc 2.19:\n"
130 " _DEFAULT_SOURCE\n"
131 " glibc 2.19 și versiunile anterioare:\n"
132 " _BSD_SOURCE || _SVID_SOURCE\n"
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 "B<fgetpwent_r>():"
138 msgstr "B<fgetpwent_r>():"
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 #, no-wrap
144 msgid ""
145 " Since glibc 2.19:\n"
146 " _DEFAULT_SOURCE\n"
147 " glibc 2.19 and earlier:\n"
148 " _SVID_SOURCE\n"
149 msgstr ""
150 " Începând cu glibc 2.19:\n"
151 " _DEFAULT_SOURCE\n"
152 " glibc 2.19 și versiunile anterioare:\n"
153 " _SVID_SOURCE\n"
154
155 #. type: SH
156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
158 #, no-wrap
159 msgid "DESCRIPTION"
160 msgstr "DESCRIERE"
161
162 #. type: Plain text
163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
165 msgid ""
166 "The functions B<getpwent_r>() and B<fgetpwent_r>() are the reentrant "
167 "versions of B<getpwent>(3) and B<fgetpwent>(3). The former reads the next "
168 "passwd entry from the stream initialized by B<setpwent>(3). The latter "
169 "reads the next passwd entry from I<stream>."
170 msgstr ""
171 "Funcțiile B<getpwent_r>() și B<fgetpwent_r>() sunt versiunile reentrante ale "
172 "B<getpwent>(3) și B<fgetpwent>(3). Prima citește următoarea intrare passwd "
173 "din fluxul inițializat de B<setpwent>(3). Cea de-a doua citește următoarea "
174 "intrare passwd din I<stream>."
175
176 #. type: Plain text
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 msgid "The I<passwd> structure is defined in I<E<lt>pwd.hE<gt>> as follows:"
180 msgstr ""
181 "Structura I<passwd> este definită în I<E<lt>pwd.hE<gt>> după cum urmează:"
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 #, no-wrap
187 msgid ""
188 "struct passwd {\n"
189 " char *pw_name; /* username */\n"
190 " char *pw_passwd; /* user password */\n"
191 " uid_t pw_uid; /* user ID */\n"
192 " gid_t pw_gid; /* group ID */\n"
193 " char *pw_gecos; /* user information */\n"
194 " char *pw_dir; /* home directory */\n"
195 " char *pw_shell; /* shell program */\n"
196 "};\n"
197 msgstr ""
198 "struct passwd {\n"
199 " char *pw_name; /* nume utilizator */\n"
200 " char *pw_passwd; /* parolă utilizator */\n"
201 " uid_t pw_uid; /* ID utilizator */\n"
202 " gid_t pw_gid; /* ID grup */\n"
203 " char *pw_gecos; /* informații utilizator */\n"
204 " char *pw_dir; /* directorul personal */\n"
205 " char *pw_shell; /* program shell */\n"
206 "};\n"
207
208 #. type: Plain text
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 msgid ""
212 "For more information about the fields of this structure, see B<passwd>(5)."
213 msgstr ""
214 "Pentru mai multe informații despre câmpurile acestei structuri, consultați "
215 "B<passwd>(5)."
216
217 #. type: Plain text
218 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
219 #: opensuse-tumbleweed
220 msgid ""
221 "The nonreentrant functions return a pointer to static storage, where this "
222 "static storage contains further pointers to user name, password, gecos "
223 "field, home directory and shell. The reentrant functions described here "
224 "return all of that in caller-provided buffers. First of all there is the "
225 "buffer I<pwbuf> that can hold a I<struct\\ passwd>. And next the buffer "
226 "I<buf> of size I<size> that can hold additional strings. The result of "
227 "these functions, the I<struct\\ passwd> read from the stream, is stored in "
228 "the provided buffer I<*pwbuf>, and a pointer to this I<struct\\ passwd> is "
229 "returned in I<*pwbufp>."
230 msgstr ""
231 "Funcțiile nereentrante returnează un indicator către o memorie statică, unde "
232 "această memorie statică conține alți indicatori pentru numele de utilizator, "
233 "parola, câmpul gecos, directorul principal și shell-ul. Funcțiile reentrante "
234 "descrise aici returnează toate acestea în memorii tampon furnizate de "
235 "apelant. În primul rând, există memoria tampon I<pwbuf> care poate conține o "
236 "I<struct\\ passwd>. Și apoi memoria tampon I<buf> de dimensiune I<size> care "
237 "poate conține șiruri de caractere suplimentare. Rezultatul acestor funcții, "
238 "I<struct\\ passwd> citit din flux, este stocat în memoria tampon furnizată "
239 "I<*pwbuf>, iar un indicator la această I<struct\\ passwd> este returnat în "
240 "I<*pwbufp>."
241
242 #. type: SH
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 #, no-wrap
246 msgid "RETURN VALUE"
247 msgstr "VALOAREA RETURNATĂ"
248
249 #. type: Plain text
250 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
251 #: opensuse-tumbleweed
252 msgid ""
253 "On success, these functions return 0 and I<*pwbufp> is a pointer to the "
254 "I<struct\\ passwd>. On error, these functions return an error value and "
255 "I<*pwbufp> is NULL."
256 msgstr ""
257 "În caz de succes, aceste funcții returnează 0, iar I<*pwbufp> este un "
258 "indicator la I<struct\\ passwd>. În caz de eroare, aceste funcții returnează "
259 "o valoare de eroare, iar I<*pwbufp> este NULL."
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 "ERRORS"
266 msgstr "ERORI-IEȘIRE"
267
268 #. type: TP
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 #, no-wrap
272 msgid "B<ENOENT>"
273 msgstr "B<ENOENT>"
274
275 #. type: Plain text
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 msgid "No more entries."
279 msgstr "Nu mai există alte intrări."
280
281 #. type: TP
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 #, no-wrap
285 msgid "B<ERANGE>"
286 msgstr "B<ERANGE>"
287
288 #. type: Plain text
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 msgid "Insufficient buffer space supplied. Try again with larger buffer."
292 msgstr ""
293 "Spațiu de memorie tampon furnizat insuficient. Încercați din nou cu o "
294 "memorie tampon mai mare."
295
296 #. type: SH
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 #, no-wrap
300 msgid "ATTRIBUTES"
301 msgstr "ATRIBUTE"
302
303 #. type: Plain text
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 msgid ""
307 "For an explanation of the terms used in this section, see B<attributes>(7)."
308 msgstr ""
309 "Pentru o explicație a termenilor folosiți în această secțiune, a se vedea "
310 "B<attributes>(7)."
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 "Interface"
317 msgstr "Interfață"
318
319 #. type: tbl table
320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
322 #, no-wrap
323 msgid "Attribute"
324 msgstr "Atribut"
325
326 #. type: tbl table
327 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
328 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
329 #, no-wrap
330 msgid "Value"
331 msgstr "Valoare"
332
333 #. type: tbl table
334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
336 #, no-wrap
337 msgid ".na\n"
338 msgstr ".na\n"
339
340 #. type: tbl table
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 #, no-wrap
344 msgid ".nh\n"
345 msgstr ".nh\n"
346
347 #. type: tbl table
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 #, no-wrap
351 msgid "B<getpwent_r>()"
352 msgstr "B<getpwent_r>()"
353
354 #. type: tbl table
355 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
356 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
357 #, no-wrap
358 msgid "Thread safety"
359 msgstr "Siguranța firelor"
360
361 #. type: tbl table
362 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
363 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
364 #, no-wrap
365 msgid "MT-Unsafe race:pwent locale"
366 msgstr "MT-Unsafe race:pwent locale"
367
368 #. type: tbl table
369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
371 #, no-wrap
372 msgid "B<fgetpwent_r>()"
373 msgstr "B<fgetpwent_r>()"
374
375 #. type: tbl table
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 #, no-wrap
379 msgid "MT-Safe"
380 msgstr "MT-Safe"
381
382 #. type: Plain text
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 msgid ""
386 "In the above table, I<pwent> in I<race:pwent> signifies that if any of the "
387 "functions B<setpwent>(), B<getpwent>(), B<endpwent>(), or B<getpwent_r>() "
388 "are used in parallel in different threads of a program, then data races "
389 "could occur."
390 msgstr ""
391 "În tabelul de mai sus, I<pwent> din I<race:pwent> semnifică faptul că, dacă "
392 "oricare dintre funcțiile B<setpwent>(), B<getpwent>(), B<endpwent>() sau "
393 "B<getpwent_r>() sunt utilizate în paralel în diferite fire de execuție ale "
394 "unui program, atunci pot apărea competiții de date."
395
396 #. type: SH
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 #, no-wrap
400 msgid "VERSIONS"
401 msgstr "VERSIUNI"
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 "Other systems use the prototype"
407 msgstr "Alte sisteme utilizează prototipul"
408
409 #. type: Plain text
410 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
411 #: opensuse-leap-16-1 opensuse-tumbleweed
412 #, no-wrap
413 msgid ""
414 "struct passwd *\n"
415 "getpwent_r(struct passwd *pwd, char buf[.size], int size);\n"
416 msgstr ""
417 "struct passwd *\n"
418 "getpwent_r(struct passwd *pwd, char buf[.size], int size);\n"
419
420 #. type: Plain text
421 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
422 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
423 msgid "or, better,"
424 msgstr "sau, mai bine zis,"
425
426 #. type: Plain text
427 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
428 #: opensuse-leap-16-1 opensuse-tumbleweed
429 #, no-wrap
430 msgid ""
431 "int\n"
432 "getpwent_r(struct passwd *pwd, char buf[.size], int size,\n"
433 " FILE **pw_fp);\n"
434 msgstr ""
435 "int\n"
436 "getpwent_r(struct passwd *pwd, char buf[.size], int size,\n"
437 " FILE **pw_fp);\n"
438
439 #. type: SH
440 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
441 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
442 #, no-wrap
443 msgid "STANDARDS"
444 msgstr "STANDARDE"
445
446 #. type: Plain text
447 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
448 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
449 msgid "None."
450 msgstr "Niciunul."
451
452 #. type: SH
453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
455 #, no-wrap
456 msgid "HISTORY"
457 msgstr "ISTORIC"
458
459 #. type: Plain text
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 msgid ""
463 "These functions are done in a style resembling the POSIX version of "
464 "functions like B<getpwnam_r>(3)."
465 msgstr ""
466 "Aceste funcții sunt realizate într-un stil asemănător cu versiunea POSIX a "
467 "unor funcții precum B<getpwnam_r>(3)."
468
469 #. type: SH
470 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
471 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
472 #, no-wrap
473 msgid "NOTES"
474 msgstr "NOTE"
475
476 #. type: Plain text
477 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
478 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
479 msgid ""
480 "The function B<getpwent_r>() is not really reentrant since it shares the "
481 "reading position in the stream with all other threads."
482 msgstr ""
483 "Funcția B<getpwent_r>() nu este cu adevărat reentrantă, deoarece împarte "
484 "poziția de citire în flux cu toate celelalte fire de execuție."
485
486 #. type: SH
487 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
488 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
489 #, no-wrap
490 msgid "EXAMPLES"
491 msgstr "EXEMPLE"
492
493 #. type: Plain text
494 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
495 #, no-wrap
496 msgid ""
497 "#define _GNU_SOURCE\n"
498 "#include E<lt>pwd.hE<gt>\n"
499 "#include E<lt>stdint.hE<gt>\n"
500 "#include E<lt>stdio.hE<gt>\n"
501 "#include E<lt>stdlib.hE<gt>\n"
502 "\\&\n"
503 "#define BUFLEN 4096\n"
504 "\\&\n"
505 "int\n"
506 "main(void)\n"
507 "{\n"
508 " struct passwd pw;\n"
509 " struct passwd *pwp;\n"
510 " char buf[BUFLEN];\n"
511 " int i;\n"
512 "\\&\n"
513 " setpwent();\n"
514 " for (;;) {\n"
515 " i = getpwent_r(&pw, buf, sizeof(buf), &pwp);\n"
516 " if (i)\n"
517 " break;\n"
518 " printf(\"%s (%jd)\\[rs]tHOME %s\\[rs]tSHELL %s\\[rs]n\", pwp-E<gt>pw_name,\n"
519 " (intmax_t) pwp-E<gt>pw_uid, pwp-E<gt>pw_dir, pwp-E<gt>pw_shell);\n"
520 " }\n"
521 " endpwent();\n"
522 " exit(EXIT_SUCCESS);\n"
523 "}\n"
524 msgstr ""
525 "#define _GNU_SOURCE\n"
526 "#include E<lt>pwd.hE<gt>\n"
527 "#include E<lt>stdint.hE<gt>\n"
528 "#include E<lt>stdio.hE<gt>\n"
529 "#include E<lt>stdlib.hE<gt>\n"
530 "\\&\n"
531 "#define BUFLEN 4096\n"
532 "\\&\n"
533 "int\n"
534 "main(void)\n"
535 "{\n"
536 " struct passwd pw;\n"
537 " struct passwd *pwp;\n"
538 " char buf[BUFLEN];\n"
539 " int i;\n"
540 "\\&\n"
541 " setpwent();\n"
542 " for (;;) {\n"
543 " i = getpwent_r(&pw, buf, sizeof(buf), &pwp);\n"
544 " if (i)\n"
545 " break;\n"
546 " printf(\"%s (%jd)\\etHOME %s\\etSHELL %s\\[rs]n\", pwp-E<gt>pw_name,\n"
547 " (intmax_t) pwp-E<gt>pw_uid, pwp-E<gt>pw_dir, pwp-E<gt>pw_shell);\n"
548 " }\n"
549 " endpwent();\n"
550 " exit(EXIT_SUCCESS);\n"
551 "}\n"
552
553 #. perhaps add error checking - should use strerror_r
554 #. #include <errno.h>
555 #. #include <stdlib.h>
556 #. if (i) {
557 #. if (i == ENOENT)
558 #. break;
559 #. printf("getpwent_r: %s", strerror(i));
560 #. exit(EXIT_SUCCESS);
561 #. }
562 #. SRC END
563 #. type: SH
564 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
565 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
566 #, no-wrap
567 msgid "SEE ALSO"
568 msgstr "CONSULTAȚI ȘI"
569
570 #. type: Plain text
571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
573 msgid ""
574 "B<fgetpwent>(3), B<getpw>(3), B<getpwent>(3), B<getpwnam>(3), "
575 "B<getpwuid>(3), B<putpwent>(3), B<passwd>(5)"
576 msgstr ""
577 "B<fgetpwent>(3), B<getpw>(3), B<getpwent>(3), B<getpwnam>(3), "
578 "B<getpwuid>(3), B<putpwent>(3), B<passwd>(5)"
579
580 #. type: TH
581 #: debian-trixie
582 #, no-wrap
583 msgid "2024-06-15"
584 msgstr "15 iunie 2024"
585
586 #. type: TH
587 #: debian-trixie
588 #, no-wrap
589 msgid "Linux man-pages 6.9.1"
590 msgstr "Pagini de manual de Linux 6.9.1"
591
592 #. type: Plain text
593 #: debian-trixie
594 msgid "Standard C library (I<libc>, I<-lc>)"
595 msgstr "Biblioteca C standard (I<libc>, I<-lc>)"
596
597 #. type: Plain text
598 #: debian-trixie
599 #, no-wrap
600 msgid ""
601 "B<int getpwent_r(struct passwd *restrict >I<pwbuf>B<,>\n"
602 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
603 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
604 "B<int fgetpwent_r(FILE *restrict >I<stream>B<, struct passwd *restrict >I<pwbuf>B<,>\n"
605 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
606 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
607 msgstr ""
608 "B<int getpwent_r(struct passwd *restrict >I<pwbuf>B<,>\n"
609 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
610 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
611 "B<int fgetpwent_r(FILE *restrict >I<stream>B<, struct passwd *restrict >I<pwbuf>B<,>\n"
612 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
613 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
614
615 #. type: Plain text
616 #: debian-trixie
617 msgid ""
618 "The nonreentrant functions return a pointer to static storage, where this "
619 "static storage contains further pointers to user name, password, gecos "
620 "field, home directory and shell. The reentrant functions described here "
621 "return all of that in caller-provided buffers. First of all there is the "
622 "buffer I<pwbuf> that can hold a I<struct passwd>. And next the buffer "
623 "I<buf> of size I<buflen> that can hold additional strings. The result of "
624 "these functions, the I<struct passwd> read from the stream, is stored in the "
625 "provided buffer I<*pwbuf>, and a pointer to this I<struct passwd> is "
626 "returned in I<*pwbufp>."
627 msgstr ""
628 "Funcțiile nereentrante returnează un indicator către o memorie statică, unde "
629 "această memorie statică conține alți indicatori pentru numele de utilizator, "
630 "parola, câmpul gecos, directorul principal și shell-ul. Funcțiile "
631 "reentrante descrise aici returnează toate acestea în memorii tampon "
632 "furnizate de apelant. În primul rând, există memoria tampon I<pwbuf> care "
633 "poate conține o I<struct passwd>. Și apoi memoria tampon I<buf> de "
634 "dimensiune I<buflen> care poate conține șiruri de caractere suplimentare. "
635 "Rezultatul acestor funcții, I<struct passwd> citit din flux, este stocat în "
636 "memoria tampon furnizată I<*pwbuf>, iar un indicator la această I<struct "
637 "passwd> este returnat în I<*pwbufp>."
638
639 #. type: Plain text
640 #: debian-trixie fedora-44 fedora-rawhide
641 msgid ""
642 "On success, these functions return 0 and I<*pwbufp> is a pointer to the "
643 "I<struct passwd>. On error, these functions return an error value and "
644 "I<*pwbufp> is NULL."
645 msgstr ""
646 "În caz de succes, aceste funcții returnează 0, iar I<*pwbufp> este un "
647 "indicator la I<struct passwd>. În caz de eroare, aceste funcții returnează o "
648 "valoare de eroare, iar I<*pwbufp> este NULL."
649
650 #. type: Plain text
651 #: debian-trixie
652 #, no-wrap
653 msgid ""
654 "struct passwd *\n"
655 "getpwent_r(struct passwd *pwd, char *buf, int buflen);\n"
656 msgstr ""
657 "struct passwd *\n"
658 "getpwent_r(struct passwd *pwd, char *buf, int buflen);\n"
659
660 #. type: Plain text
661 #: debian-trixie
662 #, no-wrap
663 msgid ""
664 "int\n"
665 "getpwent_r(struct passwd *pwd, char *buf, int buflen,\n"
666 " FILE **pw_fp);\n"
667 msgstr ""
668 "int\n"
669 "getpwent_r(struct passwd *pwd, char *buf, int buflen,\n"
670 " FILE **pw_fp);\n"
671
672 #. type: Plain text
673 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
674 #, no-wrap
675 msgid ""
676 "#define _GNU_SOURCE\n"
677 "#include E<lt>pwd.hE<gt>\n"
678 "#include E<lt>stdint.hE<gt>\n"
679 "#include E<lt>stdio.hE<gt>\n"
680 "#include E<lt>stdlib.hE<gt>\n"
681 "\\&\n"
682 "#define BUFLEN 4096\n"
683 "\\&\n"
684 "int\n"
685 "main(void)\n"
686 "{\n"
687 " struct passwd pw;\n"
688 " struct passwd *pwp;\n"
689 " char buf[BUFLEN];\n"
690 " int i;\n"
691 "\\&\n"
692 " setpwent();\n"
693 " while (1) {\n"
694 " i = getpwent_r(&pw, buf, sizeof(buf), &pwp);\n"
695 " if (i)\n"
696 " break;\n"
697 " printf(\"%s (%jd)\\[rs]tHOME %s\\[rs]tSHELL %s\\[rs]n\", pwp-E<gt>pw_name,\n"
698 " (intmax_t) pwp-E<gt>pw_uid, pwp-E<gt>pw_dir, pwp-E<gt>pw_shell);\n"
699 " }\n"
700 " endpwent();\n"
701 " exit(EXIT_SUCCESS);\n"
702 "}\n"
703 msgstr ""
704 "#define _GNU_SOURCE\n"
705 "#include E<lt>pwd.hE<gt>\n"
706 "#include E<lt>stdint.hE<gt>\n"
707 "#include E<lt>stdio.hE<gt>\n"
708 "#include E<lt>stdlib.hE<gt>\n"
709 "\\&\n"
710 "#define BUFLEN 4096\n"
711 "\\&\n"
712 "int\n"
713 "main(void)\n"
714 "{\n"
715 " struct passwd pw;\n"
716 " struct passwd *pwp;\n"
717 " char buf[BUFLEN];\n"
718 " int i;\n"
719 "\\&\n"
720 " setpwent();\n"
721 " while (1) {\n"
722 " i = getpwent_r(&pw, buf, sizeof(buf), &pwp);\n"
723 " if (i)\n"
724 " break;\n"
725 " printf(\"%s (%jd)\\etHOME %s\\etSHELL %s\\[rs]n\", pwp-E<gt>pw_name,\n"
726 " (intmax_t) pwp-E<gt>pw_uid, pwp-E<gt>pw_dir, pwp-E<gt>pw_shell);\n"
727 " }\n"
728 " endpwent();\n"
729 " exit(EXIT_SUCCESS);\n"
730 "}\n"
731
732 #. type: TH
733 #: fedora-44 fedora-rawhide
734 #, no-wrap
735 msgid "2024-12-24"
736 msgstr "24 decembrie 2024"
737
738 #. type: TH
739 #: fedora-44 fedora-rawhide
740 #, no-wrap
741 msgid "Linux man-pages 6.13"
742 msgstr "Pagini de manual de Linux 6.13"
743
744 #. type: Plain text
745 #: fedora-44 fedora-rawhide
746 #, no-wrap
747 msgid ""
748 "B<int getpwent_r(struct passwd *restrict >I<pwbuf>B<,>\n"
749 "B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
750 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
751 "B<int fgetpwent_r(FILE *restrict >I<stream>B<, struct passwd *restrict >I<pwbuf>B<,>\n"
752 "B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
753 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
754 msgstr ""
755 "B<int getpwent_r(struct passwd *restrict >I<pwbuf>B<,>\n"
756 "B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
757 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
758 "B<int fgetpwent_r(FILE *restrict >I<stream>B<, struct passwd *restrict >I<pwbuf>B<,>\n"
759 "B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
760 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
761
762 #. type: Plain text
763 #: fedora-44 fedora-rawhide
764 msgid ""
765 "The nonreentrant functions return a pointer to static storage, where this "
766 "static storage contains further pointers to user name, password, gecos "
767 "field, home directory and shell. The reentrant functions described here "
768 "return all of that in caller-provided buffers. First of all there is the "
769 "buffer I<pwbuf> that can hold a I<struct passwd>. And next the buffer "
770 "I<buf> of size I<size> that can hold additional strings. The result of "
771 "these functions, the I<struct passwd> read from the stream, is stored in the "
772 "provided buffer I<*pwbuf>, and a pointer to this I<struct passwd> is "
773 "returned in I<*pwbufp>."
774 msgstr ""
775 "Funcțiile nereentrante returnează un indicator către o memorie statică, unde "
776 "această memorie statică conține alți indicatori pentru numele de utilizator, "
777 "parola, câmpul gecos, directorul principal și shell-ul. Funcțiile "
778 "reentrante descrise aici returnează toate acestea în memorii tampon "
779 "furnizate de apelant. În primul rând, există memoria tampon I<pwbuf> care "
780 "poate conține o I<struct passwd>. Și apoi memoria tampon I<buf> de "
781 "dimensiune I<size> care poate conține șiruri de caractere suplimentare. "
782 "Rezultatul acestor funcții, I<struct passwd> citit din flux, este stocat în "
783 "memoria tampon furnizată I<*pwbuf>, iar un indicator la această I<struct "
784 "passwd> este returnat în I<*pwbufp>."
785
786 #. type: TH
787 #: mageia-cauldron
788 #, no-wrap
789 msgid "2026-02-08"
790 msgstr "8 februarie 2026"
791
792 #. type: TH
793 #: mageia-cauldron
794 #, no-wrap
795 msgid "Linux man-pages 6.17"
796 msgstr "Pagini de manual de Linux 6.17"
797
798 #. type: TH
799 #: opensuse-leap-16-1 opensuse-tumbleweed
800 #, no-wrap
801 msgid "Linux man-pages (unreleased)"
802 msgstr "Pagini de manual Linux (nepublicate)"