Debian Codegraph @

po/ro/man3/getcwd.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]>, 2025.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.26.2\n"
8 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
9 "PO-Revision-Date: 2025-08-07 20:11+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.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 "getcwd"
25 msgstr "getcwd"
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 "getcwd, getwd, get_current_dir_name - get current working directory"
51 msgstr ""
52 "getcwd, getwd, get_current_dir_name - obține directorul curent de lucru"
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>unistd.hE<gt>>\n"
79 msgstr "B<#include E<lt>unistd.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<char *getcwd(>size_t size;\n"
87 "B< char >I<buf>B<[>I<size>B<], size_t >I<size>B<);>\n"
88 "B<char *get_current_dir_name(void);>\n"
89 msgstr ""
90 "B<char *getcwd(>size_t size;\n"
91 "B< char >I<buf>B<[>I<size>B<], size_t >I<size>B<);>\n"
92 "B<char *get_current_dir_name(void);>\n"
93
94 #. type: Plain text
95 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
96 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
97 #, no-wrap
98 msgid "B<[[deprecated]] char *getwd(char >I<buf>B<[PATH_MAX]);>\n"
99 msgstr "B<[[depreciat]] char *getwd(char >I<buf>B<[PATH_MAX]);>\n"
100
101 #. type: Plain text
102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
104 msgid ""
105 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
106 msgstr ""
107 "Cerințe pentru macrocomenzi de testare a caracteristicilor pentru glibc "
108 "(consultați B<feature_test_macros>(7)):"
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 "B<get_current_dir_name>():"
114 msgstr "B<get_current_dir_name>():"
115
116 #. type: Plain text
117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
119 #, no-wrap
120 msgid " _GNU_SOURCE\n"
121 msgstr " _GNU_SOURCE\n"
122
123 #. type: Plain text
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 msgid "B<getwd>():"
127 msgstr "B<getwd>():"
128
129 #. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 #, no-wrap
134 msgid ""
135 " Since glibc 2.12:\n"
136 " (_XOPEN_SOURCE E<gt>= 500) && ! (_POSIX_C_SOURCE E<gt>= 200809L)\n"
137 " || /* glibc E<gt>= 2.19: */ _DEFAULT_SOURCE\n"
138 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
139 " Before glibc 2.12:\n"
140 " _BSD_SOURCE || _XOPEN_SOURCE E<gt>= 500\n"
141 msgstr ""
142 " Începând cu glibc 2.12:\n"
143 " (_XOPEN_SOURCE E<gt>= 500) && ! (_POSIX_C_SOURCE E<gt>= 200809L)\n"
144 " || /* glibc E<gt>= 2.19: */ _DEFAULT_SOURCE\n"
145 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
146 " Înainte de glibc 2.12:\n"
147 " _BSD_SOURCE || _XOPEN_SOURCE E<gt>= 500\n"
148
149 #. type: SH
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 #, no-wrap
153 msgid "DESCRIPTION"
154 msgstr "DESCRIERE"
155
156 #. type: Plain text
157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
159 msgid ""
160 "These functions return a null-terminated string containing an absolute "
161 "pathname that is the current working directory of the calling process. The "
162 "pathname is returned as the function result and via the argument I<buf>, if "
163 "present."
164 msgstr ""
165 "Aceste funcții returnează un șir de caractere cu terminație nulă care "
166 "conține un nume de rută absolut care este directorul de lucru curent al "
167 "procesului apelant. Numele rutei este returnat ca rezultat al funcției și "
168 "prin intermediul argumentului I<buf>, dacă este prezent."
169
170 #. type: Plain text
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 msgid ""
174 "The B<getcwd>() function copies an absolute pathname of the current working "
175 "directory to the array pointed to by I<buf>, which is of length I<size>."
176 msgstr ""
177 "Funcția B<getcwd>() copiază un nume de rută absolut al directorului curent "
178 "de lucru în matricea indicată de I<buf>, care are lungimea I<size>."
179
180 #. type: Plain text
181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
183 msgid ""
184 "If the length of the absolute pathname of the current working directory, "
185 "including the terminating null byte, exceeds I<size> bytes, NULL is "
186 "returned, and I<errno> is set to B<ERANGE>; an application should check for "
187 "this error, and allocate a larger buffer if necessary."
188 msgstr ""
189 "Dacă lungimea numelui de rută absolut al directorului de lucru curent, "
190 "inclusiv octetul nul de terminare, depășește I<size> octeți, se returnează "
191 "NULL, iar I<errno> este stabilită la B<ERANGE>; o aplicație trebuie să "
192 "verifice această eroare și să aloce o memorie tampon mai mare dacă este "
193 "necesar."
194
195 #. type: Plain text
196 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
197 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
198 msgid ""
199 "As an extension to the POSIX.1-2001 standard, glibc's B<getcwd>() allocates "
200 "the buffer dynamically using B<malloc>(3) if I<buf> is NULL. In this case, "
201 "the allocated buffer has the length I<size> unless I<size> is zero, when "
202 "I<buf> is allocated as big as necessary. The caller should B<free>(3) the "
203 "returned buffer."
204 msgstr ""
205 "Ca extensie la standardul POSIX.1-2001, B<getcwd>() al glibc alocă memoria "
206 "tampon dinamic folosind B<malloc>(3) dacă I<buf> este NULL. În acest caz, "
207 "memoria tampon alocată are lungimea I<size>, cu excepția cazului în care "
208 "I<size> este zero, când I<buf> este alocat cât de mare este necesar. "
209 "Apelantul trebuie să elibereze cu B<free>(3) memoria tampon returnată."
210
211 #. type: Plain text
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 msgid ""
215 "B<get_current_dir_name>() will B<malloc>(3) an array big enough to hold "
216 "the absolute pathname of the current working directory. If the environment "
217 "variable B<PWD> is set, and its value is correct, then that value will be "
218 "returned. The caller should B<free>(3) the returned buffer."
219 msgstr ""
220 "B<get_current_dir_name>() va aloca cu B<malloc>(3) o matrice suficient de "
221 "mare pentru a conține ruta absolută a directorului curent de lucru. Dacă "
222 "variabila de mediu B<PWD> este definită, iar valoarea sa este corectă, "
223 "atunci această valoare va fi returnată. Apelantul trebuie să elibereze cu "
224 "B<free>(3) memoria tampon returnată."
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 "B<getwd>() does not B<malloc>(3) any memory. The I<buf> argument should "
231 "be a pointer to an array at least B<PATH_MAX> bytes long. If the length of "
232 "the absolute pathname of the current working directory, including the "
233 "terminating null byte, exceeds B<PATH_MAX> bytes, NULL is returned, and "
234 "I<errno> is set to B<ENAMETOOLONG>. (Note that on some systems, B<PATH_MAX> "
235 "may not be a compile-time constant; furthermore, its value may depend on the "
236 "filesystem, see B<pathconf>(3).) For portability and security reasons, use "
237 "of B<getwd>() is deprecated."
238 msgstr ""
239 "B<getwd>() nu B<malloc>(3) nicio memorie. Argumentul I<buf> trebuie să fie "
240 "un indicator către o matrice cu o lungime de cel puțin B<PATH_MAX> octeți. "
241 "Dacă lungimea numelui de rută absolut al directorului de lucru curent, "
242 "inclusiv octetul nul de terminare, depășește B<PATH_MAX> octeți, se "
243 "returnează NULL, iar I<errno> este stabilităt la B<ENAMETOOLONG>. - Rețineți "
244 "că pe unele sisteme, B<PATH_MAX> poate să nu fie o constantă în timp de "
245 "compilare; în plus, valoarea sa poate depinde de sistemul de fișiere, "
246 "consultați B<pathconf>(3)). - Din motive de portabilitate și securitate, "
247 "utilizarea lui B<getwd>() este depreciată."
248
249 #. type: SH
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, no-wrap
253 msgid "RETURN VALUE"
254 msgstr "VALOAREA RETURNATĂ"
255
256 #. type: Plain text
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 msgid ""
260 "On success, these functions return a pointer to a string containing the "
261 "pathname of the current working directory. In the case of B<getcwd>() and "
262 "B<getwd>() this is the same value as I<buf>."
263 msgstr ""
264 "În caz de succes, aceste funcții returnează un indicator către un șir de "
265 "caractere care conține numele de rută al directorului de lucru curent. În "
266 "cazul funcțiilor B<getcwd>() și B<getwd>(), aceasta are aceeași valoare ca "
267 "I<buf>."
268
269 #. type: Plain text
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 msgid ""
273 "On failure, these functions return NULL, and I<errno> is set to indicate the "
274 "error. The contents of the array pointed to by I<buf> are undefined on "
275 "error."
276 msgstr ""
277 "În caz de eșec, aceste funcții returnează NULL, iar I<errno> este "
278 "configurată pentru a indica eroarea. Conținutul matricei indicate de I<buf> "
279 "este nedefinit în caz de eroare."
280
281 #. type: SH
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 #, no-wrap
285 msgid "ERRORS"
286 msgstr "ERORI-IEȘIRE"
287
288 #. type: TP
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 #, no-wrap
292 msgid "B<EACCES>"
293 msgstr "B<EACCES>"
294
295 #. type: Plain text
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 msgid "Permission to read or search a component of the filename was denied."
299 msgstr ""
300 "Permisiunea de a citi sau de a căuta o componentă a numelui fișierului a "
301 "fost refuzată."
302
303 #. type: TP
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 #, no-wrap
307 msgid "B<EFAULT>"
308 msgstr "B<EFAULT>"
309
310 #. type: Plain text
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 msgid "I<buf> points to a bad address."
314 msgstr "I<buf> indică o adresă greșită."
315
316 #. type: TP
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 #, no-wrap
320 msgid "B<EINVAL>"
321 msgstr "B<EINVAL>"
322
323 #. type: Plain text
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 msgid "The I<size> argument is zero and I<buf> is not a null pointer."
327 msgstr "Argumentul I<size> este zero și I<buf> nu este un indicator nul."
328
329 #. type: Plain text
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 msgid "B<getwd>(): I<buf> is NULL."
333 msgstr "B<getwd>(): I<buf> este NULL."
334
335 #. type: TP
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 #, no-wrap
339 msgid "B<ENAMETOOLONG>"
340 msgstr "B<ENAMETOOLONG>"
341
342 #. type: Plain text
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 msgid ""
346 "B<getwd>(): The size of the null-terminated absolute pathname string exceeds "
347 "B<PATH_MAX> bytes."
348 msgstr ""
349 "B<getwd>(): Dimensiunea șirului de nume de rută absolut cu terminație nulă "
350 "depășește B<PATH_MAX> octeți."
351
352 #. type: TP
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 #, no-wrap
356 msgid "B<ENOENT>"
357 msgstr "B<ENOENT>"
358
359 #. type: Plain text
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 msgid "The current working directory has been unlinked."
363 msgstr "Directorul curent de lucru a fost dezlegat(șters)."
364
365 #. type: TP
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
368 #, no-wrap
369 msgid "B<ENOMEM>"
370 msgstr "B<ENOMEM>"
371
372 #. type: Plain text
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 msgid "Out of memory."
376 msgstr "Memorie insuficientă."
377
378 #. type: TP
379 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
380 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
381 #, no-wrap
382 msgid "B<ERANGE>"
383 msgstr "B<ERANGE>"
384
385 #. type: Plain text
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 msgid ""
389 "The I<size> argument is less than the length of the absolute pathname of the "
390 "working directory, including the terminating null byte. You need to "
391 "allocate a bigger array and try again."
392 msgstr ""
393 "Argumentul I<size> este mai mic decât lungimea numelui de rută absolut al "
394 "directorului de lucru, inclusiv octetul nul de încheiere. Trebuie să alocați "
395 "o matrice mai mare și să încercați din nou."
396
397 #. type: SH
398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
400 #, no-wrap
401 msgid "ATTRIBUTES"
402 msgstr "ATRIBUTE"
403
404 #. type: Plain text
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 msgid ""
408 "For an explanation of the terms used in this section, see B<attributes>(7)."
409 msgstr ""
410 "Pentru o explicație a termenilor folosiți în această secțiune, a se vedea "
411 "B<attributes>(7)."
412
413 #. type: tbl table
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 #, no-wrap
417 msgid "Interface"
418 msgstr "Interfață"
419
420 #. type: tbl table
421 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
422 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
423 #, no-wrap
424 msgid "Attribute"
425 msgstr "Atribut"
426
427 #. type: tbl table
428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
430 #, no-wrap
431 msgid "Value"
432 msgstr "Valoare"
433
434 #. type: tbl table
435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
436 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
437 #, no-wrap
438 msgid ".na\n"
439 msgstr ".na\n"
440
441 #. type: tbl table
442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
444 #, no-wrap
445 msgid ".nh\n"
446 msgstr ".nh\n"
447
448 #. type: tbl table
449 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
450 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
451 #, no-wrap
452 msgid ""
453 "B<getcwd>(),\n"
454 "B<getwd>()"
455 msgstr ""
456 "B<getcwd>(),\n"
457 "B<getwd>()"
458
459 #. type: tbl table
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 #, no-wrap
463 msgid "Thread safety"
464 msgstr "Siguranța firelor"
465
466 #. type: tbl table
467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
469 #, no-wrap
470 msgid "MT-Safe"
471 msgstr "MT-Safe"
472
473 #. type: TP
474 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
475 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
476 #, no-wrap
477 msgid "B<get_current_dir_name>()"
478 msgstr "B<get_current_dir_name>()"
479
480 #. type: tbl table
481 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
482 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
483 #, no-wrap
484 msgid "MT-Safe env"
485 msgstr "MT-Safe env"
486
487 #. type: SH
488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
490 #, no-wrap
491 msgid "VERSIONS"
492 msgstr "VERSIUNI"
493
494 #. type: Plain text
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 msgid ""
498 "POSIX.1-2001 leaves the behavior of B<getcwd>() unspecified if I<buf> is "
499 "NULL."
500 msgstr ""
501 "POSIX.1-2001 lasă comportamentul lui B<getcwd>() nespecificat dacă I<buf> "
502 "este NULL."
503
504 #. type: Plain text
505 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
506 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
507 msgid "POSIX.1-2001 does not define any errors for B<getwd>()."
508 msgstr "POSIX.1-2001 nu definește nicio eroare pentru B<getwd>()."
509
510 #. type: SS
511 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
512 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
513 #, no-wrap
514 msgid "C library/kernel differences"
515 msgstr "Diferențe între biblioteca C și nucleu"
516
517 #. commit 3272c544da48f8915a0e34189182aed029bd0f2b
518 #. type: Plain text
519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
521 msgid ""
522 "On Linux, the kernel provides a B<getcwd>() system call, which the "
523 "functions described in this page will use if possible. The system call "
524 "takes the same arguments as the library function of the same name, but is "
525 "limited to returning at most B<PATH_MAX> bytes. (Before Linux 3.12, the "
526 "limit on the size of the returned pathname was the system page size. On "
527 "many architectures, B<PATH_MAX> and the system page size are both 4096 "
528 "bytes, but a few architectures have a larger page size.) If the length of "
529 "the pathname of the current working directory exceeds this limit, then the "
530 "system call fails with the error B<ENAMETOOLONG>. In this case, the library "
531 "functions fall back to a (slower) alternative implementation that returns "
532 "the full pathname."
533 msgstr ""
534 "În Linux, nucleul oferă un apel de sistem B<getcwd>(), pe care funcțiile "
535 "descrise în această pagină îl vor utiliza dacă este posibil. Apelul de "
536 "sistem ia aceleași argumente ca și funcția de bibliotecă cu același nume, "
537 "dar este limitat la returnarea a cel mult B<PATH_MAX> octeți. (Înainte de "
538 "Linux 3.12, limita de dimensiune a numelui de rută returnat era dimensiunea "
539 "paginii de sistem. Pe multe arhitecturi, B<PATH_MAX> și dimensiunea paginii "
540 "de sistem sunt ambele de 4096 octeți, dar câteva arhitecturi au o dimensiune "
541 "a paginii mai mare). Dacă lungimea numelui de rută al directorului de lucru "
542 "curent depășește această limită, atunci apelul de sistem eșuează cu eroarea "
543 "B<ENAMETOOLONG>. În acest caz, funcțiile bibliotecii revin la o implementare "
544 "alternativă (mai lentă) care returnează numele de rută complet."
545
546 #. commit 8df9d1a4142311c084ffeeacb67cd34d190eff74
547 #. type: Plain text
548 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
549 #: opensuse-leap-16-1 opensuse-tumbleweed
550 msgid ""
551 "Following a change in Linux 2.6.36, the pathname returned by the "
552 "B<getcwd>() system call will be prefixed with the string \"(unreachable)\" "
553 "if the current directory is not below the root directory of the current "
554 "process (e.g., because the process set a new filesystem root using "
555 "B<chroot>(2) without changing its current directory into the new root). "
556 "Such behavior can also be caused by an unprivileged user by changing the "
557 "current directory into another mount namespace. When dealing with pathnames "
558 "from untrusted sources, callers of the functions described in this page "
559 "(before glibc 2.27) or the raw B<getcwd>() system call should consider "
560 "checking whether the returned pathname starts with '/' or '(' to avoid "
561 "misinterpreting an unreachable path as a relative pathname."
562 msgstr ""
563 "Ca urmare a unei modificări în Linux 2.6.36, numele de rută returnat de "
564 "apelul de sistem B<getcwd>() va fi prefixat cu șirul „(unreachable)” dacă "
565 "directorul curent nu se află sub directorul rădăcină al procesului curent "
566 "(de exemplu, deoarece procesul a stabilit o nouă rădăcină a sistemului de "
567 "fișiere utilizând B<chroot>(2) fără a-și schimba directorul curent în noua "
568 "rădăcină). Un astfel de comportament poate fi cauzat și de un utilizator "
569 "neprivilegiat prin schimbarea directorului curent într-un alt spațiu de nume "
570 "de montare. Atunci când au de-a face cu nume de rută din surse "
571 "neîncrezătoare, apelanții funcțiilor descrise în această pagină (înainte de "
572 "glibc 2.27) sau apelul de sistem B<getcwd>() brut ar trebui să ia în "
573 "considerare verificarea dacă numele de rută returnat începe cu „/” sau „(” "
574 "pentru a evita interpretarea eronată a unei rute inaccesibile ca fiind un "
575 "nume de rută relativ."
576
577 #. type: SH
578 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
579 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
580 #, no-wrap
581 msgid "STANDARDS"
582 msgstr "STANDARDE"
583
584 #. type: TP
585 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
586 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
587 #, no-wrap
588 msgid "B<getcwd>()"
589 msgstr "B<getcwd>()"
590
591 #. type: Plain text
592 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
593 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
594 msgid "POSIX.1-2008."
595 msgstr "POSIX.1-2008."
596
597 #. type: Plain text
598 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
599 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
600 msgid "GNU."
601 msgstr "GNU."
602
603 #. type: TP
604 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
605 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
606 #, no-wrap
607 msgid "B<getwd>()"
608 msgstr "B<getwd>()"
609
610 #. type: Plain text
611 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
612 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
613 msgid "None."
614 msgstr "Niciunul."
615
616 #. type: SH
617 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
618 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
619 #, no-wrap
620 msgid "HISTORY"
621 msgstr "ISTORIC"
622
623 #. type: Plain text
624 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
625 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
626 msgid "POSIX.1-2001."
627 msgstr "POSIX.1-2001."
628
629 #. type: Plain text
630 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
631 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
632 msgid ""
633 "POSIX.1-2001, but marked LEGACY. Removed in POSIX.1-2008. Use B<getcwd>() "
634 "instead."
635 msgstr ""
636 "POSIX.1-2001, dar marcat ca ÎNVECHIT. Eliminat în POSIX.1-2008. Utilizați în "
637 "schimb B<getcwd>()."
638
639 #. type: Plain text
640 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
641 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
642 msgid ""
643 "Under Linux, these functions make use of the B<getcwd>() system call "
644 "(available since Linux 2.1.92). On older systems they would query I</proc/"
645 "self/cwd>. If both system call and proc filesystem are missing, a generic "
646 "implementation is called. Only in that case can these calls fail under "
647 "Linux with B<EACCES>."
648 msgstr ""
649 "Sub Linux, aceste funcții utilizează apelul de sistem B<getcwd>() "
650 "(disponibil începând cu Linux 2.1.92). Pe sistemele mai vechi, acestea ar "
651 "interoga I</proc/self/cwd>. Dacă lipsesc atât apelul de sistem, cât și "
652 "sistemul de fișiere proc, este apelată o implementare generică. Numai în "
653 "acest caz aceste apeluri pot eșua sub Linux cu B<EACCES>."
654
655 #. type: SH
656 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
657 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
658 #, no-wrap
659 msgid "NOTES"
660 msgstr "NOTE"
661
662 #. type: Plain text
663 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
664 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
665 msgid ""
666 "These functions are often used to save the location of the current working "
667 "directory for the purpose of returning to it later. Opening the current "
668 "directory (\".\") and calling B<fchdir>(2) to return is usually a faster "
669 "and more reliable alternative when sufficiently many file descriptors are "
670 "available, especially on platforms other than Linux."
671 msgstr ""
672 "Aceste funcții sunt adesea utilizate pentru a salva locația directorului "
673 "curent de lucru în scopul revenirii la acesta ulterior. Deschiderea "
674 "directorului curent („.”) și apelarea B<fchdir>(2) pentru a reveni este de "
675 "obicei o alternativă mai rapidă și mai fiabilă atunci când sunt disponibili "
676 "suficient de mulți descriptori de fișiere, în special pe alte platforme "
677 "decât Linux."
678
679 #. type: SH
680 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
681 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
682 #, no-wrap
683 msgid "BUGS"
684 msgstr "ERORI"
685
686 #. type: Plain text
687 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
688 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
689 msgid ""
690 "Since the Linux 2.6.36 change that added \"(unreachable)\" in the "
691 "circumstances described above, the glibc implementation of B<getcwd>() has "
692 "failed to conform to POSIX and returned a relative pathname when the API "
693 "contract requires an absolute pathname. With glibc 2.27 onwards this is "
694 "corrected; calling B<getcwd>() from such a pathname will now result in "
695 "failure with B<ENOENT>."
696 msgstr ""
697 "De la modificarea Linux 2.6.36 care a adăugat „(unreachable)” în "
698 "circumstanțele descrise mai sus, implementarea glibc a B<getcwd>() nu s-a "
699 "conformat POSIX și a returnat un nume de rută relativ atunci când locația "
700 "API necesită un nume de rută absolut. Începând cu glibc 2.27, acest lucru "
701 "este corectat; apelarea B<getcwd>() de la un astfel de nume de rută va duce "
702 "acum la eșec cu B<ENOENT>."
703
704 #. type: SH
705 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
706 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
707 #, no-wrap
708 msgid "SEE ALSO"
709 msgstr "CONSULTAȚI ȘI"
710
711 #. type: Plain text
712 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
713 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
714 msgid ""
715 "B<pwd>(1), B<chdir>(2), B<fchdir>(2), B<open>(2), B<unlink>(2), B<free>(3), "
716 "B<malloc>(3)"
717 msgstr ""
718 "B<pwd>(1), B<chdir>(2), B<fchdir>(2), B<open>(2), B<unlink>(2), B<free>(3), "
719 "B<malloc>(3)"
720
721 #. type: TH
722 #: debian-trixie
723 #, no-wrap
724 msgid "2024-05-02"
725 msgstr "2 mai 2024"
726
727 #. type: TH
728 #: debian-trixie
729 #, no-wrap
730 msgid "Linux man-pages 6.9.1"
731 msgstr "Pagini de manual de Linux 6.9.1"
732
733 #. type: Plain text
734 #: debian-trixie
735 msgid "Standard C library (I<libc>, I<-lc>)"
736 msgstr "Biblioteca C standard (I<libc>, I<-lc>)"
737
738 #. type: Plain text
739 #: debian-trixie fedora-44 fedora-rawhide
740 #, no-wrap
741 msgid ""
742 "B<char *getcwd(char >I<buf>B<[.>I<size>B<], size_t >I<size>B<);>\n"
743 "B<char *get_current_dir_name(void);>\n"
744 msgstr ""
745 "B<char *getcwd(char >I<buf>B<[.>I<size>B<], size_t >I<size>B<);>\n"
746 "B<char *get_current_dir_name(void);>\n"
747
748 #. commit 8df9d1a4142311c084ffeeacb67cd34d190eff74
749 #. type: Plain text
750 #: debian-trixie
751 msgid ""
752 "Following a change in Linux 2.6.36, the pathname returned by the "
753 "B<getcwd>() system call will be prefixed with the string \"(unreachable)\" "
754 "if the current directory is not below the root directory of the current "
755 "process (e.g., because the process set a new filesystem root using "
756 "B<chroot>(2) without changing its current directory into the new root). "
757 "Such behavior can also be caused by an unprivileged user by changing the "
758 "current directory into another mount namespace. When dealing with pathname "
759 "from untrusted sources, callers of the functions described in this page "
760 "should consider checking whether the returned pathname starts with '/' or "
761 "'(' to avoid misinterpreting an unreachable path as a relative pathname."
762 msgstr ""
763 "În urma unei modificări în Linux 2.6.36, numele de rută returnat de apelul "
764 "de sistem B<getcwd>() va fi prefixat cu șirul „(unreachable)” dacă "
765 "directorul curent nu se află sub directorul rădăcină al procesului curent "
766 "(de exemplu, deoarece procesul a stabilit o nouă rădăcină a sistemului de "
767 "fișiere utilizând B<chroot>(2) fără a-și schimba directorul curent în noua "
768 "rădăcină). Un astfel de comportament poate fi cauzat și de un utilizator "
769 "neprivilegiat prin schimbarea directorului curent într-un alt spațiu de nume "
770 "de montare. Atunci când au de-a face cu nume de rută din surse "
771 "neîncrezătoare, apelanții funcțiilor descrise în această pagină ar trebui să "
772 "ia în considerare verificarea dacă numele de rută returnat începe cu „/” sau "
773 "„(” pentru a evita interpretarea eronată a unei rute inaccesibile ca fiind "
774 "un nume de rută relativ."
775
776 #. type: TH
777 #: fedora-44 fedora-rawhide
778 #, no-wrap
779 msgid "2025-02-20"
780 msgstr "20 februarie 2025"
781
782 #. type: TH
783 #: fedora-44 fedora-rawhide
784 #, no-wrap
785 msgid "Linux man-pages 6.13"
786 msgstr "Pagini de manual de Linux 6.13"
787
788 #. type: TH
789 #: mageia-cauldron
790 #, no-wrap
791 msgid "Linux man-pages 6.17"
792 msgstr "Pagini de manual de Linux 6.17"
793
794 #. type: TH
795 #: opensuse-leap-16-1 opensuse-tumbleweed
796 #, no-wrap
797 msgid "Linux man-pages (unreleased)"
798 msgstr "Pagini de manual Linux (nepublicate)"