Debian Codegraph @

po/pl/man3/getcwd.3.po

raw
1 # Polish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Andrzej Krzysztofowicz <[email protected]>, 2001, 2002.
5 # Robert Luberda <[email protected]>, 2017, 2019.
6 # Michał Kułach <[email protected]>, 2024, 2025.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: manpages-pl\n"
10 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
11 "PO-Revision-Date: 2025-09-28 18:29+0200\n"
12 "Last-Translator: Michał Kułach <[email protected]>\n"
13 "Language-Team: Polish <[email protected]>\n"
14 "Language: pl\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
19 "|| n%100>=20) ? 1 : 2);\n"
20 "X-Generator: Lokalize 25.04.0\n"
21
22 #. type: TH
23 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
24 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
25 #, no-wrap
26 msgid "getcwd"
27 msgstr "getcwd"
28
29 #. type: TH
30 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
31 #: opensuse-tumbleweed
32 #, no-wrap
33 msgid "2026-02-08"
34 msgstr "8 lutego 2026 r."
35
36 #. type: TH
37 #: archlinux debian-unstable
38 #, no-wrap
39 msgid "Linux man-pages 6.18"
40 msgstr "Linux man-pages 6.18"
41
42 #. type: SH
43 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
44 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
45 #, no-wrap
46 msgid "NAME"
47 msgstr "NAZWA"
48
49 #. type: Plain text
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 msgid "getcwd, getwd, get_current_dir_name - get current working directory"
53 msgstr ""
54 "getcwd, getwd, get_current_dir_name - odczytuje bieżący katalog roboczy"
55
56 #. type: SH
57 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
58 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
59 #, no-wrap
60 msgid "LIBRARY"
61 msgstr "BIBLIOTEKA"
62
63 #. type: Plain text
64 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
65 #: opensuse-leap-16-1 opensuse-tumbleweed
66 msgid "Standard C library (I<libc>,\\ I<-lc>)"
67 msgstr "Standardowa biblioteka C (I<libc>,\\ I<-lc>)"
68
69 #. type: SH
70 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
71 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
72 #, no-wrap
73 msgid "SYNOPSIS"
74 msgstr "SKŁADNIA"
75
76 #. type: Plain text
77 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
78 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
79 #, no-wrap
80 msgid "B<#include E<lt>unistd.hE<gt>>\n"
81 msgstr "B<#include E<lt>unistd.hE<gt>>\n"
82
83 #. type: Plain text
84 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
85 #: opensuse-tumbleweed
86 #, no-wrap
87 msgid ""
88 "B<char *getcwd(>size_t size;\n"
89 "B< char >I<buf>B<[>I<size>B<], size_t >I<size>B<);>\n"
90 "B<char *get_current_dir_name(void);>\n"
91 msgstr ""
92 "B<char *getcwd(>size_t size;\n"
93 "B< char >I<buf>B<[>I<size>B<], size_t >I<size>B<);>\n"
94 "B<char *get_current_dir_name(void);>\n"
95
96 #. type: Plain text
97 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
98 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
99 #, no-wrap
100 msgid "B<[[deprecated]] char *getwd(char >I<buf>B<[PATH_MAX]);>\n"
101 msgstr "B<[[przestarzałe]] char *getwd(char >I<buf>B<[PATH_MAX]);>\n"
102
103 #. type: Plain text
104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
106 msgid ""
107 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
108 msgstr ""
109 "Wymagane ustawienia makr biblioteki glibc (patrz B<feature_test_macros>(7)):"
110
111 #. type: Plain text
112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
114 msgid "B<get_current_dir_name>():"
115 msgstr "B<get_current_dir_name>():"
116
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 #, no-wrap
121 msgid " _GNU_SOURCE\n"
122 msgstr " _GNU_SOURCE\n"
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 msgid "B<getwd>():"
128 msgstr "B<getwd>():"
129
130 #. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
131 #. type: Plain text
132 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
133 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
134 #, no-wrap
135 msgid ""
136 " Since glibc 2.12:\n"
137 " (_XOPEN_SOURCE E<gt>= 500) && ! (_POSIX_C_SOURCE E<gt>= 200809L)\n"
138 " || /* glibc E<gt>= 2.19: */ _DEFAULT_SOURCE\n"
139 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
140 " Before glibc 2.12:\n"
141 " _BSD_SOURCE || _XOPEN_SOURCE E<gt>= 500\n"
142 msgstr ""
143 " Od glibc 2.12:\n"
144 " (_XOPEN_SOURCE E<gt>= 500) && ! (_POSIX_C_SOURCE E<gt>= 200809L)\n"
145 " || /* glibc E<gt>= 2.19: */ _DEFAULT_SOURCE\n"
146 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
147 " Przed glibc 2.12:\n"
148 " _BSD_SOURCE || _XOPEN_SOURCE E<gt>= 500\n"
149
150 #. type: SH
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 #, no-wrap
154 msgid "DESCRIPTION"
155 msgstr "OPIS"
156
157 #. type: Plain text
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 msgid ""
161 "These functions return a null-terminated string containing an absolute "
162 "pathname that is the current working directory of the calling process. The "
163 "pathname is returned as the function result and via the argument I<buf>, if "
164 "present."
165 msgstr ""
166 "Te funkcje zwracają zakończony bajtem null łańcuch znaków, zawierający nazwę "
167 "bezwzględnej ścieżki do bieżącego katalogu roboczego procesu wywołującego. "
168 "Nazwa ścieżki jest zwracana jako wynik funkcji i poprzez argument I<buf>, "
169 "jeśli jest obecny."
170
171 #. type: Plain text
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 msgid ""
175 "The B<getcwd>() function copies an absolute pathname of the current working "
176 "directory to the array pointed to by I<buf>, which is of length I<size>."
177 msgstr ""
178 "Funkcja B<getcwd>() kopiuje nazwę bezwzględnej ścieżki dostępu, bieżącego "
179 "katalogu roboczego, do tablicy wskazywanej przez I<buf>, która to tablica ma "
180 "długość I<size>."
181
182 #. type: Plain text
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 msgid ""
186 "If the length of the absolute pathname of the current working directory, "
187 "including the terminating null byte, exceeds I<size> bytes, NULL is "
188 "returned, and I<errno> is set to B<ERANGE>; an application should check for "
189 "this error, and allocate a larger buffer if necessary."
190 msgstr ""
191 "Jeśli nazwa bieżącej bezwzględnej ścieżki dostępu wymaga bufora dłuższego "
192 "niż I<size> elementów, to zwracane jest B<NULL>, a I<errno> jest ustawiane "
193 "na B<ERANGE>; aplikacja powinna sprawdzać, czy nie wystąpił ten błąd, i "
194 "przydzielać większy bufor, jeżeli jest to potrzebne."
195
196 #. type: Plain text
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 msgid ""
200 "As an extension to the POSIX.1-2001 standard, glibc's B<getcwd>() allocates "
201 "the buffer dynamically using B<malloc>(3) if I<buf> is NULL. In this case, "
202 "the allocated buffer has the length I<size> unless I<size> is zero, when "
203 "I<buf> is allocated as big as necessary. The caller should B<free>(3) the "
204 "returned buffer."
205 msgstr ""
206 "Jako rozszerzenie standardu POSIX.1-2001, wersja glibc funkcji B<getcwd>() "
207 "przydziela bufor dynamicznie korzystając z B<malloc>(3), jeśli I<buf> jest "
208 "równe B<NULL>. W tym przypadku przydzielony bufor ma długość I<size>, chyba "
209 "że I<size> jest równe zero, co oznacza że buforowi I<buf> jest przydzielane "
210 "tyle pamięci, ile potrzeba. Program wywołujący powinien zwolnić zwrócony "
211 "bufor, wywołując B<free>(3)."
212
213 #. type: Plain text
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 msgid ""
217 "B<get_current_dir_name>() will B<malloc>(3) an array big enough to hold "
218 "the absolute pathname of the current working directory. If the environment "
219 "variable B<PWD> is set, and its value is correct, then that value will be "
220 "returned. The caller should B<free>(3) the returned buffer."
221 msgstr ""
222 "B<get_current_dir_name>() przydzieli za pomocą B<malloc>(3) tablicę "
223 "dostatecznie dużą, aby przechować bezwzględną nazwę bieżącego katalogu. "
224 "Jeśli zmienna środowiskowa B<PWD> jest ustawiona, a jej wartość prawidłowa, "
225 "to zostanie zwrócona ta wartość. Program wywołujący powinien zwolnić "
226 "zwrócony bufor, wywołując B<free>(3)."
227
228 #. type: Plain text
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 msgid ""
232 "B<getwd>() does not B<malloc>(3) any memory. The I<buf> argument should "
233 "be a pointer to an array at least B<PATH_MAX> bytes long. If the length of "
234 "the absolute pathname of the current working directory, including the "
235 "terminating null byte, exceeds B<PATH_MAX> bytes, NULL is returned, and "
236 "I<errno> is set to B<ENAMETOOLONG>. (Note that on some systems, B<PATH_MAX> "
237 "may not be a compile-time constant; furthermore, its value may depend on the "
238 "filesystem, see B<pathconf>(3).) For portability and security reasons, use "
239 "of B<getwd>() is deprecated."
240 msgstr ""
241 "B<getwd>() nie przydziela żadnej pamięci za pomocą B<malloc>(3). Argument "
242 "I<buf> powinien być wskaźnikiem do tablicy o długości co najmniej "
243 "B<PATH_MAX> bajtów. Jeśli długość bezwzględnej ścieżki do bieżącego katalogu "
244 "roboczego łącznie z końcowym bajtem null przekracza B<PATH_MAX> bajtów, to "
245 "zwracany jest NULL i I<errno> jest ustawiane na B<ENAMETOOLONG>. (Należy "
246 "zwrócić uwagę, że B<PATH_MAX> nie musi być stałą określaną podczas "
247 "kompilacji; co więcej może ona zależeć od systemu plików, patrz "
248 "B<pathconf>(3)). Ze względu na przenośność i bezpieczeństwo używanie "
249 "B<getwd>() nie jest zalecane."
250
251 #. type: SH
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 #, no-wrap
255 msgid "RETURN VALUE"
256 msgstr "WARTOŚĆ ZWRACANA"
257
258 #. type: Plain text
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 msgid ""
262 "On success, these functions return a pointer to a string containing the "
263 "pathname of the current working directory. In the case of B<getcwd>() and "
264 "B<getwd>() this is the same value as I<buf>."
265 msgstr ""
266 "Jeśli się zakończą pomyślnie, to te funkcje zwracają wskaźnik do łańcucha "
267 "znaków zawierającego nazwę ścieżki do bieżącego katalogu roboczego, W "
268 "przypadku B<getcwd>() oraz B<getwd>() jest to ten sam wskaźnik, co "
269 "przekazany w argumencie I<buf>."
270
271 #. type: Plain text
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 msgid ""
275 "On failure, these functions return NULL, and I<errno> is set to indicate the "
276 "error. The contents of the array pointed to by I<buf> are undefined on "
277 "error."
278 msgstr ""
279 "W przypadku błędu funkcje te zwracają NULL, jednocześnie ustawiając "
280 "I<errno>, wskazujące na rodzaj błędu. Zawartość tablicy wskazywanej przez "
281 "I<buf> w przypadku błędu jest nieokreślona."
282
283 #. type: SH
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 #, no-wrap
287 msgid "ERRORS"
288 msgstr "BŁĘDY"
289
290 #. type: TP
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 #, no-wrap
294 msgid "B<EACCES>"
295 msgstr "B<EACCES>"
296
297 #. type: Plain text
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 msgid "Permission to read or search a component of the filename was denied."
301 msgstr "Brak praw do odczytu lub przeszukiwania składnika nazwy pliku."
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> wskazuje na niewłaściwy adres."
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 "Argument I<size> jest zerowy, a I<buf> nie jest wskaźnikiem NULL."
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> jest równy 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>(): Rozmiar zakończonej znakiem null pełnej nazwy katalogu roboczego "
350 "przekracza B<PATH_MAX> bajtów."
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 "Bieżący katalog roboczy został skasowany."
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 "Brak pamięci."
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 "Argument I<size> jest mniejszy od długości pełnej nazwy katalogu roboczego, "
394 "włączając w to końcowy bajt null. Należy przydzielić większą tablicę i "
395 "spróbować ponownie."
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 "ATRYBUTY"
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 "Informacje o pojęciach używanych w tym rozdziale można znaleźć w podręczniku "
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 "Interfejs"
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 "Atrybut"
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 "Wartość"
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 "Bezpieczeństwo wątkowe"
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-bezpieczne"
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-bezpieczne 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 "WERSJE"
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 nie określa zachowania funkcji B<getcwd>(), jeśli I<buf> jest "
502 "równy 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 nie definiuje żadnych błędów dla 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 "Różnice biblioteki C/jądra"
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 "Jądro Linux dostarcza wywołanie systemowe B<getcwd>, które jeśli jest to "
535 "możliwe, będzie używane przez funkcje opisane w tym podręczniku. Wywołanie "
536 "to przyjmuje takie same argumenty, jak funkcja biblioteczna o tej samej "
537 "nazwie, ale długość zwracanej wartości jest ograniczona do B<PATH_MAX> "
538 "bajtów (przed wersją 3.12 Linuksa, ograniczeniem długości zwracanej wartości "
539 "był rozmiar strony systemowej; w przypadku wielu architektur sprzętowych "
540 "B<PATH_MAX> i rozmiar strony są sobie równe i wynoszą 4096, ale jest kilka "
541 "architektur, które mają większy rozmiar strony). Jeśli długość ścieżki "
542 "bieżącego katalogu roboczego przekracza ten limit, to wywołanie systemowe "
543 "zwraca błąd B<ENAMETOOLONG>. W takim przypadku funkcje biblioteczne "
544 "przechodzą do alternatywnej (wolniejszej) implementacji, zwracającej pełną "
545 "nazwę ścieżki."
546
547 #. commit 8df9d1a4142311c084ffeeacb67cd34d190eff74
548 #. type: Plain text
549 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
550 #: opensuse-leap-16-1 opensuse-tumbleweed
551 msgid ""
552 "Following a change in Linux 2.6.36, the pathname returned by the "
553 "B<getcwd>() system call will be prefixed with the string \"(unreachable)\" "
554 "if the current directory is not below the root directory of the current "
555 "process (e.g., because the process set a new filesystem root using "
556 "B<chroot>(2) without changing its current directory into the new root). "
557 "Such behavior can also be caused by an unprivileged user by changing the "
558 "current directory into another mount namespace. When dealing with pathnames "
559 "from untrusted sources, callers of the functions described in this page "
560 "(before glibc 2.27) or the raw B<getcwd>() system call should consider "
561 "checking whether the returned pathname starts with '/' or '(' to avoid "
562 "misinterpreting an unreachable path as a relative pathname."
563 msgstr ""
564 "Jeśli bieżący katalog roboczy nie znajduje się poniżej głównego katalogu "
565 "bieżącego procesu (na przykład ponieważ ustawił nowy katalog główny systemu "
566 "plików za pomocą B<chroot>(2), ale nie zmienił swojego katalogu bieżącego na "
567 "ten nowy katalog główny), to od Linuksa 2.6.36 zwrócona ścieżka zostanie "
568 "poprzedzona napisem \\[Bq](unreachable)\\[rq]. Takie zachowanie może być "
569 "także spowodowane przez użytkownika nieuprzywilejowanego, zmieniającego "
570 "bieżący katalog do innej przestrzeni nazw montowania. Podczas pracy ze "
571 "ścieżkami pochodzącymi z niezaufanych źródeł, programy wywołujące te funkcje "
572 "(przed glibc 2.27) lub surowe wywołanie systemowe B<getcwd>() powinny "
573 "rozważyć sprawdzanie, czy zwrócona ścieżka zaczyna się od znaku \\[Bq]/\\"
574 "[rq], czy od znaku \\[Bq](\\[rq], aby uniknąć interpretowania niedostępnych "
575 "ścieżek jako ścieżek względnych."
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 "STANDARDY"
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 "Brak."
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 "HISTORIA"
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, lecz oznaczone jako LEGACY (przestarzałe). Usunięte w "
637 "POSIX.1-2008. Należy używać w zamian 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 "Pod Linuksem funkcje te używają wywołania systemowego B<getcwd>() "
650 "(dostępnego od wersji 2.1.92 Linuksa). W starszych systemach mogły odpytywać "
651 "I</proc/self/cwd>. Gdy nie ma ani funkcji systemowej, ani systemu plików "
652 "proc, wywoływana jest implementacja ogólna. Jedynie w takiej sytuacji "
653 "wywołanie tych funkcji może pod Linuksem zwrócić w razie niepomyślnego "
654 "zakończenia błąd B<EACCES>."
655
656 #. type: SH
657 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
658 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
659 #, no-wrap
660 msgid "NOTES"
661 msgstr "UWAGI"
662
663 #. type: Plain text
664 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
665 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
666 msgid ""
667 "These functions are often used to save the location of the current working "
668 "directory for the purpose of returning to it later. Opening the current "
669 "directory (\".\") and calling B<fchdir>(2) to return is usually a faster "
670 "and more reliable alternative when sufficiently many file descriptors are "
671 "available, especially on platforms other than Linux."
672 msgstr ""
673 "Funkcje te są często używane do zapamiętywania położenia bieżącego katalogu "
674 "roboczego w celu późniejszego powrotu do niego. Gdy dostępnych jest "
675 "dostatecznie wiele deskryptorów plików, otwarcie bieżącego katalogu (\\[Bq]."
676 "\\[rq]) i wywołanie B<fchdir>(2), aby do niego wrócić, jest zazwyczaj "
677 "szybszą i bardziej niezawodną alternatywą, zwłaszcza na platformach innych "
678 "niż Linux."
679
680 #. type: SH
681 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
682 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
683 #, no-wrap
684 msgid "BUGS"
685 msgstr "USTERKI"
686
687 #. type: Plain text
688 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
689 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
690 msgid ""
691 "Since the Linux 2.6.36 change that added \"(unreachable)\" in the "
692 "circumstances described above, the glibc implementation of B<getcwd>() has "
693 "failed to conform to POSIX and returned a relative pathname when the API "
694 "contract requires an absolute pathname. With glibc 2.27 onwards this is "
695 "corrected; calling B<getcwd>() from such a pathname will now result in "
696 "failure with B<ENOENT>."
697 msgstr ""
698 "Począwszy od tej zmiany w Linuksie 2.6.36, która w przypadkach powyżej "
699 "opisanych dodawała prefiks \\[Bq](unreachable)\\[rq], implementacja glibc "
700 "funkcji B<getcwd>() stała się niezgodna ze standardem POSIX i zwracała "
701 "względną ścieżkę, mimo że API wymagało ścieżki bezwzględnej. Zostało to "
702 "naprawione w glibc 2.27: wywołanie B<getcwd>() z takiego katalogu bieżącego "
703 "zwróci błąd B<ENONET>."
704
705 #. type: SH
706 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
707 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
708 #, no-wrap
709 msgid "SEE ALSO"
710 msgstr "ZOBACZ TAKŻE"
711
712 #. type: Plain text
713 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
714 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
715 msgid ""
716 "B<pwd>(1), B<chdir>(2), B<fchdir>(2), B<open>(2), B<unlink>(2), B<free>(3), "
717 "B<malloc>(3)"
718 msgstr ""
719 "B<pwd>(1), B<chdir>(2), B<fchdir>(2), B<open>(2), B<unlink>(2), B<free>(3), "
720 "B<malloc>(3)"
721
722 #. type: TH
723 #: debian-trixie
724 #, no-wrap
725 msgid "2024-05-02"
726 msgstr "2 maja 2024 r."
727
728 #. type: TH
729 #: debian-trixie
730 #, no-wrap
731 msgid "Linux man-pages 6.9.1"
732 msgstr "Linux man-pages 6.9.1"
733
734 #. type: Plain text
735 #: debian-trixie
736 msgid "Standard C library (I<libc>, I<-lc>)"
737 msgstr "Standardowa biblioteka C (I<libc>, I<-lc>)"
738
739 #. type: Plain text
740 #: debian-trixie fedora-44 fedora-rawhide
741 #, no-wrap
742 msgid ""
743 "B<char *getcwd(char >I<buf>B<[.>I<size>B<], size_t >I<size>B<);>\n"
744 "B<char *get_current_dir_name(void);>\n"
745 msgstr ""
746 "B<char *getcwd(char >I<buf>B<[.>I<size>B<], size_t >I<size>B<);>\n"
747 "B<char *get_current_dir_name(void);>\n"
748
749 #. commit 8df9d1a4142311c084ffeeacb67cd34d190eff74
750 #. type: Plain text
751 #: debian-trixie
752 msgid ""
753 "Following a change in Linux 2.6.36, the pathname returned by the "
754 "B<getcwd>() system call will be prefixed with the string \"(unreachable)\" "
755 "if the current directory is not below the root directory of the current "
756 "process (e.g., because the process set a new filesystem root using "
757 "B<chroot>(2) without changing its current directory into the new root). "
758 "Such behavior can also be caused by an unprivileged user by changing the "
759 "current directory into another mount namespace. When dealing with pathname "
760 "from untrusted sources, callers of the functions described in this page "
761 "should consider checking whether the returned pathname starts with '/' or "
762 "'(' to avoid misinterpreting an unreachable path as a relative pathname."
763 msgstr ""
764 "Jeśli bieżący katalog roboczy nie znajduje się poniżej głównego katalogu "
765 "bieżącego procesu (na przykład ponieważ ustawił nowy katalog główny systemu "
766 "plików za pomocą B<chroot>(2), ale nie zmienił swojego katalogu bieżącego na "
767 "ten nowy katalog główny), to od Linuksa 2.6.36 zwrócona ścieżka zostanie "
768 "poprzedzona napisem \\[Bq](unreachable)\\[rq]. Takie zachowanie może być "
769 "także spowodowane przez użytkownika nieuprzywilejowanego, zmieniającego "
770 "bieżący katalog do innej przestrzeni nazw montowania. Podczas pracy ze "
771 "ścieżkami pochodzącymi z niezaufanych źródeł programy wywołujące te funkcje "
772 "powinny rozważyć sprawdzanie, czy zwrócona ścieżka zaczyna się od znaku \\"
773 "[Bq]/\\[rq], czy od znaku \\[Bq](\\[rq], aby uniknąć interpretowania "
774 "niedostępnych ścieżek jako ścieżek względnych."
775
776 #. type: TH
777 #: fedora-44 fedora-rawhide
778 #, no-wrap
779 msgid "2025-02-20"
780 msgstr "20 lutego 2025 r."
781
782 #. type: TH
783 #: fedora-44 fedora-rawhide
784 #, no-wrap
785 msgid "Linux man-pages 6.13"
786 msgstr "Linux man-pages 6.13"
787
788 #. type: TH
789 #: mageia-cauldron
790 #, no-wrap
791 msgid "Linux man-pages 6.17"
792 msgstr "Linux man-pages 6.17"
793
794 #. type: TH
795 #: opensuse-leap-16-1 opensuse-tumbleweed
796 #, no-wrap
797 msgid "Linux man-pages (unreleased)"
798 msgstr "Linux man-pages (niewydane)"