Debian Codegraph @

po/pl/archive/man3/strcat.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]>, 2002.
5 # Robert Luberda <[email protected]>, 2014, 2017, 2019.
6 # Michał Kułach <[email protected]>, 2016.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: manpages-pl\n"
10 "POT-Creation-Date: 2023-08-27 17:24+0200\n"
11 "PO-Revision-Date: 2019-08-16 00:00+0100\n"
12 "Last-Translator: Robert Luberda <[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 2.0\n"
21
22 #. type: TH
23 #: opensuse-leap-15-6
24 #, no-wrap
25 msgid "STRCAT"
26 msgstr "STRCAT"
27
28 #. type: TH
29 #: opensuse-leap-15-6
30 #, no-wrap
31 msgid "2017-09-15"
32 msgstr "15 września 2017 r."
33
34 #. type: TH
35 #: opensuse-leap-15-6
36 #, no-wrap
37 msgid "GNU"
38 msgstr "GNU"
39
40 #. type: TH
41 #: opensuse-leap-15-6
42 #, no-wrap
43 msgid "Linux Programmer's Manual"
44 msgstr "Podręcznik programisty Linuksa"
45
46 #. type: SH
47 #: opensuse-leap-15-6
48 #, no-wrap
49 msgid "NAME"
50 msgstr "NAZWA"
51
52 #. type: Plain text
53 #: opensuse-leap-15-6
54 msgid "strcat, strncat - concatenate two strings"
55 msgstr "strcat, strncat - połączenie dwóch łańcuchów"
56
57 #. type: SH
58 #: opensuse-leap-15-6
59 #, no-wrap
60 msgid "SYNOPSIS"
61 msgstr "SKŁADNIA"
62
63 #. type: Plain text
64 #: opensuse-leap-15-6
65 #, no-wrap
66 msgid "B<#include E<lt>string.hE<gt>>\n"
67 msgstr "B<#include E<lt>string.hE<gt>>\n"
68
69 #. type: Plain text
70 #: opensuse-leap-15-6
71 #, no-wrap
72 msgid "B<char *strcat(char *>I<dest>B<, const char *>I<src>B<);>\n"
73 msgstr "B<char *strcat(char *>I<dest>B<, const char *>I<src>B<);>\n"
74
75 #. type: Plain text
76 #: opensuse-leap-15-6
77 #, no-wrap
78 msgid "B<char *strncat(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
79 msgstr "B<char *strncat(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
80
81 #. type: SH
82 #: opensuse-leap-15-6
83 #, no-wrap
84 msgid "DESCRIPTION"
85 msgstr "OPIS"
86
87 #. type: Plain text
88 #: opensuse-leap-15-6
89 msgid ""
90 "The B<strcat>() function appends the I<src> string to the I<dest> string, "
91 "overwriting the terminating null byte (\\(aq\\e0\\(aq) at the end of "
92 "I<dest>, and then adds a terminating null byte. The strings may not "
93 "overlap, and the I<dest> string must have enough space for the result. If "
94 "I<dest> is not large enough, program behavior is unpredictable; I<buffer "
95 "overruns are a favorite avenue for attacking secure programs>."
96 msgstr ""
97 "Funkcja B<strcat>() dołącza łańcuch I<src> do łańcucha I<dest>, nadpisując "
98 "znak null (\\(aq\\e0\\(aq) kończący I<dest> i dodając znak null na końcu "
99 "wyniku. Łańcuchy nie mogą na siebie nachodzić a łańcuch I<dest> musi "
100 "zawierać dostateczną ilość miejsca na wynik. Jeśli I<dest> nie zawiera "
101 "wystarczającej ilości miejsca, to zachowanie programu jest nieprzewidywalne, "
102 "gdyż I<występuje przepełnienie bufora, które jest najbardziej popularnym "
103 "sposobem atakowania bezpiecznych programów>."
104
105 #. type: Plain text
106 #: opensuse-leap-15-6
107 msgid "The B<strncat>() function is similar, except that"
108 msgstr "Funkcja B<strncat>() jest podobna, z wyjątkiem tego, że"
109
110 #. type: IP
111 #: opensuse-leap-15-6
112 #, no-wrap
113 msgid "*"
114 msgstr "*"
115
116 #. type: Plain text
117 #: opensuse-leap-15-6
118 msgid "it will use at most I<n> bytes from I<src>; and"
119 msgstr "użyje co najwyżej I<n> bajtów z I<src> oraz"
120
121 #. type: Plain text
122 #: opensuse-leap-15-6
123 msgid ""
124 "I<src> does not need to be null-terminated if it contains I<n> or more bytes."
125 msgstr ""
126 "I<src> nie musi być zakończony znakiem null, jeśli zawiera I<n> lub więcej "
127 "bajtów."
128
129 #. type: Plain text
130 #: opensuse-leap-15-6
131 msgid ""
132 "As with B<strcat>(), the resulting string in I<dest> is always null-"
133 "terminated."
134 msgstr ""
135 "Tak jak w przypadku B<strcat>() wynikowy łańcuch w I<dest> jest zawsze "
136 "zakończony znakiem null."
137
138 #. type: Plain text
139 #: opensuse-leap-15-6
140 msgid ""
141 "If I<src> contains I<n> or more bytes, B<strncat>() writes I<n+1> bytes to "
142 "I<dest> (I<n> from I<src> plus the terminating null byte). Therefore, the "
143 "size of I<dest> must be at least I<strlen(dest)+n+1>."
144 msgstr ""
145 "Jeśli I<src> zawiera I<n> lub więcej bajtów, to B<strncat>() zapisze I<n+1> "
146 "w I<dest> (I<n> z I<src> plus kończący bajt null). Dlatego też rozmiar "
147 "I<dest> musi wynosić co najmniej I<strlen(dest)+n+1>."
148
149 #. type: Plain text
150 #: opensuse-leap-15-6
151 msgid "A simple implementation of B<strncat>() might be:"
152 msgstr "Prosta implementacja B<strncat>() mogłaby wyglądać tak:"
153
154 #. type: Plain text
155 #: opensuse-leap-15-6
156 #, no-wrap
157 msgid ""
158 "char *\n"
159 "strncat(char *dest, const char *src, size_t n)\n"
160 "{\n"
161 " size_t dest_len = strlen(dest);\n"
162 " size_t i;\n"
163 msgstr ""
164 "char *\n"
165 "strncat(char *dest, const char *src, size_t n)\n"
166 "{\n"
167 " size_t dest_len = strlen(dest);\n"
168 " size_t i;\n"
169
170 #. type: Plain text
171 #: opensuse-leap-15-6
172 #, no-wrap
173 msgid ""
174 " for (i = 0 ; i E<lt> n && src[i] != \\(aq\\e0\\(aq ; i++)\n"
175 " dest[dest_len + i] = src[i];\n"
176 " dest[dest_len + i] = \\(aq\\e0\\(aq;\n"
177 msgstr ""
178 " for (i = 0 ; i E<lt> n && src[i] != \\(aq\\e0\\(aq ; i++)\n"
179 " dest[dest_len + i] = src[i];\n"
180 " dest[dest_len + i] = \\(aq\\e0\\(aq;\n"
181
182 #. type: Plain text
183 #: opensuse-leap-15-6
184 #, no-wrap
185 msgid ""
186 " return dest;\n"
187 "}\n"
188 msgstr ""
189 " return dest;\n"
190 "}\n"
191
192 #. type: SH
193 #: opensuse-leap-15-6
194 #, no-wrap
195 msgid "RETURN VALUE"
196 msgstr "WARTOŚĆ ZWRACANA"
197
198 #. type: Plain text
199 #: opensuse-leap-15-6
200 msgid ""
201 "The B<strcat>() and B<strncat>() functions return a pointer to the "
202 "resulting string I<dest>."
203 msgstr ""
204 "Funkcje B<strcat>() i B<strncat>() zwracają wskaźnik do wynikowego łańcucha "
205 "I<dest>."
206
207 #. type: SH
208 #: opensuse-leap-15-6
209 #, no-wrap
210 msgid "ATTRIBUTES"
211 msgstr "ATRYBUTY"
212
213 #. type: Plain text
214 #: opensuse-leap-15-6
215 msgid ""
216 "For an explanation of the terms used in this section, see B<attributes>(7)."
217 msgstr ""
218 "Informacje o pojęciach używanych w tym rozdziale można znaleźć w podręczniku "
219 "B<attributes>(7)."
220
221 #. type: tbl table
222 #: opensuse-leap-15-6
223 #, no-wrap
224 msgid "Interface"
225 msgstr "Interfejs"
226
227 #. type: tbl table
228 #: opensuse-leap-15-6
229 #, no-wrap
230 msgid "Attribute"
231 msgstr "Atrybut"
232
233 #. type: tbl table
234 #: opensuse-leap-15-6
235 #, no-wrap
236 msgid "Value"
237 msgstr "Wartość"
238
239 #. type: tbl table
240 #: opensuse-leap-15-6
241 #, no-wrap
242 msgid ""
243 "B<strcat>(),\n"
244 "B<strncat>()"
245 msgstr ""
246 "B<strcat>(),\n"
247 "B<strncat>()"
248
249 #. type: tbl table
250 #: opensuse-leap-15-6
251 #, no-wrap
252 msgid "Thread safety"
253 msgstr "Bezpieczeństwo wątkowe"
254
255 #. type: tbl table
256 #: opensuse-leap-15-6
257 #, no-wrap
258 msgid "MT-Safe"
259 msgstr "MT-Safe"
260
261 #. type: SH
262 #: opensuse-leap-15-6
263 #, no-wrap
264 msgid "CONFORMING TO"
265 msgstr "ZGODNE Z"
266
267 #. type: Plain text
268 #: opensuse-leap-15-6
269 msgid "POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD."
270 msgstr "POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD."
271
272 #. type: SH
273 #: opensuse-leap-15-6
274 #, no-wrap
275 msgid "NOTES"
276 msgstr "UWAGI"
277
278 #. type: Plain text
279 #: opensuse-leap-15-6
280 msgid ""
281 "Some systems (the BSDs, Solaris, and others) provide the following function:"
282 msgstr "Niektóre systemy (BSD, Solaris i inne) zawierają następującą funkcję:"
283
284 #. type: Plain text
285 #: opensuse-leap-15-6
286 #, no-wrap
287 msgid " size_t strlcat(char *dest, const char *src, size_t size);\n"
288 msgstr " size_t strlcat(char *dest, const char *src, size_t size);\n"
289
290 #. https://lwn.net/Articles/506530/
291 #. type: Plain text
292 #: opensuse-leap-15-6
293 msgid ""
294 "This function appends the null-terminated string I<src> to the string "
295 "I<dest>, copying at most I<size-strlen(dest)-1> from I<src>, and adds a "
296 "terminating null byte to the result, I<unless> I<size> is less than "
297 "I<strlen(dest)>. This function fixes the buffer overrun problem of "
298 "B<strcat>(), but the caller must still handle the possibility of data loss "
299 "if I<size> is too small. The function returns the length of the string "
300 "B<strlcat>() tried to create; if the return value is greater than or equal "
301 "to I<size>, data loss occurred. If data loss matters, the caller I<must> "
302 "either check the arguments before the call, or test the function return "
303 "value. B<strlcat>() is not present in glibc and is not standardized by "
304 "POSIX, but is available on Linux via the I<libbsd> library."
305 msgstr ""
306 "Funkcja dołączą zakończony znakiem null łańcuch I<src> do łańcucha I<dest>, "
307 "kopiując z I<src> co najwyżej I<size-strlen(dest)-1> znaków i dodając "
308 "kończący znak null, I<chyba że> I<size> jest mniejsze od I<strlen(dest)>. "
309 "Funkcja rozwiązuje problem przepełnienia bufora występujący w B<strcat>(), "
310 "jednakże program wywołujący wciąż musi obsłużyć możliwość utraty danych, "
311 "jeśli I<size> jest za małe. Funkcja zwraca długość łańcucha, który "
312 "B<strlcat>() próbowało utworzyć; jeśli wartość zwrócona jest większa lub "
313 "równa I<size>, to część danych została utracona. Jeśli utrata danych ma "
314 "znaczenie, to program wywołujący I<musi> albo sprawdzać argumenty przed "
315 "wywołaniem, albo sprawdzać wartość zwracaną. B<strlcat>() nie jest obecna w "
316 "glibc i nie jest opisana w standardzie POSIX, jednak jest dostępna w "
317 "Linuksie w bibliotece I<libbsd>."
318
319 #. type: SH
320 #: opensuse-leap-15-6
321 #, no-wrap
322 msgid "EXAMPLE"
323 msgstr "PRZYKŁAD"
324
325 #. type: Plain text
326 #: opensuse-leap-15-6
327 msgid ""
328 "Because B<strcat>() and B<strncat>() must find the null byte that "
329 "terminates the string I<dest> using a search that starts at the beginning of "
330 "the string, the execution time of these functions scales according to the "
331 "length of the string I<dest>. This can be demonstrated by running the "
332 "program below. (If the goal is to concatenate many strings to one target, "
333 "then manually copying the bytes from each source string while maintaining a "
334 "pointer to the end of the target string will provide better performance.)"
335 msgstr ""
336 "Ponieważ B<strcat>() i B<strncat>() muszą odnaleźć bajt null kończący "
337 "łańcuch I<dest> za pomocą wyszukiwania rozpoczynającego się od początku "
338 "łańcucha, czas wykonania tych funkcji skaluje się zgodnie z "
339 "długością łańcucha I<dest>. Można to pokazać wykonując poniższy program "
340 "(jeśli celem jest połączenie wielu łańcuchów, to ręczne skopiowanie bajtów z "
341 "każdego łańcucha źródłowego przy zachowaniu wskaźnika na koniec łańcucha "
342 "docelowego da lepszą wydajność)."
343
344 #. type: SS
345 #: opensuse-leap-15-6
346 #, no-wrap
347 msgid "Program source"
348 msgstr "Kod źródłowy programu"
349
350 #. type: Plain text
351 #: opensuse-leap-15-6
352 #, no-wrap
353 msgid ""
354 "#include E<lt>string.hE<gt>\n"
355 "#include E<lt>time.hE<gt>\n"
356 "#include E<lt>stdio.hE<gt>\n"
357 msgstr ""
358 "#include E<lt>string.hE<gt>\n"
359 "#include E<lt>time.hE<gt>\n"
360 "#include E<lt>stdio.hE<gt>\n"
361
362 #. type: Plain text
363 #: opensuse-leap-15-6
364 #, fuzzy, no-wrap
365 #| msgid ""
366 #| "int\n"
367 #| "main(int argc, char *argv[])\n"
368 #| "{\n"
369 #| "#define LIM 4000000\n"
370 #| " int j;\n"
371 #| " char p[LIM + 1]; /* +1 for terminating null byte */\n"
372 #| " time_t base;\n"
373 msgid ""
374 "int\n"
375 "main(int argc, char *argv[])\n"
376 "{\n"
377 "#define LIM 4000000\n"
378 " int j;\n"
379 " char p[LIM];\n"
380 " time_t base;\n"
381 msgstr ""
382 "int\n"
383 "main(int argc, char *argv[])\n"
384 "{\n"
385 "#define LIM 4000000\n"
386 " int j;\n"
387 " char p[LIM + 1]; /* +1 dla kończącego znaku null */\n"
388 " time_t base;\n"
389
390 #. type: Plain text
391 #: opensuse-leap-15-6
392 #, no-wrap
393 msgid ""
394 " base = time(NULL);\n"
395 " p[0] = \\(aq\\e0\\(aq;\n"
396 msgstr ""
397 " base = time(NULL);\n"
398 " p[0] = \\(aq\\e0\\(aq;\n"
399
400 #. type: Plain text
401 #: opensuse-leap-15-6
402 #, no-wrap
403 msgid ""
404 " for (j = 0; j E<lt> LIM; j++) {\n"
405 " if ((j % 10000) == 0)\n"
406 " printf(\"%d %ld\\en\", j, (long) (time(NULL) - base));\n"
407 " strcat(p, \"a\");\n"
408 " }\n"
409 "}\n"
410 msgstr ""
411 " for (j = 0; j E<lt> LIM; j++) {\n"
412 " if ((j % 10000) == 0)\n"
413 " printf(\"%d %ld\\en\", j, (long) (time(NULL) - base));\n"
414 " strcat(p, \"a\");\n"
415 " }\n"
416 "}\n"
417
418 #. type: SH
419 #: opensuse-leap-15-6
420 #, no-wrap
421 msgid "SEE ALSO"
422 msgstr "ZOBACZ TAKŻE"
423
424 #. type: Plain text
425 #: opensuse-leap-15-6
426 msgid ""
427 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<strcpy>(3), B<string>(3), "
428 "B<strncpy>(3), B<wcscat>(3), B<wcsncat>(3)"
429 msgstr ""
430 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<strcpy>(3), B<string>(3), "
431 "B<strncpy>(3), B<wcscat>(3), B<wcsncat>(3)"
432
433 #. type: SH
434 #: opensuse-leap-15-6
435 #, no-wrap
436 msgid "COLOPHON"
437 msgstr "O STRONIE"
438
439 #. type: Plain text
440 #: opensuse-leap-15-6
441 msgid ""
442 "This page is part of release 4.16 of the Linux I<man-pages> project. A "
443 "description of the project, information about reporting bugs, and the latest "
444 "version of this page, can be found at \\%https://www.kernel.org/doc/man-"
445 "pages/."
446 msgstr ""
447 "Angielska wersja tej strony pochodzi z wydania 4.16 projektu Linux I<man-"
448 "pages>. Opis projektu, informacje dotyczące zgłaszania błędów oraz najnowszą "
449 "wersję oryginału można znaleźć pod adresem \\%https://www.kernel.org/doc/man-"
450 "pages/."