Debian Codegraph @

po/pl/man2/pipe.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:35+0200\n"
11 "PO-Revision-Date: 2025-05-09 22:30+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 22.12.3\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 "pipe"
27 msgstr "pipe"
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 "pipe, pipe2 - create pipe"
53 msgstr "pipe, pipe2 - tworzy potok"
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-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 #, no-wrap
86 msgid "B<int pipe(int >I<pipefd>B<[2]);>\n"
87 msgstr "B<int pipe(int >I<pipefd>B<[2]);>\n"
88
89 #. type: Plain text
90 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
91 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
92 #, no-wrap
93 msgid ""
94 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
95 "B<#include E<lt>fcntl.hE<gt>> /* Definition of B<O_*> constants */\n"
96 "B<#include E<lt>unistd.hE<gt>>\n"
97 msgstr ""
98 "B<#define _GNU_SOURCE> /* Zob. feature_test_macros(7) */\n"
99 "B<#include E<lt>fcntl.hE<gt>> /* Definicja stałych B<O_*> */\n"
100 "B<#include E<lt>unistd.hE<gt>>\n"
101
102 #. type: Plain text
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 #, no-wrap
106 msgid "B<int pipe2(int >I<pipefd>B<[2], int >I<flags>B<);>\n"
107 msgstr "B<int pipe2(int >I<pipefd>B<[2], int >I<flags>B<);>\n"
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 #, no-wrap
113 msgid ""
114 "/* On Alpha, IA-64, MIPS, SuperH, and SPARC/SPARC64, pipe() has the\n"
115 " following prototype; see VERSIONS */\n"
116 msgstr ""
117 "/* Na Alpha, IA-64, MIPS, SuperH i SPARC/SPARC64, pipe() ma poniższy\n"
118 " prototyp; zob. WERSJE */\n"
119
120 #. type: Plain text
121 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
122 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
123 #, no-wrap
124 msgid ""
125 "B<struct fd_pair {>\n"
126 "B<long fd[2];>\n"
127 "B<};>\n"
128 "B<struct fd_pair pipe(void);>\n"
129 msgstr ""
130 "B<struct fd_pair {>\n"
131 "B<long fd[2];>\n"
132 "B<};>\n"
133 "B<struct fd_pair pipe(void);>\n"
134
135 #. type: SH
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 #, no-wrap
139 msgid "DESCRIPTION"
140 msgstr "OPIS"
141
142 #. type: Plain text
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 msgid ""
146 "B<pipe>() creates a pipe, a unidirectional data channel that can be used "
147 "for interprocess communication. The array I<pipefd> is used to return two "
148 "file descriptors referring to the ends of the pipe. I<pipefd[0]> refers to "
149 "the read end of the pipe. I<pipefd[1]> refers to the write end of the "
150 "pipe. Data written to the write end of the pipe is buffered by the kernel "
151 "until it is read from the read end of the pipe. For further details, see "
152 "B<pipe>(7)."
153 msgstr ""
154 "B<pipe>() tworzy potok, jednokierunkowy kanał danych, służący do komunikacji "
155 "między procesami. Tablica I<pipefd> służy do zwrócenia dwóch deskryptorów "
156 "pliku odnoszących się do końców potoku. I<pipefd[0]> odnosi się do końca do "
157 "odczytu. I<pipefd[1]> odnosi się do końca do zapisu. Dane zapisywane do "
158 "końca do zapisu potoku są buforowane przez jądro, do momentu ich odczytania "
159 "z końca do odczytu potoku. Więcej szczegółów opisano w podręczniku "
160 "B<pipe>(7)."
161
162 #. type: Plain text
163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
165 msgid ""
166 "If I<flags> is 0, then B<pipe2>() is the same as B<pipe>(). The following "
167 "values can be bitwise ORed in I<flags> to obtain different behavior:"
168 msgstr ""
169 "Jeśli I<flags> ma wartość 0, to B<pipe2>() jest równoważne B<pipe>(). We "
170 "I<flags> można określić sumę bitową (OR) poniższych wartości, aby uzyskać "
171 "odmienne zachowanie:"
172
173 #. type: TP
174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
176 #, no-wrap
177 msgid "B<O_CLOEXEC>"
178 msgstr "B<O_CLOEXEC>"
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 "Set the close-on-exec (B<FD_CLOEXEC>) flag on the two new file "
185 "descriptors. See the description of the same flag in B<open>(2) for "
186 "reasons why this may be useful."
187 msgstr ""
188 "Ustawia znacznik zamknij-przy-wykonaniu (close-on-exec; B<FD_CLOEXEC>) na "
189 "dwóch nowych deskryptorach pliku. Powody, dla których może być to przydatne, "
190 "wskazano w opisie tego samego znacznika w podręczniku B<open>(2)."
191
192 #. type: TP
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 #, no-wrap
196 msgid "B<O_DIRECT> (since Linux 3.4)"
197 msgstr "B<O_DIRECT> (od Linuksa 3.4)"
198
199 #. commit 9883035ae7edef3ec62ad215611cb8e17d6a1a5d
200 #. type: Plain text
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 msgid ""
204 "Create a pipe that performs I/O in \"packet\" mode. Each B<write>(2) to "
205 "the pipe is dealt with as a separate packet, and B<read>(2)s from the pipe "
206 "will read one packet at a time. Note the following points:"
207 msgstr ""
208 "Tworzy potok, który przeprowadza wejście/wyjście w trybie \\[Bq]pakietowym\\"
209 "[rq]. Każdy zapis (B<write>(2)) do potoku jest traktowany jako oddzielny "
210 "pakiet, a odczyt (B<read>(2)) z potoku odczyta jednocześnie pojedynczy "
211 "pakiet. Proszę zauważyć, że:"
212
213 #. type: IP
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 #, no-wrap
217 msgid "\\[bu]"
218 msgstr "\\[bu]"
219
220 #. type: Plain text
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 msgid ""
224 "Writes of greater than B<PIPE_BUF> bytes (see B<pipe>(7)) will be split "
225 "into multiple packets. The constant B<PIPE_BUF> is defined in "
226 "I<E<lt>limits.hE<gt>>."
227 msgstr ""
228 "Zapis więcej niż B<PIPE_BUF> bajtów (zob. B<pipe>(7)) zostanie podzielony na "
229 "kilka pakietów. Stała B<PIPE_BUF> jest zdefiniowana w I<E<lt>limits.hE<gt>>."
230
231 #. type: Plain text
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 msgid ""
235 "If a B<read>(2) specifies a buffer size that is smaller than the next "
236 "packet, then the requested number of bytes are read, and the excess bytes in "
237 "the packet are discarded. Specifying a buffer size of B<PIPE_BUF> will be "
238 "sufficient to read the largest possible packets (see the previous point)."
239 msgstr ""
240 "Jeśli odczyt (B<read>(2)) określi rozmiar bufora mniejszy niż następny "
241 "pakiet, to odczytywana jest żądana liczba bajtów, a dodatkowe bajty pakietu "
242 "są odrzucane. Podanie rozmiar bufora w wielkości B<PIPE_BUF> wystarczy do "
243 "odczytu nawet największych możliwych pakietów (zob. poprzedni punkt)."
244
245 #. type: Plain text
246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
248 msgid ""
249 "Zero-length packets are not supported. (A B<read>(2) that specifies a "
250 "buffer size of zero is a no-op, and returns 0.)"
251 msgstr ""
252 "Pakiety zerowej długości nie są obsługiwane (odczyt \\[em] B<read>(2), "
253 "określający rozmiar bufora na zero, będzie instrukcją pustą i zwróci 0)."
254
255 #. type: Plain text
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 msgid ""
259 "Older kernels that do not support this flag will indicate this via an "
260 "B<EINVAL> error."
261 msgstr ""
262 "Starsze jądra, które nie obsługują tego znacznika, zasygnalizują ten fakt za "
263 "pomocą błędu B<EINVAL>."
264
265 #. commit 0dbf5f20652108106cb822ad7662c786baaa03ff
266 #. FIXME . But, it is not possible to specify O_DIRECT when opening a FIFO
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 "Since Linux 4.5, it is possible to change the B<O_DIRECT> setting of a pipe "
272 "file descriptor using B<fcntl>(2)."
273 msgstr ""
274 "Od Linuksa 4.5, można zmienić ustawienie B<O_DIRECT> deskryptora pliku "
275 "potoku za pomocą B<fcntl>(2)."
276
277 #. type: TP
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 #, no-wrap
281 msgid "B<O_NONBLOCK>"
282 msgstr "B<O_NONBLOCK>"
283
284 #. type: Plain text
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 msgid ""
288 "Set the B<O_NONBLOCK> file status flag on the open file descriptions "
289 "referred to by the new file descriptors. Using this flag saves extra calls "
290 "to B<fcntl>(2) to achieve the same result."
291 msgstr ""
292 "Ustawia znacznik stanu pliku B<O_NONBLOCK> na opisach otwartego pliku (OFD), "
293 "na które wskazują deskryptory nowych plików. Można w ten sposób oszczędzić "
294 "sobie dodatkowych wywołań do B<fcntl>(2), uzyskując ten sam rezultat."
295
296 #. type: TP
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 #, no-wrap
300 msgid "B<O_NOTIFICATION_PIPE>"
301 msgstr "B<O_NOTIFICATION_PIPE>"
302
303 #. commit c73be61cede5882f9605a852414db559c0ebedfd
304 #. type: Plain text
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 msgid ""
308 "Since Linux 5.8, general notification mechanism is built on the top of the "
309 "pipe where kernel splices notification messages into pipes opened by user "
310 "space. The owner of the pipe has to tell the kernel which sources of events "
311 "to watch and filters can also be applied to select which subevents should be "
312 "placed into the pipe."
313 msgstr ""
314 "Od Linuksa 5.8, wokół potoków zbudowano ogólny mechanizm powiadomień, w "
315 "którym jądro wplata komunikaty z powiadomieniami do potoków otwartych przez "
316 "przestrzeń użytkownika. Właściciel potoku musi przekazać jądru, jakie źródło "
317 "zdarzeń ma obserwować oraz jakie filtry mają być zastosowane, w celu "
318 "wybrania zdarzeń podrzędnych, które mają być umieszczone w potoku."
319
320 #. type: SH
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 #, no-wrap
324 msgid "RETURN VALUE"
325 msgstr "WARTOŚĆ ZWRACANA"
326
327 #. type: Plain text
328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
330 msgid ""
331 "On success, zero is returned. On error, -1 is returned, I<errno> is set to "
332 "indicate the error, and I<pipefd> is left unchanged."
333 msgstr ""
334 "Po pomyślnym zakończeniu zwracane jest zero. W przypadku błędu zwracane jest "
335 "-1 i ustawiane I<errno> wskazując błąd, a I<pipefd> pozostaje bez zmian."
336
337 #. http://austingroupbugs.net/view.php?id=467
338 #. type: Plain text
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 msgid ""
342 "On Linux (and other systems), B<pipe>() does not modify I<pipefd> on "
343 "failure. A requirement standardizing this behavior was added in "
344 "POSIX.1-2008 TC2. The Linux-specific B<pipe2>() system call likewise does "
345 "not modify I<pipefd> on failure."
346 msgstr ""
347 "W Linuksie (i innych systemach), B<pipe>() nie modyfikuje I<pipefd> w "
348 "przypadku błędu. Wymaganie standaryzujące to zachowanie dodano w normie "
349 "POSIX.1-2008 TC2. Typowo linuksowe wywołanie systemowe B<pipe2>() również "
350 "nie modyfikuje I<pipefd> w przypadku błędu."
351
352 #. type: SH
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 #, no-wrap
356 msgid "ERRORS"
357 msgstr "BŁĘDY"
358
359 #. type: TP
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 #, no-wrap
363 msgid "B<EFAULT>"
364 msgstr "B<EFAULT>"
365
366 #. type: Plain text
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 msgid "I<pipefd> is not valid."
370 msgstr "I<pipefd> jest nieprawidłowy."
371
372 #. type: TP
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 #, no-wrap
376 msgid "B<EINVAL>"
377 msgstr "B<EINVAL>"
378
379 #. type: Plain text
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 msgid "(B<pipe2>()) Invalid value in I<flags>."
383 msgstr "(B<pipe2>()) Nieprawidłowa wartość we I<flags>."
384
385 #. type: TP
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 #, no-wrap
389 msgid "B<EMFILE>"
390 msgstr "B<EMFILE>"
391
392 #. type: Plain text
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 msgid ""
396 "The per-process limit on the number of open file descriptors has been "
397 "reached."
398 msgstr ""
399 "Zostało osiągnięte ograniczenie na liczbę otwartych deskryptorów plików dla "
400 "procesu."
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<ENFILE>"
407 msgstr "B<ENFILE>"
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 ""
413 "The system-wide limit on the total number of open files has been reached."
414 msgstr ""
415 "Zostało osiągnięte systemowe ograniczenie na całkowitą liczbę otwartych "
416 "plików."
417
418 #. type: Plain text
419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
421 msgid ""
422 "The user hard limit on memory that can be allocated for pipes has been "
423 "reached and the caller is not privileged; see B<pipe>(7)."
424 msgstr ""
425 "Osiągnięto bezwzględny limit pamięci jaką można przydzielić potokom, a "
426 "wywołujący nie jest uprzywilejowany, zob. B<pipe>(7)."
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<ENOPKG>"
433 msgstr "B<ENOPKG>"
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 ""
439 "(B<pipe2>()) B<O_NOTIFICATION_PIPE> was passed in I<flags> and support for "
440 "notifications (B<CONFIG_WATCH_QUEUE>) is not compiled into the kernel."
441 msgstr ""
442 "(B<pipe2>()) We I<flags> podano B<O_NOTIFICATION_PIPE>, a obsługa "
443 "powiadomień (B<CONFIG_WATCH_QUEUE>) nie została wbudowana w jądro."
444
445 #. type: SH
446 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
447 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
448 #, no-wrap
449 msgid "VERSIONS"
450 msgstr "WERSJE"
451
452 #. See http://math-atlas.sourceforge.net/devel/assembly/64.psabi.1.33.ps.Z
453 #. for example, section 3.2.1 "Registers and the Stack Frame".
454 #. type: Plain text
455 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
456 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
457 msgid ""
458 "The System V ABI on some architectures allows the use of more than one "
459 "register for returning multiple values; several architectures (namely, "
460 "Alpha, IA-64, MIPS, SuperH, and SPARC/SPARC64) (ab)use this feature in "
461 "order to implement the B<pipe>() system call in a functional manner: the "
462 "call doesn't take any arguments and returns a pair of file descriptors as "
463 "the return value on success. The glibc B<pipe>() wrapper function "
464 "transparently deals with this. See B<syscall>(2) for information regarding "
465 "registers used for storing second file descriptor."
466 msgstr ""
467 "ABI Systemu V na niektórych architekturach umożliwia używanie więcej niż "
468 "jednego rejestru, w celu zwracania kilku wartości; wiele architektur (w tym "
469 "Alpha, IA-64, MIPS, SuperH i SPARC/SPARC64) (nad)używa tej funkcjonalności w "
470 "celu implementacji wywołania systemowego B<pipe>() w sposób funkcyjny: "
471 "wywołanie nie przyjmuje żadnych argumentów i zwraca parę deskryptorów pliku "
472 "w przypadku powodzenia. Funkcja opakowująca B<pipe>() z glibc radzi sobie z "
473 "tym w sposób przezroczysty. Podręcznik B<syscall>(2) zawiera więcej "
474 "informacji na temat rejestrów używanych do przechowywania drugiego "
475 "deskryptora pliku."
476
477 #. type: SH
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 #, no-wrap
481 msgid "STANDARDS"
482 msgstr "STANDARDY"
483
484 #. type: Plain text
485 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
486 #: opensuse-tumbleweed
487 msgid "POSIX.1-2024."
488 msgstr "POSIX.1-2024."
489
490 #. type: SH
491 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
492 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
493 #, no-wrap
494 msgid "HISTORY"
495 msgstr "HISTORIA"
496
497 #. type: TP
498 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
499 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
500 #, no-wrap
501 msgid "B<pipe>()"
502 msgstr "B<pipe>()"
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."
508 msgstr "POSIX.1-2001."
509
510 #. type: TP
511 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
512 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
513 #, no-wrap
514 msgid "B<pipe2>()"
515 msgstr "B<pipe2>()"
516
517 #. type: Plain text
518 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
519 #: opensuse-tumbleweed
520 msgid "POSIX.1-2024. Linux 2.6.27, glibc 2.9."
521 msgstr "POSIX.1-2024. Linux 2.6.27, glibc 2.9."
522
523 #. type: SH
524 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
525 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
526 #, no-wrap
527 msgid "EXAMPLES"
528 msgstr "PRZYKŁADY"
529
530 #. fork.2 refers to this example program.
531 #. type: Plain text
532 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
533 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
534 msgid ""
535 "The following program creates a pipe, and then B<fork>(2)s to create a child "
536 "process; the child inherits a duplicate set of file descriptors that refer "
537 "to the same pipe. After the B<fork>(2), each process closes the file "
538 "descriptors that it doesn't need for the pipe (see B<pipe>(7)). The parent "
539 "then writes the string contained in the program's command-line argument to "
540 "the pipe, and the child reads this string a byte at a time from the pipe and "
541 "echoes it on standard output."
542 msgstr ""
543 "Poniższy program tworzy potok, następnie tworzy nowy proces potomny za "
544 "pomocą B<fork>(2); potomek dziedziczy zduplikowany zestaw deskryptorów "
545 "pliku, odnoszący się do tego samego potoku. Po wykonaniu B<fork>(2), każdy "
546 "proces zamyka deskryptory pliku, które nie są potrzebne potokowi (zob. "
547 "B<pipe>(7)). Rodzic zapisuje następnie łańcuch zawierający argumenty wiersza "
548 "poleceń programu do potoku, a potomek odczytuje ten łańcuch z potoku bajt po "
549 "bajcie i wypisuje go na standardowe wyjście."
550
551 #. type: SS
552 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
553 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
554 #, no-wrap
555 msgid "Program source"
556 msgstr "Kod źródłowy programu"
557
558 #. type: Plain text
559 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
560 #: opensuse-leap-16-1 opensuse-tumbleweed
561 #, no-wrap
562 msgid ""
563 "#include E<lt>err.hE<gt>\n"
564 "#include E<lt>stdio.hE<gt>\n"
565 "#include E<lt>stdlib.hE<gt>\n"
566 "#include E<lt>string.hE<gt>\n"
567 "#include E<lt>sys/types.hE<gt>\n"
568 "#include E<lt>sys/wait.hE<gt>\n"
569 "#include E<lt>unistd.hE<gt>\n"
570 "\\&\n"
571 "int\n"
572 "main(int argc, char *argv[])\n"
573 "{\n"
574 " int pipefd[2];\n"
575 " char buf;\n"
576 " pid_t cpid;\n"
577 "\\&\n"
578 " if (argc != 2) {\n"
579 " fprintf(stderr, \"Usage: %s E<lt>stringE<gt>\\[rs]n\", argv[0]);\n"
580 " exit(EXIT_FAILURE);\n"
581 " }\n"
582 "\\&\n"
583 " if (pipe(pipefd) == -1)\n"
584 " err(EXIT_FAILURE, \"pipe\");\n"
585 "\\&\n"
586 " cpid = fork();\n"
587 " if (cpid == -1)\n"
588 " err(EXIT_FAILURE, \"fork\");\n"
589 "\\&\n"
590 " if (cpid == 0) { /* Child reads from pipe */\n"
591 " if (close(pipefd[1]) == -1) /* Close unused write end */\n"
592 " err(EXIT_FAILURE, \"close\");\n"
593 "\\&\n"
594 " while (read(pipefd[0], &buf, 1) E<gt> 0) {\n"
595 " if (write(STDOUT_FILENO, &buf, 1) != 1)\n"
596 " err(EXIT_FAILURE, \"write\");\n"
597 " }\n"
598 "\\&\n"
599 " if (write(STDOUT_FILENO, \"\\[rs]n\", 1) != 1)\n"
600 " err(EXIT_FAILURE, \"write\");\n"
601 " if (close(pipefd[0]) == -1)\n"
602 " err(EXIT_FAILURE, \"close\");\n"
603 " _exit(EXIT_SUCCESS);\n"
604 "\\&\n"
605 " } else { /* Parent writes argv[1] to pipe */\n"
606 " if (close(pipefd[0]) == -1) /* Close unused read end */\n"
607 " err(EXIT_FAILURE, \"close\");\n"
608 " if (write(pipefd[1], argv[1], strlen(argv[1])) != strlen(argv[1]))\n"
609 " err(EXIT_FAILURE, \"write\");\n"
610 " if (close(pipefd[1]) == -1) /* Reader will see EOF */\n"
611 " err(EXIT_FAILURE, \"close\");\n"
612 " if (wait(NULL) == -1) /* Wait for child */\n"
613 " err(EXIT_FAILURE, \"wait\");\n"
614 " exit(EXIT_SUCCESS);\n"
615 " }\n"
616 "}\n"
617 msgstr ""
618 "#include E<lt>err.hE<gt>\n"
619 "#include E<lt>stdio.hE<gt>\n"
620 "#include E<lt>stdlib.hE<gt>\n"
621 "#include E<lt>string.hE<gt>\n"
622 "#include E<lt>sys/types.hE<gt>\n"
623 "#include E<lt>sys/wait.hE<gt>\n"
624 "#include E<lt>unistd.hE<gt>\n"
625 "\\&\n"
626 "int\n"
627 "main(int argc, char *argv[])\n"
628 "{\n"
629 " int pipefd[2];\n"
630 " char buf;\n"
631 " pid_t cpid;\n"
632 "\\&\n"
633 " if (argc != 2) {\n"
634 " fprintf(stderr, \"Użycie: %s E<lt>łańcuchE<gt>\\[rs]n\", argv[0]);\n"
635 " exit(EXIT_FAILURE);\n"
636 " }\n"
637 "\\&\n"
638 " if (pipe(pipefd) == -1)\n"
639 " err(EXIT_FAILURE, \"pipe\");\n"
640 "\\&\n"
641 " cpid = fork();\n"
642 " if (cpid == -1)\n"
643 " err(EXIT_FAILURE, \"fork\");\n"
644 "\\&\n"
645 " if (cpid == 0) { /* Potomek odczytuje z potoku */\n"
646 " if (close(pipefd[1]) == -1) /* Zamknięcie nieużywanego końca do zapisu */\n"
647 " err(EXIT_FAILURE, \"close\");\n"
648 "\\&\n"
649 " while (read(pipefd[0], &buf, 1) E<gt> 0) {\n"
650 " if (write(STDOUT_FILENO, &buf, 1) != 1)\n"
651 " err(EXIT_FAILURE, \"write\");\n"
652 " }\n"
653 "\\&\n"
654 " if (write(STDOUT_FILENO, \"\\[rs]n\", 1) != 1)\n"
655 " err(EXIT_FAILURE, \"write\");\n"
656 " if (close(pipefd[0]) == -1)\n"
657 " err(EXIT_FAILURE, \"close\");\n"
658 " _exit(EXIT_SUCCESS);\n"
659 "\\&\n"
660 " } else { /* Rodzic zapisuje argv[1] do potoku */\n"
661 " if (close(pipefd[0]) == -1) /* Zamkn. nieuż. końca do odczytu */\n"
662 " err(EXIT_FAILURE, \"close\");\n"
663 " if (write(pipefd[1], argv[1], strlen(argv[1])) != strlen(argv[1]))\n"
664 " err(EXIT_FAILURE, \"write\");\n"
665 " if (close(pipefd[1]) == -1) /* Czytający zobaczy EOF */\n"
666 " err(EXIT_FAILURE, \"close\");\n"
667 " if (wait(NULL) == -1) /* Czekanie na potomka */\n"
668 " err(EXIT_FAILURE, \"wait\");\n"
669 " exit(EXIT_SUCCESS);\n"
670 " }\n"
671 "}\n"
672
673 #. SRC END
674 #. type: SH
675 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
676 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
677 #, no-wrap
678 msgid "SEE ALSO"
679 msgstr "ZOBACZ TAKŻE"
680
681 #. type: Plain text
682 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
683 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
684 msgid ""
685 "B<fork>(2), B<read>(2), B<socketpair>(2), B<splice>(2), B<tee>(2), "
686 "B<vmsplice>(2), B<write>(2), B<popen>(3), B<pipe>(7)"
687 msgstr ""
688 "B<fork>(2), B<read>(2), B<socketpair>(2), B<splice>(2), B<tee>(2), "
689 "B<vmsplice>(2), B<write>(2), B<popen>(3), B<pipe>(7)"
690
691 #. type: TH
692 #: debian-trixie
693 #, no-wrap
694 msgid "2024-06-15"
695 msgstr "15 czerwca 2024 r."
696
697 #. type: TH
698 #: debian-trixie
699 #, no-wrap
700 msgid "Linux man-pages 6.9.1"
701 msgstr "Linux man-pages 6.9.1"
702
703 #. type: Plain text
704 #: debian-trixie
705 msgid "Standard C library (I<libc>, I<-lc>)"
706 msgstr "Standardowa biblioteka C (I<libc>, I<-lc>)"
707
708 #. type: Plain text
709 #: debian-trixie fedora-44 fedora-rawhide
710 msgid "POSIX.1-2008."
711 msgstr "POSIX.1-2008."
712
713 #. type: Plain text
714 #: debian-trixie fedora-44 fedora-rawhide
715 msgid "Linux."
716 msgstr "Linux."
717
718 #. type: Plain text
719 #: debian-trixie fedora-44 fedora-rawhide
720 msgid "Linux 2.6.27, glibc 2.9."
721 msgstr "Linux 2.6.27, glibc 2.9."
722
723 #. type: Plain text
724 #: debian-trixie
725 #, no-wrap
726 msgid ""
727 "#include E<lt>stdio.hE<gt>\n"
728 "#include E<lt>stdlib.hE<gt>\n"
729 "#include E<lt>string.hE<gt>\n"
730 "#include E<lt>sys/types.hE<gt>\n"
731 "#include E<lt>sys/wait.hE<gt>\n"
732 "#include E<lt>unistd.hE<gt>\n"
733 "\\&\n"
734 "int\n"
735 "main(int argc, char *argv[])\n"
736 "{\n"
737 " int pipefd[2];\n"
738 " char buf;\n"
739 " pid_t cpid;\n"
740 "\\&\n"
741 " if (argc != 2) {\n"
742 " fprintf(stderr, \"Usage: %s E<lt>stringE<gt>\\[rs]n\", argv[0]);\n"
743 " exit(EXIT_FAILURE);\n"
744 " }\n"
745 "\\&\n"
746 " if (pipe(pipefd) == -1) {\n"
747 " perror(\"pipe\");\n"
748 " exit(EXIT_FAILURE);\n"
749 " }\n"
750 "\\&\n"
751 " cpid = fork();\n"
752 " if (cpid == -1) {\n"
753 " perror(\"fork\");\n"
754 " exit(EXIT_FAILURE);\n"
755 " }\n"
756 "\\&\n"
757 " if (cpid == 0) { /* Child reads from pipe */\n"
758 " close(pipefd[1]); /* Close unused write end */\n"
759 "\\&\n"
760 " while (read(pipefd[0], &buf, 1) E<gt> 0)\n"
761 " write(STDOUT_FILENO, &buf, 1);\n"
762 "\\&\n"
763 " write(STDOUT_FILENO, \"\\[rs]n\", 1);\n"
764 " close(pipefd[0]);\n"
765 " _exit(EXIT_SUCCESS);\n"
766 "\\&\n"
767 " } else { /* Parent writes argv[1] to pipe */\n"
768 " close(pipefd[0]); /* Close unused read end */\n"
769 " write(pipefd[1], argv[1], strlen(argv[1]));\n"
770 " close(pipefd[1]); /* Reader will see EOF */\n"
771 " wait(NULL); /* Wait for child */\n"
772 " exit(EXIT_SUCCESS);\n"
773 " }\n"
774 "}\n"
775 msgstr ""
776 "#include E<lt>stdio.hE<gt>\n"
777 "#include E<lt>stdlib.hE<gt>\n"
778 "#include E<lt>string.hE<gt>\n"
779 "#include E<lt>sys/types.hE<gt>\n"
780 "#include E<lt>sys/wait.hE<gt>\n"
781 "#include E<lt>unistd.hE<gt>\n"
782 "\\&\n"
783 "int\n"
784 "main(int argc, char *argv[])\n"
785 "{\n"
786 " int pipefd[2];\n"
787 " char buf;\n"
788 " pid_t cpid;\n"
789 "\\&\n"
790 " if (argc != 2) {\n"
791 " fprintf(stderr, \"Użycie: %s E<lt>łańcuchE<gt>\\[rs]n\", argv[0]);\n"
792 " exit(EXIT_FAILURE);\n"
793 " }\n"
794 "\\&\n"
795 " if (pipe(pipefd) == -1) {\n"
796 " perror(\"pipe\");\n"
797 " exit(EXIT_FAILURE);\n"
798 " }\n"
799 "\\&\n"
800 " cpid = fork();\n"
801 " if (cpid == -1) {\n"
802 " perror(\"fork\");\n"
803 " exit(EXIT_FAILURE);\n"
804 " }\n"
805 "\\&\n"
806 " if (cpid == 0) { /* Potomek odczytuje z potoku */\n"
807 " close(pipefd[1]); /* Zamknięcie nieużywanego końca do zapisu */\n"
808 "\\&\n"
809 " while (read(pipefd[0], &buf, 1) E<gt> 0)\n"
810 " write(STDOUT_FILENO, &buf, 1);\n"
811 "\\&\n"
812 " write(STDOUT_FILENO, \"\\[rs]n\", 1);\n"
813 " close(pipefd[0]);\n"
814 " _exit(EXIT_SUCCESS);\n"
815 "\\&\n"
816 " } else { /* Rodzic zapisuje argv[1] do potoku */\n"
817 " close(pipefd[0]); /* Zamkn. nieuż. końca do odczytu */\n"
818 " write(pipefd[1], argv[1], strlen(argv[1]));\n"
819 " close(pipefd[1]); /* Czytający zobaczy EOF */\n"
820 " wait(NULL); /* Czekanie na potomka */\n"
821 " exit(EXIT_SUCCESS);\n"
822 " }\n"
823 "}\n"
824
825 #. type: TH
826 #: fedora-44 fedora-rawhide
827 #, no-wrap
828 msgid "2024-07-23"
829 msgstr "23 lipca 2024 r."
830
831 #. type: TH
832 #: fedora-44 fedora-rawhide
833 #, no-wrap
834 msgid "Linux man-pages 6.13"
835 msgstr "Linux man-pages 6.13"
836
837 #. type: TH
838 #: mageia-cauldron
839 #, no-wrap
840 msgid "Linux man-pages 6.17"
841 msgstr "Linux man-pages 6.17"
842
843 #. type: TH
844 #: opensuse-leap-16-1 opensuse-tumbleweed
845 #, no-wrap
846 msgid "Linux man-pages (unreleased)"
847 msgstr "Linux man-pages (niewydane)"