Debian Codegraph @

po/pl/man3/cmsg.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.
5 # Robert Luberda <[email protected]>, 2013, 2019.
6 # Michał Kułach <[email protected]>, 2013, 2014, 2016, 2024.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: manpages-pl\n"
10 "POT-Creation-Date: 2026-06-05 06:21+0200\n"
11 "PO-Revision-Date: 2024-04-14 14:05+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 "CMSG"
27 msgstr "CMSG"
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 ""
53 "CMSG_ALIGN, CMSG_SPACE, CMSG_NXTHDR, CMSG_FIRSTHDR - access ancillary data"
54 msgstr ""
55 "CMSG_ALIGN, CMSG_SPACE, CMSG_NXTHDR, CMSG_FIRSTHDR - uzyskuje dostęp do "
56 "danych pomocniczych"
57
58 #. type: SH
59 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
60 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
61 #, no-wrap
62 msgid "LIBRARY"
63 msgstr "BIBLIOTEKA"
64
65 #. type: Plain text
66 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
67 #: opensuse-leap-16-1 opensuse-tumbleweed
68 msgid "Standard C library (I<libc>,\\ I<-lc>)"
69 msgstr "Standardowa biblioteka C (I<libc>,\\ I<-lc>)"
70
71 #. type: SH
72 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
73 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
74 #, no-wrap
75 msgid "SYNOPSIS"
76 msgstr "SKŁADNIA"
77
78 #. type: Plain text
79 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
80 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
81 #, no-wrap
82 msgid "B<#include E<lt>sys/socket.hE<gt>>\n"
83 msgstr "B<#include E<lt>sys/socket.hE<gt>>\n"
84
85 #. type: Plain text
86 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
87 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
88 #, no-wrap
89 msgid ""
90 "B<struct cmsghdr *CMSG_FIRSTHDR(struct msghdr *>I<msgh>B<);>\n"
91 "B<struct cmsghdr *CMSG_NXTHDR(struct msghdr *>I<msgh>B<,>\n"
92 "B< struct cmsghdr *>cmsgB<);>\n"
93 "B<size_t CMSG_ALIGN(size_t >I<length>B<);>\n"
94 "B<size_t CMSG_SPACE(size_t >I<length>B<);>\n"
95 "B<size_t CMSG_LEN(size_t >I<length>B<);>\n"
96 "B<unsigned char *CMSG_DATA(struct cmsghdr *>I<cmsg>B<);>\n"
97 msgstr ""
98 "B<struct cmsghdr *CMSG_FIRSTHDR(struct msghdr *>I<msgh>B<);>\n"
99 "B<struct cmsghdr *CMSG_NXTHDR(struct msghdr *>I<msgh>B<,>\n"
100 "B< struct cmsghdr *>cmsgB<);>\n"
101 "B<size_t CMSG_ALIGN(size_t >I<length>B<);>\n"
102 "B<size_t CMSG_SPACE(size_t >I<length>B<);>\n"
103 "B<size_t CMSG_LEN(size_t >I<length>B<);>\n"
104 "B<unsigned char *CMSG_DATA(struct cmsghdr *>I<cmsg>B<);>\n"
105
106 #. type: SH
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 #, no-wrap
110 msgid "DESCRIPTION"
111 msgstr "OPIS"
112
113 #. type: Plain text
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 msgid ""
117 "These macros are used to create and access control messages (also called "
118 "ancillary data) that are not a part of the socket payload. This control "
119 "information may include the interface the packet was received on, various "
120 "rarely used header fields, an extended error description, a set of file "
121 "descriptors, or UNIX credentials. For instance, control messages can be "
122 "used to send additional header fields such as IP options. Ancillary data is "
123 "sent by calling B<sendmsg>(2) and received by calling B<recvmsg>(2). See "
124 "their manual pages for more information."
125 msgstr ""
126 "Makrodefinicje te służą do tworzenia i dostępu do komunikatów sterujących "
127 "(zwanych również danymi pomocniczymi), które nie są częścią gniazda. Te "
128 "informacje sterujące mogą zawierać: interfejs, przez który pakiet został "
129 "odebrany, różne rzadko używane pola nagłówka, rozszerzony opis błędu, zestaw "
130 "deskryptorów plików lub uwierzytelnień uniksowych. Na przykład, komunikaty "
131 "sterujące mogą służyć do ustawiania dodatkowych pól nagłówka, takich jak "
132 "opcje IP, dla wysyłanych pakietów. Dane pomocnicze są wysyłane poprzez "
133 "wywołanie B<sendmsg>(2), a odbierane poprzez wywołanie B<recvmsg>(2). "
134 "Więcej informacji znajduje się na stronach podręcznika tych poleceń."
135
136 #. type: Plain text
137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
139 msgid ""
140 "Ancillary data is a sequence of I<cmsghdr> structures with appended data. "
141 "See the specific protocol man pages for the available control message "
142 "types. The maximum ancillary buffer size allowed per socket can be set "
143 "using I</proc/sys/net/core/optmem_max>; see B<socket>(7)."
144 msgstr ""
145 "Dane pomocnicze są ciągiem struktur I<cmsghdr> z dodanymi danymi. Dostępne "
146 "rodzaje komunikatów sterujących opisano na stronach podręcznika "
147 "poszczególnych protokołów. Maksymalny rozmiar bufora danych pomocniczych dla "
148 "gniazda można ustawić, używając I</proc/sys/net/core/optmem_max>; patrz "
149 "B<socket>(7)."
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 msgid "The I<cmsghdr> structure is defined as follows:"
155 msgstr "Struktura I<cmsghdr> jest zdefiniowana następująco:"
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 #, no-wrap
161 msgid ""
162 "struct cmsghdr {\n"
163 " size_t cmsg_len; /* Data byte count, including header\n"
164 " (type is socklen_t in POSIX) */\n"
165 " int cmsg_level; /* Originating protocol */\n"
166 " int cmsg_type; /* Protocol-specific type */\n"
167 "/* followed by\n"
168 " unsigned char cmsg_data[]; */\n"
169 "};\n"
170 msgstr ""
171 "struct cmsghdr {\n"
172 " size_t cmsg_len; /* Liczba bajtów danych, włączając nagłówek\n"
173 " (typ to socklen_t w POSIX) */\n"
174 " int cmsg_level; /* Protokół źródłowy */\n"
175 " int cmsg_type; /* Typ zależny od protokołu */\n"
176 "/* po których następuje\n"
177 " unsigned char cmsg_data[]; */\n"
178 "};\n"
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 "The sequence of I<cmsghdr> structures should never be accessed directly. "
185 "Instead, use only the following macros:"
186 msgstr ""
187 "Dostęp do ciągu struktur I<cmsghdr> nidy nie powinien się odbywać "
188 "bezpośrednio. Należy używać następujących makrodefinicji:"
189
190 #. type: TP
191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
193 #, no-wrap
194 msgid "B<CMSG_FIRSTHDR>()"
195 msgstr "B<CMSG_FIRSTHDR>()"
196
197 #. type: Plain text
198 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
199 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
200 msgid ""
201 "returns a pointer to the first I<cmsghdr> in the ancillary data buffer "
202 "associated with the passed I<msghdr>. It returns NULL if there isn't enough "
203 "space for a I<cmsghdr> in the buffer."
204 msgstr ""
205 "zwraca wskaźnik do pierwszego I<cmsghdr> w buforze danych pomocniczych "
206 "związanym z przekazanym I<msghdr>. Zwraca NULL, jeśli bufor jest za mały, by "
207 "pomieścić I<cmsghdr>."
208
209 #. type: TQ
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 #, no-wrap
213 msgid "B<CMSG_NXTHDR>()"
214 msgstr "B<CMSG_NXTHDR>()"
215
216 #. type: Plain text
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 msgid ""
220 "returns the next valid I<cmsghdr> after the passed I<cmsghdr>. It returns "
221 "NULL when there isn't enough space left in the buffer."
222 msgstr ""
223 "zwraca następny poprawny I<cmsghdr> po przekazanym I<cmsghdr>. Zwraca NULL, "
224 "gdy brak dostatecznej ilości miejsca w buforze."
225
226 #. type: Plain text
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 msgid ""
230 "When initializing a buffer that will contain a series of I<cmsghdr> "
231 "structures (e.g., to be sent with B<sendmsg>(2)), that buffer should first "
232 "be zero-initialized to ensure the correct operation of B<CMSG_NXTHDR>()."
233 msgstr ""
234 "Podczas inicjowania bufora, który ma zawierać ciąg struktur I<cmsghdr> (na "
235 "przykład w celu przesłania za pomocą B<sendmsg>(2)), bufor ten powinien być "
236 "najpierw inicjowany zerami, tak aby zapewnić poprawne działanie "
237 "B<CMSG_NXTHDR>()."
238
239 #. type: TP
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 #, no-wrap
243 msgid "B<CMSG_ALIGN>(),"
244 msgstr "B<CMSG_ALIGN>(),"
245
246 #. type: Plain text
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 msgid ""
250 "given a length, returns it including the required alignment. This is a "
251 "constant expression."
252 msgstr ""
253 "zwraca żądaną długość, włączając niezbędne wyrównanie. Jest to wyrażenie "
254 "stałe."
255
256 #. type: TP
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 #, no-wrap
260 msgid "B<CMSG_SPACE>()"
261 msgstr "B<CMSG_SPACE>()"
262
263 #. type: Plain text
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 msgid ""
267 "returns the number of bytes an ancillary element with payload of the passed "
268 "data length occupies. This is a constant expression."
269 msgstr ""
270 "zwraca liczbę bajtów elementu pomocniczego włączając długość, jaką zajmują "
271 "przekazane dane. Jest to wyrażenie stałe."
272
273 #. type: TQ
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 #, no-wrap
277 msgid "B<CMSG_DATA>()"
278 msgstr "B<CMSG_DATA>()"
279
280 #. type: Plain text
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 msgid ""
284 "returns a pointer to the data portion of a I<cmsghdr>. The pointer returned "
285 "cannot be assumed to be suitably aligned for accessing arbitrary payload "
286 "data types. Applications should not cast it to a pointer type matching the "
287 "payload, but should instead use B<memcpy>(3) to copy data to or from a "
288 "suitably declared object."
289 msgstr ""
290 "zwraca wskaźnik do części z danymi I<cmsghdr>. Nie można zakładać, że "
291 "zwracany wskaźnik zostanie wystarczająco wyrównany, do dostępu do dowolnych "
292 "typów zawartości danych. Aplikacje nie powinny rzutować go na typ wskaźnika "
293 "pasujący do zawartości, lecz korzystać z B<memcpy>(3), aby kopiować dane z, "
294 "lub do, odpowiednio zadeklarowanego obiektu."
295
296 #. type: TQ
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<CMSG_LEN>()"
301 msgstr "B<CMSG_LEN>()"
302
303 #. type: Plain text
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 msgid ""
307 "returns the value to store in the I<cmsg_len> member of the I<cmsghdr> "
308 "structure, taking into account any necessary alignment. It takes the data "
309 "length as an argument. This is a constant expression."
310 msgstr ""
311 "zwraca wartość, która ma być przechowywana w elemencie I<cmsg_len> struktury "
312 "I<cmsghdr>, biorąc pod uwagę wszelkie niezbędne wyrównania. Jako argument "
313 "pobiera długość danych. Jest to wyrażenie stałe."
314
315 #. type: Plain text
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 msgid ""
319 "To create ancillary data, first initialize the I<msg_controllen> member of "
320 "the I<msghdr> with the length of the control message buffer. Use "
321 "B<CMSG_FIRSTHDR>() on the I<msghdr> to get the first control message and "
322 "B<CMSG_NXTHDR>() to get all subsequent ones. In each control message, "
323 "initialize I<cmsg_len> (with B<CMSG_LEN>()), the other I<cmsghdr> header "
324 "fields, and the data portion using B<CMSG_DATA>(). Finally, the "
325 "I<msg_controllen> field of the I<msghdr> should be set to the sum of the "
326 "B<CMSG_SPACE>() of the length of all control messages in the buffer. For "
327 "more information on the I<msghdr>, see B<recvmsg>(2)."
328 msgstr ""
329 "Aby utworzyć dane pomocnicze, należy najpierw zainicjować element "
330 "I<msg_controllen> struktury I<msghdr> długością bufora komunikatów "
331 "sterujących. Należy użyć B<CMSG_FIRSTHDR>() dla I<msghdr>, aby otrzymać "
332 "pierwszy komunikat sterujący, oraz B<CMSG_NXTHDR>(), aby otrzymać wszystkie "
333 "następne. Dla każdego komunikatu sterującego należy zainicjować I<cmsg_len> "
334 "(za pomocą B<CMSG_LEN>()), inne pola nagłówka I<cmsghdr> oraz część "
335 "zawierającą dane za pomocą B<CMSG_DATA>(). Ostatecznie pole "
336 "I<msg_controllen> struktury I<msghdr> powinno zawierać sumę B<CMSG_SPACE>() "
337 "długości wszystkich komunikatów sterujących w buforze. Więcej informacji "
338 "dotyczących I<msghdr> znajduje się w B<recvmsg>(2)."
339
340 #. type: SH
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 #, no-wrap
344 msgid "VERSIONS"
345 msgstr "WERSJE"
346
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 msgid ""
351 "For portability, ancillary data should be accessed using only the macros "
352 "described here."
353 msgstr ""
354 "Dla przenośności, dostęp do danych pomocniczych powinien się odbywać jedynie "
355 "za pomocą opisanych tu makrodefinicji."
356
357 #. type: Plain text
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 msgid ""
361 "In Linux, B<CMSG_LEN>(), B<CMSG_DATA>(), and B<CMSG_ALIGN>() are constant "
362 "expressions (assuming their argument is constant), meaning that these values "
363 "can be used to declare the size of global variables. This may not be "
364 "portable, however."
365 msgstr ""
366 "W Linuksie, B<CMSG_LEN>(), B<CMSG_DATA>() i B<CMSG_ALIGN>() są wyrażeniami "
367 "stałymi (zakładając, że ich argument jest stały), co oznacza, że te wartości "
368 "można do zadeklarowania rozmiaru zmiennych globalnych. Jednakże, może się to "
369 "okazać nieprzenośne."
370
371 #. type: SH
372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
374 #, no-wrap
375 msgid "STANDARDS"
376 msgstr "STANDARDY"
377
378 #. type: Plain text
379 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
380 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
381 msgid "POSIX.1-2008."
382 msgstr "POSIX.1-2008."
383
384 #. type: TQ
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 #, no-wrap
388 msgid "B<CMSG_ALIGN>()"
389 msgstr "B<CMSG_ALIGN>()"
390
391 #. type: Plain text
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 msgid "Linux."
395 msgstr "Linux."
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 "HISTORY"
402 msgstr "HISTORIA"
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 "This ancillary data model conforms to the POSIX.1g draft, 4.4BSD-Lite, the "
409 "IPv6 advanced API described in RFC\\ 2292 and SUSv2."
410 msgstr ""
411 "Ten model danych pomocniczych jest zgodny ze szkicem POSIX.1g, z 4.4BSD-"
412 "Lite, z zaawansowanym API dla IPv6 opisanym w RFC\\ 2292 oraz z SUSv2."
413
414 #. https://www.austingroupbugs.net/view.php?id=978#c3242
415 #. type: Plain text
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 msgid ""
419 "B<CMSG_SPACE>() and B<CMSG_LEN>() will be included in the next POSIX "
420 "release (Issue 8)."
421 msgstr ""
422 "B<CMSG_SPACE>() i B<CMSG_LEN>() będą objęte następnym wydaniem POSIX (Issue "
423 "8)."
424
425 #. type: SH
426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
428 #, no-wrap
429 msgid "EXAMPLES"
430 msgstr "PRZYKŁADY"
431
432 #. type: Plain text
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 msgid ""
436 "This code looks for the B<IP_TTL> option in a received ancillary buffer:"
437 msgstr ""
438 "Następujący kod poszukuje opcji B<IP_TTL> w otrzymanym buforze pomocniczym:"
439
440 #. type: Plain text
441 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
442 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
443 #, no-wrap
444 msgid ""
445 "struct msghdr msgh;\n"
446 "struct cmsghdr *cmsg;\n"
447 "int received_ttl;\n"
448 "\\&\n"
449 "/* Receive auxiliary data in msgh */\n"
450 "\\&\n"
451 "for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL;\n"
452 " cmsg = CMSG_NXTHDR(&msgh, cmsg)) {\n"
453 " if (cmsg-E<gt>cmsg_level == IPPROTO_IP\n"
454 " && cmsg-E<gt>cmsg_type == IP_TTL) {\n"
455 " memcpy(&receive_ttl, CMSG_DATA(cmsg), sizeof(received_ttl));\n"
456 " break;\n"
457 " }\n"
458 "}\n"
459 "\\&\n"
460 "if (cmsg == NULL) {\n"
461 " /* Error: IP_TTL not enabled or small buffer or I/O error */\n"
462 "}\n"
463 msgstr ""
464 "struct msghdr msgh;\n"
465 "struct cmsghdr *cmsg;\n"
466 "int received_ttl;\n"
467 "\\&\n"
468 "/* Otrzymywanie danych pomocniczych w msgh */\n"
469 "\\&\n"
470 "for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL;\n"
471 " cmsg = CMSG_NXTHDR(&msgh, cmsg)) {\n"
472 " if (cmsg-E<gt>cmsg_level == IPPROTO_IP\n"
473 " && cmsg-E<gt>cmsg_type == IP_TTL) {\n"
474 " memcpy(&receive_ttl, CMSG_DATA(cmsg), sizeof(received_ttl));\n"
475 " break;\n"
476 " }\n"
477 "}\n"
478 "\\&\n"
479 "if (cmsg == NULL) {\n"
480 " /* Błąd: nie włączono IP_TTL lub mały bufor lub błąd we/wy */\n"
481 "}\n"
482
483 #. type: Plain text
484 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
485 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
486 msgid ""
487 "The code below passes an array of file descriptors over a UNIX domain socket "
488 "using B<SCM_RIGHTS>:"
489 msgstr ""
490 "Poniższy kod przekazuje tablicę deskryptorów plików przez gniazdo domeny "
491 "UNIX B<SCM_RIGHTS>:"
492
493 #. type: Plain text
494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
496 #, no-wrap
497 msgid ""
498 "struct msghdr msg = { 0 };\n"
499 "struct cmsghdr *cmsg;\n"
500 "int myfds[NUM_FD]; /* Contains the file descriptors to pass */\n"
501 "char iobuf[1];\n"
502 "struct iovec io = {\n"
503 " .iov_base = iobuf,\n"
504 " .iov_len = sizeof(iobuf)\n"
505 "};\n"
506 "union { /* Ancillary data buffer, wrapped in a union\n"
507 " in order to ensure it is suitably aligned */\n"
508 " char buf[CMSG_SPACE(sizeof(myfds))];\n"
509 " struct cmsghdr align;\n"
510 "} u;\n"
511 "\\&\n"
512 "msg.msg_iov = &io;\n"
513 "msg.msg_iovlen = 1;\n"
514 "msg.msg_control = u.buf;\n"
515 "msg.msg_controllen = sizeof(u.buf);\n"
516 "cmsg = CMSG_FIRSTHDR(&msg);\n"
517 "cmsg-E<gt>cmsg_level = SOL_SOCKET;\n"
518 "cmsg-E<gt>cmsg_type = SCM_RIGHTS;\n"
519 "cmsg-E<gt>cmsg_len = CMSG_LEN(sizeof(myfds));\n"
520 "memcpy(CMSG_DATA(cmsg), myfds, sizeof(myfds));\n"
521 msgstr ""
522 "struct msghdr msg = { 0 };\n"
523 "struct cmsghdr *cmsg;\n"
524 "int myfds[NUM_FD]; /* Zawiera przekazywane deskryptory plików */\n"
525 "char iobuf[1];\n"
526 "struct iovec io = {\n"
527 " .iov_base = iobuf,\n"
528 " .iov_len = sizeof(iobuf)\n"
529 "};\n"
530 "union { /* Bufor danych pomocniczych, opakowany w unię,\n"
531 " aby zapewnić jego odpowiednie wyrównanie */\n"
532 " char buf[CMSG_SPACE(sizeof(myfds))];\n"
533 " struct cmsghdr align;\n"
534 "} u;\n"
535 "\\&\n"
536 "msg.msg_iov = &io;\n"
537 "msg.msg_iovlen = 1;\n"
538 "msg.msg_control = u.buf;\n"
539 "msg.msg_controllen = sizeof(u.buf);\n"
540 "cmsg = CMSG_FIRSTHDR(&msg);\n"
541 "cmsg-E<gt>cmsg_level = SOL_SOCKET;\n"
542 "cmsg-E<gt>cmsg_type = SCM_RIGHTS;\n"
543 "cmsg-E<gt>cmsg_len = CMSG_LEN(sizeof(myfds));\n"
544 "memcpy(CMSG_DATA(cmsg), myfds, sizeof(myfds));\n"
545
546 #. type: Plain text
547 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
548 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
549 msgid ""
550 "For a complete code example that shows passing of file descriptors over a "
551 "UNIX domain socket, see B<seccomp_unotify>(2)."
552 msgstr ""
553 "Pełny kod, pokazujący także przekazywanie deskryptorów pliku przez gniazdo "
554 "domeny Uniksa, znajduje się w podręczniku B<seccomp_unotify>(2)."
555
556 #. type: SH
557 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
558 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
559 #, no-wrap
560 msgid "SEE ALSO"
561 msgstr "ZOBACZ TAKŻE"
562
563 #. type: Plain text
564 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
565 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
566 msgid "B<recvmsg>(2), B<sendmsg>(2)"
567 msgstr "B<recvmsg>(2), B<sendmsg>(2)"
568
569 #. type: Plain text
570 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
571 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
572 msgid "RFC\\ 2292"
573 msgstr "RFC\\ 2292"
574
575 #. type: TH
576 #: debian-trixie
577 #, no-wrap
578 msgid "2024-05-02"
579 msgstr "2 maja 2024 r."
580
581 #. type: TH
582 #: debian-trixie
583 #, no-wrap
584 msgid "Linux man-pages 6.9.1"
585 msgstr "Linux man-pages 6.9.1"
586
587 #. type: Plain text
588 #: debian-trixie
589 msgid "Standard C library (I<libc>, I<-lc>)"
590 msgstr "Standardowa biblioteka C (I<libc>, I<-lc>)"
591
592 #. type: TH
593 #: fedora-44 fedora-rawhide
594 #, no-wrap
595 msgid "2024-07-23"
596 msgstr "23 lipca 2024 r."
597
598 #. type: TH
599 #: fedora-44 fedora-rawhide
600 #, no-wrap
601 msgid "Linux man-pages 6.13"
602 msgstr "Linux man-pages 6.13"
603
604 #. type: TH
605 #: mageia-cauldron
606 #, no-wrap
607 msgid "Linux man-pages 6.17"
608 msgstr "Linux man-pages 6.17"
609
610 #. type: TH
611 #: opensuse-leap-16-1 opensuse-tumbleweed
612 #, no-wrap
613 msgid "Linux man-pages (unreleased)"
614 msgstr "Linux man-pages (niewydane)"