Debian Codegraph @

po/pl/man2/readlink.2.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 # Przemek Borys <[email protected]>, 1999.
5 # Andrzej Krzysztofowicz <[email protected]>, 2002.
6 # Michał Kułach <[email protected]>, 2024, 2025.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: manpages-l10n\n"
10 "POT-Creation-Date: 2026-06-05 06:39+0200\n"
11 "PO-Revision-Date: 2025-11-25 21:13+0100\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 "readlink"
27 msgstr "readlink"
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 "readlink, readlinkat - read value of a symbolic link"
53 msgstr "readlink, readlinkat - odczytuje wartość dowiązania symbolicznego"
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "LIBRARY"
60 msgstr "BIBLIOTEKA"
61
62 #. type: Plain text
63 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
64 #: opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "Standard C library (I<libc>,\\ I<-lc>)"
66 msgstr "Standardowa biblioteka C (I<libc>,\\ I<-lc>)"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "SYNOPSIS"
73 msgstr "SKŁADNIA"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "B<#include E<lt>unistd.hE<gt>>\n"
80 msgstr "B<#include E<lt>unistd.hE<gt>>\n"
81
82 #. type: Plain text
83 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
84 #: opensuse-tumbleweed
85 #, no-wrap
86 msgid ""
87 "B<ssize_t readlink(>size_t bufsiz;\n"
88 "B< const char *restrict >I<path>B<,>\n"
89 "B< char >I<buf>B<[restrict >I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
90 msgstr ""
91 "B<ssize_t readlink(>size_t bufsiz;\n"
92 "B< const char *restrict >I<path>B<,>\n"
93 "B< char >I<buf>B<[restrict >I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
94
95 #. type: Plain text
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 #, no-wrap
99 msgid ""
100 "B<#include E<lt>fcntl.hE<gt> >/* Definition of B<AT_*> constants */\n"
101 "B<#include E<lt>unistd.hE<gt>>\n"
102 msgstr ""
103 "B<#include E<lt>fcntl.hE<gt> >/* Definicja stałych B<AT_*> */\n"
104 "B<#include E<lt>unistd.hE<gt>>\n"
105
106 #. type: Plain text
107 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
108 #: opensuse-tumbleweed
109 #, no-wrap
110 msgid ""
111 "B<ssize_t readlinkat(>size_t bufsiz;\n"
112 "B< int >I<dirfd>B<, const char *restrict >I<path>B<,>\n"
113 "B< char >I<buf>B<[restrict >I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
114 msgstr ""
115 "B<ssize_t readlinkat(>size_t bufsiz;\n"
116 "B< int >I<dirfd>B<, const char *restrict >I<path>B<,>\n"
117 "B< char >I<buf>B<[restrict >I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
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 msgid ""
123 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
124 msgstr ""
125 "Wymagane ustawienia makr biblioteki glibc (patrz B<feature_test_macros>(7)):"
126
127 #. type: Plain text
128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
130 msgid "B<readlink>():"
131 msgstr "B<readlink>():"
132
133 #. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
134 #. type: Plain text
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 #, no-wrap
138 msgid ""
139 " _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200112L\n"
140 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
141 msgstr ""
142 " _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200112L\n"
143 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
144
145 #. type: Plain text
146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
148 msgid "B<readlinkat>():"
149 msgstr "B<readlinkat>():"
150
151 #. type: Plain text
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 #, no-wrap
155 msgid ""
156 " Since glibc 2.10:\n"
157 " _POSIX_C_SOURCE E<gt>= 200809L\n"
158 " Before glibc 2.10:\n"
159 " _ATFILE_SOURCE\n"
160 msgstr ""
161 " Od glibc 2.10:\n"
162 " _POSIX_C_SOURCE E<gt>= 200809L\n"
163 " Przed glibc 2.10:\n"
164 " _ATFILE_SOURCE\n"
165
166 #. type: SH
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 #, no-wrap
170 msgid "DESCRIPTION"
171 msgstr "OPIS"
172
173 #. type: Plain text
174 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
175 #: opensuse-tumbleweed
176 msgid ""
177 "B<readlink>() places the contents of the symbolic link I<path> in the "
178 "buffer I<buf>, which has size I<bufsiz>. B<readlink>() does not append a "
179 "terminating null byte to I<buf>. It will (silently) truncate the contents "
180 "(to a length of I<bufsiz> characters), in case the buffer is too small to "
181 "hold all of the contents."
182 msgstr ""
183 "B<readlink>() umieszcza zawartość dowiązania symbolicznego I<path> w buforze "
184 "I<buf>, którego wielkość wynosi I<bufsiz>. B<readlink>() nie dokleja do "
185 "bufora I<buf> końcowego bajtu null. W przypadku, gdy bufor jest za mały, aby "
186 "pomieścić całą zawartość dowiązania, jest ona (po cichu) obcinana (do ilości "
187 "znaków równej długości I<bufsiz>)."
188
189 #. type: SS
190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
192 #, no-wrap
193 msgid "readlinkat()"
194 msgstr "readlinkat()"
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 "The B<readlinkat>() system call operates in exactly the same way as "
201 "B<readlink>(), except for the differences described here."
202 msgstr ""
203 "Wywołanie systemowe B<readlinkat>() operuje w dokładnie taki sam sposób jak "
204 "B<readlink>(), z wyjątkiem różnic opisanych tutaj."
205
206 #. type: Plain text
207 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
208 #: opensuse-tumbleweed
209 msgid ""
210 "If I<path> is relative, then it is interpreted relative to the directory "
211 "referred to by the file descriptor I<dirfd> (rather than relative to the "
212 "current working directory of the calling process, as is done by "
213 "B<readlink>() for a relative pathname)."
214 msgstr ""
215 "Jeśli ścieżka podana w I<path> jest względna, jest to interpretowane w "
216 "odniesieniu do katalogu do którego odnosi się deskryptor pliku I<dirfd> "
217 "(zamiast w odniesieniu do bieżącego katalogu roboczego procesu wywołującego, "
218 "jak w stosunku do ścieżek względnych robi to B<readlink>())."
219
220 #. type: Plain text
221 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
222 #: opensuse-tumbleweed
223 msgid ""
224 "If I<path> is relative and I<dirfd> is the special value B<AT_FDCWD>, then "
225 "I<path> is interpreted relative to the current working directory of the "
226 "calling process (like B<readlink>())."
227 msgstr ""
228 "Jeśli I<path> jest względna a I<dirfd> ma wartość specjalną B<AT_FDCWD>, to "
229 "I<path> jest interpretowana w odniesieniu do bieżącego katalogu roboczego "
230 "procesu wywołującego (jak B<readlink>())."
231
232 #. type: Plain text
233 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
234 #: opensuse-tumbleweed
235 msgid "If I<path> is absolute, then I<dirfd> is ignored."
236 msgstr "Jeśli ścieżka I<path> jest bezwzględna, to I<dirfd> jest ignorowane."
237
238 #. commit 65cfc6722361570bfe255698d9cd4dccaf47570d
239 #. type: Plain text
240 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
241 #: opensuse-tumbleweed
242 msgid ""
243 "Since Linux 2.6.39, I<path> can be an empty string, in which case the call "
244 "operates on the symbolic link referred to by I<dirfd> (which should have "
245 "been obtained using B<open>(2) with the B<O_PATH> and B<O_NOFOLLOW> flags)."
246 msgstr ""
247 "Od Linuksa 2.6.39, I<path> może być łańcuchem pustym; wówczas wywołanie "
248 "działa na dowiązaniu symbolicznym, do którego odnosi się I<dirfd> (które "
249 "powinno być uzyskane za pomocą B<open>(2) ze znacznikami B<O_PATH> i "
250 "B<O_NOFOLLOW>)."
251
252 #. type: Plain text
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 msgid "See B<openat>(2) for an explanation of the need for B<readlinkat>()."
256 msgstr ""
257 "Więcej informacji o potrzebie wprowadzenia B<readlinkat>() można znaleźć w "
258 "podręczniku B<openat>(2)."
259
260 #. type: SH
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 #, no-wrap
264 msgid "RETURN VALUE"
265 msgstr "WARTOŚĆ ZWRACANA"
266
267 #. type: Plain text
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 msgid ""
271 "On success, these calls return the number of bytes placed in I<buf>. (If "
272 "the returned value equals I<bufsiz>, then truncation may have occurred.) On "
273 "error, -1 is returned and I<errno> is set to indicate the error."
274 msgstr ""
275 "W przypadku powodzenia, te wywołania zwracają liczbę bajtów umieszczonych w "
276 "I<buf> (jeśli wartość zwracana równa się I<bufsiz>, to mogło dojść do "
277 "obcięcia). W razie wystąpienia błędu zwracane jest -1 i ustawiane I<errno> "
278 "wskazując błąd."
279
280 #. type: SH
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 #, no-wrap
284 msgid "ERRORS"
285 msgstr "BŁĘDY"
286
287 #. type: TP
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 #, no-wrap
291 msgid "B<EACCES>"
292 msgstr "B<EACCES>"
293
294 #. type: Plain text
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 msgid ""
298 "Search permission is denied for a component of the path prefix. (See also "
299 "B<path_resolution>(7).)"
300 msgstr ""
301 "Brak praw do przeszukiwania składowej ścieżki (patrz także "
302 "B<path_resolution>(7))."
303
304 #. type: TP
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 #, no-wrap
308 msgid "B<EBADF>"
309 msgstr "B<EBADF>"
310
311 #. type: Plain text
312 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
313 #: opensuse-tumbleweed
314 msgid ""
315 "(B<readlinkat>()) I<path> is relative but I<dirfd> is neither B<AT_FDCWD> "
316 "nor a valid file descriptor."
317 msgstr ""
318 "(B<readlinkat>()) I<path> jest względna, lecz I<dirfd> nie wynosi ani "
319 "B<AT_FDCWD>, ani nie jest prawidłowym deskryptorem pliku."
320
321 #. type: TP
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 #, no-wrap
325 msgid "B<EFAULT>"
326 msgstr "B<EFAULT>"
327
328 #. type: Plain text
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 msgid "I<buf> extends outside the process's allocated address space."
332 msgstr "I<buf> wskazuje poza przydzieloną procesowi przestrzeń adresową."
333
334 #. type: TP
335 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
336 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
337 #, no-wrap
338 msgid "B<EINVAL>"
339 msgstr "B<EINVAL>"
340
341 #. At the glibc level, bufsiz is unsigned, so this error can only occur
342 #. if bufsiz==0. However, the in the kernel syscall, bufsiz is signed,
343 #. and this error can also occur if bufsiz < 0.
344 #. See: http://thread.gmane.org/gmane.linux.man/380
345 #. Subject: [patch 0/3] [RFC] kernel/glibc mismatch of "readlink" syscall?
346 #. type: Plain text
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 msgid "I<bufsiz> is not positive."
350 msgstr "I<bufsiz> nie jest dodatnie."
351
352 #. type: Plain text
353 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
354 #: opensuse-tumbleweed
355 msgid ""
356 "The named file (i.e., the final filename component of I<path>) is not a "
357 "symbolic link."
358 msgstr ""
359 "Nazwany plik (tj. ostatnia składowa ścieżki I<path>) nie jest dowiązaniem "
360 "symbolicznym."
361
362 #. type: TP
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 #, no-wrap
366 msgid "B<EIO>"
367 msgstr "B<EIO>"
368
369 #. type: Plain text
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 msgid "An I/O error occurred while reading from the filesystem."
373 msgstr "Podczas odczytu z systemu plików wystąpił błąd wejścia/wyjścia."
374
375 #. type: TP
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 #, no-wrap
379 msgid "B<ELOOP>"
380 msgstr "B<ELOOP>"
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 "Too many symbolic links were encountered in translating the pathname."
386 msgstr ""
387 "Natrafiono na zbyt wiele dowiązań symbolicznych podczas tłumaczenia ścieżki."
388
389 #. type: TP
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 #, no-wrap
393 msgid "B<ENAMETOOLONG>"
394 msgstr "B<ENAMETOOLONG>"
395
396 #. type: Plain text
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 msgid "A pathname, or a component of a pathname, was too long."
400 msgstr "Scieżka, lub składnik ścieżki, były za długie."
401
402 #. type: TP
403 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
404 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
405 #, no-wrap
406 msgid "B<ENOENT>"
407 msgstr "B<ENOENT>"
408
409 #. type: Plain text
410 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
411 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
412 msgid "The named file does not exist."
413 msgstr "Plik wskazywany przez nazwę nie istnieje."
414
415 #. type: TP
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 #, no-wrap
419 msgid "B<ENOMEM>"
420 msgstr "B<ENOMEM>"
421
422 #. type: Plain text
423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
425 msgid "Insufficient kernel memory was available."
426 msgstr "Brak pamięci jądra."
427
428 #. type: TP
429 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
430 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
431 #, no-wrap
432 msgid "B<ENOTDIR>"
433 msgstr "B<ENOTDIR>"
434
435 #. type: Plain text
436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
438 msgid "A component of the path prefix is not a directory."
439 msgstr "Składowa ścieżki nie jest katalogiem."
440
441 #. type: Plain text
442 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
443 #: opensuse-tumbleweed
444 msgid ""
445 "(B<readlinkat>()) I<path> is relative and I<dirfd> is a file descriptor "
446 "referring to a file other than a directory."
447 msgstr ""
448 "(B<readlinkat>()) I<path> jest względna, a I<dirfd> jest deskryptorem pliku "
449 "odnoszącym się do pliku zamiast do katalogu."
450
451 #. type: SH
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 #, no-wrap
455 msgid "STANDARDS"
456 msgstr "STANDARDY"
457
458 #. type: Plain text
459 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
460 #: opensuse-tumbleweed
461 msgid "POSIX.1-2024."
462 msgstr "POSIX.1-2024."
463
464 #. type: SH
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 #, no-wrap
468 msgid "HISTORY"
469 msgstr "HISTORIA"
470
471 #. type: TP
472 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
473 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
474 #, no-wrap
475 msgid "B<readlink>()"
476 msgstr "B<readlink>()"
477
478 #. type: Plain text
479 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
480 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
481 msgid "4.4BSD (first appeared in 4.2BSD), POSIX.1-2001, POSIX.1-2008."
482 msgstr "4.4BSD (pojawiło się pierwotnie w 4.2BSD), POSIX.1-2001, POSIX.1-2008."
483
484 #. type: TP
485 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
486 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
487 #, no-wrap
488 msgid "B<readlinkat>()"
489 msgstr "B<readlinkat>()"
490
491 #. type: Plain text
492 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
493 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
494 msgid "POSIX.1-2008. Linux 2.6.16, glibc 2.4."
495 msgstr "POSIX.1-2008. Linux 2.6.16, glibc 2.4."
496
497 #. type: Plain text
498 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
499 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
500 msgid ""
501 "Up to and including glibc 2.4, the return type of B<readlink>() was "
502 "declared as I<int>. Nowadays, the return type is declared as I<ssize_t>, as "
503 "(newly) required in POSIX.1-2001."
504 msgstr ""
505 "Do glibc 2.4 włącznie, zwracany typ B<readlink>() był zadeklarowany jako "
506 "I<int>. Obecnie, zwracany typ jest zadeklarowany jako I<ssize_t>, zgodnie z "
507 "(nowym) wymaganiem POSIX.1-2001."
508
509 #. type: SS
510 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
511 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
512 #, no-wrap
513 msgid "glibc"
514 msgstr "glibc"
515
516 #. type: Plain text
517 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
518 #: opensuse-tumbleweed
519 msgid ""
520 "On older kernels where B<readlinkat>() is unavailable, the glibc wrapper "
521 "function falls back to the use of B<readlink>(). When I<path> is relative, "
522 "glibc constructs a pathname based on the symbolic link in I</proc/self/fd> "
523 "that corresponds to the I<dirfd> argument."
524 msgstr ""
525 "Na starszych wersjach jądra Linuxa gdzie B<readlinkat>() nie było dostępne, "
526 "funkcja opakowująca z glibc wraca do używania B<readlink>(). Kiedy I<path> "
527 "jest względna, glibc konstruuje ścieżkę na bazie dowiązania symbolicznego w "
528 "I</proc/self/fd>, które odpowiada argumentowi I<dirfd>."
529
530 #. type: SH
531 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
532 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
533 #, no-wrap
534 msgid "NOTES"
535 msgstr "UWAGI"
536
537 #. type: Plain text
538 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
539 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
540 msgid ""
541 "Using a statically sized buffer might not provide enough room for the "
542 "symbolic link contents. The required size for the buffer can be obtained "
543 "from the I<stat.st_size> value returned by a call to B<lstat>(2) on the "
544 "link. However, the number of bytes written by B<readlink>() and "
545 "B<readlinkat>() should be checked to make sure that the size of the "
546 "symbolic link did not increase between the calls. Dynamically allocating "
547 "the buffer for B<readlink>() and B<readlinkat>() also addresses a common "
548 "portability problem when using B<PATH_MAX> for the buffer size, as this "
549 "constant is not guaranteed to be defined per POSIX if the system does not "
550 "have such limit."
551 msgstr ""
552 "Używanie bufora o statycznym rozmiarze, może nie dać wystarczająco dużo "
553 "miejsca na zawartość dowiązania symbolicznego. Wymagany rozmiar bufora można "
554 "uzyskać z wartości I<stat.st_size>, zwracanej przez wywołanie B<lstat>(2), "
555 "na dowiązaniu. Jednak należy sprawdzić liczbę bajtów zapisanych przez "
556 "B<readlink>() i B<readlinkat>() aby upewnić się, że rozmiar dowiązania "
557 "symbolicznego nie zmienił się między tymi wywołaniami. Dynamicznie "
558 "przydzielany bufor B<readlink>() i B<readlinkat>() rozwiązuje również częsty "
559 "problem z przenośnością, gdy korzysta się B<PATH_MAX> jako rozmiaru bufora, "
560 "bowiem zdefiniowanie tej stałej nie jest gwarantowane przez POSIX, jeśli "
561 "system nie posiada takiego limitu."
562
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 "EXAMPLES"
568 msgstr "PRZYKŁADY"
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 "The following program allocates the buffer needed by B<readlink>() "
575 "dynamically from the information provided by B<lstat>(2), falling back to a "
576 "buffer of size B<PATH_MAX> in cases where B<lstat>(2) reports a size of "
577 "zero."
578 msgstr ""
579 "Poniższy program dynamicznie przydziela bufor, potrzebny B<readlink>(), na "
580 "podstawie informacji zapewnionych przez B<lstat>(2), alternatywnie używając "
581 "bufora o rozmiarze B<PATH_MAX>, w przypadku gdy B<lstat>(2) zwróci rozmiar "
582 "zerowy."
583
584 #. type: Plain text
585 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
586 #: opensuse-tumbleweed
587 #, no-wrap
588 msgid ""
589 "#include E<lt>limits.hE<gt>\n"
590 "#include E<lt>stdio.hE<gt>\n"
591 "#include E<lt>stdlib.hE<gt>\n"
592 "#include E<lt>sys/stat.hE<gt>\n"
593 "#include E<lt>sys/types.hE<gt>\n"
594 "#include E<lt>unistd.hE<gt>\n"
595 "\\&\n"
596 "int\n"
597 "main(int argc, char *argv[])\n"
598 "{\n"
599 " char *buf;\n"
600 " ssize_t nbytes, bufsiz;\n"
601 " struct stat sb;\n"
602 "\\&\n"
603 " if (argc != 2) {\n"
604 " fprintf(stderr, \"Usage: %s E<lt>pathE<gt>\\[rs]n\", argv[0]);\n"
605 " exit(EXIT_FAILURE);\n"
606 " }\n"
607 "\\&\n"
608 " if (lstat(argv[1], &sb) == -1) {\n"
609 " perror(\"lstat\");\n"
610 " exit(EXIT_FAILURE);\n"
611 " }\n"
612 "\\&\n"
613 " /* Add one to the link size, so that we can determine whether\n"
614 " the buffer returned by readlink() was truncated. */\n"
615 "\\&\n"
616 " bufsiz = sb.st_size + 1;\n"
617 "\\&\n"
618 " /* Some magic symlinks under (for example) /proc and /sys\n"
619 " report \\[aq]st_size\\[aq] as zero. In that case, take PATH_MAX as\n"
620 " a \"good enough\" estimate. */\n"
621 "\\&\n"
622 " if (sb.st_size == 0)\n"
623 " bufsiz = PATH_MAX;\n"
624 "\\&\n"
625 " buf = malloc(bufsiz);\n"
626 " if (buf == NULL) {\n"
627 " perror(\"malloc\");\n"
628 " exit(EXIT_FAILURE);\n"
629 " }\n"
630 "\\&\n"
631 " nbytes = readlink(argv[1], buf, bufsiz);\n"
632 " if (nbytes == -1) {\n"
633 " perror(\"readlink\");\n"
634 " exit(EXIT_FAILURE);\n"
635 " }\n"
636 "\\&\n"
637 " /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n"
638 " null byte (\\[aq]\\[rs]0\\[aq]). */\n"
639 " printf(\"\\[aq]%s\\[aq] points to \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n"
640 "\\&\n"
641 " /* If the return value was equal to the buffer size, then\n"
642 " the link target was larger than expected (perhaps because the\n"
643 " target was changed between the call to lstat() and the call to\n"
644 " readlink()). Warn the user that the returned target may have\n"
645 " been truncated. */\n"
646 "\\&\n"
647 " if (nbytes == bufsiz)\n"
648 " printf(\"(Returned buffer may have been truncated)\\[rs]n\");\n"
649 "\\&\n"
650 " free(buf);\n"
651 " exit(EXIT_SUCCESS);\n"
652 "}\n"
653 msgstr ""
654 "#include E<lt>limits.hE<gt>\n"
655 "#include E<lt>stdio.hE<gt>\n"
656 "#include E<lt>stdlib.hE<gt>\n"
657 "#include E<lt>sys/stat.hE<gt>\n"
658 "#include E<lt>sys/types.hE<gt>\n"
659 "#include E<lt>unistd.hE<gt>\n"
660 "\\&\n"
661 "int\n"
662 "main(int argc, char *argv[])\n"
663 "{\n"
664 " char *buf;\n"
665 " ssize_t nbytes, bufsiz;\n"
666 " struct stat sb;\n"
667 "\\&\n"
668 " if (argc != 2) {\n"
669 " fprintf(stderr, \"Użycie: %s E<lt>ścieżkaE<gt>\\[rs]n\", argv[0]);\n"
670 " exit(EXIT_FAILURE);\n"
671 " }\n"
672 "\\&\n"
673 " if (lstat(argv[1], &sb) == -1) {\n"
674 " perror(\"lstat\");\n"
675 " exit(EXIT_FAILURE);\n"
676 " }\n"
677 "\\&\n"
678 " /* Dodaje jeden do rozmiaru dowiązania, dzięki czemu można\n"
679 " sprawdzić, czy bufor zwrócony przez readlink() był obcięty. */\n"
680 "\\&\n"
681 " bufsiz = sb.st_size + 1;\n"
682 "\\&\n"
683 " /* Niektóre magiczne dowiązania symboliczne np. w /proc i /sys\n"
684 " zgłaszają \\[aq]st_size\\[aq] równy zero. W takim przypadku\n"
685 " używa PATH_MAX jako \"wystarczającego\" oszacowania. */\n"
686 "\\&\n"
687 " if (sb.st_size == 0)\n"
688 " bufsiz = PATH_MAX;\n"
689 "\\&\n"
690 " buf = malloc(bufsiz);\n"
691 " if (buf == NULL) {\n"
692 " perror(\"malloc\");\n"
693 " exit(EXIT_FAILURE);\n"
694 " }\n"
695 "\\&\n"
696 " nbytes = readlink(argv[1], buf, bufsiz);\n"
697 " if (nbytes == -1) {\n"
698 " perror(\"readlink\");\n"
699 " exit(EXIT_FAILURE);\n"
700 " }\n"
701 "\\&\n"
702 " /* Wypisuje jedynie \\[aq]nbytes\\[aq] z \\[aq]buf\\[aq], dzięki czemu nie zawiera\n"
703 " kończącego znaku null (\\[aq]\\[rs]0\\[aq]). */\n"
704 " printf(\"\\[aq]%s\\[aq] wskazuje na \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n"
705 "\\&\n"
706 " /* Jeśli wartość zwracana jest równa rozmiarowi bufora, to dowiązanie\n"
707 " docelowe było dłuższe niż oczekiwano (być może cel zmienił się\n"
708 " pomiędzy wywołaniem lstat() i wywołaniem readlink()). Ostrzega\n"
709 " użytkownika, że zwracany cel mógł być przycięty. */\n"
710 "\\&\n"
711 " if (nbytes == bufsiz)\n"
712 " printf(\"(Zwracany bufor mógł być przycięty)\\[rs]n\");\n"
713 "\\&\n"
714 " free(buf);\n"
715 " exit(EXIT_SUCCESS);\n"
716 "}\n"
717
718 #. SRC END
719 #. type: SH
720 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
721 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
722 #, no-wrap
723 msgid "SEE ALSO"
724 msgstr "ZOBACZ TAKŻE"
725
726 #. type: Plain text
727 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
728 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
729 msgid ""
730 "B<readlink>(1), B<lstat>(2), B<stat>(2), B<symlink>(2), B<realpath>(3), "
731 "B<path_resolution>(7), B<symlink>(7)"
732 msgstr ""
733 "B<readlink>(1), B<lstat>(2), B<stat>(2), B<symlink>(2), B<realpath>(3), "
734 "B<path_resolution>(7), B<symlink>(7)"
735
736 #. type: TH
737 #: debian-trixie
738 #, no-wrap
739 msgid "2024-06-15"
740 msgstr "15 czerwca 2024 r."
741
742 #. type: TH
743 #: debian-trixie
744 #, no-wrap
745 msgid "Linux man-pages 6.9.1"
746 msgstr "Linux man-pages 6.9.1"
747
748 #. type: Plain text
749 #: debian-trixie
750 msgid "Standard C library (I<libc>, I<-lc>)"
751 msgstr "Standardowa biblioteka C (I<libc>, I<-lc>)"
752
753 #. type: Plain text
754 #: debian-trixie
755 #, no-wrap
756 msgid ""
757 "B<ssize_t readlink(const char *restrict >I<pathname>B<, char *restrict >I<buf>B<,>\n"
758 "B< size_t >I<bufsiz>B<);>\n"
759 msgstr ""
760 "B<ssize_t readlink(const char *restrict >I<pathname>B<, char *restrict >I<buf>B<,>\n"
761 "B< size_t >I<bufsiz>B<);>\n"
762
763 #. type: Plain text
764 #: debian-trixie
765 #, no-wrap
766 msgid ""
767 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
768 "B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n"
769 msgstr ""
770 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
771 "B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n"
772
773 #. type: Plain text
774 #: debian-trixie fedora-44 fedora-rawhide
775 msgid ""
776 "B<readlink>() places the contents of the symbolic link I<pathname> in the "
777 "buffer I<buf>, which has size I<bufsiz>. B<readlink>() does not append a "
778 "terminating null byte to I<buf>. It will (silently) truncate the contents "
779 "(to a length of I<bufsiz> characters), in case the buffer is too small to "
780 "hold all of the contents."
781 msgstr ""
782 "B<readlink>() umieszcza zawartość dowiązania symbolicznego I<pathname> w "
783 "buforze I<buf>, którego wielkość wynosi I<bufsiz>. B<readlink>() nie dokleja "
784 "do bufora I<buf> końcowego bajtu null. W przypadku, gdy bufor jest za mały, "
785 "aby pomieścić całą zawartość dowiązania, jest ona (po cichu) obcinana (do "
786 "ilości znaków równej długości I<bufsiz>)."
787
788 #. type: Plain text
789 #: debian-trixie fedora-44 fedora-rawhide
790 msgid ""
791 "If the pathname given in I<pathname> is relative, then it is interpreted "
792 "relative to the directory referred to by the file descriptor I<dirfd> "
793 "(rather than relative to the current working directory of the calling "
794 "process, as is done by B<readlink>() for a relative pathname)."
795 msgstr ""
796 "Jeśli ścieżka podana w I<pathname> jest względna, jest to interpretowane w "
797 "odniesieniu do katalogu do którego odnosi się deskryptor pliku I<dirfd> "
798 "(zamiast w odniesieniu do bieżącego katalogu roboczego procesu wywołującego, "
799 "jak w stosunku do ścieżek względnych robi to B<readlink>())."
800
801 #. type: Plain text
802 #: debian-trixie fedora-44 fedora-rawhide
803 msgid ""
804 "If I<pathname> is relative and I<dirfd> is the special value B<AT_FDCWD>, "
805 "then I<pathname> is interpreted relative to the current working directory of "
806 "the calling process (like B<readlink>())."
807 msgstr ""
808 "Jeśli I<pathname> jest względna a I<dirfd> ma wartość specjalną B<AT_FDCWD>, "
809 "to I<pathname> jest interpretowana w odniesieniu do bieżącego katalogu "
810 "roboczego procesu wywołującego (jak B<readlink>())."
811
812 #. type: Plain text
813 #: debian-trixie fedora-44 fedora-rawhide
814 msgid "If I<pathname> is absolute, then I<dirfd> is ignored."
815 msgstr ""
816 "Jeśli ścieżka I<pathname> jest bezwzględna, to I<dirfd> jest ignorowane."
817
818 #. commit 65cfc6722361570bfe255698d9cd4dccaf47570d
819 #. type: Plain text
820 #: debian-trixie fedora-44 fedora-rawhide
821 msgid ""
822 "Since Linux 2.6.39, I<pathname> can be an empty string, in which case the "
823 "call operates on the symbolic link referred to by I<dirfd> (which should "
824 "have been obtained using B<open>(2) with the B<O_PATH> and B<O_NOFOLLOW> "
825 "flags)."
826 msgstr ""
827 "Od Linuksa 2.6.39, I<pathname> może być łańcuchem pustym; wówczas wywołanie "
828 "działa na dowiązaniu symbolicznym, do którego odnosi się I<dirfd> (które "
829 "powinno być uzyskane za pomocą B<open>(2) ze znacznikami B<O_PATH> i "
830 "B<O_NOFOLLOW>)."
831
832 #. type: Plain text
833 #: debian-trixie fedora-44 fedora-rawhide
834 msgid ""
835 "(B<readlinkat>()) I<pathname> is relative but I<dirfd> is neither "
836 "B<AT_FDCWD> nor a valid file descriptor."
837 msgstr ""
838 "(B<readlinkat>()) I<pathname> jest względne, lecz I<dirfd> nie wynosi ani "
839 "B<AT_FDCWD>, ani nie jest prawidłowym deskryptorem pliku."
840
841 #. type: Plain text
842 #: debian-trixie fedora-44 fedora-rawhide
843 msgid ""
844 "The named file (i.e., the final filename component of I<pathname>) is not a "
845 "symbolic link."
846 msgstr ""
847 "Nazwany plik (tj. ostatnia składowa ścieżki I<pathname>) nie jest "
848 "dowiązaniem symbolicznym."
849
850 #. type: Plain text
851 #: debian-trixie fedora-44 fedora-rawhide
852 msgid ""
853 "(B<readlinkat>()) I<pathname> is relative and I<dirfd> is a file descriptor "
854 "referring to a file other than a directory."
855 msgstr ""
856 "(B<readlinkat>()) I<pathname> jest względna, a I<dirfd> jest deskryptorem "
857 "pliku odnoszącym się do pliku zamiast do katalogu."
858
859 #. type: Plain text
860 #: debian-trixie fedora-44 fedora-rawhide
861 msgid "POSIX.1-2008."
862 msgstr "POSIX.1-2008."
863
864 #. type: Plain text
865 #: debian-trixie fedora-44 fedora-rawhide
866 msgid ""
867 "On older kernels where B<readlinkat>() is unavailable, the glibc wrapper "
868 "function falls back to the use of B<readlink>(). When I<pathname> is a "
869 "relative pathname, glibc constructs a pathname based on the symbolic link in "
870 "I</proc/self/fd> that corresponds to the I<dirfd> argument."
871 msgstr ""
872 "Na starszych wersjach jądra Linuxa gdzie B<readlinkat>() nie było dostępne, "
873 "funkcja opakowująca z glibc wraca do używania B<readlink>(). Kiedy "
874 "I<pathname> jest względną ścieżką, glibc konstruuje ścieżkę na bazie "
875 "dowiązania symbolicznego w I</proc/self/fd>, które odpowiada argumentowi "
876 "I<dirfd>."
877
878 #. type: Plain text
879 #: debian-trixie fedora-44 fedora-rawhide
880 #, no-wrap
881 msgid ""
882 "#include E<lt>limits.hE<gt>\n"
883 "#include E<lt>stdio.hE<gt>\n"
884 "#include E<lt>stdlib.hE<gt>\n"
885 "#include E<lt>sys/stat.hE<gt>\n"
886 "#include E<lt>sys/types.hE<gt>\n"
887 "#include E<lt>unistd.hE<gt>\n"
888 "\\&\n"
889 "int\n"
890 "main(int argc, char *argv[])\n"
891 "{\n"
892 " char *buf;\n"
893 " ssize_t nbytes, bufsiz;\n"
894 " struct stat sb;\n"
895 "\\&\n"
896 " if (argc != 2) {\n"
897 " fprintf(stderr, \"Usage: %s E<lt>pathnameE<gt>\\[rs]n\", argv[0]);\n"
898 " exit(EXIT_FAILURE);\n"
899 " }\n"
900 "\\&\n"
901 " if (lstat(argv[1], &sb) == -1) {\n"
902 " perror(\"lstat\");\n"
903 " exit(EXIT_FAILURE);\n"
904 " }\n"
905 "\\&\n"
906 " /* Add one to the link size, so that we can determine whether\n"
907 " the buffer returned by readlink() was truncated. */\n"
908 "\\&\n"
909 " bufsiz = sb.st_size + 1;\n"
910 "\\&\n"
911 " /* Some magic symlinks under (for example) /proc and /sys\n"
912 " report \\[aq]st_size\\[aq] as zero. In that case, take PATH_MAX as\n"
913 " a \"good enough\" estimate. */\n"
914 "\\&\n"
915 " if (sb.st_size == 0)\n"
916 " bufsiz = PATH_MAX;\n"
917 "\\&\n"
918 " buf = malloc(bufsiz);\n"
919 " if (buf == NULL) {\n"
920 " perror(\"malloc\");\n"
921 " exit(EXIT_FAILURE);\n"
922 " }\n"
923 "\\&\n"
924 " nbytes = readlink(argv[1], buf, bufsiz);\n"
925 " if (nbytes == -1) {\n"
926 " perror(\"readlink\");\n"
927 " exit(EXIT_FAILURE);\n"
928 " }\n"
929 "\\&\n"
930 " /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n"
931 " null byte (\\[aq]\\[rs]0\\[aq]). */\n"
932 " printf(\"\\[aq]%s\\[aq] points to \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n"
933 "\\&\n"
934 " /* If the return value was equal to the buffer size, then\n"
935 " the link target was larger than expected (perhaps because the\n"
936 " target was changed between the call to lstat() and the call to\n"
937 " readlink()). Warn the user that the returned target may have\n"
938 " been truncated. */\n"
939 "\\&\n"
940 " if (nbytes == bufsiz)\n"
941 " printf(\"(Returned buffer may have been truncated)\\[rs]n\");\n"
942 "\\&\n"
943 " free(buf);\n"
944 " exit(EXIT_SUCCESS);\n"
945 "}\n"
946 msgstr ""
947 "#include E<lt>limits.hE<gt>\n"
948 "#include E<lt>stdio.hE<gt>\n"
949 "#include E<lt>stdlib.hE<gt>\n"
950 "#include E<lt>sys/stat.hE<gt>\n"
951 "#include E<lt>sys/types.hE<gt>\n"
952 "#include E<lt>unistd.hE<gt>\n"
953 "\\&\n"
954 "int\n"
955 "main(int argc, char *argv[])\n"
956 "{\n"
957 " char *buf;\n"
958 " ssize_t nbytes, bufsiz;\n"
959 " struct stat sb;\n"
960 "\\&\n"
961 " if (argc != 2) {\n"
962 " fprintf(stderr, \"Użycie: %s E<lt>ścieżkaE<gt>\\[rs]n\", argv[0]);\n"
963 " exit(EXIT_FAILURE);\n"
964 " }\n"
965 "\\&\n"
966 " if (lstat(argv[1], &sb) == -1) {\n"
967 " perror(\"lstat\");\n"
968 " exit(EXIT_FAILURE);\n"
969 " }\n"
970 "\\&\n"
971 " /* Dodaje jeden do rozmiaru dowiązania, dzięki czemu można\n"
972 " sprawdzić, czy bufor zwrócony przez readlink() był obcięty. */\n"
973 "\\&\n"
974 " bufsiz = sb.st_size + 1;\n"
975 "\\&\n"
976 " /* Niektóre magiczne dowiązania symboliczne np. w /proc i /sys\n"
977 " zgłaszają \\[aq]st_size\\[aq] równy zero. W takim przypadku\n"
978 " używa PATH_MAX jako \"wystarczającego\" oszacowania. */\n"
979 "\\&\n"
980 " if (sb.st_size == 0)\n"
981 " bufsiz = PATH_MAX;\n"
982 "\\&\n"
983 " buf = malloc(bufsiz);\n"
984 " if (buf == NULL) {\n"
985 " perror(\"malloc\");\n"
986 " exit(EXIT_FAILURE);\n"
987 " }\n"
988 "\\&\n"
989 " nbytes = readlink(argv[1], buf, bufsiz);\n"
990 " if (nbytes == -1) {\n"
991 " perror(\"readlink\");\n"
992 " exit(EXIT_FAILURE);\n"
993 " }\n"
994 "\\&\n"
995 " /* Wypisuje jedynie \\[aq]nbytes\\[aq] z \\[aq]buf\\[aq], dzięki czemu nie zawiera\n"
996 " kończącego znaku null (\\[aq]\\[rs]0\\[aq]). */\n"
997 " printf(\"\\[aq]%s\\[aq] wskazuje na \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n"
998 "\\&\n"
999 " /* Jeśli wartość zwracana jest równa rozmiarowi bufora, to dowiązanie\n"
1000 " docelowe było dłuższe niż oczekiwano (być może cel zmienił się\n"
1001 " pomiędzy wywołaniem lstat() i wywołaniem readlink()). Ostrzega\n"
1002 " użytkownika, że zwracany cel mógł być przycięty. */\n"
1003 "\\&\n"
1004 " if (nbytes == bufsiz)\n"
1005 " printf(\"(Zwracany bufor mógł być przycięty)\\[rs]n\");\n"
1006 "\\&\n"
1007 " free(buf);\n"
1008 " exit(EXIT_SUCCESS);\n"
1009 "}\n"
1010
1011 #. type: TH
1012 #: fedora-44 fedora-rawhide
1013 #, no-wrap
1014 msgid "2024-11-28"
1015 msgstr "28 listopada 2024 r."
1016
1017 #. type: TH
1018 #: fedora-44 fedora-rawhide
1019 #, no-wrap
1020 msgid "Linux man-pages 6.13"
1021 msgstr "Linux man-pages 6.13"
1022
1023 #. type: Plain text
1024 #: fedora-44 fedora-rawhide
1025 #, no-wrap
1026 msgid ""
1027 "B<ssize_t readlink(const char *restrict >I<pathname>B<,>\n"
1028 "B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
1029 msgstr ""
1030 "B<ssize_t readlink(const char *restrict >I<pathname>B<,>\n"
1031 "B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
1032
1033 #. type: Plain text
1034 #: fedora-44 fedora-rawhide
1035 #, no-wrap
1036 msgid ""
1037 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
1038 "B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
1039 msgstr ""
1040 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
1041 "B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
1042
1043 #. type: TH
1044 #: mageia-cauldron
1045 #, no-wrap
1046 msgid "Linux man-pages 6.17"
1047 msgstr "Linux man-pages 6.17"
1048
1049 #. type: TH
1050 #: opensuse-leap-16-1 opensuse-tumbleweed
1051 #, no-wrap
1052 msgid "Linux man-pages (unreleased)"
1053 msgstr "Linux man-pages (niewydane)"