| 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]>, 2003. |
| 5 |
# Robert Luberda <[email protected]>, 2006, 2012. |
| 6 |
# Michał Kułach <[email protected]>, 2013, 2014, 2016, 2024, 2025. |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: manpages-pl\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:50+0200\n" |
| 11 |
"PO-Revision-Date: 2025-12-05 22:40+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 |
"X-Generator: Lokalize 25.04.0\n" |
| 19 |
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " |
| 20 |
"|| n%100>=20) ? 1 : 2);\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 "UNIX" |
| 27 |
msgstr "UNIX" |
| 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 "unix - sockets for local interprocess communication" |
| 53 |
msgstr "unix - gniazda lokalnej komunikacji międzyprocesowej" |
| 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 "SYNOPSIS" |
| 60 |
msgstr "SKŁADNIA" |
| 61 |
|
| 62 |
#. type: Plain text |
| 63 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 64 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 65 |
#, no-wrap |
| 66 |
msgid "" |
| 67 |
"B<#include E<lt>sys/socket.hE<gt>>\n" |
| 68 |
"B<#include E<lt>sys/un.hE<gt>>\n" |
| 69 |
msgstr "" |
| 70 |
"B<#include E<lt>sys/socket.hE<gt>>\n" |
| 71 |
"B<#include E<lt>sys/un.hE<gt>>\n" |
| 72 |
|
| 73 |
#. type: Plain text |
| 74 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 75 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 76 |
#, no-wrap |
| 77 |
msgid "" |
| 78 |
"I<unix_socket>B< = socket(AF_UNIX, type, 0);>\n" |
| 79 |
"I<error>B< = socketpair(AF_UNIX, type, 0, int *>I<sv>B<);>\n" |
| 80 |
msgstr "" |
| 81 |
"I<unix_socket>B< = socket(AF_UNIX, type, 0);>\n" |
| 82 |
"I<error>B< = socketpair(AF_UNIX, type, 0, int *>I<sv>B<);>\n" |
| 83 |
|
| 84 |
#. type: SH |
| 85 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 86 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 87 |
#, no-wrap |
| 88 |
msgid "DESCRIPTION" |
| 89 |
msgstr "OPIS" |
| 90 |
|
| 91 |
#. type: Plain text |
| 92 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 93 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 94 |
msgid "" |
| 95 |
"The B<AF_UNIX> (also known as B<AF_LOCAL>) socket family is used to " |
| 96 |
"communicate between processes on the same machine efficiently. " |
| 97 |
"Traditionally, UNIX domain sockets can be either unnamed, or bound to a " |
| 98 |
"filesystem pathname (marked as being of type socket). Linux also supports " |
| 99 |
"an abstract namespace which is independent of the filesystem." |
| 100 |
msgstr "" |
| 101 |
"Rodzina gniazd B<AF_UNIX> (znana również jako B<AF_LOCAL>) służy do wydajnej " |
| 102 |
"komunikacji pomiędzy procesami na tej samej maszynie. Zgodnie z tradycją, " |
| 103 |
"gniazda domeny uniksowej mogą być albo anonimowe (tworzone przez " |
| 104 |
"B<socketpair>(2)), albo skojarzone z plikiem typu gniazda. Linux wspiera " |
| 105 |
"również abstrakcyjną przestrzeń nazw, niezależną od systemu plików." |
| 106 |
|
| 107 |
#. type: Plain text |
| 108 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 109 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 110 |
msgid "" |
| 111 |
"Valid socket types in the UNIX domain are: B<SOCK_STREAM>, for a stream-" |
| 112 |
"oriented socket; B<SOCK_DGRAM>, for a datagram-oriented socket that " |
| 113 |
"preserves message boundaries (as on most UNIX implementations, UNIX domain " |
| 114 |
"datagram sockets are always reliable and don't reorder datagrams); and " |
| 115 |
"(since Linux 2.6.4) B<SOCK_SEQPACKET>, for a sequenced-packet socket that " |
| 116 |
"is connection-oriented, preserves message boundaries, and delivers messages " |
| 117 |
"in the order that they were sent." |
| 118 |
msgstr "" |
| 119 |
"Poprawne typy gniazd w domenie Uniksa to: B<SOCK_STREAM> dla gniazd " |
| 120 |
"strumieniowych, B<SOCK_DGRAM> dla gniazd datagramowych, które zachowują " |
| 121 |
"granice komunikatów (w przypadku większości implementacji Uniksa gniazda " |
| 122 |
"uniksowe są zawsze niezawodne i nie zmieniają kolejności datagramów), oraz " |
| 123 |
"(od wersji Linuksa 2.6.4) B<SOCK_SEQPACKET> dla gniazd pakietów " |
| 124 |
"sekwencyjnych zorientowanych połączeniowo, które zachowują granice " |
| 125 |
"komunikatu i dostarczają komunikaty w kolejności ich wysyłania." |
| 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 "" |
| 131 |
"UNIX domain sockets support passing file descriptors or process credentials " |
| 132 |
"to other processes using ancillary data." |
| 133 |
msgstr "" |
| 134 |
"Za pośrednictwem pomocniczych danych można przez gniazda domeny uniksowej " |
| 135 |
"przekazywać do innych procesów deskryptory plików i uwierzytelnienia " |
| 136 |
"procesów." |
| 137 |
|
| 138 |
#. type: SS |
| 139 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 140 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 141 |
#, no-wrap |
| 142 |
msgid "Address format" |
| 143 |
msgstr "Format adresu" |
| 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 "A UNIX domain socket address is represented in the following structure:" |
| 149 |
msgstr "" |
| 150 |
"Adres gniazda domeny uniksowej jest reprezentowany przez następującą " |
| 151 |
"strukturę:" |
| 152 |
|
| 153 |
#. #define UNIX_PATH_MAX 108 |
| 154 |
#. type: Plain text |
| 155 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 156 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 157 |
#, no-wrap |
| 158 |
msgid "" |
| 159 |
"struct sockaddr_un {\n" |
| 160 |
" sa_family_t sun_family; /* AF_UNIX */\n" |
| 161 |
" char sun_path[108]; /* Pathname */\n" |
| 162 |
"};\n" |
| 163 |
msgstr "" |
| 164 |
"struct sockaddr_un {\n" |
| 165 |
" sa_family_t sun_family; /* AF_UNIX */\n" |
| 166 |
" char sun_path[108]; /* Ścieżka */\n" |
| 167 |
"};\n" |
| 168 |
|
| 169 |
#. type: Plain text |
| 170 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 171 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 172 |
msgid "" |
| 173 |
"The I<sun_family> field always contains B<AF_UNIX>. On Linux, I<sun_path> " |
| 174 |
"is 108 bytes in size; see also BUGS, below." |
| 175 |
msgstr "" |
| 176 |
"Pole I<sun_family> zawsze zawiera B<AF_UNIX>. W Linuksie I<sun_path> ma " |
| 177 |
"rozmiar 108 bajtów, zob. też USTERKI poniżej." |
| 178 |
|
| 179 |
#. type: Plain text |
| 180 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 181 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 182 |
msgid "" |
| 183 |
"Various system calls (for example, B<bind>(2), B<connect>(2), and " |
| 184 |
"B<sendto>(2)) take a I<sockaddr_un> argument as input. Some other system " |
| 185 |
"calls (for example, B<getsockname>(2), B<getpeername>(2), B<recvfrom>(2), " |
| 186 |
"and B<accept>(2)) return an argument of this type." |
| 187 |
msgstr "" |
| 188 |
"Różne wywołania systemowe (np. B<bind>(2), B<connect>(2) i B<sendto>(2)) " |
| 189 |
"przyjmują argument I<sockaddr_un> jako wejście. Niektóre inne wywołania " |
| 190 |
"systemowe (np. B<getsockname>(2), B<getpeername>(2), B<recvfrom>(2) i " |
| 191 |
"B<accept>(2)) zwracają argument tego typu." |
| 192 |
|
| 193 |
#. type: Plain text |
| 194 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 195 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 196 |
msgid "" |
| 197 |
"Three types of address are distinguished in the I<sockaddr_un> structure:" |
| 198 |
msgstr "W strukturze I<sockaddr_un> rozróżniane są trzy typy adresów:" |
| 199 |
|
| 200 |
#. type: TP |
| 201 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 202 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 203 |
#, no-wrap |
| 204 |
msgid "pathname" |
| 205 |
msgstr "ścieżka" |
| 206 |
|
| 207 |
#. type: Plain text |
| 208 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 209 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 210 |
msgid "" |
| 211 |
"a UNIX domain socket can be bound to a null-terminated filesystem pathname " |
| 212 |
"using B<bind>(2). When the address of a pathname socket is returned (by one " |
| 213 |
"of the system calls noted above), its length is" |
| 214 |
msgstr "" |
| 215 |
"gniazdo domeny uniksowej może zostać związane z zakończoną znakiem NULL " |
| 216 |
"nazwą ścieżki systemowej za pomocą B<bind>(2). Jeśli adres ścieżki gniazda " |
| 217 |
"jest zwracany (przez jedno z ww. wywołań systemowych) to jego długością jest" |
| 218 |
|
| 219 |
#. type: Plain text |
| 220 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 221 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 222 |
#, no-wrap |
| 223 |
msgid "offsetof(struct sockaddr_un, sun_path) + strlen(sun_path) + 1\n" |
| 224 |
msgstr "offsetof(struct sockaddr_un, sun_path) + strlen(sun_path) + 1\n" |
| 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 |
"and I<sun_path> contains the null-terminated pathname. (On Linux, the above " |
| 231 |
"B<offsetof>() expression equates to the same value as " |
| 232 |
"I<sizeof(sa_family_t)>, but some other implementations include other fields " |
| 233 |
"before I<sun_path>, so the B<offsetof>() expression more portably describes " |
| 234 |
"the size of the address structure.)" |
| 235 |
msgstr "" |
| 236 |
"a I<sun_path> zawiera zakończoną null ścieżkę. (W Linuksie powyższe " |
| 237 |
"wyrażenie B<offsetof>() jest równe tej samej wartości co " |
| 238 |
"I<sizeof(sa_family_t)>, lecz niektóre inne implementacje dołączają inne pola " |
| 239 |
"przed I<sun_path>, więc bardziej przenośnie, wyrażenie B<offsetof>() opisuje " |
| 240 |
"rozmiar struktury adresu)." |
| 241 |
|
| 242 |
#. type: Plain text |
| 243 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 244 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 245 |
msgid "For further details of pathname sockets, see below." |
| 246 |
msgstr "Więcej informacji o ścieżkach gniazd znajduje się poniżej." |
| 247 |
|
| 248 |
#. type: TP |
| 249 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 250 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 251 |
#, no-wrap |
| 252 |
msgid "unnamed" |
| 253 |
msgstr "unnamed" |
| 254 |
|
| 255 |
#. There is quite some variation across implementations: FreeBSD |
| 256 |
#. says the length is 16 bytes, HP-UX 11 says it's zero bytes. |
| 257 |
#. type: Plain text |
| 258 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 259 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 260 |
msgid "" |
| 261 |
"A stream socket that has not been bound to a pathname using B<bind>(2) has " |
| 262 |
"no name. Likewise, the two sockets created by B<socketpair>(2) are " |
| 263 |
"unnamed. When the address of an unnamed socket is returned, its length is " |
| 264 |
"I<sizeof(sa_family_t)>, and I<sun_path> should not be inspected." |
| 265 |
msgstr "" |
| 266 |
"Gniazdo strumieniowe niezwiązane z nazwą ścieżki za pomocą B<bind>(2) nie " |
| 267 |
"jest nazwane. Podobnie dwa gniazda utworzone przez B<socketpair>(2) nie są " |
| 268 |
"nazwane. Jeśli adres nienazwanego gniazda jest zwracany, to jego długością " |
| 269 |
"jest I<sizeof(sa_family_t)>, a zawartość I<sun_path> nie powinna być " |
| 270 |
"sprawdzana." |
| 271 |
|
| 272 |
#. type: TP |
| 273 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 274 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 275 |
#, no-wrap |
| 276 |
msgid "abstract" |
| 277 |
msgstr "abstract" |
| 278 |
|
| 279 |
#. type: Plain text |
| 280 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 281 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 282 |
msgid "" |
| 283 |
"an abstract socket address is distinguished (from a pathname socket) by the " |
| 284 |
"fact that I<sun_path[0]> is a null byte (\\[aq]\\[rs]0\\[aq]). The socket's " |
| 285 |
"address in this namespace is given by the additional bytes in I<sun_path> " |
| 286 |
"that are covered by the specified length of the address structure. (Null " |
| 287 |
"bytes in the name have no special significance.) The name has no connection " |
| 288 |
"with filesystem pathnames. When the address of an abstract socket is " |
| 289 |
"returned, the returned I<addrlen> is greater than I<sizeof(sa_family_t)> " |
| 290 |
"(i.e., greater than 2), and the name of the socket is contained in the first " |
| 291 |
"I<(addrlen - sizeof(sa_family_t))> bytes of I<sun_path>." |
| 292 |
msgstr "" |
| 293 |
"adres gniazda abstrakcyjnego jest rozróżniany (od adresu ścieżki) po tym, że " |
| 294 |
"I<sun_path[0]> jest bajtem NULL (\\[aq]\\[rs]0\\[aq]). Adres gniazda " |
| 295 |
"znajduje się w przestrzeni nazw podanej w dodatkowych bajtach w I<sun_path>, " |
| 296 |
"które są pokryte przez długość struktury adresu (Bajty NULL w nazwie nie " |
| 297 |
"mają żadnego specjalnego znaczenia). Nazwa nie ma żadnego powiązania z nazwą " |
| 298 |
"pliku w systemie plików. Zwracany adres gniazda abstrakcyjnego ma w polu " |
| 299 |
"I<addrlen> ustawioną długość większą niż I<sizeof(sa_family_t)> (tj. większą " |
| 300 |
"niż 2), a nazwa gniazda zawarta jest w pierwszych I<(addrlen - " |
| 301 |
"sizeof(sa_family_t))> bajtach pola I<sun_path>." |
| 302 |
|
| 303 |
#. type: SS |
| 304 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 305 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 306 |
#, no-wrap |
| 307 |
msgid "Pathname sockets" |
| 308 |
msgstr "Ścieżki gniazd" |
| 309 |
|
| 310 |
#. type: Plain text |
| 311 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 312 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 313 |
msgid "" |
| 314 |
"When binding a socket to a pathname, a few rules should be observed for " |
| 315 |
"maximum portability and ease of coding:" |
| 316 |
msgstr "" |
| 317 |
"Przy przypisywaniu gniazda do ścieżki powinno się przestrzegać kilku zasad w " |
| 318 |
"celu maksymalnej przenośności i łatwości programowania:" |
| 319 |
|
| 320 |
#. type: IP |
| 321 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 322 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 323 |
#, no-wrap |
| 324 |
msgid "\\[bu]" |
| 325 |
msgstr "\\[bu]" |
| 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 "The pathname in I<sun_path> should be null-terminated." |
| 331 |
msgstr "Ścieżka w I<sun_path> powinna być zakończona znakiem NULL." |
| 332 |
|
| 333 |
#. type: Plain text |
| 334 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 335 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 336 |
msgid "" |
| 337 |
"The length of the pathname, including the terminating null byte, should not " |
| 338 |
"exceed the size of I<sun_path>." |
| 339 |
msgstr "" |
| 340 |
"Długość ścieżki, w tym kończący bajt null nie powinna przekraczać rozmiaru " |
| 341 |
"I<sun_path>." |
| 342 |
|
| 343 |
#. type: Plain text |
| 344 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 345 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 346 |
msgid "" |
| 347 |
"The I<addrlen> argument that describes the enclosing I<sockaddr_un> " |
| 348 |
"structure should have a value of at least:" |
| 349 |
msgstr "" |
| 350 |
"Argument I<addrlen> opisujący obejmującą strukturę I<sockaddr_un> powinien " |
| 351 |
"mieć wartość przynajmniej:" |
| 352 |
|
| 353 |
#. type: Plain text |
| 354 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 355 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 356 |
#, no-wrap |
| 357 |
msgid "offsetof(struct sockaddr_un, sun_path)+strlen(addr.sun_path)+1\n" |
| 358 |
msgstr "offsetof(struct sockaddr_un, sun_path)+strlen(addr.sun_path)+1\n" |
| 359 |
|
| 360 |
#. type: Plain text |
| 361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 362 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 363 |
msgid "" |
| 364 |
"or, more simply, I<addrlen> can be specified as I<sizeof(struct " |
| 365 |
"sockaddr_un)>." |
| 366 |
msgstr "" |
| 367 |
"lub, prościej, I<addrlen> powinien być podany jako I<sizeof(struct " |
| 368 |
"sockaddr_un)>." |
| 369 |
|
| 370 |
#. Linux does this, including for the case where the supplied path |
| 371 |
#. is 108 bytes |
| 372 |
#. type: Plain text |
| 373 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 374 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 375 |
msgid "" |
| 376 |
"There is some variation in how implementations handle UNIX domain socket " |
| 377 |
"addresses that do not follow the above rules. For example, some (but not " |
| 378 |
"all) implementations append a null terminator if none is present in the " |
| 379 |
"supplied I<sun_path>." |
| 380 |
msgstr "" |
| 381 |
"W różnych implementacjach różnie obsługiwane są adresy gniazd domen Uniksa, " |
| 382 |
"które nie przestrzegają powyższych zaleceń. Na przykład niektóre (lecz nie " |
| 383 |
"wszystkie) implementacje dodają kończący znak null, jeśli nie jest on obecny " |
| 384 |
"w przekazanej I<sun_path>." |
| 385 |
|
| 386 |
#. HP-UX |
| 387 |
#. Modern BSDs generally have 104, Tru64 and AIX have 104, |
| 388 |
#. Solaris and Irix have 108 |
| 389 |
#. type: Plain text |
| 390 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 391 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 392 |
msgid "" |
| 393 |
"When coding portable applications, keep in mind that some implementations " |
| 394 |
"have I<sun_path> as short as 92 bytes." |
| 395 |
msgstr "" |
| 396 |
"Przy programowaniu przenośnych aplikacji proszę wziąć pod uwagę, że niektóre " |
| 397 |
"implementację mają I<sun_path> o długości zaledwie 92 bajtów." |
| 398 |
|
| 399 |
#. type: Plain text |
| 400 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 401 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 402 |
msgid "" |
| 403 |
"Various system calls (B<accept>(2), B<recvfrom>(2), B<getsockname>(2), " |
| 404 |
"B<getpeername>(2)) return socket address structures. When applied to UNIX " |
| 405 |
"domain sockets, the value-result I<addrlen> argument supplied to the call " |
| 406 |
"should be initialized as above. Upon return, the argument is set to " |
| 407 |
"indicate the I<actual> size of the address structure. The caller should " |
| 408 |
"check the value returned in this argument: if the output value exceeds the " |
| 409 |
"input value, then there is no guarantee that a null terminator is present in " |
| 410 |
"I<sun_path>. (See BUGS.)" |
| 411 |
msgstr "" |
| 412 |
"Różne wywołania systemowe (B<accept>(2), B<recvfrom>(2), B<getsockname>(2), " |
| 413 |
"B<getpeername>(2)) zwracają struktury adresów gniazd. Gdy chodzi o gniazda " |
| 414 |
"domeny Uniksa, wartość-rezultat argumentu I<addrlen> umieszczonego w " |
| 415 |
"wywołaniu powinna być zainicjowana jw. Gdy jest zwracany, argument ten jest " |
| 416 |
"ustawiany aby przedstawiać I<aktualny> rozmiar struktury adresu. Wywołujący " |
| 417 |
"powinien sprawdzić wartość zwracaną w tym argumencie, jeśli wartość " |
| 418 |
"wyjściowa przekracza wartość wejściową, to nie ma gwarancji, że kończący " |
| 419 |
"znak null jest obecny w I<sun_path> (zob PROBLEMY)." |
| 420 |
|
| 421 |
#. type: SS |
| 422 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 423 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 424 |
#, no-wrap |
| 425 |
msgid "Pathname socket ownership and permissions" |
| 426 |
msgstr "Własność i uprawnienia ścieżki gniazd" |
| 427 |
|
| 428 |
#. type: Plain text |
| 429 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 430 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 431 |
msgid "" |
| 432 |
"In the Linux implementation, pathname sockets honor the permissions of the " |
| 433 |
"directory they are in. Creation of a new socket fails if the process does " |
| 434 |
"not have write and search (execute) permission on the directory in which the " |
| 435 |
"socket is created." |
| 436 |
msgstr "" |
| 437 |
"W implementacji Linuksa, ścieżki gniazd honorują uprawnienia katalogów, w " |
| 438 |
"których się znajdują. Utworzenie nowego gniazda nie powiedzie się, jeśli " |
| 439 |
"proces nie ma uprawnień zapisu i wyszukiwania (wykonania) w katalogu, w " |
| 440 |
"którym tworzone jest gniazdo." |
| 441 |
|
| 442 |
#. type: Plain text |
| 443 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 444 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 445 |
msgid "" |
| 446 |
"On Linux, connecting to a stream socket object requires write permission on " |
| 447 |
"that socket; sending a datagram to a datagram socket likewise requires write " |
| 448 |
"permission on that socket. POSIX does not make any statement about the " |
| 449 |
"effect of the permissions on a socket file, and on some systems (e.g., older " |
| 450 |
"BSDs), the socket permissions are ignored. Portable programs should not " |
| 451 |
"rely on this feature for security." |
| 452 |
msgstr "" |
| 453 |
"W Linuksie, łączenie z gniazdem strumieniowym wymaga uprawnień zapisu w " |
| 454 |
"stosunku do tego gniazda; wysłanie datagramu do gniazda datagramowego " |
| 455 |
"również wymaga uprawnień zapisu gniazda. POSIX nie zabiera głosu w sprawie " |
| 456 |
"efektu uprawnień pliku gniazda i w niektórych systemach (np. starszych " |
| 457 |
"wersjach BSD) uprawnienia gniazd są ignorowane. Przenośne programy nie " |
| 458 |
"powinny opierać się na tym zachowaniu w celu zapewnienia bezpieczeństwa." |
| 459 |
|
| 460 |
#. type: Plain text |
| 461 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 462 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 463 |
msgid "" |
| 464 |
"When creating a new socket, the owner and group of the socket file are set " |
| 465 |
"according to the usual rules. The socket file has all permissions enabled, " |
| 466 |
"other than those that are turned off by the process B<umask>(2)." |
| 467 |
msgstr "" |
| 468 |
"Przy tworzeniu nowego gniazda, właściciel i grupa pliku gniazda są ustawiani " |
| 469 |
"zgodnie ze zwykłymi zasadami. Plik gniazda ma włączone wszystkie " |
| 470 |
"uprawnienia, poza tym wyłączonymi przez proces B<umask>(2)." |
| 471 |
|
| 472 |
#. However, fchown() and fchmod() do not seem to have an effect |
| 473 |
#. type: Plain text |
| 474 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 475 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 476 |
msgid "" |
| 477 |
"The owner, group, and permissions of a pathname socket can be changed (using " |
| 478 |
"B<chown>(2) and B<chmod>(2))." |
| 479 |
msgstr "" |
| 480 |
"Właściciela, grupę i uprawnienia ścieżki gniazda można zmienić (za pomocą " |
| 481 |
"B<chown>(2) i B<chmod>(2))." |
| 482 |
|
| 483 |
#. type: SS |
| 484 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 485 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 486 |
#, no-wrap |
| 487 |
msgid "Abstract sockets" |
| 488 |
msgstr "Gniazda abstrakcyjne" |
| 489 |
|
| 490 |
#. type: Plain text |
| 491 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 492 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 493 |
msgid "" |
| 494 |
"Socket permissions have no meaning for abstract sockets: the process " |
| 495 |
"B<umask>(2) has no effect when binding an abstract socket, and changing the " |
| 496 |
"ownership and permissions of the object (via B<fchown>(2) and " |
| 497 |
"B<fchmod>(2)) has no effect on the accessibility of the socket." |
| 498 |
msgstr "" |
| 499 |
"Uprawnienia gniazd nie mają znaczenia dla gniazd abstrakcyjnych: proces " |
| 500 |
"B<umask>(2) nie ma wpływu przy kojarzeniu z gniazdem abstrakcyjnym, a zmiana " |
| 501 |
"własności i uprawnień obiektu (za pomocą B<fchown>(2) i B<fchmod>(2)) nie " |
| 502 |
"wpływa na dostępność gniazda." |
| 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 "" |
| 508 |
"Abstract sockets automatically disappear when all open references to the " |
| 509 |
"socket are closed." |
| 510 |
msgstr "" |
| 511 |
"Gniazda abstrakcyjne automatycznie znikają po zamknięciu wszystkich " |
| 512 |
"otwartych odniesień do takich gniazd." |
| 513 |
|
| 514 |
#. type: Plain text |
| 515 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 516 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 517 |
msgid "The abstract socket namespace is a nonportable Linux extension." |
| 518 |
msgstr "" |
| 519 |
"Przestrzeń nazw gniazd abstrakcyjnych jest nieprzenośnym rozszerzeniem " |
| 520 |
"systemu Linux." |
| 521 |
|
| 522 |
#. type: SS |
| 523 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 524 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 525 |
#, no-wrap |
| 526 |
msgid "Socket options" |
| 527 |
msgstr "Opcje gniazda" |
| 528 |
|
| 529 |
#. type: Plain text |
| 530 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 531 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 532 |
msgid "" |
| 533 |
"For historical reasons, these socket options are specified with a " |
| 534 |
"B<SOL_SOCKET> type even though they are B<AF_UNIX> specific. They can be " |
| 535 |
"set with B<setsockopt>(2) and read with B<getsockopt>(2) by specifying " |
| 536 |
"B<SOL_SOCKET> as the socket family." |
| 537 |
msgstr "" |
| 538 |
"Ze względów historycznych następujące opcje gniazd są podawane przy typie " |
| 539 |
"B<SOL_SOCKET>, pomimo że są one specyficzne dla B<AF_UNIX>. Można je ustawić " |
| 540 |
"za pomocą B<setsockopt>(2), a odczytać za pomocą B<getsockopt>(2), podając " |
| 541 |
"B<SOL_SOCKET> jako rodzinę gniazd." |
| 542 |
|
| 543 |
#. type: TP |
| 544 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 545 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 546 |
#, no-wrap |
| 547 |
msgid "B<SO_PASSCRED>" |
| 548 |
msgstr "B<SO_PASSCRED>" |
| 549 |
|
| 550 |
#. type: Plain text |
| 551 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 552 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 553 |
msgid "" |
| 554 |
"Enabling this socket option causes receipt of the credentials of the sending " |
| 555 |
"process in an B<SCM_CREDENTIALS ancillary> message in each subsequently " |
| 556 |
"received message. The returned credentials are those specified by the " |
| 557 |
"sender using B<SCM_CREDENTIALS>, or a default that includes the sender's " |
| 558 |
"PID, real user ID, and real group ID, if the sender did not specify " |
| 559 |
"B<SCM_CREDENTIALS> ancillary data." |
| 560 |
msgstr "" |
| 561 |
"Włączenie tej opcji gniazda powoduje przekazanie uwierzytelnień wysyłającego " |
| 562 |
"procesu w pomocniczej wiadomości B<SCM_CREDENTIALS>, w każdej kolejnej " |
| 563 |
"odebranej wiadomości. Zwracanymi uwierzytelnieniami są te określone przez " |
| 564 |
"nadawcę za pomocą B<SCM_CREDENTIALS> lub, jeśli nadawca nie określił danych " |
| 565 |
"pomocniczych B<SCM_CREDENTIALS>, wartość domyślna zawierająca: identyfikator " |
| 566 |
"procesu, rzeczywisty identyfikator użytkownika i rzeczywisty identyfikator " |
| 567 |
"grupy nadawcy." |
| 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 "" |
| 573 |
"When this option is set and the socket is not yet connected, a unique name " |
| 574 |
"in the abstract namespace will be generated automatically." |
| 575 |
msgstr "" |
| 576 |
"Przy włączonej tej opcji i niepołączonym jeszcze gnieździe, unikatowa nazwa " |
| 577 |
"gniazda z abstrakcyjnej przestrzeni nazw jest generowana automatycznie." |
| 578 |
|
| 579 |
#. type: Plain text |
| 580 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 581 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 582 |
msgid "" |
| 583 |
"The value given as an argument to B<setsockopt>(2) and returned as the " |
| 584 |
"result of B<getsockopt>(2) is an integer boolean flag." |
| 585 |
msgstr "" |
| 586 |
"Podana wartość jest argumentem do B<setsockopt>(2), a zwracana jako wynik " |
| 587 |
"B<getsockopt>(2) jest flaga logiczna będąca liczbą całkowitą." |
| 588 |
|
| 589 |
#. type: TP |
| 590 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 591 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 592 |
#, no-wrap |
| 593 |
msgid "B<SO_PASSSEC>" |
| 594 |
msgstr "B<SO_PASSSEC>" |
| 595 |
|
| 596 |
#. type: Plain text |
| 597 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 598 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 599 |
msgid "" |
| 600 |
"Enables receiving of the SELinux security label of the peer socket in an " |
| 601 |
"ancillary message of type B<SCM_SECURITY> (see below)." |
| 602 |
msgstr "" |
| 603 |
"Włącza odbiór etykiety bezpieczeństwa SELinux drugiego gniazda w pomocniczym " |
| 604 |
"komunikacie typu B<SCM_SECURITY> (zob. niżej)." |
| 605 |
|
| 606 |
#. commit 877ce7c1b3afd69a9b1caeb1b9964c992641f52a |
| 607 |
#. commit 37a9a8df8ce9de6ea73349c9ac8bdf6ba4ec4f70 |
| 608 |
#. type: Plain text |
| 609 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 610 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 611 |
msgid "" |
| 612 |
"The B<SO_PASSSEC> option is supported for UNIX domain datagram sockets since " |
| 613 |
"Linux 2.6.18; support for UNIX domain stream sockets was added in Linux 4.2." |
| 614 |
msgstr "" |
| 615 |
"Opcja B<SO_PASSSEC> jest obsługiwana w datagramowych gniazdach domeny " |
| 616 |
"uniksowej od Linuksa 2.6.18; obsługę w gniazdach strumieniowych domeny " |
| 617 |
"uniksowej dodano w jądrze Linux 4.2." |
| 618 |
|
| 619 |
#. type: TP |
| 620 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 621 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 622 |
#, no-wrap |
| 623 |
msgid "B<SO_PEEK_OFF>" |
| 624 |
msgstr "B<SO_PEEK_OFF>" |
| 625 |
|
| 626 |
#. type: Plain text |
| 627 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 628 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 629 |
msgid "See B<socket>(7)." |
| 630 |
msgstr "Patrz B<socket>(7)." |
| 631 |
|
| 632 |
#. type: TP |
| 633 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 634 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 635 |
#, no-wrap |
| 636 |
msgid "B<SO_PEERCRED>" |
| 637 |
msgstr "B<SO_PEERCRED>" |
| 638 |
|
| 639 |
#. type: Plain text |
| 640 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 641 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 642 |
msgid "" |
| 643 |
"This read-only socket option returns the credentials of the peer process " |
| 644 |
"connected to this socket. The returned credentials are those that were in " |
| 645 |
"effect at the time of the call to B<connect>(2), B<listen>(2), or " |
| 646 |
"B<socketpair>(2)." |
| 647 |
msgstr "" |
| 648 |
"Jest to opcja gniazda tylko do odczytu, która zwraca uwierzytelnienia " |
| 649 |
"drugiego procesu skojarzonego z tym gniazdem. Zwracanymi uwierzytelnieniami " |
| 650 |
"są te, które obowiązywały w momencie wywołania B<connect>(2), B<listen>(2) " |
| 651 |
"lub B<socketpair>(2)." |
| 652 |
|
| 653 |
#. type: Plain text |
| 654 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 655 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 656 |
msgid "" |
| 657 |
"The argument to B<getsockopt>(2) is a pointer to a I<ucred> structure; " |
| 658 |
"define the B<_GNU_SOURCE> feature test macro to obtain the definition of " |
| 659 |
"that structure from I<E<lt>sys/socket.hE<gt>>." |
| 660 |
msgstr "" |
| 661 |
"Argumentem do B<getsockopt>(2) jest wskaźnik do struktury I<ucred>; należy " |
| 662 |
"zdefiniować makro testowe B<_GNU_SOURCE> aby pozyskać definicję tej " |
| 663 |
"struktury z I<E<lt>sys/socket.hE<gt>>." |
| 664 |
|
| 665 |
#. type: Plain text |
| 666 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 667 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 668 |
msgid "" |
| 669 |
"The use of this option is possible only for connected B<AF_UNIX> stream " |
| 670 |
"sockets and for B<AF_UNIX> stream and datagram socket pairs created using " |
| 671 |
"B<socketpair>(2)." |
| 672 |
msgstr "" |
| 673 |
"Opcji tej można używać wyłącznie w połączonych gniazdach strumieniowych " |
| 674 |
"B<AF_UNIX> oraz w parze gniazda strumieniowego i datagramowego B<AF_UNIX> " |
| 675 |
"utworzonej za pomocą B<socketpair>(2)." |
| 676 |
|
| 677 |
#. type: SS |
| 678 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 679 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 680 |
#, no-wrap |
| 681 |
msgid "Autobind feature" |
| 682 |
msgstr "Automatyczne przypisywanie adresów" |
| 683 |
|
| 684 |
#. i.e., sizeof(short) |
| 685 |
#. type: Plain text |
| 686 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 687 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 688 |
msgid "" |
| 689 |
"If a B<bind>(2) call specifies I<addrlen> as I<sizeof(sa_family_t)>, or the " |
| 690 |
"B<SO_PASSCRED> socket option was specified for a socket that was not " |
| 691 |
"explicitly bound to an address, then the socket is autobound to an abstract " |
| 692 |
"address. The address consists of a null byte followed by 5 bytes in the " |
| 693 |
"character set I<[0-9a-f]>. Thus, there is a limit of 2\\[ha]20 autobind " |
| 694 |
"addresses. (From Linux 2.1.15, when the autobind feature was added, 8 bytes " |
| 695 |
"were used, and the limit was thus 2\\[ha]32 autobind addresses. The change " |
| 696 |
"to 5 bytes came in Linux 2.3.15.)" |
| 697 |
msgstr "" |
| 698 |
"Jeśli w wywołaniu B<bind>(2) podane zostanie I<addrlen> równe " |
| 699 |
"I<sizeof(sa_family_t)> lub opcja B<SO_PASSCRED> gniazda była ustawiona dla " |
| 700 |
"gniazda nieprzypisanego do adresu, wtedy gniazdo jest automatycznie " |
| 701 |
"przypisywane do adresu abstrakcyjnego. Adres ten składa się z bajtu NULL, po " |
| 702 |
"którym następuje 5 bajtów ze zbioru znaków I<[0-9a-f]>. W związku z tym " |
| 703 |
"liczba automatycznie przypisywanych adresów jest ograniczona do 2\\[ha]20. " |
| 704 |
"(W Linuksie 2.1.15, w którym dodano możliwość automatycznego przypisywania " |
| 705 |
"adresów, i w kolejnych wersjach używane było 8 bajtów, a limit wynosił 2\\" |
| 706 |
"[ha]32 adresów. Zostało to zmienione na 5 bajtów w Linuksie 2.3.15)." |
| 707 |
|
| 708 |
#. type: SS |
| 709 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 710 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 711 |
#, no-wrap |
| 712 |
msgid "Sockets API" |
| 713 |
msgstr "API gniazd" |
| 714 |
|
| 715 |
#. type: Plain text |
| 716 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 717 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 718 |
msgid "" |
| 719 |
"The following paragraphs describe domain-specific details and unsupported " |
| 720 |
"features of the sockets API for UNIX domain sockets on Linux." |
| 721 |
msgstr "" |
| 722 |
"W kolejnych paragrafach opisano pewne szczegóły implementacji API gniazd " |
| 723 |
"domeny UNIX specyficzne dla Linuksa oraz cechy niewspierane." |
| 724 |
|
| 725 |
#. type: Plain text |
| 726 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 727 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 728 |
msgid "" |
| 729 |
"UNIX domain sockets do not support the transmission of out-of-band data (the " |
| 730 |
"B<MSG_OOB> flag for B<send>(2) and B<recv>(2))." |
| 731 |
msgstr "" |
| 732 |
"Gniazda z domeny uniksowej nie obsługują zawiadomienia o danych " |
| 733 |
"autonomicznych (flaga B<MSG_OOB> funkcji B<send>(2) i B<recv>(2))." |
| 734 |
|
| 735 |
#. type: Plain text |
| 736 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 737 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 738 |
msgid "" |
| 739 |
"The B<send>(2) B<MSG_MORE> flag is not supported by UNIX domain sockets." |
| 740 |
msgstr "" |
| 741 |
"Flaga B<MSG_MORE> funkcji B<send>(2) nie jest obsługiwana dla gniazd domeny " |
| 742 |
"uniksowej." |
| 743 |
|
| 744 |
#. commit 9f6f9af7694ede6314bed281eec74d588ba9474f |
| 745 |
#. type: Plain text |
| 746 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 747 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 748 |
msgid "" |
| 749 |
"Before Linux 3.4, the use of B<MSG_TRUNC> in the I<flags> argument of " |
| 750 |
"B<recv>(2) was not supported by UNIX domain sockets." |
| 751 |
msgstr "" |
| 752 |
"Przed Linuksem 3.4, użycie B<MSG_TRUNC> w argumencie I<flags> funkcji " |
| 753 |
"B<recv>(2) nie było obsługiwane dla gniazd domeny uniksowej." |
| 754 |
|
| 755 |
#. type: Plain text |
| 756 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 757 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 758 |
msgid "" |
| 759 |
"The B<SO_SNDBUF> socket option does have an effect for UNIX domain sockets, " |
| 760 |
"but the B<SO_RCVBUF> option does not. For datagram sockets, the " |
| 761 |
"B<SO_SNDBUF> value imposes an upper limit on the size of outgoing " |
| 762 |
"datagrams. This limit is calculated as the doubled (see B<socket>(7)) " |
| 763 |
"option value less 32 bytes used for overhead." |
| 764 |
msgstr "" |
| 765 |
"Opcja B<SO_SNDBUF> działa w przypadku gniazd domeny uniksowej, ale opcja " |
| 766 |
"B<SO_RCVBUF> już nie. Dla gniazd datagramowych wartość B<SO_SNDBUF> nakłada " |
| 767 |
"górny limit na rozmiar wychodzących datagramów. Limit ten jest liczony jako " |
| 768 |
"podwojona (patrz B<socket>(7)) wartość opcji minus 32 bajty wymagane na " |
| 769 |
"informacje niebędące danymi." |
| 770 |
|
| 771 |
#. type: SS |
| 772 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 773 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 774 |
#, no-wrap |
| 775 |
msgid "Ancillary messages" |
| 776 |
msgstr "Komunikaty pomocnicze" |
| 777 |
|
| 778 |
#. type: Plain text |
| 779 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 780 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 781 |
msgid "" |
| 782 |
"Ancillary data is sent and received using B<sendmsg>(2) and B<recvmsg>(2). " |
| 783 |
"For historical reasons, the ancillary message types listed below are " |
| 784 |
"specified with a B<SOL_SOCKET> type even though they are B<AF_UNIX> " |
| 785 |
"specific. To send them, set the I<cmsg_level> field of the struct " |
| 786 |
"I<cmsghdr> to B<SOL_SOCKET> and the I<cmsg_type> field to the type. For " |
| 787 |
"more information, see B<cmsg>(3)." |
| 788 |
msgstr "" |
| 789 |
"Dane pomocnicze są wysyłane i odbierane za pomocą B<sendmsg>(2) i " |
| 790 |
"B<recvmsg>(2). Ze względów historycznych komunikaty pomocnicze poniższych " |
| 791 |
"typów są podawane przy typie B<SOL_SOCKET>, pomimo że są one specyficzne dla " |
| 792 |
"B<AF_UNIX>. Aby je wysłać, należy ustawić pole I<cmsg_level> struktury " |
| 793 |
"I<cmsghdr> na B<SOL_SOCKET>, a pole I<cmsg_type> na typ. Więcej informacji " |
| 794 |
"można znaleźć w B<cmsg>(3)." |
| 795 |
|
| 796 |
#. type: TP |
| 797 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 798 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 799 |
#, no-wrap |
| 800 |
msgid "B<SCM_RIGHTS>" |
| 801 |
msgstr "B<SCM_RIGHTS>" |
| 802 |
|
| 803 |
#. type: Plain text |
| 804 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 805 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 806 |
msgid "" |
| 807 |
"Send or receive a set of open file descriptors from another process. The " |
| 808 |
"data portion contains an integer array of the file descriptors." |
| 809 |
msgstr "" |
| 810 |
"Odbieranie od innego procesu lub wysyłanie do niego zbioru otwartych " |
| 811 |
"deskryptorów plików. Porcja danych zawiera tablicę liczb całkowitych " |
| 812 |
"będących deskryptorami plików." |
| 813 |
|
| 814 |
#. type: Plain text |
| 815 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 816 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 817 |
msgid "" |
| 818 |
"Commonly, this operation is referred to as \"passing a file descriptor\" to " |
| 819 |
"another process. However, more accurately, what is being passed is a " |
| 820 |
"reference to an open file description (see B<open>(2)), and in the receiving " |
| 821 |
"process it is likely that a different file descriptor number will be used. " |
| 822 |
"Semantically, this operation is equivalent to duplicating (B<dup>(2)) a " |
| 823 |
"file descriptor into the file descriptor table of another process." |
| 824 |
msgstr "" |
| 825 |
"Potocznie, operacja ta jest nazywana \"przekazaniem deskryptora pliku\" do " |
| 826 |
"innego procesu. Jednak przyglądając się bliżej, można dostrzec że " |
| 827 |
"przekazywana jest referencja do otwartego deskryptora pliku (zob. " |
| 828 |
"B<open>(2)), a w procesie odbierającym prawdopodobnie użyty zostanie inny " |
| 829 |
"numer deskryptora pliku. Operacja ta jest semantycznie równoważna duplikacji " |
| 830 |
"(B<dup>(2)) deskryptora plików na tablicę deskryptora pliku innego procesu." |
| 831 |
|
| 832 |
#. type: Plain text |
| 833 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 834 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 835 |
msgid "" |
| 836 |
"If the buffer used to receive the ancillary data containing file descriptors " |
| 837 |
"is too small (or is absent), then the ancillary data is truncated (or " |
| 838 |
"discarded) and the excess file descriptors are automatically closed in the " |
| 839 |
"receiving process." |
| 840 |
msgstr "" |
| 841 |
"Jeśli bufor używany do odebrania danych pomocniczych zawierających " |
| 842 |
"deskryptory plików jest zbyt mały (lub jest nieobecny), to dane pomocnicze " |
| 843 |
"są przycinane (lub odrzucane), a nadmiarowe deskryptory plików są " |
| 844 |
"automatycznie zamykane przez proces odbierający." |
| 845 |
|
| 846 |
#. type: Plain text |
| 847 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 848 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 849 |
msgid "" |
| 850 |
"If the number of file descriptors received in the ancillary data would cause " |
| 851 |
"the process to exceed its B<RLIMIT_NOFILE> resource limit (see " |
| 852 |
"B<getrlimit>(2)), the excess file descriptors are automatically closed in " |
| 853 |
"the receiving process." |
| 854 |
msgstr "" |
| 855 |
"Jeśli liczba deskryptorów plików otrzymana w danych pomocniczych " |
| 856 |
"spowodowałaby wykroczenie przez proces poza jego limit zasobów " |
| 857 |
"B<RLIMIT_NOFILE> (zob. B<getrlimit>(2)), to nadmiarowe deskryptory plików " |
| 858 |
"zostaną automatycznie zamknięte przez proces odbierający." |
| 859 |
|
| 860 |
#. commit bba14de98753cb6599a2dae0e520714b2153522d |
| 861 |
#. type: Plain text |
| 862 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 863 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 864 |
msgid "" |
| 865 |
"The kernel constant B<SCM_MAX_FD> defines a limit on the number of file " |
| 866 |
"descriptors in the array. Attempting to send an array larger than this " |
| 867 |
"limit causes B<sendmsg>(2) to fail with the error B<EINVAL>. B<SCM_MAX_FD> " |
| 868 |
"has the value 253 (or 255 before Linux 2.6.38)." |
| 869 |
msgstr "" |
| 870 |
"Stała jądra B<SCM_MAX_FD> określa limit liczby deskryptorów plików w " |
| 871 |
"tablicy. Próba wysłania tablicy większej od limitu spowoduje błąd B<EINVAL> " |
| 872 |
"B<sendmsg>(2). B<SCM_MAX_FD> ma wartość 253 (lub 255 przed Linuksem 2.6.38)." |
| 873 |
|
| 874 |
#. type: TP |
| 875 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 876 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 877 |
#, no-wrap |
| 878 |
msgid "B<SCM_CREDENTIALS>" |
| 879 |
msgstr "B<SCM_CREDENTIALS>" |
| 880 |
|
| 881 |
#. type: Plain text |
| 882 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 883 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 884 |
msgid "" |
| 885 |
"Send or receive UNIX credentials. This can be used for authentication. The " |
| 886 |
"credentials are passed as a I<struct ucred> ancillary message. This " |
| 887 |
"structure is defined in I<E<lt>sys/socket.hE<gt>> as follows:" |
| 888 |
msgstr "" |
| 889 |
"Odbieranie lub wysyłanie uwierzytelnień uniksowych. Może służyć do " |
| 890 |
"autoryzacji. Uwierzytelnienia są przekazywane jako komunikat pomocniczy typu " |
| 891 |
"I<struct ucred>, zdefiniowanego w I<E<lt>sys/socket.hE<gt>> następująco:" |
| 892 |
|
| 893 |
#. type: Plain text |
| 894 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 895 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 896 |
#, no-wrap |
| 897 |
msgid "" |
| 898 |
"struct ucred {\n" |
| 899 |
" pid_t pid; /* Process ID of the sending process */\n" |
| 900 |
" uid_t uid; /* User ID of the sending process */\n" |
| 901 |
" gid_t gid; /* Group ID of the sending process */\n" |
| 902 |
"};\n" |
| 903 |
msgstr "" |
| 904 |
"struct ucred {\n" |
| 905 |
" pid_t pid; /* identyfikator procesu wysyłającego */\n" |
| 906 |
" uid_t uid; /* ident. użytkownika procesu wysyłającego */\n" |
| 907 |
" gid_t gid; /* ident. grupy procesu wysyłającego */\n" |
| 908 |
"};\n" |
| 909 |
|
| 910 |
#. type: Plain text |
| 911 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 912 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 913 |
msgid "" |
| 914 |
"Since glibc 2.8, the B<_GNU_SOURCE> feature test macro must be defined " |
| 915 |
"(before including I<any> header files) in order to obtain the definition of " |
| 916 |
"this structure." |
| 917 |
msgstr "" |
| 918 |
"Począwszy od wersji 2.8 biblioteki glibc, aby uzyskać dostęp do definicji " |
| 919 |
"powyższej struktury, należy zdefiniować makro B<_GNU_SOURCE> (przed " |
| 920 |
"dołączeniem I<jakichkolwiek> plików nagłówkowych)." |
| 921 |
|
| 922 |
#. type: Plain text |
| 923 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 924 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 925 |
msgid "" |
| 926 |
"The credentials which the sender specifies are checked by the kernel. A " |
| 927 |
"privileged process is allowed to specify values that do not match its own. " |
| 928 |
"The sender must specify its own process ID (unless it has the capability " |
| 929 |
"B<CAP_SYS_ADMIN>, in which case the PID of any existing process may be " |
| 930 |
"specified), its real user ID, effective user ID, or saved set-user-ID " |
| 931 |
"(unless it has B<CAP_SETUID>), and its real group ID, effective group ID, or " |
| 932 |
"saved set-group-ID (unless it has B<CAP_SETGID>)." |
| 933 |
msgstr "" |
| 934 |
"Jądro sprawdza uwierzytelnienia podane przez wysyłającego. Proces " |
| 935 |
"uprzywilejowany może podać wartości, które różnią się od jego własnych. W " |
| 936 |
"pozostałych przypadkach wysyłający musi podać swój własny identyfikator " |
| 937 |
"procesu (o ile nie ma ustawionego znacznika B<CAP_SYS_ADMIN>, w przypadku " |
| 938 |
"którym można podać identyfikator dowolnego istniejącego procesu), swój " |
| 939 |
"własny, rzeczywisty identyfikator użytkownika, efektywny identyfikator " |
| 940 |
"użytkownika lub ustawiony identyfikator użytkownika (o ile nie ma " |
| 941 |
"ustawionego znacznika B<CAP_SETUID>) oraz swój własny identyfikator grupy, " |
| 942 |
"efektywny identyfikator grupy lub ustawiony identyfikator grupy (o ile nie " |
| 943 |
"ma ustawionego znacznika B<CAP_SETGID>)." |
| 944 |
|
| 945 |
#. type: Plain text |
| 946 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 947 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 948 |
msgid "" |
| 949 |
"To receive a I<struct ucred> message, the B<SO_PASSCRED> option must be " |
| 950 |
"enabled on the socket." |
| 951 |
msgstr "" |
| 952 |
"Aby otrzymać komunikat typu I<struct ucred>, dla gniazda musi być włączona " |
| 953 |
"opcja B<SO_PASSCRED>." |
| 954 |
|
| 955 |
#. type: TP |
| 956 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 957 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 958 |
#, no-wrap |
| 959 |
msgid "B<SCM_SECURITY>" |
| 960 |
msgstr "B<SCM_SECURITY>" |
| 961 |
|
| 962 |
#. type: Plain text |
| 963 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 964 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 965 |
msgid "" |
| 966 |
"Receive the SELinux security context (the security label) of the peer " |
| 967 |
"socket. The received ancillary data is a null-terminated string containing " |
| 968 |
"the security context. The receiver should allocate at least B<NAME_MAX> " |
| 969 |
"bytes in the data portion of the ancillary message for this data." |
| 970 |
msgstr "" |
| 971 |
"Otrzymuje kontekst bezpieczeństwa SELinux (etykietę bezpieczeństwa) drugiego " |
| 972 |
"gniazda. Otrzymywane dane pomocnicze są łańcuchem zakończonym znakiem null, " |
| 973 |
"zawierającym kontekst bezpieczeństwa. Dla tych danych odbiorca powinien " |
| 974 |
"przydzielić co najmniej B<NAME_MAX> bajtów w porcji danych komunikatu " |
| 975 |
"pomocniczego." |
| 976 |
|
| 977 |
#. type: Plain text |
| 978 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 979 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 980 |
msgid "" |
| 981 |
"To receive the security context, the B<SO_PASSSEC> option must be enabled on " |
| 982 |
"the socket (see above)." |
| 983 |
msgstr "" |
| 984 |
"Do otrzymania kontekstu bezpieczeństwa konieczne jest włączenie w gnieździe " |
| 985 |
"opcji B<SO_PASSSEC> (zob. wyżej)." |
| 986 |
|
| 987 |
#. type: Plain text |
| 988 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 989 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 990 |
msgid "" |
| 991 |
"When sending ancillary data with B<sendmsg>(2), only one item of each of the " |
| 992 |
"above types may be included in the sent message." |
| 993 |
msgstr "" |
| 994 |
"Przy wysyłaniu danych pomocniczych za pomocą B<sendmsg>(2), w wysłanym " |
| 995 |
"komunikacie można podać tylko po jednej pozycji dla każdego z powyższych " |
| 996 |
"typów." |
| 997 |
|
| 998 |
#. type: Plain text |
| 999 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1000 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1001 |
msgid "" |
| 1002 |
"At least one byte of real data should be sent when sending ancillary data. " |
| 1003 |
"On Linux, this is required to successfully send ancillary data over a UNIX " |
| 1004 |
"domain stream socket. When sending ancillary data over a UNIX domain " |
| 1005 |
"datagram socket, it is not necessary on Linux to send any accompanying real " |
| 1006 |
"data. However, portable applications should also include at least one byte " |
| 1007 |
"of real data when sending ancillary data over a datagram socket." |
| 1008 |
msgstr "" |
| 1009 |
"Przy wysyłaniu danych pomocniczych konieczne jest przesłanie choć jednego " |
| 1010 |
"bajta rzeczywistych danych. W Linuksie jest to wymagane do poprawnego " |
| 1011 |
"wysłania danych pomocniczych za pomocą gniazda strumieniowego domeny " |
| 1012 |
"uniksowej. Przy wysyłaniu danych pomocniczych za pomocą gniazda " |
| 1013 |
"datagramowego domeny uniksowej, na Linuksie nie ma konieczności wysyłania " |
| 1014 |
"jakichkolwiek rzeczywistych danych. Przenośne aplikacje powinny jednak " |
| 1015 |
"również wysyłać choć jeden bajt rzeczywistych danych przy wysyłaniu danych " |
| 1016 |
"pomocniczych za pomocą gniazda datagramowego." |
| 1017 |
|
| 1018 |
#. type: Plain text |
| 1019 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1020 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1021 |
msgid "" |
| 1022 |
"When receiving from a stream socket, ancillary data forms a kind of barrier " |
| 1023 |
"for the received data. For example, suppose that the sender transmits as " |
| 1024 |
"follows:" |
| 1025 |
msgstr "" |
| 1026 |
"Przy odbieraniu z gniazda strumieniowego, dane pomocnicze stanowią w pewien " |
| 1027 |
"sposób barierę dla odbieranych danych. Proszę przyjąć przykładowo, że " |
| 1028 |
"nadawca transmituje:" |
| 1029 |
|
| 1030 |
#. type: IP |
| 1031 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1032 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1033 |
#, no-wrap |
| 1034 |
msgid "(1)" |
| 1035 |
msgstr "(1)" |
| 1036 |
|
| 1037 |
#. type: Plain text |
| 1038 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1039 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1040 |
msgid "B<sendmsg>(2) of four bytes, with no ancillary data." |
| 1041 |
msgstr "B<sendmsg>(2) o wielkości czterech bajtów, bez danych pomocniczych." |
| 1042 |
|
| 1043 |
#. type: IP |
| 1044 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1045 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1046 |
#, no-wrap |
| 1047 |
msgid "(2)" |
| 1048 |
msgstr "(2)" |
| 1049 |
|
| 1050 |
#. type: Plain text |
| 1051 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1052 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1053 |
msgid "B<sendmsg>(2) of one byte, with ancillary data." |
| 1054 |
msgstr "B<sendmsg>(2) o wielkości jednego bajta, z danymi pomocniczymi." |
| 1055 |
|
| 1056 |
#. type: IP |
| 1057 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1058 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1059 |
#, no-wrap |
| 1060 |
msgid "(3)" |
| 1061 |
msgstr "(3)" |
| 1062 |
|
| 1063 |
#. type: Plain text |
| 1064 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1065 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1066 |
msgid "" |
| 1067 |
"Suppose that the receiver now performs B<recvmsg>(2) calls each with a " |
| 1068 |
"buffer size of 20 bytes. The first call will receive five bytes of data, " |
| 1069 |
"along with the ancillary data sent by the second B<sendmsg>(2) call. The " |
| 1070 |
"next call will receive the remaining four bytes of data." |
| 1071 |
msgstr "" |
| 1072 |
"Przyjmijmy, że odbiorca wykonuje teraz wywołania B<recvmsg>(2), każde z " |
| 1073 |
"buforem o wielkości 20 bajtów. Pierwsze wywołanie otrzyma pięć bajtów " |
| 1074 |
"danych, razem z danymi pomocniczymi wysłanymi przez drugie wywołanie " |
| 1075 |
"B<sendmsg>(2). Następne wywołanie otrzyma pozostałe cztery bajty danych." |
| 1076 |
|
| 1077 |
#. type: Plain text |
| 1078 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1079 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1080 |
msgid "" |
| 1081 |
"If the space allocated for receiving incoming ancillary data is too small " |
| 1082 |
"then the ancillary data is truncated to the number of headers that will fit " |
| 1083 |
"in the supplied buffer (or, in the case of an B<SCM_RIGHTS> file descriptor " |
| 1084 |
"list, the list of file descriptors may be truncated). If no buffer is " |
| 1085 |
"provided for incoming ancillary data (i.e., the I<msg_control> field of the " |
| 1086 |
"I<msghdr> structure supplied to B<recvmsg>(2) is NULL), then the incoming " |
| 1087 |
"ancillary data is discarded. In both of these cases, the B<MSG_CTRUNC> flag " |
| 1088 |
"will be set in the I<msg.msg_flags> value returned by B<recvmsg>(2)." |
| 1089 |
msgstr "" |
| 1090 |
"Jeśli przestrzeń przydzielona do otrzymywanych danych pomocniczych jest zbyt " |
| 1091 |
"mała, to dane pomocnicze są przycinane do liczby nagłówków mieszczących się " |
| 1092 |
"w udostępnionym buforze (lub, w przypadku listy deskryptora pliku " |
| 1093 |
"B<SCM_RIGHTS>, sama lista deskryptorów pliku może zostać przycięta). Jeśli " |
| 1094 |
"dla przychodzących danych pomocniczych nie udostępniono bufora (np. pole " |
| 1095 |
"I<msg_control> struktury I<msghdr> przekazanej do B<recvmsg>(2) wynosi " |
| 1096 |
"NULL), to przychodzące dane pomocnicze są odrzucane. W obu tych przypadkach, " |
| 1097 |
"flaga B<MSG_CTRUNC> zostanie ustawiona na wartość I<msg.msg_flags> zwróconą " |
| 1098 |
"przez B<recvmsg>(2)." |
| 1099 |
|
| 1100 |
#. type: SS |
| 1101 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1102 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1103 |
#, no-wrap |
| 1104 |
msgid "Ioctls" |
| 1105 |
msgstr "Kontrolki systemowe (ioctl)" |
| 1106 |
|
| 1107 |
#. type: Plain text |
| 1108 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1109 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1110 |
msgid "" |
| 1111 |
"The following B<ioctl>(2) calls return information in I<value>. The " |
| 1112 |
"correct syntax is:" |
| 1113 |
msgstr "" |
| 1114 |
"Następujące wywołania B<ioctl>(2) zwracają informacje w parametrze I<value>. " |
| 1115 |
"Poprawna składnia to:" |
| 1116 |
|
| 1117 |
#. type: Plain text |
| 1118 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1119 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1120 |
#, no-wrap |
| 1121 |
msgid "" |
| 1122 |
"B<int>I< value>B<;>\n" |
| 1123 |
"I<error>B< = ioctl(>I<unix_socket>B<, >I<ioctl_type>B<, &>I<value>B<);>\n" |
| 1124 |
msgstr "" |
| 1125 |
"B<int>I< value>B<;>\n" |
| 1126 |
"I<error>B< = ioctl(>I<unix_socket>B<, >I<ioctl_type>B<, &>I<value>B<);>\n" |
| 1127 |
|
| 1128 |
#. type: Plain text |
| 1129 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1130 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1131 |
msgid "I<ioctl_type> can be:" |
| 1132 |
msgstr "I<ioctl_type> może przyjmować wartość:" |
| 1133 |
|
| 1134 |
#. type: TP |
| 1135 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1136 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1137 |
#, no-wrap |
| 1138 |
msgid "B<SIOCINQ>" |
| 1139 |
msgstr "B<SIOCINQ>" |
| 1140 |
|
| 1141 |
#. #-#-#-#-# archlinux: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1142 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1143 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1144 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1145 |
#. quite what userland might expect. It seems to return the number |
| 1146 |
#. of bytes allocated for buffers containing pending output. |
| 1147 |
#. That number is normally larger than the number of bytes of pending |
| 1148 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1149 |
#. and it may well change, probably best not to document this now. |
| 1150 |
#. type: Plain text |
| 1151 |
#. #-#-#-#-# debian-trixie: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1152 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1153 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1154 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1155 |
#. quite what userland might expect. It seems to return the number |
| 1156 |
#. of bytes allocated for buffers containing pending output. |
| 1157 |
#. That number is normally larger than the number of bytes of pending |
| 1158 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1159 |
#. and it may well change, probably best not to document this now. |
| 1160 |
#. type: Plain text |
| 1161 |
#. #-#-#-#-# debian-unstable: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1162 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1163 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1164 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1165 |
#. quite what userland might expect. It seems to return the number |
| 1166 |
#. of bytes allocated for buffers containing pending output. |
| 1167 |
#. That number is normally larger than the number of bytes of pending |
| 1168 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1169 |
#. and it may well change, probably best not to document this now. |
| 1170 |
#. type: Plain text |
| 1171 |
#. #-#-#-#-# fedora-44: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1172 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1173 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1174 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1175 |
#. quite what userland might expect. It seems to return the number |
| 1176 |
#. of bytes allocated for buffers containing pending output. |
| 1177 |
#. That number is normally larger than the number of bytes of pending |
| 1178 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1179 |
#. and it may well change, probably best not to document this now. |
| 1180 |
#. type: Plain text |
| 1181 |
#. #-#-#-#-# fedora-rawhide: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1182 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1183 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1184 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1185 |
#. quite what userland might expect. It seems to return the number |
| 1186 |
#. of bytes allocated for buffers containing pending output. |
| 1187 |
#. That number is normally larger than the number of bytes of pending |
| 1188 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1189 |
#. and it may well change, probably best not to document this now. |
| 1190 |
#. type: Plain text |
| 1191 |
#. #-#-#-#-# mageia-cauldron: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1192 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1193 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1194 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1195 |
#. quite what userland might expect. It seems to return the number |
| 1196 |
#. of bytes allocated for buffers containing pending output. |
| 1197 |
#. That number is normally larger than the number of bytes of pending |
| 1198 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1199 |
#. and it may well change, probably best not to document this now. |
| 1200 |
#. type: Plain text |
| 1201 |
#. #-#-#-#-# opensuse-leap-16-1: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1202 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1203 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1204 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1205 |
#. quite what userland might expect. It seems to return the number |
| 1206 |
#. of bytes allocated for buffers containing pending output. |
| 1207 |
#. That number is normally larger than the number of bytes of pending |
| 1208 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1209 |
#. and it may well change, probably best not to document this now. |
| 1210 |
#. type: Plain text |
| 1211 |
#. #-#-#-#-# opensuse-tumbleweed: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1212 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1213 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1214 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1215 |
#. quite what userland might expect. It seems to return the number |
| 1216 |
#. of bytes allocated for buffers containing pending output. |
| 1217 |
#. That number is normally larger than the number of bytes of pending |
| 1218 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1219 |
#. and it may well change, probably best not to document this now. |
| 1220 |
#. type: Plain text |
| 1221 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1222 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1223 |
msgid "" |
| 1224 |
"For B<SOCK_STREAM> sockets, this call returns the number of unread bytes in " |
| 1225 |
"the receive buffer. The socket must not be in LISTEN state, otherwise an " |
| 1226 |
"error (B<EINVAL>) is returned. B<SIOCINQ> is defined in I<E<lt>linux/" |
| 1227 |
"sockios.hE<gt>>. Alternatively, you can use the synonymous B<FIONREAD>, " |
| 1228 |
"defined in I<E<lt>sys/ioctl.hE<gt>>. For B<SOCK_DGRAM> sockets, the " |
| 1229 |
"returned value is the same as for Internet domain datagram sockets; see " |
| 1230 |
"B<udp>(7)." |
| 1231 |
msgstr "" |
| 1232 |
"Dla gniazd B<SOCK_STREAM>, wywołanie to zwraca liczbę nieprzeczytanych " |
| 1233 |
"jeszcze bajtów znajdujących się w buforze odbierającym. Gniazdo nie może się " |
| 1234 |
"znajdować w stanie \"LISTEN\"; w przeciwnym wypadku zostanie zwrócony błąd " |
| 1235 |
"(B<EINVAL>). B<SIOCINQ> jest zdefiniowany w I<E<lt>linux/sockios.hE<gt>>. " |
| 1236 |
"Alternatywnie można użyć synonimu B<FIONREAD> zdefiniowanego w I<E<lt>sys/" |
| 1237 |
"ioctl.hE<gt>>. Dla gniazd B<SOCK_DGRAM>, zwracana wartość jest taka sama jak " |
| 1238 |
"w przypadku datagramowych gniazd domeny Internet; zob. B<udp>(7)." |
| 1239 |
|
| 1240 |
#. type: SH |
| 1241 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1242 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1243 |
#, no-wrap |
| 1244 |
msgid "ERRORS" |
| 1245 |
msgstr "BŁĘDY" |
| 1246 |
|
| 1247 |
#. type: TP |
| 1248 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1249 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1250 |
#, no-wrap |
| 1251 |
msgid "B<EADDRINUSE>" |
| 1252 |
msgstr "B<EADDRINUSE>" |
| 1253 |
|
| 1254 |
#. type: Plain text |
| 1255 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1256 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1257 |
msgid "" |
| 1258 |
"The specified local address is already in use or the filesystem socket " |
| 1259 |
"object already exists." |
| 1260 |
msgstr "" |
| 1261 |
"Podany adres lokalny jest zajęty lub obiekt gniazda w systemie plików już " |
| 1262 |
"istnieje." |
| 1263 |
|
| 1264 |
#. type: TP |
| 1265 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1266 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1267 |
#, no-wrap |
| 1268 |
msgid "B<EBADF>" |
| 1269 |
msgstr "B<EBADF>" |
| 1270 |
|
| 1271 |
#. type: Plain text |
| 1272 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1273 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1274 |
msgid "" |
| 1275 |
"This error can occur for B<sendmsg>(2) when sending a file descriptor as " |
| 1276 |
"ancillary data over a UNIX domain socket (see the description of " |
| 1277 |
"B<SCM_RIGHTS>, above), and indicates that the file descriptor number that is " |
| 1278 |
"being sent is not valid (e.g., it is not an open file descriptor)." |
| 1279 |
msgstr "" |
| 1280 |
"Błąd może zajść dla B<sendmsg>(2), przy wysyłaniu deskryptora pliku jako " |
| 1281 |
"dane pomocnicze za pośrednictwem gniazda domeny uniksowej (zob. opis " |
| 1282 |
"B<SCM_RIGHTS> wyżej) i wskazuje że wysłany numer deskryptora pliku jest " |
| 1283 |
"nieprawidłowy (np. nie jest to otwarty deskryptor pliku)." |
| 1284 |
|
| 1285 |
#. type: TP |
| 1286 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1287 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1288 |
#, no-wrap |
| 1289 |
msgid "B<ECONNREFUSED>" |
| 1290 |
msgstr "B<ECONNREFUSED>" |
| 1291 |
|
| 1292 |
#. type: Plain text |
| 1293 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1294 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1295 |
msgid "" |
| 1296 |
"The remote address specified by B<connect>(2) was not a listening socket. " |
| 1297 |
"This error can also occur if the target pathname is not a socket." |
| 1298 |
msgstr "" |
| 1299 |
"Adres zdalny podany w B<connect>(2) nie odnosił się do gniazda " |
| 1300 |
"nasłuchującego. Błąd może także wystąpić jeśli docelowa ścieżka nie jest " |
| 1301 |
"gniazdem." |
| 1302 |
|
| 1303 |
#. type: TP |
| 1304 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1305 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1306 |
#, no-wrap |
| 1307 |
msgid "B<ECONNRESET>" |
| 1308 |
msgstr "B<ECONNRESET>" |
| 1309 |
|
| 1310 |
#. type: Plain text |
| 1311 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1312 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1313 |
msgid "Remote socket was unexpectedly closed." |
| 1314 |
msgstr "Zdalne gniazdo zostało nieoczekiwanie zamknięte." |
| 1315 |
|
| 1316 |
#. type: TP |
| 1317 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1318 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1319 |
#, no-wrap |
| 1320 |
msgid "B<EFAULT>" |
| 1321 |
msgstr "B<EFAULT>" |
| 1322 |
|
| 1323 |
#. type: Plain text |
| 1324 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1325 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1326 |
msgid "User memory address was not valid." |
| 1327 |
msgstr "Nieprawidłowy adres pamięci użytkownika." |
| 1328 |
|
| 1329 |
#. type: TP |
| 1330 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1331 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1332 |
#, no-wrap |
| 1333 |
msgid "B<EINVAL>" |
| 1334 |
msgstr "B<EINVAL>" |
| 1335 |
|
| 1336 |
#. type: Plain text |
| 1337 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1338 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1339 |
msgid "" |
| 1340 |
"Invalid argument passed. A common cause is that the value B<AF_UNIX> was " |
| 1341 |
"not specified in the I<sun_type> field of passed addresses, or the socket " |
| 1342 |
"was in an invalid state for the applied operation." |
| 1343 |
msgstr "" |
| 1344 |
"Podano nieprawidłowy argument. Najczęstszą przyczyną jest brak ustawionego " |
| 1345 |
"B<AF_UNIX> w polu I<sun_type> przekazywanych gniazdu adresów lub " |
| 1346 |
"nieprawidłowy dla danej operacji stan gniazda." |
| 1347 |
|
| 1348 |
#. type: TP |
| 1349 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1350 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1351 |
#, no-wrap |
| 1352 |
msgid "B<EISCONN>" |
| 1353 |
msgstr "B<EISCONN>" |
| 1354 |
|
| 1355 |
#. type: Plain text |
| 1356 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1357 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1358 |
msgid "" |
| 1359 |
"B<connect>(2) called on an already connected socket or a target address was " |
| 1360 |
"specified on a connected socket." |
| 1361 |
msgstr "" |
| 1362 |
"Wywołano B<connect>(2) dla już połączonego gniazda lub podano adres docelowy " |
| 1363 |
"dla połączonego gniazda." |
| 1364 |
|
| 1365 |
#. type: TP |
| 1366 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1367 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1368 |
#, no-wrap |
| 1369 |
msgid "B<ENFILE>" |
| 1370 |
msgstr "B<ENFILE>" |
| 1371 |
|
| 1372 |
#. type: Plain text |
| 1373 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1374 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1375 |
msgid "" |
| 1376 |
"The system-wide limit on the total number of open files has been reached." |
| 1377 |
msgstr "" |
| 1378 |
"Zostało osiągnięte systemowe ograniczenie na całkowitą liczbę otwartych " |
| 1379 |
"plików." |
| 1380 |
|
| 1381 |
#. type: TP |
| 1382 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1383 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1384 |
#, no-wrap |
| 1385 |
msgid "B<ENOENT>" |
| 1386 |
msgstr "B<ENOENT>" |
| 1387 |
|
| 1388 |
#. type: Plain text |
| 1389 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1390 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1391 |
msgid "" |
| 1392 |
"The pathname in the remote address specified to B<connect>(2) did not exist." |
| 1393 |
msgstr "" |
| 1394 |
"Nie istnieje ścieżka dla zdalnego adresu przekazanego do B<connect>(2)." |
| 1395 |
|
| 1396 |
#. type: TP |
| 1397 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1398 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1399 |
#, no-wrap |
| 1400 |
msgid "B<ENOMEM>" |
| 1401 |
msgstr "B<ENOMEM>" |
| 1402 |
|
| 1403 |
#. type: Plain text |
| 1404 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1405 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1406 |
msgid "Out of memory." |
| 1407 |
msgstr "Brak pamięci." |
| 1408 |
|
| 1409 |
#. type: TP |
| 1410 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1411 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1412 |
#, no-wrap |
| 1413 |
msgid "B<ENOTCONN>" |
| 1414 |
msgstr "B<ENOTCONN>" |
| 1415 |
|
| 1416 |
#. type: Plain text |
| 1417 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1418 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1419 |
msgid "" |
| 1420 |
"Socket operation needs a target address, but the socket is not connected." |
| 1421 |
msgstr "" |
| 1422 |
"Operacja na gnieździe wymaga adresu docelowego, a gniazdo nie jest połączone." |
| 1423 |
|
| 1424 |
#. type: TP |
| 1425 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1426 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1427 |
#, no-wrap |
| 1428 |
msgid "B<EOPNOTSUPP>" |
| 1429 |
msgstr "B<EOPNOTSUPP>" |
| 1430 |
|
| 1431 |
#. type: Plain text |
| 1432 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1433 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1434 |
msgid "" |
| 1435 |
"Stream operation called on non-stream oriented socket or tried to use the " |
| 1436 |
"out-of-band data option." |
| 1437 |
msgstr "" |
| 1438 |
"Operacja strumieniowa wywołana dla gniazda niestrumieniowego lub próba " |
| 1439 |
"użycia opcji danych autonomicznych." |
| 1440 |
|
| 1441 |
#. type: TP |
| 1442 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1443 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1444 |
#, no-wrap |
| 1445 |
msgid "B<EPERM>" |
| 1446 |
msgstr "B<EPERM>" |
| 1447 |
|
| 1448 |
#. type: Plain text |
| 1449 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1450 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1451 |
msgid "The sender passed invalid credentials in the I<struct ucred>." |
| 1452 |
msgstr "Wysyłający podał nieprawidłowe uwierzytelnienia w I<struct ucred>." |
| 1453 |
|
| 1454 |
#. type: TP |
| 1455 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1456 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1457 |
#, no-wrap |
| 1458 |
msgid "B<EPIPE>" |
| 1459 |
msgstr "B<EPIPE>" |
| 1460 |
|
| 1461 |
#. type: Plain text |
| 1462 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1463 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1464 |
msgid "" |
| 1465 |
"Remote socket was closed on a stream socket. If enabled, a B<SIGPIPE> is " |
| 1466 |
"sent as well. This can be avoided by passing the B<MSG_NOSIGNAL> flag to " |
| 1467 |
"B<send>(2) or B<sendmsg>(2)." |
| 1468 |
msgstr "" |
| 1469 |
"Zdalne gniazdo strumieniowe zostało zamknięte. Gdy włączone, wysyłany jest " |
| 1470 |
"jednocześnie sygnał B<SIGPIPE>. Można tego uniknąć, przekazując znacznik " |
| 1471 |
"B<MSG_NOSIGNAL> do B<send>(2) lub B<sendmsg>(2)." |
| 1472 |
|
| 1473 |
#. type: TP |
| 1474 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1475 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1476 |
#, no-wrap |
| 1477 |
msgid "B<EPROTONOSUPPORT>" |
| 1478 |
msgstr "B<EPROTONOSUPPORT>" |
| 1479 |
|
| 1480 |
#. type: Plain text |
| 1481 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1482 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1483 |
msgid "Passed protocol is not B<AF_UNIX>." |
| 1484 |
msgstr "Podanym protokołem nie jest B<AF_UNIX>." |
| 1485 |
|
| 1486 |
#. type: TP |
| 1487 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1488 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1489 |
#, no-wrap |
| 1490 |
msgid "B<EPROTOTYPE>" |
| 1491 |
msgstr "B<EPROTOTYPE>" |
| 1492 |
|
| 1493 |
#. type: Plain text |
| 1494 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1495 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1496 |
msgid "" |
| 1497 |
"Remote socket does not match the local socket type (B<SOCK_DGRAM> versus " |
| 1498 |
"B<SOCK_STREAM>)." |
| 1499 |
msgstr "" |
| 1500 |
"Typ gniazda zdalnego różni się od typu gniazda lokalnego (B<SOCK_DGRAM> " |
| 1501 |
"wobec B<SOCK_STREAM>)." |
| 1502 |
|
| 1503 |
#. type: TP |
| 1504 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1505 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1506 |
#, no-wrap |
| 1507 |
msgid "B<ESOCKTNOSUPPORT>" |
| 1508 |
msgstr "B<ESOCKTNOSUPPORT>" |
| 1509 |
|
| 1510 |
#. type: Plain text |
| 1511 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1512 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1513 |
msgid "Unknown socket type." |
| 1514 |
msgstr "Nieznany typ gniazda." |
| 1515 |
|
| 1516 |
#. type: TP |
| 1517 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1518 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1519 |
#, no-wrap |
| 1520 |
msgid "B<ESRCH>" |
| 1521 |
msgstr "B<ESRCH>" |
| 1522 |
|
| 1523 |
#. type: Plain text |
| 1524 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1525 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1526 |
msgid "" |
| 1527 |
"While sending an ancillary message containing credentials " |
| 1528 |
"(B<SCM_CREDENTIALS>), the caller specified a PID that does not match any " |
| 1529 |
"existing process." |
| 1530 |
msgstr "" |
| 1531 |
"Przy wysyłaniu komunikatów pomocniczych zawierających uwierzytelnienie " |
| 1532 |
"(B<SCM_CREDENTIALS>), wywołujący podał identyfikator procesu, który nie " |
| 1533 |
"dopasował żadnego istniejącego procesu." |
| 1534 |
|
| 1535 |
#. type: TP |
| 1536 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1537 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1538 |
#, no-wrap |
| 1539 |
msgid "B<ETOOMANYREFS>" |
| 1540 |
msgstr "B<ETOOMANYREFS>" |
| 1541 |
|
| 1542 |
#. type: Plain text |
| 1543 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1544 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1545 |
msgid "" |
| 1546 |
"This error can occur for B<sendmsg>(2) when sending a file descriptor as " |
| 1547 |
"ancillary data over a UNIX domain socket (see the description of " |
| 1548 |
"B<SCM_RIGHTS>, above). It occurs if the number of \"in-flight\" file " |
| 1549 |
"descriptors exceeds the B<RLIMIT_NOFILE> resource limit and the caller does " |
| 1550 |
"not have the B<CAP_SYS_RESOURCE> capability. An in-flight file descriptor " |
| 1551 |
"is one that has been sent using B<sendmsg>(2) but has not yet been accepted " |
| 1552 |
"in the recipient process using B<recvmsg>(2)." |
| 1553 |
msgstr "" |
| 1554 |
"Błąd może zajść dla B<sendmsg>(2), przy wysyłaniu deskryptora pliku jako " |
| 1555 |
"dane pomocnicze za pośrednictwem gniazda domeny uniksowej (zob. opis " |
| 1556 |
"B<SCM_RIGHTS> wyżej). Występuje, jeśli liczba deskryptorów pliku \"w locie\" " |
| 1557 |
"wykracza poza limit zasobów B<RLIMIT_NOFILE>, a wywołujący nie posiada " |
| 1558 |
"przywileju B<CAP_SYS_RESOURCE>. Przez deskryptor pliku w locie rozumiemy tu " |
| 1559 |
"taki, który został wysłany za pomocą B<sendmsg>(2), ale nie został jeszcze " |
| 1560 |
"zaakceptowany przez proces docelowy za pomocą B<recvmsg>(2)." |
| 1561 |
|
| 1562 |
#. commit 712f4aad406bb1ed67f3f98d04c044191f0ff593 |
| 1563 |
#. type: Plain text |
| 1564 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1565 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1566 |
msgid "" |
| 1567 |
"This error is diagnosed since mainline Linux 4.5 (and in some earlier kernel " |
| 1568 |
"versions where the fix has been backported). In earlier kernel versions, it " |
| 1569 |
"was possible to place an unlimited number of file descriptors in flight, by " |
| 1570 |
"sending each file descriptor with B<sendmsg>(2) and then closing the file " |
| 1571 |
"descriptor so that it was not accounted against the B<RLIMIT_NOFILE> " |
| 1572 |
"resource limit." |
| 1573 |
msgstr "" |
| 1574 |
"Błąd ten jest diagnozowany w głównej gałęzi jądra od Linuksa 4.5 (i w " |
| 1575 |
"niektórych wcześniejszych wersjach, gdzie zaaplikowano odpowiednią łatkę). " |
| 1576 |
"We wcześniejszych wersjach jądra, można było umieścić nieograniczoną liczbę " |
| 1577 |
"deskryptorów plików w locie, poprzez wysłanie każdego z nich za pomocą " |
| 1578 |
"B<sendmsg>(2), a następnie zamknięcie deskryptora pliku, co nie liczyło się " |
| 1579 |
"wobec limitu zasobów B<RLIMIT_NOFILE>." |
| 1580 |
|
| 1581 |
#. type: Plain text |
| 1582 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1583 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1584 |
msgid "" |
| 1585 |
"Other errors can be generated by the generic socket layer or by the " |
| 1586 |
"filesystem while generating a filesystem socket object. See the appropriate " |
| 1587 |
"manual pages for more information." |
| 1588 |
msgstr "" |
| 1589 |
"Inne błędy mogą zostać wygenerowane przez podstawową warstwę gniazd lub " |
| 1590 |
"przez system plików podczas tworzenia obiektu gniazda w systemie plików. " |
| 1591 |
"Więcej informacji można znaleźć na odpowiednich stronach podręcznika." |
| 1592 |
|
| 1593 |
#. type: SH |
| 1594 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1595 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1596 |
#, no-wrap |
| 1597 |
msgid "VERSIONS" |
| 1598 |
msgstr "WERSJE" |
| 1599 |
|
| 1600 |
#. type: Plain text |
| 1601 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1602 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1603 |
msgid "" |
| 1604 |
"B<SCM_CREDENTIALS> and the abstract namespace were introduced with Linux 2.2 " |
| 1605 |
"and should not be used in portable programs. (Some BSD-derived systems also " |
| 1606 |
"support credential passing, but the implementation details differ.)" |
| 1607 |
msgstr "" |
| 1608 |
"B<SCM_CREDENTIALS> oraz abstrakcyjna przestrzeń nazw zostały wprowadzone w " |
| 1609 |
"Linuksie 2.2 i nie należy ich używać w przenośnych programach. (Niektóre " |
| 1610 |
"systemy wywodzące się z BSD również wspierają przekazywanie uwierzytelnień, " |
| 1611 |
"ale implementacje różnią się szczegółami)." |
| 1612 |
|
| 1613 |
#. type: SH |
| 1614 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1615 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1616 |
#, no-wrap |
| 1617 |
msgid "NOTES" |
| 1618 |
msgstr "UWAGI" |
| 1619 |
|
| 1620 |
#. type: Plain text |
| 1621 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1622 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1623 |
msgid "" |
| 1624 |
"Binding to a socket with a filename creates a socket in the filesystem that " |
| 1625 |
"must be deleted by the caller when it is no longer needed (using " |
| 1626 |
"B<unlink>(2)). The usual UNIX close-behind semantics apply; the socket can " |
| 1627 |
"be unlinked at any time and will be finally removed from the filesystem when " |
| 1628 |
"the last reference to it is closed." |
| 1629 |
msgstr "" |
| 1630 |
"W trakcie łączenia się z gniazdem mającym przypisaną nazwę pliku, tworzony " |
| 1631 |
"jest plik specjalny gniazda w systemie plików, który musi zostać usunięty " |
| 1632 |
"(za pomocą B<unlink>(2)) przez wywołującego, gdy już nie będzie potrzebny. " |
| 1633 |
"Stosuje się tu zwykła uniksowa składnia opóźnionego zamknięcia (ang. close-" |
| 1634 |
"behind): gniazdo można skasować w dowolnym momencie, ale zostanie ono " |
| 1635 |
"ostatecznie usunięte z systemu plików po zamknięciu ostatniego odwołania do " |
| 1636 |
"niego." |
| 1637 |
|
| 1638 |
#. type: Plain text |
| 1639 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1640 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1641 |
msgid "" |
| 1642 |
"To pass file descriptors or credentials over a B<SOCK_STREAM> socket, you " |
| 1643 |
"must send or receive at least one byte of nonancillary data in the same " |
| 1644 |
"B<sendmsg>(2) or B<recvmsg>(2) call." |
| 1645 |
msgstr "" |
| 1646 |
"Aby przekazać deskryptory plików lub uwierzytelnienia poprzez B<SOCK_STREAM> " |
| 1647 |
"trzeba wysłać/odebrać co najmniej jeden bajt niepomocniczych danych w tym " |
| 1648 |
"samym wywołaniu B<sendmsg>(2) lub B<recvmsg>(2)" |
| 1649 |
|
| 1650 |
#. type: Plain text |
| 1651 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1652 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1653 |
msgid "" |
| 1654 |
"UNIX domain stream sockets do not support the notion of out-of-band data." |
| 1655 |
msgstr "" |
| 1656 |
"Gniazda strumieniowe z domeny uniksowej nie obsługują zawiadomienia o danych " |
| 1657 |
"autonomicznych." |
| 1658 |
|
| 1659 |
#. type: SH |
| 1660 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1661 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1662 |
#, no-wrap |
| 1663 |
msgid "BUGS" |
| 1664 |
msgstr "USTERKI" |
| 1665 |
|
| 1666 |
#. The behavior on Solaris is quite similar. |
| 1667 |
#. type: Plain text |
| 1668 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1669 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1670 |
msgid "" |
| 1671 |
"When binding a socket to an address, Linux is one of the implementations " |
| 1672 |
"that append a null terminator if none is supplied in I<sun_path>. In most " |
| 1673 |
"cases this is unproblematic: when the socket address is retrieved, it will " |
| 1674 |
"be one byte longer than that supplied when the socket was bound. However, " |
| 1675 |
"there is one case where confusing behavior can result: if 108 non-null bytes " |
| 1676 |
"are supplied when a socket is bound, then the addition of the null " |
| 1677 |
"terminator takes the length of the pathname beyond I<sizeof(sun_path)>. " |
| 1678 |
"Consequently, when retrieving the socket address (for example, via " |
| 1679 |
"B<accept>(2)), if the input I<addrlen> argument for the retrieving call is " |
| 1680 |
"specified as I<sizeof(struct sockaddr_un)>, then the returned address " |
| 1681 |
"structure I<won't> have a null terminator in I<sun_path>." |
| 1682 |
msgstr "" |
| 1683 |
"Przy wiązaniu gniazda z adresem, Linux jest jedną z implementacji dodających " |
| 1684 |
"kończące null, jeśli nie poda się go w I<sun_path>. Zwykle jest to " |
| 1685 |
"bezproblemowe, gdy adres gniazda jest pozyskiwany będzie on o jeden bajt " |
| 1686 |
"dłuższy niż podawany początkowo. Jest jednak jeden przypadek mogący " |
| 1687 |
"spowodować mylące zachowanie: jeśli podany zostanie adres 108 bajtowy, bez " |
| 1688 |
"znaku null, to dodanie znaku null spowodowałoby przekroczenie długości " |
| 1689 |
"ścieżki poza I<sizeof(sun_path)>. W konsekwencji, przy pozyskiwaniu adresu " |
| 1690 |
"gniazda (np. poprzez B<accept>(2)), jeśli wejściowy argument I<addrlen> dla " |
| 1691 |
"pozyskiwanego wywołania jest podany jako I<sizeof(struct sockaddr_un)>, to " |
| 1692 |
"zwrócona struktura adresu I<nie> będzie miała kończącego null w I<sun_path>." |
| 1693 |
|
| 1694 |
#. i.e., traditional BSD |
| 1695 |
#. type: Plain text |
| 1696 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1697 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1698 |
msgid "" |
| 1699 |
"In addition, some implementations don't require a null terminator when " |
| 1700 |
"binding a socket (the I<addrlen> argument is used to determine the length of " |
| 1701 |
"I<sun_path>) and when the socket address is retrieved on these " |
| 1702 |
"implementations, there is no null terminator in I<sun_path>." |
| 1703 |
msgstr "" |
| 1704 |
"Dodatkowo, niektóre implementacje nie wymagają kończącego null przy wiązaniu " |
| 1705 |
"gniazda (argument I<addrlen> jest używany do określenia długości " |
| 1706 |
"I<sun_path>), a gdy w tych implementacjach jest pozyskiwany adres gniazda, " |
| 1707 |
"to nie ma kończącego null w I<sun_path>." |
| 1708 |
|
| 1709 |
#. type: Plain text |
| 1710 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1711 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1712 |
msgid "" |
| 1713 |
"Applications that retrieve socket addresses can (portably) code to handle " |
| 1714 |
"the possibility that there is no null terminator in I<sun_path> by " |
| 1715 |
"respecting the fact that the number of valid bytes in the pathname is:" |
| 1716 |
msgstr "" |
| 1717 |
"Aplikacje pozyskujące adresy gniazd mogą posiadać (przenośny) kod do obsługi " |
| 1718 |
"możliwości, że w I<sun_path> nie ma kończącego null zauważając fakt, że " |
| 1719 |
"liczba prawidłowych bajtów w ścieżce to:" |
| 1720 |
|
| 1721 |
#. type: Plain text |
| 1722 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1723 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1724 |
#, no-wrap |
| 1725 |
msgid "strnlen(addr.sun_path, addrlen - offsetof(sockaddr_un, sun_path))\n" |
| 1726 |
msgstr "strnlen(addr.sun_path, addrlen - offsetof(sockaddr_un, sun_path))\n" |
| 1727 |
|
| 1728 |
#. type: Plain text |
| 1729 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1730 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1731 |
msgid "" |
| 1732 |
"Alternatively, an application can retrieve the socket address by allocating " |
| 1733 |
"a buffer of size I<sizeof(struct sockaddr_un)+1> that is zeroed out before " |
| 1734 |
"the retrieval. The retrieving call can specify I<addrlen> as " |
| 1735 |
"I<sizeof(struct sockaddr_un)>, and the extra zero byte ensures that there " |
| 1736 |
"will be a null terminator for the string returned in I<sun_path>:" |
| 1737 |
msgstr "" |
| 1738 |
"Alternatywnie, aplikacja może pozyskać adres gniazda przez przydzielenie " |
| 1739 |
"buforu o rozmiarze I<sizeof(struct sockaddr_un)+1> który jest wyzerowany " |
| 1740 |
"przed pozyskaniem. Pobierające wywołanie może określić I<addrlen> jako " |
| 1741 |
"I<sizeof(struct sockaddr_un)>, a dodatkowy bajt zero zapewnia, że w łańcuchu " |
| 1742 |
"zwróconym w I<sun_path> będzie kończące null:" |
| 1743 |
|
| 1744 |
#. type: Plain text |
| 1745 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1746 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1747 |
#, no-wrap |
| 1748 |
msgid "" |
| 1749 |
"void *addrp;\n" |
| 1750 |
"\\&\n" |
| 1751 |
"addrlen = sizeof(struct sockaddr_un);\n" |
| 1752 |
"addrp = malloc(addrlen + 1);\n" |
| 1753 |
"if (addrp == NULL)\n" |
| 1754 |
" /* Handle error */ ;\n" |
| 1755 |
"memset(addrp, 0, addrlen + 1);\n" |
| 1756 |
"\\&\n" |
| 1757 |
"if (getsockname(sfd, (struct sockaddr *) addrp, &addrlen)) == -1)\n" |
| 1758 |
" /* handle error */ ;\n" |
| 1759 |
"\\&\n" |
| 1760 |
"printf(\"sun_path = %s\\[rs]n\", ((struct sockaddr_un *) addrp)-E<gt>sun_path);\n" |
| 1761 |
msgstr "" |
| 1762 |
"void *addrp;\n" |
| 1763 |
"\\&\n" |
| 1764 |
"addrlen = sizeof(struct sockaddr_un);\n" |
| 1765 |
"addrp = malloc(addrlen + 1);\n" |
| 1766 |
"if (addrp == NULL)\n" |
| 1767 |
" /* Obsługa błędu */ ;\n" |
| 1768 |
"memset(addrp, 0, addrlen + 1);\n" |
| 1769 |
"\\&\n" |
| 1770 |
"if (getsockname(sfd, (struct sockaddr *) addrp, &addrlen)) == -1)\n" |
| 1771 |
" /* obsługa błędu */ ;\n" |
| 1772 |
"\\&\n" |
| 1773 |
"printf(\"sun_path = %s\\[rs]n\", ((struct sockaddr_un *) addrp)-E<gt>sun_path);\n" |
| 1774 |
|
| 1775 |
#. type: Plain text |
| 1776 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1777 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1778 |
msgid "" |
| 1779 |
"This sort of messiness can be avoided if it is guaranteed that the " |
| 1780 |
"applications that I<create> pathname sockets follow the rules outlined above " |
| 1781 |
"under I<Pathname sockets>." |
| 1782 |
msgstr "" |
| 1783 |
"Tego bałaganu można uniknąć, jeśli jest pewność, że aplikacja I<tworząca> " |
| 1784 |
"ścieżki gniazd przestrzega reguł opisanych powyżej rozdziale I<Ścieżki " |
| 1785 |
"gniazd>." |
| 1786 |
|
| 1787 |
#. type: SH |
| 1788 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1789 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1790 |
#, no-wrap |
| 1791 |
msgid "EXAMPLES" |
| 1792 |
msgstr "PRZYKŁADY" |
| 1793 |
|
| 1794 |
#. type: Plain text |
| 1795 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1796 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1797 |
msgid "" |
| 1798 |
"The following code demonstrates the use of sequenced-packet sockets for " |
| 1799 |
"local interprocess communication. It consists of two programs. The server " |
| 1800 |
"program waits for a connection from the client program. The client sends " |
| 1801 |
"each of its command-line arguments in separate messages. The server treats " |
| 1802 |
"the incoming messages as integers and adds them up. The client sends the " |
| 1803 |
"command string \"END\". The server sends back a message containing the sum " |
| 1804 |
"of the client's integers. The client prints the sum and exits. The server " |
| 1805 |
"waits for the next client to connect. To stop the server, the client is " |
| 1806 |
"called with the command-line argument \"DOWN\"." |
| 1807 |
msgstr "" |
| 1808 |
"Poniższy kod demonstruje użycie gniazd pakietów sekwencyjnych do lokalnej " |
| 1809 |
"komunikacji międzyprocesowej. Składa się z dwóch programów. Serwer czeka na " |
| 1810 |
"połączenie z programu klienckiego. Klient wysyła każdy ze swoich argumentów " |
| 1811 |
"wiersza poleceń w oddzielnych wiadomościach. Serwer traktuje przychodzące " |
| 1812 |
"wiadomości jako liczby całkowite i dodaje je. Klient wysyła łańcuch " |
| 1813 |
"polecenia \"END\". Serwer odsyła komunikat zawierający sumę klienckich liczb " |
| 1814 |
"całkowitych. Klient wypisuje sumę i wychodzi. Serwer czeka na połączenie od " |
| 1815 |
"kolejnego klienta. Aby zatrzymać serwer, klient jest wywoływany z argumentem " |
| 1816 |
"wiersza poleceń \"DOWN\"." |
| 1817 |
|
| 1818 |
#. type: Plain text |
| 1819 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1820 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1821 |
msgid "" |
| 1822 |
"The following output was recorded while running the server in the background " |
| 1823 |
"and repeatedly executing the client. Execution of the server program ends " |
| 1824 |
"when it receives the \"DOWN\" command." |
| 1825 |
msgstr "" |
| 1826 |
"Podczas działania serwera w tle i kolejnych uruchomień klienta " |
| 1827 |
"zarejestrowano następujące wyjście. Wykonywanie programu serwera kończy się, " |
| 1828 |
"gdy otrzymuje on polecenie \"DOWN\"." |
| 1829 |
|
| 1830 |
#. type: SS |
| 1831 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1832 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1833 |
#, no-wrap |
| 1834 |
msgid "Example output" |
| 1835 |
msgstr "Przykładowe wyjście" |
| 1836 |
|
| 1837 |
#. type: Plain text |
| 1838 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1839 |
#: opensuse-tumbleweed |
| 1840 |
#, no-wrap |
| 1841 |
msgid "" |
| 1842 |
"$B< ./server &>\n" |
| 1843 |
"[1] 25887\n" |
| 1844 |
"$B< ./client 3 4>;\n" |
| 1845 |
"Result = 7\n" |
| 1846 |
"$B< ./client 11 -5>;\n" |
| 1847 |
"Result = 6\n" |
| 1848 |
"$B< ./client DOWN>;\n" |
| 1849 |
"Result = 0\n" |
| 1850 |
"[1]+ Done ./server\n" |
| 1851 |
"$\n" |
| 1852 |
msgstr "" |
| 1853 |
"$B< ./server &>\n" |
| 1854 |
"[1] 25887\n" |
| 1855 |
"$B< ./client 3 4>;\n" |
| 1856 |
"Wynik = 7\n" |
| 1857 |
"$B< ./client 11 -5>;\n" |
| 1858 |
"Wynik = 6\n" |
| 1859 |
"$B< ./client DOWN>;\n" |
| 1860 |
"Wynik = 0\n" |
| 1861 |
"[1]+ Done ./server\n" |
| 1862 |
"$\n" |
| 1863 |
|
| 1864 |
#. type: SS |
| 1865 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1866 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1867 |
#, no-wrap |
| 1868 |
msgid "Program source" |
| 1869 |
msgstr "Kod źródłowy programu" |
| 1870 |
|
| 1871 |
#. type: Plain text |
| 1872 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1873 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1874 |
#, no-wrap |
| 1875 |
msgid "" |
| 1876 |
"/*\n" |
| 1877 |
" * File connection.h\n" |
| 1878 |
" */\n" |
| 1879 |
"#ifndef CONNECTION_H\n" |
| 1880 |
"#define CONNECTION_H\n" |
| 1881 |
"\\&\n" |
| 1882 |
"#define SOCKET_NAME \"/tmp/9Lq7BNBnBycd6nxy.socket\"\n" |
| 1883 |
"#define BUFFER_SIZE 12\n" |
| 1884 |
"\\&\n" |
| 1885 |
"#endif // include guard\n" |
| 1886 |
msgstr "" |
| 1887 |
"/*\n" |
| 1888 |
" * Plik connection.h\n" |
| 1889 |
" */\n" |
| 1890 |
"#ifndef CONNECTION_H\n" |
| 1891 |
"#define CONNECTION_H\n" |
| 1892 |
"\\&\n" |
| 1893 |
"#define SOCKET_NAME \"/tmp/9Lq7BNBnBycd6nxy.socket\"\n" |
| 1894 |
"#define BUFFER_SIZE 12\n" |
| 1895 |
"\\&\n" |
| 1896 |
"#endif // include guard (ochr. przed wielokr. przetw.)\n" |
| 1897 |
|
| 1898 |
#. type: Plain text |
| 1899 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1900 |
#: opensuse-tumbleweed |
| 1901 |
#, no-wrap |
| 1902 |
msgid "" |
| 1903 |
"/*\n" |
| 1904 |
" * File server.c\n" |
| 1905 |
" */\n" |
| 1906 |
"\\&\n" |
| 1907 |
"#include E<lt>stdio.hE<gt>\n" |
| 1908 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1909 |
"#include E<lt>string.hE<gt>\n" |
| 1910 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 1911 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1912 |
"#include E<lt>sys/un.hE<gt>\n" |
| 1913 |
"#include E<lt>unistd.hE<gt>\n" |
| 1914 |
"\\&\n" |
| 1915 |
"#include \"connection.h\"\n" |
| 1916 |
"\\&\n" |
| 1917 |
"int\n" |
| 1918 |
"main(void)\n" |
| 1919 |
"{\n" |
| 1920 |
" int down_flag = 0;\n" |
| 1921 |
" int ret;\n" |
| 1922 |
" int connection_socket;\n" |
| 1923 |
" int data_socket;\n" |
| 1924 |
" int result;\n" |
| 1925 |
" ssize_t r, w;\n" |
| 1926 |
" struct sockaddr_un name;\n" |
| 1927 |
" char buffer[BUFFER_SIZE];\n" |
| 1928 |
"\\&\n" |
| 1929 |
" /* Create local socket. */\n" |
| 1930 |
"\\&\n" |
| 1931 |
" connection_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n" |
| 1932 |
" if (connection_socket == -1) {\n" |
| 1933 |
" perror(\"socket\");\n" |
| 1934 |
" exit(EXIT_FAILURE);\n" |
| 1935 |
" }\n" |
| 1936 |
"\\&\n" |
| 1937 |
" /*\n" |
| 1938 |
" * For portability clear the whole structure, since some\n" |
| 1939 |
" * implementations have additional (nonstandard) fields in\n" |
| 1940 |
" * the structure.\n" |
| 1941 |
" */\n" |
| 1942 |
"\\&\n" |
| 1943 |
" memset(&name, 0, sizeof(name));\n" |
| 1944 |
"\\&\n" |
| 1945 |
" /* Bind socket to socket name. */\n" |
| 1946 |
"\\&\n" |
| 1947 |
" name.sun_family = AF_UNIX;\n" |
| 1948 |
" strncpy(name.sun_path, SOCKET_NAME, sizeof(name.sun_path) - 1);\n" |
| 1949 |
"\\&\n" |
| 1950 |
" ret = bind(connection_socket, (const struct sockaddr *) &name,\n" |
| 1951 |
" sizeof(name));\n" |
| 1952 |
" if (ret == -1) {\n" |
| 1953 |
" perror(\"bind\");\n" |
| 1954 |
" exit(EXIT_FAILURE);\n" |
| 1955 |
" }\n" |
| 1956 |
"\\&\n" |
| 1957 |
" /*\n" |
| 1958 |
" * Prepare for accepting connections. The backlog size is set\n" |
| 1959 |
" * to 20. So while one request is being processed other requests\n" |
| 1960 |
" * can be waiting.\n" |
| 1961 |
" */\n" |
| 1962 |
"\\&\n" |
| 1963 |
" ret = listen(connection_socket, 20);\n" |
| 1964 |
" if (ret == -1) {\n" |
| 1965 |
" perror(\"listen\");\n" |
| 1966 |
" exit(EXIT_FAILURE);\n" |
| 1967 |
" }\n" |
| 1968 |
"\\&\n" |
| 1969 |
" /* This is the main loop for handling connections. */\n" |
| 1970 |
"\\&\n" |
| 1971 |
" for (;;) {\n" |
| 1972 |
"\\&\n" |
| 1973 |
" /* Wait for incoming connection. */\n" |
| 1974 |
"\\&\n" |
| 1975 |
" data_socket = accept(connection_socket, NULL, NULL);\n" |
| 1976 |
" if (data_socket == -1) {\n" |
| 1977 |
" perror(\"accept\");\n" |
| 1978 |
" exit(EXIT_FAILURE);\n" |
| 1979 |
" }\n" |
| 1980 |
"\\&\n" |
| 1981 |
" result = 0;\n" |
| 1982 |
" for (;;) {\n" |
| 1983 |
"\\&\n" |
| 1984 |
" /* Wait for next data packet. */\n" |
| 1985 |
"\\&\n" |
| 1986 |
" r = read(data_socket, buffer, sizeof(buffer));\n" |
| 1987 |
" if (r == -1) {\n" |
| 1988 |
" perror(\"read\");\n" |
| 1989 |
" exit(EXIT_FAILURE);\n" |
| 1990 |
" }\n" |
| 1991 |
"\\&\n" |
| 1992 |
" /* Ensure buffer is 0-terminated. */\n" |
| 1993 |
"\\&\n" |
| 1994 |
" buffer[sizeof(buffer) - 1] = 0;\n" |
| 1995 |
"\\&\n" |
| 1996 |
" /* Handle commands. */\n" |
| 1997 |
"\\&\n" |
| 1998 |
" if (!strncmp(buffer, \"DOWN\", sizeof(buffer))) {\n" |
| 1999 |
" down_flag = 1;\n" |
| 2000 |
" continue;\n" |
| 2001 |
" }\n" |
| 2002 |
"\\&\n" |
| 2003 |
" if (!strncmp(buffer, \"END\", sizeof(buffer))) {\n" |
| 2004 |
" break;\n" |
| 2005 |
" }\n" |
| 2006 |
"\\&\n" |
| 2007 |
" if (down_flag) {\n" |
| 2008 |
" continue;\n" |
| 2009 |
" }\n" |
| 2010 |
"\\&\n" |
| 2011 |
" /* Add received summand. */\n" |
| 2012 |
"\\&\n" |
| 2013 |
" result += atoi(buffer);\n" |
| 2014 |
" }\n" |
| 2015 |
"\\&\n" |
| 2016 |
" /* Send result. */\n" |
| 2017 |
"\\&\n" |
| 2018 |
" sprintf(buffer, \"%d\", result);\n" |
| 2019 |
" w = write(data_socket, buffer, sizeof(buffer));\n" |
| 2020 |
" if (w == -1) {\n" |
| 2021 |
" perror(\"write\");\n" |
| 2022 |
" exit(EXIT_FAILURE);\n" |
| 2023 |
" }\n" |
| 2024 |
"\\&\n" |
| 2025 |
" /* Close socket. */\n" |
| 2026 |
"\\&\n" |
| 2027 |
" close(data_socket);\n" |
| 2028 |
"\\&\n" |
| 2029 |
" /* Quit on DOWN command. */\n" |
| 2030 |
"\\&\n" |
| 2031 |
" if (down_flag) {\n" |
| 2032 |
" break;\n" |
| 2033 |
" }\n" |
| 2034 |
" }\n" |
| 2035 |
"\\&\n" |
| 2036 |
" close(connection_socket);\n" |
| 2037 |
"\\&\n" |
| 2038 |
" /* Unlink the socket. */\n" |
| 2039 |
"\\&\n" |
| 2040 |
" unlink(SOCKET_NAME);\n" |
| 2041 |
"\\&\n" |
| 2042 |
" exit(EXIT_SUCCESS);\n" |
| 2043 |
"}\n" |
| 2044 |
msgstr "" |
| 2045 |
"/*\n" |
| 2046 |
" * Plik server.c\n" |
| 2047 |
" */\n" |
| 2048 |
"\\&\n" |
| 2049 |
"#include E<lt>stdio.hE<gt>\n" |
| 2050 |
"#include E<lt>stdlib.hE<gt>\n" |
| 2051 |
"#include E<lt>string.hE<gt>\n" |
| 2052 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 2053 |
"#include E<lt>sys/types.hE<gt>\n" |
| 2054 |
"#include E<lt>sys/un.hE<gt>\n" |
| 2055 |
"#include E<lt>unistd.hE<gt>\n" |
| 2056 |
"\\&\n" |
| 2057 |
"#include \"connection.h\"\n" |
| 2058 |
"\\&\n" |
| 2059 |
"int\n" |
| 2060 |
"main(void)\n" |
| 2061 |
"{\n" |
| 2062 |
" int down_flag = 0;\n" |
| 2063 |
" int ret;\n" |
| 2064 |
" int connection_socket;\n" |
| 2065 |
" int data_socket;\n" |
| 2066 |
" int result;\n" |
| 2067 |
" ssize_t r, w;\n" |
| 2068 |
" struct sockaddr_un name;\n" |
| 2069 |
" char buffer[BUFFER_SIZE];\n" |
| 2070 |
"\\&\n" |
| 2071 |
" /* Tworzenie gniazda lokalnego. */\n" |
| 2072 |
"\\&\n" |
| 2073 |
" connection_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n" |
| 2074 |
" if (connection_socket == -1) {\n" |
| 2075 |
" perror(\"socket\");\n" |
| 2076 |
" exit(EXIT_FAILURE);\n" |
| 2077 |
" }\n" |
| 2078 |
"\\&\n" |
| 2079 |
" /*\n" |
| 2080 |
" * Ze względu na przenośność konieczne jest wyczyszczenie całej\n" |
| 2081 |
" * struktury, ponieważ niektóre implementacje zawierają dodatkowe\n" |
| 2082 |
" * (nieprzenośne) pola w strukturze.\n" |
| 2083 |
" */\n" |
| 2084 |
"\\&\n" |
| 2085 |
" memset(&name, 0, sizeof(name));\n" |
| 2086 |
"\\&\n" |
| 2087 |
" /* Skojarzenie gniazda z nazwą gniazda. */\n" |
| 2088 |
"\\&\n" |
| 2089 |
" name.sun_family = AF_UNIX;\n" |
| 2090 |
" strncpy(name.sun_path, SOCKET_NAME, sizeof(name.sun_path) - 1);\n" |
| 2091 |
"\\&\n" |
| 2092 |
" ret = bind(connection_socket, (const struct sockaddr *) &name,\n" |
| 2093 |
" sizeof(name));\n" |
| 2094 |
" if (ret == -1) {\n" |
| 2095 |
" perror(\"bind\");\n" |
| 2096 |
" exit(EXIT_FAILURE);\n" |
| 2097 |
" }\n" |
| 2098 |
"\\&\n" |
| 2099 |
" /*\n" |
| 2100 |
" * Przygotowanie do przyjmowania połączeń. Rozmiar dziennika zaległości\n" |
| 2101 |
" * ustawiony na 20. W trakcie przetwarzania jednego żądania, inne mogą\n" |
| 2102 |
" * zatem oczekiwać.\n" |
| 2103 |
" */\n" |
| 2104 |
"\\&\n" |
| 2105 |
" ret = listen(connection_socket, 20);\n" |
| 2106 |
" if (ret == -1) {\n" |
| 2107 |
" perror(\"listen\");\n" |
| 2108 |
" exit(EXIT_FAILURE);\n" |
| 2109 |
" }\n" |
| 2110 |
"\\&\n" |
| 2111 |
" /* To jest główna pętla do obsługi połączeń. */\n" |
| 2112 |
"\\&\n" |
| 2113 |
" for (;;) {\n" |
| 2114 |
"\\&\n" |
| 2115 |
" /* Oczekiwanie na połączenie przychodzące. */\n" |
| 2116 |
"\\&\n" |
| 2117 |
" data_socket = accept(connection_socket, NULL, NULL);\n" |
| 2118 |
" if (data_socket == -1) {\n" |
| 2119 |
" perror(\"accept\");\n" |
| 2120 |
" exit(EXIT_FAILURE);\n" |
| 2121 |
" }\n" |
| 2122 |
"\\&\n" |
| 2123 |
" result = 0;\n" |
| 2124 |
" for (;;) {\n" |
| 2125 |
"\\&\n" |
| 2126 |
" /* Oczekiwanie na następny pakiet danych. */\n" |
| 2127 |
"\\&\n" |
| 2128 |
" r = read(data_socket, buffer, sizeof(buffer));\n" |
| 2129 |
" if (r == -1) {\n" |
| 2130 |
" perror(\"read\");\n" |
| 2131 |
" exit(EXIT_FAILURE);\n" |
| 2132 |
" }\n" |
| 2133 |
"\\&\n" |
| 2134 |
" /* Upewnienie się, że bufor jest zakończony 0. */\n" |
| 2135 |
"\\&\n" |
| 2136 |
" buffer[sizeof(buffer) - 1] = 0;\n" |
| 2137 |
"\\&\n" |
| 2138 |
" /* Obsługa poleceń. */\n" |
| 2139 |
"\\&\n" |
| 2140 |
" if (!strncmp(buffer, \"DOWN\", sizeof(buffer))) {\n" |
| 2141 |
" down_flag = 1;\n" |
| 2142 |
" continue;\n" |
| 2143 |
" }\n" |
| 2144 |
"\\&\n" |
| 2145 |
" if (!strncmp(buffer, \"END\", sizeof(buffer))) {\n" |
| 2146 |
" break;\n" |
| 2147 |
" }\n" |
| 2148 |
"\\&\n" |
| 2149 |
" if (down_flag) {\n" |
| 2150 |
" continue;\n" |
| 2151 |
" }\n" |
| 2152 |
"\\&\n" |
| 2153 |
" /* Dodanie otrzymanego składnika. */\n" |
| 2154 |
"\\&\n" |
| 2155 |
" result += atoi(buffer);\n" |
| 2156 |
" }\n" |
| 2157 |
"\\&\n" |
| 2158 |
" /* Wysłanie wyniku. */\n" |
| 2159 |
"\\&\n" |
| 2160 |
" sprintf(buffer, \"%d\", result);\n" |
| 2161 |
" w = write(data_socket, buffer, sizeof(buffer));\n" |
| 2162 |
" if (w == -1) {\n" |
| 2163 |
" perror(\"write\");\n" |
| 2164 |
" exit(EXIT_FAILURE);\n" |
| 2165 |
" }\n" |
| 2166 |
"\\&\n" |
| 2167 |
" /* Zamknięcie gniazda. */\n" |
| 2168 |
"\\&\n" |
| 2169 |
" close(data_socket);\n" |
| 2170 |
"\\&\n" |
| 2171 |
" /* Wyjście na polecenie DOWN. */\n" |
| 2172 |
"\\&\n" |
| 2173 |
" if (down_flag) {\n" |
| 2174 |
" break;\n" |
| 2175 |
" }\n" |
| 2176 |
" }\n" |
| 2177 |
"\\&\n" |
| 2178 |
" close(connection_socket);\n" |
| 2179 |
"\\&\n" |
| 2180 |
" /* Odlinkowanie gniazda. */\n" |
| 2181 |
"\\&\n" |
| 2182 |
" unlink(SOCKET_NAME);\n" |
| 2183 |
"\\&\n" |
| 2184 |
" exit(EXIT_SUCCESS);\n" |
| 2185 |
"}\n" |
| 2186 |
|
| 2187 |
#. type: Plain text |
| 2188 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2189 |
#: opensuse-tumbleweed |
| 2190 |
#, no-wrap |
| 2191 |
msgid "" |
| 2192 |
"/*\n" |
| 2193 |
" * File client.c\n" |
| 2194 |
" */\n" |
| 2195 |
"\\&\n" |
| 2196 |
"#include E<lt>stdio.hE<gt>\n" |
| 2197 |
"#include E<lt>stdlib.hE<gt>\n" |
| 2198 |
"#include E<lt>string.hE<gt>\n" |
| 2199 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 2200 |
"#include E<lt>sys/types.hE<gt>\n" |
| 2201 |
"#include E<lt>sys/un.hE<gt>\n" |
| 2202 |
"#include E<lt>unistd.hE<gt>\n" |
| 2203 |
"\\&\n" |
| 2204 |
"#include \"connection.h\"\n" |
| 2205 |
"\\&\n" |
| 2206 |
"int\n" |
| 2207 |
"main(int argc, char *argv[])\n" |
| 2208 |
"{\n" |
| 2209 |
" int ret;\n" |
| 2210 |
" int data_socket;\n" |
| 2211 |
" ssize_t r, w;\n" |
| 2212 |
" struct sockaddr_un addr;\n" |
| 2213 |
" char buffer[BUFFER_SIZE];\n" |
| 2214 |
"\\&\n" |
| 2215 |
" /* Create local socket. */\n" |
| 2216 |
"\\&\n" |
| 2217 |
" data_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n" |
| 2218 |
" if (data_socket == -1) {\n" |
| 2219 |
" perror(\"socket\");\n" |
| 2220 |
" exit(EXIT_FAILURE);\n" |
| 2221 |
" }\n" |
| 2222 |
"\\&\n" |
| 2223 |
" /*\n" |
| 2224 |
" * For portability clear the whole structure, since some\n" |
| 2225 |
" * implementations have additional (nonstandard) fields in\n" |
| 2226 |
" * the structure.\n" |
| 2227 |
" */\n" |
| 2228 |
"\\&\n" |
| 2229 |
" memset(&addr, 0, sizeof(addr));\n" |
| 2230 |
"\\&\n" |
| 2231 |
" /* Connect socket to socket address. */\n" |
| 2232 |
"\\&\n" |
| 2233 |
" addr.sun_family = AF_UNIX;\n" |
| 2234 |
" strncpy(addr.sun_path, SOCKET_NAME, sizeof(addr.sun_path) - 1);\n" |
| 2235 |
"\\&\n" |
| 2236 |
" ret = connect(data_socket, (const struct sockaddr *) &addr,\n" |
| 2237 |
" sizeof(addr));\n" |
| 2238 |
" if (ret == -1) {\n" |
| 2239 |
" fprintf(stderr, \"The server is down.\\[rs]n\");\n" |
| 2240 |
" exit(EXIT_FAILURE);\n" |
| 2241 |
" }\n" |
| 2242 |
"\\&\n" |
| 2243 |
" /* Send arguments. */\n" |
| 2244 |
"\\&\n" |
| 2245 |
" for (int i = 1; i E<lt> argc; ++i) {\n" |
| 2246 |
" w = write(data_socket, argv[i], strlen(argv[i]) + 1);\n" |
| 2247 |
" if (w == -1) {\n" |
| 2248 |
" perror(\"write\");\n" |
| 2249 |
" break;\n" |
| 2250 |
" }\n" |
| 2251 |
" }\n" |
| 2252 |
"\\&\n" |
| 2253 |
" /* Request result. */\n" |
| 2254 |
"\\&\n" |
| 2255 |
" strcpy(buffer, \"END\");\n" |
| 2256 |
" w = write(data_socket, buffer, strlen(buffer) + 1);\n" |
| 2257 |
" if (w == -1) {\n" |
| 2258 |
" perror(\"write\");\n" |
| 2259 |
" exit(EXIT_FAILURE);\n" |
| 2260 |
" }\n" |
| 2261 |
"\\&\n" |
| 2262 |
" /* Receive result. */\n" |
| 2263 |
"\\&\n" |
| 2264 |
" r = read(data_socket, buffer, sizeof(buffer));\n" |
| 2265 |
" if (r == -1) {\n" |
| 2266 |
" perror(\"read\");\n" |
| 2267 |
" exit(EXIT_FAILURE);\n" |
| 2268 |
" }\n" |
| 2269 |
"\\&\n" |
| 2270 |
" /* Ensure buffer is 0-terminated. */\n" |
| 2271 |
"\\&\n" |
| 2272 |
" buffer[sizeof(buffer) - 1] = 0;\n" |
| 2273 |
"\\&\n" |
| 2274 |
" printf(\"Result = %s\\[rs]n\", buffer);\n" |
| 2275 |
"\\&\n" |
| 2276 |
" /* Close socket. */\n" |
| 2277 |
"\\&\n" |
| 2278 |
" close(data_socket);\n" |
| 2279 |
"\\&\n" |
| 2280 |
" exit(EXIT_SUCCESS);\n" |
| 2281 |
"}\n" |
| 2282 |
msgstr "" |
| 2283 |
"/*\n" |
| 2284 |
" * Plik client.c\n" |
| 2285 |
" */\n" |
| 2286 |
"\\&\n" |
| 2287 |
"#include E<lt>stdio.hE<gt>\n" |
| 2288 |
"#include E<lt>stdlib.hE<gt>\n" |
| 2289 |
"#include E<lt>string.hE<gt>\n" |
| 2290 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 2291 |
"#include E<lt>sys/types.hE<gt>\n" |
| 2292 |
"#include E<lt>sys/un.hE<gt>\n" |
| 2293 |
"#include E<lt>unistd.hE<gt>\n" |
| 2294 |
"\\&\n" |
| 2295 |
"#include \"connection.h\"\n" |
| 2296 |
"\\&\n" |
| 2297 |
"int\n" |
| 2298 |
"main(int argc, char *argv[])\n" |
| 2299 |
"{\n" |
| 2300 |
" int ret;\n" |
| 2301 |
" int data_socket;\n" |
| 2302 |
" ssize_t r, w;\n" |
| 2303 |
" struct sockaddr_un addr;\n" |
| 2304 |
" char buffer[BUFFER_SIZE];\n" |
| 2305 |
"\\&\n" |
| 2306 |
" /* Tworzenie gniazda lokalnego. */\n" |
| 2307 |
"\\&\n" |
| 2308 |
" data_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n" |
| 2309 |
" if (data_socket == -1) {\n" |
| 2310 |
" perror(\"socket\");\n" |
| 2311 |
" exit(EXIT_FAILURE);\n" |
| 2312 |
" }\n" |
| 2313 |
"\\&\n" |
| 2314 |
" /*\n" |
| 2315 |
" * Ze względu na przenośność konieczne jest wyczyszczenie całej\n" |
| 2316 |
" * struktury, ponieważ niektóre implementacje zawierają dodatkowe\n" |
| 2317 |
" * (nieprzenośne) pola w strukturze.\n" |
| 2318 |
" */\n" |
| 2319 |
"\\&\n" |
| 2320 |
" memset(&addr, 0, sizeof(addr));\n" |
| 2321 |
"\\&\n" |
| 2322 |
" /* Łączenie gniazda z adresem gniazda. */\n" |
| 2323 |
"\\&\n" |
| 2324 |
" addr.sun_family = AF_UNIX;\n" |
| 2325 |
" strncpy(addr.sun_path, SOCKET_NAME, sizeof(addr.sun_path) - 1);\n" |
| 2326 |
"\\&\n" |
| 2327 |
" ret = connect(data_socket, (const struct sockaddr *) &addr,\n" |
| 2328 |
" sizeof(addr));\n" |
| 2329 |
" if (ret == -1) {\n" |
| 2330 |
" fprintf(stderr, \"Serwer jest wyłączony.\\[rs]n\");\n" |
| 2331 |
" exit(EXIT_FAILURE);\n" |
| 2332 |
" }\n" |
| 2333 |
"\\&\n" |
| 2334 |
" /* Wysyłanie argumentów. */\n" |
| 2335 |
"\\&\n" |
| 2336 |
" for (int i = 1; i E<lt> argc; ++i) {\n" |
| 2337 |
" w = write(data_socket, argv[i], strlen(argv[i]) + 1);\n" |
| 2338 |
" if (w == -1) {\n" |
| 2339 |
" perror(\"write\");\n" |
| 2340 |
" break;\n" |
| 2341 |
" }\n" |
| 2342 |
" }\n" |
| 2343 |
"\\&\n" |
| 2344 |
" /* Żądanie wyniku. */\n" |
| 2345 |
"\\&\n" |
| 2346 |
" strcpy(buffer, \"END\");\n" |
| 2347 |
" w = write(data_socket, buffer, strlen(buffer) + 1);\n" |
| 2348 |
" if (w == -1) {\n" |
| 2349 |
" perror(\"write\");\n" |
| 2350 |
" exit(EXIT_FAILURE);\n" |
| 2351 |
" }\n" |
| 2352 |
"\\&\n" |
| 2353 |
" /* Otrzymanie wyniku. */\n" |
| 2354 |
"\\&\n" |
| 2355 |
" r = read(data_socket, buffer, sizeof(buffer));\n" |
| 2356 |
" if (r == -1) {\n" |
| 2357 |
" perror(\"read\");\n" |
| 2358 |
" exit(EXIT_FAILURE);\n" |
| 2359 |
" }\n" |
| 2360 |
"\\&\n" |
| 2361 |
" /* Upewnienie się, że bufor kończy się 0. */\n" |
| 2362 |
"\\&\n" |
| 2363 |
" buffer[sizeof(buffer) - 1] = 0;\n" |
| 2364 |
"\\&\n" |
| 2365 |
" printf(\"Wynik = %s\\[rs]n\", buffer);\n" |
| 2366 |
"\\&\n" |
| 2367 |
" /* Zamknięcie gniazda. */\n" |
| 2368 |
"\\&\n" |
| 2369 |
" close(data_socket);\n" |
| 2370 |
"\\&\n" |
| 2371 |
" exit(EXIT_SUCCESS);\n" |
| 2372 |
"}\n" |
| 2373 |
|
| 2374 |
#. type: Plain text |
| 2375 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2376 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2377 |
msgid "" |
| 2378 |
"For examples of the use of B<SCM_RIGHTS>, see B<cmsg>(3) and " |
| 2379 |
"B<seccomp_unotify>(2)." |
| 2380 |
msgstr "" |
| 2381 |
"Przykłady użycia B<SCM_RIGHTS> można znaleźć w podręcznikach B<cmsg>(3) i " |
| 2382 |
"B<seccomp_unotify>(2)." |
| 2383 |
|
| 2384 |
#. type: SH |
| 2385 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2386 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2387 |
#, no-wrap |
| 2388 |
msgid "SEE ALSO" |
| 2389 |
msgstr "ZOBACZ TAKŻE" |
| 2390 |
|
| 2391 |
#. type: Plain text |
| 2392 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2393 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2394 |
msgid "" |
| 2395 |
"B<recvmsg>(2), B<sendmsg>(2), B<socket>(2), B<socketpair>(2), B<cmsg>(3), " |
| 2396 |
"B<capabilities>(7), B<credentials>(7), B<socket>(7), B<udp>(7)" |
| 2397 |
msgstr "" |
| 2398 |
"B<recvmsg>(2), B<sendmsg>(2), B<socket>(2), B<socketpair>(2), B<cmsg>(3), " |
| 2399 |
"B<capabilities>(7), B<credentials>(7), B<socket>(7), B<udp>(7)" |
| 2400 |
|
| 2401 |
#. type: TH |
| 2402 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2403 |
#, no-wrap |
| 2404 |
msgid "2024-06-15" |
| 2405 |
msgstr "15 czerwca 2024 r." |
| 2406 |
|
| 2407 |
#. type: TH |
| 2408 |
#: debian-trixie |
| 2409 |
#, no-wrap |
| 2410 |
msgid "Linux man-pages 6.9.1" |
| 2411 |
msgstr "Linux man-pages 6.9.1" |
| 2412 |
|
| 2413 |
#. type: TP |
| 2414 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2415 |
#, no-wrap |
| 2416 |
msgid "B<SO_PEERSEC>" |
| 2417 |
msgstr "B<SO_PEERSEC>" |
| 2418 |
|
| 2419 |
#. type: Plain text |
| 2420 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2421 |
msgid "" |
| 2422 |
"This read-only socket option returns the security context of the peer socket " |
| 2423 |
"connected to this socket. By default, this will be the same as the security " |
| 2424 |
"context of the process that created the peer socket unless overridden by the " |
| 2425 |
"policy or by a process with the required permissions." |
| 2426 |
msgstr "" |
| 2427 |
"Ta opcja gniazda tylko do odczytu zwraca kontekst bezpieczeństwa drugiego " |
| 2428 |
"gniazda skojarzonego z tym gniazdem. Domyślnie będzie to taka sama wartość " |
| 2429 |
"jak wartość kontekstu procesu tworzącego drugie gniazdo, chyba że zostanie " |
| 2430 |
"przesłoniona zasadami lub procesem z wymaganymi uprawnieniami." |
| 2431 |
|
| 2432 |
#. type: Plain text |
| 2433 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2434 |
msgid "" |
| 2435 |
"The argument to B<getsockopt>(2) is a pointer to a buffer of the specified " |
| 2436 |
"length in bytes into which the security context string will be copied. If " |
| 2437 |
"the buffer length is less than the length of the security context string, " |
| 2438 |
"then B<getsockopt>(2) returns -1, sets I<errno> to B<ERANGE>, and returns " |
| 2439 |
"the required length via I<optlen>. The caller should allocate at least " |
| 2440 |
"B<NAME_MAX> bytes for the buffer initially, although this is not guaranteed " |
| 2441 |
"to be sufficient. Resizing the buffer to the returned length and retrying " |
| 2442 |
"may be necessary." |
| 2443 |
msgstr "" |
| 2444 |
"Argumentem do B<getsockopt>(2) jest wskaźnik do bufora określonej długości w " |
| 2445 |
"bajtach, którego łańcuch kontekstu bezpieczeństwa ma zostać skopiowany. " |
| 2446 |
"Jeśli długość bufora jest mniejsza niż długość łańcucha kontekstu " |
| 2447 |
"bezpieczeństwa, to B<getsockopt>(2) zwróci -1, ustawi I<errno> na B<ERANGE> " |
| 2448 |
"i zwróci wymaganą długość za pomocą I<optlen>. Wywołujący powinien " |
| 2449 |
"początkowo przydzielić co najmniej B<NAME_MAX> bajtów dla bufora, choć nie " |
| 2450 |
"ma gwarancji, że będzie to wielkość wystarczająca. Może zajść konieczność " |
| 2451 |
"dostosowania wielkości bufora do zwróconej długości i wykonanie drugiego " |
| 2452 |
"podejścia." |
| 2453 |
|
| 2454 |
#. type: Plain text |
| 2455 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2456 |
msgid "" |
| 2457 |
"The security context string may include a terminating null character in the " |
| 2458 |
"returned length, but is not guaranteed to do so: a security context \"foo\" " |
| 2459 |
"might be represented as either {'f','o','o'} of length 3 or " |
| 2460 |
"{'f','o','o','\\e0'} of length 4, which are considered to be " |
| 2461 |
"interchangeable. The string is printable, does not contain non-terminating " |
| 2462 |
"null characters, and is in an unspecified encoding (in particular, it is not " |
| 2463 |
"guaranteed to be ASCII or UTF-8)." |
| 2464 |
msgstr "" |
| 2465 |
"Łańcuch kontekstu bezpieczeństwa może zawierać kończący znak null w " |
| 2466 |
"zwracanej długości, ale nie jest to gwarantowane. Kontekst bezpieczeństwa " |
| 2467 |
"\"foo\" może być reprezentowany jako {'f','o','o'} o długości 3 lub " |
| 2468 |
"{'f','o','o','\\e0'} o długości 4, oba te warianty są uważane za " |
| 2469 |
"równorzędne. Łańcuch jest drukowalny, nie zawiera znaków null innych niż " |
| 2470 |
"kończące łańcuch oraz ma nieokreślone kodowanie (w szczególności, nie " |
| 2471 |
"gwarantuje się kodowania ASCII lub UTF-8)." |
| 2472 |
|
| 2473 |
#. commit 0b811db2cb2aabc910e53d34ebb95a15997c33e7 |
| 2474 |
#. type: Plain text |
| 2475 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2476 |
msgid "" |
| 2477 |
"The use of this option for sockets in the B<AF_UNIX> address family is " |
| 2478 |
"supported since Linux 2.6.2 for connected stream sockets, and since Linux " |
| 2479 |
"4.18 also for stream and datagram socket pairs created using " |
| 2480 |
"B<socketpair>(2)." |
| 2481 |
msgstr "" |
| 2482 |
"Użycie tej opcji do gniazd w rodzinie adresowej B<AF_UNIX> jest obsługiwane " |
| 2483 |
"od Linuksa 2.6.2 w przypadku skojarzonych gniazd strumieniowych, a od " |
| 2484 |
"Linuksa 4.18 również dla par gniazd strumieniowych i datagramowych " |
| 2485 |
"utworzonych za pomocą B<socketpair>(2)." |
| 2486 |
|
| 2487 |
#. type: Plain text |
| 2488 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2489 |
#, no-wrap |
| 2490 |
msgid "" |
| 2491 |
"$ B<./server &>\n" |
| 2492 |
"[1] 25887\n" |
| 2493 |
"$ B<./client 3 4>\n" |
| 2494 |
"Result = 7\n" |
| 2495 |
"$ B<./client 11 -5>\n" |
| 2496 |
"Result = 6\n" |
| 2497 |
"$ B<./client DOWN>\n" |
| 2498 |
"Result = 0\n" |
| 2499 |
"[1]+ Done ./server\n" |
| 2500 |
"$\n" |
| 2501 |
msgstr "" |
| 2502 |
"$ B<./server &>\n" |
| 2503 |
"[1] 25887\n" |
| 2504 |
"$ B<./client 3 4>\n" |
| 2505 |
"Wynik = 7\n" |
| 2506 |
"$ B<./client 11 -5>\n" |
| 2507 |
"Wynik = 6\n" |
| 2508 |
"$ B<./client DOWN>\n" |
| 2509 |
"Wynik = 0\n" |
| 2510 |
"[1]+ Done ./server\n" |
| 2511 |
"$\n" |
| 2512 |
|
| 2513 |
#. type: Plain text |
| 2514 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2515 |
#, no-wrap |
| 2516 |
msgid "" |
| 2517 |
"/*\n" |
| 2518 |
" * File server.c\n" |
| 2519 |
" */\n" |
| 2520 |
"\\&\n" |
| 2521 |
"#include E<lt>stdio.hE<gt>\n" |
| 2522 |
"#include E<lt>stdlib.hE<gt>\n" |
| 2523 |
"#include E<lt>string.hE<gt>\n" |
| 2524 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 2525 |
"#include E<lt>sys/types.hE<gt>\n" |
| 2526 |
"#include E<lt>sys/un.hE<gt>\n" |
| 2527 |
"#include E<lt>unistd.hE<gt>\n" |
| 2528 |
"\\&\n" |
| 2529 |
"#include \"connection.h\"\n" |
| 2530 |
"\\&\n" |
| 2531 |
"int\n" |
| 2532 |
"main(void)\n" |
| 2533 |
"{\n" |
| 2534 |
" int down_flag = 0;\n" |
| 2535 |
" int ret;\n" |
| 2536 |
" int connection_socket;\n" |
| 2537 |
" int data_socket;\n" |
| 2538 |
" int result;\n" |
| 2539 |
" ssize_t r, w;\n" |
| 2540 |
" struct sockaddr_un name;\n" |
| 2541 |
" char buffer[BUFFER_SIZE];\n" |
| 2542 |
"\\&\n" |
| 2543 |
" /* Create local socket. */\n" |
| 2544 |
"\\&\n" |
| 2545 |
" connection_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n" |
| 2546 |
" if (connection_socket == -1) {\n" |
| 2547 |
" perror(\"socket\");\n" |
| 2548 |
" exit(EXIT_FAILURE);\n" |
| 2549 |
" }\n" |
| 2550 |
"\\&\n" |
| 2551 |
" /*\n" |
| 2552 |
" * For portability clear the whole structure, since some\n" |
| 2553 |
" * implementations have additional (nonstandard) fields in\n" |
| 2554 |
" * the structure.\n" |
| 2555 |
" */\n" |
| 2556 |
"\\&\n" |
| 2557 |
" memset(&name, 0, sizeof(name));\n" |
| 2558 |
"\\&\n" |
| 2559 |
" /* Bind socket to socket name. */\n" |
| 2560 |
"\\&\n" |
| 2561 |
" name.sun_family = AF_UNIX;\n" |
| 2562 |
" strncpy(name.sun_path, SOCKET_NAME, sizeof(name.sun_path) - 1);\n" |
| 2563 |
"\\&\n" |
| 2564 |
" ret = bind(connection_socket, (const struct sockaddr *) &name,\n" |
| 2565 |
" sizeof(name));\n" |
| 2566 |
" if (ret == -1) {\n" |
| 2567 |
" perror(\"bind\");\n" |
| 2568 |
" exit(EXIT_FAILURE);\n" |
| 2569 |
" }\n" |
| 2570 |
"\\&\n" |
| 2571 |
" /*\n" |
| 2572 |
" * Prepare for accepting connections. The backlog size is set\n" |
| 2573 |
" * to 20. So while one request is being processed other requests\n" |
| 2574 |
" * can be waiting.\n" |
| 2575 |
" */\n" |
| 2576 |
"\\&\n" |
| 2577 |
" ret = listen(connection_socket, 20);\n" |
| 2578 |
" if (ret == -1) {\n" |
| 2579 |
" perror(\"listen\");\n" |
| 2580 |
" exit(EXIT_FAILURE);\n" |
| 2581 |
" }\n" |
| 2582 |
"\\&\n" |
| 2583 |
" /* This is the main loop for handling connections. */\n" |
| 2584 |
"\\&\n" |
| 2585 |
" for (;;) {\n" |
| 2586 |
"\\&\n" |
| 2587 |
" /* Wait for incoming connection. */\n" |
| 2588 |
"\\&\n" |
| 2589 |
" data_socket = accept(connection_socket, NULL, NULL);\n" |
| 2590 |
" if (data_socket == -1) {\n" |
| 2591 |
" perror(\"accept\");\n" |
| 2592 |
" exit(EXIT_FAILURE);\n" |
| 2593 |
" }\n" |
| 2594 |
"\\&\n" |
| 2595 |
" result = 0;\n" |
| 2596 |
" for (;;) {\n" |
| 2597 |
"\\&\n" |
| 2598 |
" /* Wait for next data packet. */\n" |
| 2599 |
"\\&\n" |
| 2600 |
" r = read(data_socket, buffer, sizeof(buffer));\n" |
| 2601 |
" if (r == -1) {\n" |
| 2602 |
" perror(\"read\");\n" |
| 2603 |
" exit(EXIT_FAILURE);\n" |
| 2604 |
" }\n" |
| 2605 |
"\\&\n" |
| 2606 |
" /* Ensure buffer is 0-terminated. */\n" |
| 2607 |
"\\&\n" |
| 2608 |
" buffer[sizeof(buffer) - 1] = 0;\n" |
| 2609 |
"\\&\n" |
| 2610 |
" /* Handle commands. */\n" |
| 2611 |
"\\&\n" |
| 2612 |
" if (!strncmp(buffer, \"DOWN\", sizeof(buffer))) {\n" |
| 2613 |
" down_flag = 1;\n" |
| 2614 |
" continue;\n" |
| 2615 |
" }\n" |
| 2616 |
"\\&\n" |
| 2617 |
" if (!strncmp(buffer, \"END\", sizeof(buffer))) {\n" |
| 2618 |
" break;\n" |
| 2619 |
" }\n" |
| 2620 |
"\\&\n" |
| 2621 |
" if (down_flag) {\n" |
| 2622 |
" continue;\n" |
| 2623 |
" }\n" |
| 2624 |
"\\&\n" |
| 2625 |
" /* Add received summand. */\n" |
| 2626 |
"\\&\n" |
| 2627 |
" result += atoi(buffer);\n" |
| 2628 |
" }\n" |
| 2629 |
"\\&\n" |
| 2630 |
" /* Send result. */\n" |
| 2631 |
"\\&\n" |
| 2632 |
" sprintf(buffer, \"%d\", result);\n" |
| 2633 |
" w = write(data_socket, buffer, sizeof(buffer));\n" |
| 2634 |
" if (w == -1) {\n" |
| 2635 |
" perror(\"write\");\n" |
| 2636 |
" exit(EXIT_FAILURE);\n" |
| 2637 |
" }\n" |
| 2638 |
"\\&\n" |
| 2639 |
" /* Close socket. */\n" |
| 2640 |
"\\&\n" |
| 2641 |
" close(data_socket);\n" |
| 2642 |
"\\&\n" |
| 2643 |
" /* Quit on DOWN command. */\n" |
| 2644 |
"\\&\n" |
| 2645 |
" if (down_flag) {\n" |
| 2646 |
" break;\n" |
| 2647 |
" }\n" |
| 2648 |
" }\n" |
| 2649 |
"\\&\n" |
| 2650 |
" close(connection_socket);\n" |
| 2651 |
"\\&\n" |
| 2652 |
" /* Unlink the socket. */\n" |
| 2653 |
"\\&\n" |
| 2654 |
" unlink(SOCKET_NAME);\n" |
| 2655 |
"\\&\n" |
| 2656 |
" exit(EXIT_SUCCESS);\n" |
| 2657 |
"}\n" |
| 2658 |
msgstr "" |
| 2659 |
"/*\n" |
| 2660 |
" * Plik server.c\n" |
| 2661 |
" */\n" |
| 2662 |
"\\&\n" |
| 2663 |
"#include E<lt>stdio.hE<gt>\n" |
| 2664 |
"#include E<lt>stdlib.hE<gt>\n" |
| 2665 |
"#include E<lt>string.hE<gt>\n" |
| 2666 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 2667 |
"#include E<lt>sys/types.hE<gt>\n" |
| 2668 |
"#include E<lt>sys/un.hE<gt>\n" |
| 2669 |
"#include E<lt>unistd.hE<gt>\n" |
| 2670 |
"\\&\n" |
| 2671 |
"#include \"connection.h\"\n" |
| 2672 |
"\\&\n" |
| 2673 |
"int\n" |
| 2674 |
"main(void)\n" |
| 2675 |
"{\n" |
| 2676 |
" int down_flag = 0;\n" |
| 2677 |
" int ret;\n" |
| 2678 |
" int connection_socket;\n" |
| 2679 |
" int data_socket;\n" |
| 2680 |
" int result;\n" |
| 2681 |
" ssize_t r, w;\n" |
| 2682 |
" struct sockaddr_un name;\n" |
| 2683 |
" char buffer[BUFFER_SIZE];\n" |
| 2684 |
"\\&\n" |
| 2685 |
" /* Tworzenie gniazda lokalnego. */\n" |
| 2686 |
"\\&\n" |
| 2687 |
" connection_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n" |
| 2688 |
" if (connection_socket == -1) {\n" |
| 2689 |
" perror(\"socket\");\n" |
| 2690 |
" exit(EXIT_FAILURE);\n" |
| 2691 |
" }\n" |
| 2692 |
"\\&\n" |
| 2693 |
" /*\n" |
| 2694 |
" * Ze względu na przenośność konieczne jest wyczyszczenie całej\n" |
| 2695 |
" * struktury, ponieważ niektóre implementacje zawierają dodatkowe\n" |
| 2696 |
" * (nieprzenośne) pola w strukturze.\n" |
| 2697 |
" */\n" |
| 2698 |
"\\&\n" |
| 2699 |
" memset(&name, 0, sizeof(name));\n" |
| 2700 |
"\\&\n" |
| 2701 |
" /* Skojarzenie gniazda z nazwą gniazda. */\n" |
| 2702 |
"\\&\n" |
| 2703 |
" name.sun_family = AF_UNIX;\n" |
| 2704 |
" strncpy(name.sun_path, SOCKET_NAME, sizeof(name.sun_path) - 1);\n" |
| 2705 |
"\\&\n" |
| 2706 |
" ret = bind(connection_socket, (const struct sockaddr *) &name,\n" |
| 2707 |
" sizeof(name));\n" |
| 2708 |
" if (ret == -1) {\n" |
| 2709 |
" perror(\"bind\");\n" |
| 2710 |
" exit(EXIT_FAILURE);\n" |
| 2711 |
" }\n" |
| 2712 |
"\\&\n" |
| 2713 |
" /*\n" |
| 2714 |
" * Przygotowanie do przyjmowania połączeń. Rozmiar dziennika zaległości\n" |
| 2715 |
" * ustawiony na 20. W trakcie przetwarzania jednego żądania, inne mogą\n" |
| 2716 |
" * zatem oczekiwać.\n" |
| 2717 |
" */\n" |
| 2718 |
"\\&\n" |
| 2719 |
" ret = listen(connection_socket, 20);\n" |
| 2720 |
" if (ret == -1) {\n" |
| 2721 |
" perror(\"listen\");\n" |
| 2722 |
" exit(EXIT_FAILURE);\n" |
| 2723 |
" }\n" |
| 2724 |
"\\&\n" |
| 2725 |
" /* To jest główna pętla do obsługi połączeń. */\n" |
| 2726 |
"\\&\n" |
| 2727 |
" for (;;) {\n" |
| 2728 |
"\\&\n" |
| 2729 |
" /* Oczekiwanie na połączenie przychodzące. */\n" |
| 2730 |
"\\&\n" |
| 2731 |
" data_socket = accept(connection_socket, NULL, NULL);\n" |
| 2732 |
" if (data_socket == -1) {\n" |
| 2733 |
" perror(\"accept\");\n" |
| 2734 |
" exit(EXIT_FAILURE);\n" |
| 2735 |
" }\n" |
| 2736 |
"\\&\n" |
| 2737 |
" result = 0;\n" |
| 2738 |
" for (;;) {\n" |
| 2739 |
"\\&\n" |
| 2740 |
" /* Oczekiwanie na następny pakiet danych. */\n" |
| 2741 |
"\\&\n" |
| 2742 |
" r = read(data_socket, buffer, sizeof(buffer));\n" |
| 2743 |
" if (r == -1) {\n" |
| 2744 |
" perror(\"read\");\n" |
| 2745 |
" exit(EXIT_FAILURE);\n" |
| 2746 |
" }\n" |
| 2747 |
"\\&\n" |
| 2748 |
" /* Upewnienie się, że bufor jest zakończony 0. */\n" |
| 2749 |
"\\&\n" |
| 2750 |
" buffer[sizeof(buffer) - 1] = 0;\n" |
| 2751 |
"\\&\n" |
| 2752 |
" /* Obsługa poleceń. */\n" |
| 2753 |
"\\&\n" |
| 2754 |
" if (!strncmp(buffer, \"DOWN\", sizeof(buffer))) {\n" |
| 2755 |
" down_flag = 1;\n" |
| 2756 |
" continue;\n" |
| 2757 |
" }\n" |
| 2758 |
"\\&\n" |
| 2759 |
" if (!strncmp(buffer, \"END\", sizeof(buffer))) {\n" |
| 2760 |
" break;\n" |
| 2761 |
" }\n" |
| 2762 |
"\\&\n" |
| 2763 |
" if (down_flag) {\n" |
| 2764 |
" continue;\n" |
| 2765 |
" }\n" |
| 2766 |
"\\&\n" |
| 2767 |
" /* Dodanie otrzymanego składnika. */\n" |
| 2768 |
"\\&\n" |
| 2769 |
" result += atoi(buffer);\n" |
| 2770 |
" }\n" |
| 2771 |
"\\&\n" |
| 2772 |
" /* Wysłanie wyniku. */\n" |
| 2773 |
"\\&\n" |
| 2774 |
" sprintf(buffer, \"%d\", result);\n" |
| 2775 |
" w = write(data_socket, buffer, sizeof(buffer));\n" |
| 2776 |
" if (w == -1) {\n" |
| 2777 |
" perror(\"write\");\n" |
| 2778 |
" exit(EXIT_FAILURE);\n" |
| 2779 |
" }\n" |
| 2780 |
"\\&\n" |
| 2781 |
" /* Zamknięcie gniazda. */\n" |
| 2782 |
"\\&\n" |
| 2783 |
" close(data_socket);\n" |
| 2784 |
"\\&\n" |
| 2785 |
" /* Wyjście na polecenie DOWN. */\n" |
| 2786 |
"\\&\n" |
| 2787 |
" if (down_flag) {\n" |
| 2788 |
" break;\n" |
| 2789 |
" }\n" |
| 2790 |
" }\n" |
| 2791 |
"\\&\n" |
| 2792 |
" close(connection_socket);\n" |
| 2793 |
"\\&\n" |
| 2794 |
" /* Odlinkowanie gniazda. */\n" |
| 2795 |
"\\&\n" |
| 2796 |
" unlink(SOCKET_NAME);\n" |
| 2797 |
"\\&\n" |
| 2798 |
" exit(EXIT_SUCCESS);\n" |
| 2799 |
"}\n" |
| 2800 |
|
| 2801 |
#. type: Plain text |
| 2802 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2803 |
#, no-wrap |
| 2804 |
msgid "" |
| 2805 |
"/*\n" |
| 2806 |
" * File client.c\n" |
| 2807 |
" */\n" |
| 2808 |
"\\&\n" |
| 2809 |
"#include E<lt>stdio.hE<gt>\n" |
| 2810 |
"#include E<lt>stdlib.hE<gt>\n" |
| 2811 |
"#include E<lt>string.hE<gt>\n" |
| 2812 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 2813 |
"#include E<lt>sys/types.hE<gt>\n" |
| 2814 |
"#include E<lt>sys/un.hE<gt>\n" |
| 2815 |
"#include E<lt>unistd.hE<gt>\n" |
| 2816 |
"\\&\n" |
| 2817 |
"#include \"connection.h\"\n" |
| 2818 |
"\\&\n" |
| 2819 |
"int\n" |
| 2820 |
"main(int argc, char *argv[])\n" |
| 2821 |
"{\n" |
| 2822 |
" int ret;\n" |
| 2823 |
" int data_socket;\n" |
| 2824 |
" ssize_t r, w;\n" |
| 2825 |
" struct sockaddr_un addr;\n" |
| 2826 |
" char buffer[BUFFER_SIZE];\n" |
| 2827 |
"\\&\n" |
| 2828 |
" /* Create local socket. */\n" |
| 2829 |
"\\&\n" |
| 2830 |
" data_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n" |
| 2831 |
" if (data_socket == -1) {\n" |
| 2832 |
" perror(\"socket\");\n" |
| 2833 |
" exit(EXIT_FAILURE);\n" |
| 2834 |
" }\n" |
| 2835 |
"\\&\n" |
| 2836 |
" /*\n" |
| 2837 |
" * For portability clear the whole structure, since some\n" |
| 2838 |
" * implementations have additional (nonstandard) fields in\n" |
| 2839 |
" * the structure.\n" |
| 2840 |
" */\n" |
| 2841 |
"\\&\n" |
| 2842 |
" memset(&addr, 0, sizeof(addr));\n" |
| 2843 |
"\\&\n" |
| 2844 |
" /* Connect socket to socket address. */\n" |
| 2845 |
"\\&\n" |
| 2846 |
" addr.sun_family = AF_UNIX;\n" |
| 2847 |
" strncpy(addr.sun_path, SOCKET_NAME, sizeof(addr.sun_path) - 1);\n" |
| 2848 |
"\\&\n" |
| 2849 |
" ret = connect(data_socket, (const struct sockaddr *) &addr,\n" |
| 2850 |
" sizeof(addr));\n" |
| 2851 |
" if (ret == -1) {\n" |
| 2852 |
" fprintf(stderr, \"The server is down.\\[rs]n\");\n" |
| 2853 |
" exit(EXIT_FAILURE);\n" |
| 2854 |
" }\n" |
| 2855 |
"\\&\n" |
| 2856 |
" /* Send arguments. */\n" |
| 2857 |
"\\&\n" |
| 2858 |
" for (int i = 1; i E<lt> argc; ++i) {\n" |
| 2859 |
" w = write(data_socket, argv[i], strlen(argv[i]) + 1);\n" |
| 2860 |
" if (w == -1) {\n" |
| 2861 |
" perror(\"write\");\n" |
| 2862 |
" break;\n" |
| 2863 |
" }\n" |
| 2864 |
" }\n" |
| 2865 |
"\\&\n" |
| 2866 |
" /* Request result. */\n" |
| 2867 |
"\\&\n" |
| 2868 |
" strcpy(buffer, \"END\");\n" |
| 2869 |
" w = write(data_socket, buffer, strlen(buffer) + 1);\n" |
| 2870 |
" if (w == -1) {\n" |
| 2871 |
" perror(\"write\");\n" |
| 2872 |
" exit(EXIT_FAILURE);\n" |
| 2873 |
" }\n" |
| 2874 |
"\\&\n" |
| 2875 |
" /* Receive result. */\n" |
| 2876 |
"\\&\n" |
| 2877 |
" r = read(data_socket, buffer, sizeof(buffer));\n" |
| 2878 |
" if (r == -1) {\n" |
| 2879 |
" perror(\"read\");\n" |
| 2880 |
" exit(EXIT_FAILURE);\n" |
| 2881 |
" }\n" |
| 2882 |
"\\&\n" |
| 2883 |
" /* Ensure buffer is 0-terminated. */\n" |
| 2884 |
"\\&\n" |
| 2885 |
" buffer[sizeof(buffer) - 1] = 0;\n" |
| 2886 |
"\\&\n" |
| 2887 |
" printf(\"Result = %s\\[rs]n\", buffer);\n" |
| 2888 |
"\\&\n" |
| 2889 |
" /* Close socket. */\n" |
| 2890 |
"\\&\n" |
| 2891 |
" close(data_socket);\n" |
| 2892 |
"\\&\n" |
| 2893 |
" exit(EXIT_SUCCESS);\n" |
| 2894 |
"}\n" |
| 2895 |
msgstr "" |
| 2896 |
"/*\n" |
| 2897 |
" * Plik client.c\n" |
| 2898 |
" */\n" |
| 2899 |
"\\&\n" |
| 2900 |
"#include E<lt>stdio.hE<gt>\n" |
| 2901 |
"#include E<lt>stdlib.hE<gt>\n" |
| 2902 |
"#include E<lt>string.hE<gt>\n" |
| 2903 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 2904 |
"#include E<lt>sys/types.hE<gt>\n" |
| 2905 |
"#include E<lt>sys/un.hE<gt>\n" |
| 2906 |
"#include E<lt>unistd.hE<gt>\n" |
| 2907 |
"\\&\n" |
| 2908 |
"#include \"connection.h\"\n" |
| 2909 |
"\\&\n" |
| 2910 |
"int\n" |
| 2911 |
"main(int argc, char *argv[])\n" |
| 2912 |
"{\n" |
| 2913 |
" int ret;\n" |
| 2914 |
" int data_socket;\n" |
| 2915 |
" ssize_t r, w;\n" |
| 2916 |
" struct sockaddr_un addr;\n" |
| 2917 |
" char buffer[BUFFER_SIZE];\n" |
| 2918 |
"\\&\n" |
| 2919 |
" /* Tworzenie gniazda lokalnego. */\n" |
| 2920 |
"\\&\n" |
| 2921 |
" data_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n" |
| 2922 |
" if (data_socket == -1) {\n" |
| 2923 |
" perror(\"socket\");\n" |
| 2924 |
" exit(EXIT_FAILURE);\n" |
| 2925 |
" }\n" |
| 2926 |
"\\&\n" |
| 2927 |
" /*\n" |
| 2928 |
" * Ze względu na przenośność konieczne jest wyczyszczenie całej\n" |
| 2929 |
" * struktury, ponieważ niektóre implementacje zawierają dodatkowe\n" |
| 2930 |
" * (nieprzenośne) pola w strukturze.\n" |
| 2931 |
" */\n" |
| 2932 |
"\\&\n" |
| 2933 |
" memset(&addr, 0, sizeof(addr));\n" |
| 2934 |
"\\&\n" |
| 2935 |
" /* Łączenie gniazda z adresem gniazda. */\n" |
| 2936 |
"\\&\n" |
| 2937 |
" addr.sun_family = AF_UNIX;\n" |
| 2938 |
" strncpy(addr.sun_path, SOCKET_NAME, sizeof(addr.sun_path) - 1);\n" |
| 2939 |
"\\&\n" |
| 2940 |
" ret = connect(data_socket, (const struct sockaddr *) &addr,\n" |
| 2941 |
" sizeof(addr));\n" |
| 2942 |
" if (ret == -1) {\n" |
| 2943 |
" fprintf(stderr, \"Serwer jest wyłączony.\\[rs]n\");\n" |
| 2944 |
" exit(EXIT_FAILURE);\n" |
| 2945 |
" }\n" |
| 2946 |
"\\&\n" |
| 2947 |
" /* Wysyłanie argumentów. */\n" |
| 2948 |
"\\&\n" |
| 2949 |
" for (int i = 1; i E<lt> argc; ++i) {\n" |
| 2950 |
" w = write(data_socket, argv[i], strlen(argv[i]) + 1);\n" |
| 2951 |
" if (w == -1) {\n" |
| 2952 |
" perror(\"write\");\n" |
| 2953 |
" break;\n" |
| 2954 |
" }\n" |
| 2955 |
" }\n" |
| 2956 |
"\\&\n" |
| 2957 |
" /* Żądanie wyniku. */\n" |
| 2958 |
"\\&\n" |
| 2959 |
" strcpy(buffer, \"END\");\n" |
| 2960 |
" w = write(data_socket, buffer, strlen(buffer) + 1);\n" |
| 2961 |
" if (w == -1) {\n" |
| 2962 |
" perror(\"write\");\n" |
| 2963 |
" exit(EXIT_FAILURE);\n" |
| 2964 |
" }\n" |
| 2965 |
"\\&\n" |
| 2966 |
" /* Otrzymanie wyniku. */\n" |
| 2967 |
"\\&\n" |
| 2968 |
" r = read(data_socket, buffer, sizeof(buffer));\n" |
| 2969 |
" if (r == -1) {\n" |
| 2970 |
" perror(\"read\");\n" |
| 2971 |
" exit(EXIT_FAILURE);\n" |
| 2972 |
" }\n" |
| 2973 |
"\\&\n" |
| 2974 |
" /* Upewnienie się, że bufor kończy się 0. */\n" |
| 2975 |
"\\&\n" |
| 2976 |
" buffer[sizeof(buffer) - 1] = 0;\n" |
| 2977 |
"\\&\n" |
| 2978 |
" printf(\"Wynik = %s\\[rs]n\", buffer);\n" |
| 2979 |
"\\&\n" |
| 2980 |
" /* Zamknięcie gniazda. */\n" |
| 2981 |
"\\&\n" |
| 2982 |
" close(data_socket);\n" |
| 2983 |
"\\&\n" |
| 2984 |
" exit(EXIT_SUCCESS);\n" |
| 2985 |
"}\n" |
| 2986 |
|
| 2987 |
#. type: TH |
| 2988 |
#: fedora-44 fedora-rawhide |
| 2989 |
#, no-wrap |
| 2990 |
msgid "Linux man-pages 6.13" |
| 2991 |
msgstr "Linux man-pages 6.13" |
| 2992 |
|
| 2993 |
#. type: TH |
| 2994 |
#: mageia-cauldron |
| 2995 |
#, no-wrap |
| 2996 |
msgid "Linux man-pages 6.17" |
| 2997 |
msgstr "Linux man-pages 6.17" |
| 2998 |
|
| 2999 |
#. type: TH |
| 3000 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3001 |
#, no-wrap |
| 3002 |
msgid "Linux man-pages (unreleased)" |
| 3003 |
msgstr "Linux man-pages (niewydane)" |