| 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 |
# Rafał Lewczuk <[email protected]>, 1999. |
| 5 |
# Andrzej Krzysztofowicz <[email protected]>, 2002. |
| 6 |
# Robert Luberda <[email protected]>, 2013. |
| 7 |
# Michał Kułach <[email protected]>, 2013, 2014, 2016, 2024, 2025, 2026. |
| 8 |
msgid "" |
| 9 |
msgstr "" |
| 10 |
"Project-Id-Version: manpages-pl\n" |
| 11 |
"POT-Creation-Date: 2026-06-05 06:32+0200\n" |
| 12 |
"PO-Revision-Date: 2026-03-15 12:33+0100\n" |
| 13 |
"Last-Translator: Michał Kułach <[email protected]>\n" |
| 14 |
"Language-Team: Polish <[email protected]>\n" |
| 15 |
"Language: pl\n" |
| 16 |
"MIME-Version: 1.0\n" |
| 17 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 18 |
"Content-Transfer-Encoding: 8bit\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 |
"X-Generator: Lokalize 25.04.0\n" |
| 22 |
|
| 23 |
#. type: TH |
| 24 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 25 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 26 |
#, no-wrap |
| 27 |
msgid "MSGOP" |
| 28 |
msgstr "MSGOP" |
| 29 |
|
| 30 |
#. type: TH |
| 31 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 32 |
#: opensuse-tumbleweed |
| 33 |
#, no-wrap |
| 34 |
msgid "2026-02-11" |
| 35 |
msgstr "11 lutego 2026 r." |
| 36 |
|
| 37 |
#. type: TH |
| 38 |
#: archlinux debian-unstable |
| 39 |
#, no-wrap |
| 40 |
msgid "Linux man-pages 6.18" |
| 41 |
msgstr "Linux man-pages 6.18" |
| 42 |
|
| 43 |
#. type: SH |
| 44 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 45 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 46 |
#, no-wrap |
| 47 |
msgid "NAME" |
| 48 |
msgstr "NAZWA" |
| 49 |
|
| 50 |
#. type: Plain text |
| 51 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 52 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 53 |
msgid "msgrcv, msgsnd - System V message queue operations" |
| 54 |
msgstr "msgrcv, msgsnd - przekazuje komunikaty kolejki Systemu V" |
| 55 |
|
| 56 |
#. type: SH |
| 57 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 58 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 59 |
#, no-wrap |
| 60 |
msgid "LIBRARY" |
| 61 |
msgstr "BIBLIOTEKA" |
| 62 |
|
| 63 |
#. type: Plain text |
| 64 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 65 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 66 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 67 |
msgstr "Standardowa biblioteka C (I<libc>,\\ I<-lc>)" |
| 68 |
|
| 69 |
#. type: SH |
| 70 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 71 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 72 |
#, no-wrap |
| 73 |
msgid "SYNOPSIS" |
| 74 |
msgstr "SKŁADNIA" |
| 75 |
|
| 76 |
#. type: Plain text |
| 77 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 78 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 79 |
#, no-wrap |
| 80 |
msgid "B<#include E<lt>sys/msg.hE<gt>>\n" |
| 81 |
msgstr "B<#include E<lt>sys/msg.hE<gt>>\n" |
| 82 |
|
| 83 |
#. type: Plain text |
| 84 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 85 |
#: opensuse-tumbleweed |
| 86 |
#, no-wrap |
| 87 |
msgid "" |
| 88 |
"B<ssize_t msgrcv(>size_t msgsz;\n" |
| 89 |
"B< int >I<msqid>B<, void >I<msgp>B<[>I<msgsz>B<], size_t >I<msgsz>B<, long >I<msgtyp>B<,>\n" |
| 90 |
"B< int >I<msgflg>B<);>\n" |
| 91 |
msgstr "" |
| 92 |
"B<ssize_t msgrcv(>size_t msgsz;\n" |
| 93 |
"B< int >I<msqid>B<, void >I<msgp>B<[>I<msgsz>B<], size_t >I<msgsz>B<, long >I<msgtyp>B<,>\n" |
| 94 |
"B< int >I<msgflg>B<);>\n" |
| 95 |
|
| 96 |
#. type: Plain text |
| 97 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 98 |
#: opensuse-tumbleweed |
| 99 |
#, no-wrap |
| 100 |
msgid "" |
| 101 |
"B<int msgsnd(>size_t msgsz;\n" |
| 102 |
"B< int >I<msqid>B<, const void >I<msgp>B<[>I<msgsz>B<], size_t >I<msgsz>B<,>\n" |
| 103 |
"B< int >I<msgflg>B<);>\n" |
| 104 |
msgstr "" |
| 105 |
"B<int msgsnd(>size_t msgsz;\n" |
| 106 |
"B< int >I<msqid>B<, const void >I<msgp>B<[>I<msgsz>B<], size_t >I<msgsz>B<,>\n" |
| 107 |
"B< int >I<msgflg>B<);>\n" |
| 108 |
|
| 109 |
#. type: SH |
| 110 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 111 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 112 |
#, no-wrap |
| 113 |
msgid "DESCRIPTION" |
| 114 |
msgstr "OPIS" |
| 115 |
|
| 116 |
#. type: Plain text |
| 117 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 118 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 119 |
msgid "" |
| 120 |
"The B<msgsnd>() and B<msgrcv>() system calls are used to send messages to, " |
| 121 |
"and receive messages from, a System\\ V message queue. The calling process " |
| 122 |
"must have write permission on the message queue in order to send a message, " |
| 123 |
"and read permission to receive a message." |
| 124 |
msgstr "" |
| 125 |
"Wywołań systemowych B<msgsnd>() i B<msgrcv>() używa się do wysyłania " |
| 126 |
"komunikatów do kolejki komunikatów i odbierania komunikatów z kolejki " |
| 127 |
"Systemu\\ V. Aby wysłać komunikat, proces wywołujący musi mieć uprawnienie " |
| 128 |
"do zapisu na kolejce komunikatów, a aby odebrać komunikat - uprawnienie do " |
| 129 |
"odczytu kolejki." |
| 130 |
|
| 131 |
#. type: Plain text |
| 132 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 133 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 134 |
msgid "" |
| 135 |
"The I<msgp> argument is a pointer to a caller-defined structure of the " |
| 136 |
"following general form:" |
| 137 |
msgstr "" |
| 138 |
"Parametr I<msgp> jest wskaźnikiem do zdefiniowanej przez proces wywołujący " |
| 139 |
"struktury, której ogólna postać wygląda tak:" |
| 140 |
|
| 141 |
#. type: Plain text |
| 142 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 143 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 144 |
#, no-wrap |
| 145 |
msgid "" |
| 146 |
"struct msgbuf {\n" |
| 147 |
" long mtype; /* message type, must be E<gt> 0 */\n" |
| 148 |
" char mtext[1]; /* message data */\n" |
| 149 |
"};\n" |
| 150 |
msgstr "" |
| 151 |
"struct msgbuf {\n" |
| 152 |
" long mtype; /* typ wiadomości, musi być E<gt> 0 */\n" |
| 153 |
" char mtext[1]; /* dane wiadomości */\n" |
| 154 |
"};\n" |
| 155 |
|
| 156 |
#. type: Plain text |
| 157 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 158 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 159 |
msgid "" |
| 160 |
"The I<mtext> field is an array (or other structure) whose size is specified " |
| 161 |
"by I<msgsz>, a nonnegative integer value. Messages of zero length (i.e., no " |
| 162 |
"I<mtext> field) are permitted. The I<mtype> field must have a strictly " |
| 163 |
"positive integer value. This value can be used by the receiving process for " |
| 164 |
"message selection (see the description of B<msgrcv>() below)." |
| 165 |
msgstr "" |
| 166 |
"Pole I<mtext> jest tablicą (lub inna strukturą) o rozmiarze określonym przez " |
| 167 |
"I<msgsz>, będącym nieujemną liczbą całkowitą. Dozwolone są komunikaty o " |
| 168 |
"zerowej długości (tzn. niezawierające pola I<mtext>). Wartość pola I<mtype> " |
| 169 |
"musi być liczbą ściśle dodatnią, która może służyć procesowi odbierającemu " |
| 170 |
"komunikaty do filtrowania kolejki (zobacz opis B<msgrcv>() poniżej)." |
| 171 |
|
| 172 |
#. type: SS |
| 173 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 174 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 175 |
#, no-wrap |
| 176 |
msgid "msgsnd()" |
| 177 |
msgstr "msgsnd()" |
| 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 |
"The B<msgsnd>() system call appends a copy of the message pointed to by " |
| 184 |
"I<msgp> to the message queue whose identifier is specified by I<msqid>." |
| 185 |
msgstr "" |
| 186 |
"Wywołanie systemowe B<msgsnd>() dołącza kopię komunikatu wskazywanego przez " |
| 187 |
"I<msgp> do kolejki o identyfikatorze określonym przez I<msqid>." |
| 188 |
|
| 189 |
#. type: Plain text |
| 190 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 191 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 192 |
msgid "" |
| 193 |
"If sufficient space is available in the queue, B<msgsnd>() succeeds " |
| 194 |
"immediately. The queue capacity is governed by the I<msg_qbytes> field in " |
| 195 |
"the associated data structure for the message queue. During queue creation " |
| 196 |
"this field is initialized to B<MSGMNB> bytes, but this limit can be modified " |
| 197 |
"using B<msgctl>(2). A message queue is considered to be full if either of " |
| 198 |
"the following conditions is true:" |
| 199 |
msgstr "" |
| 200 |
"Gdy w kolejce jest wystarczająco dużo miejsca, to B<msgsnd>() natychmiast " |
| 201 |
"kończy się pomyślnie. (Pojemność kolejki określona jest w polu I<msg_qbytes> " |
| 202 |
"struktury danych stowarzyszonej z kolejką. Podczas tworzenia kolejki polu " |
| 203 |
"temu jest przypisywana wartość początkowa wynosząca B<MSGMNB> bajtów, lecz " |
| 204 |
"ograniczenie to może zostać zmienione za pomocą B<msgctl>(2)). Kolejka " |
| 205 |
"komunikatów jest uważana za pełną w jednym z następujących przypadków:" |
| 206 |
|
| 207 |
#. type: IP |
| 208 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 209 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 210 |
#, no-wrap |
| 211 |
msgid "\\[bu]" |
| 212 |
msgstr "\\[bu]" |
| 213 |
|
| 214 |
#. type: Plain text |
| 215 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 216 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 217 |
msgid "" |
| 218 |
"Adding a new message to the queue would cause the total number of bytes in " |
| 219 |
"the queue to exceed the queue's maximum size (the I<msg_qbytes> field)." |
| 220 |
msgstr "" |
| 221 |
"Dodanie nowego komunikatu do kolejki spowoduje, że suma bajtów w kolejki " |
| 222 |
"przekroczy maksymalny rozmiar kolejki (pole I<msg_qbytes>)." |
| 223 |
|
| 224 |
#. type: Plain text |
| 225 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 226 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 227 |
msgid "" |
| 228 |
"Adding another message to the queue would cause the total number of messages " |
| 229 |
"in the queue to exceed the queue's maximum size (the I<msg_qbytes> field). " |
| 230 |
"This check is necessary to prevent an unlimited number of zero-length " |
| 231 |
"messages being placed on the queue. Although such messages contain no data, " |
| 232 |
"they nevertheless consume (locked) kernel memory." |
| 233 |
msgstr "" |
| 234 |
"Dodanie kolejnego komunikatu do kolejki spowoduje, że całkowita liczba " |
| 235 |
"komunikatów w kolejce przekroczy maksymalny rozmiar kolejki (pole " |
| 236 |
"I<msg_qbytes>). To sprawdzenie jest konieczne aby zapobiec umieszczaniu w " |
| 237 |
"kolejce nieograniczonej liczby komunikatów o zerowej długości. Choć takie " |
| 238 |
"komunikaty nie zawierają danych, to wciąż zajmują (zablokowaną) pamięć jądra." |
| 239 |
|
| 240 |
#. type: Plain text |
| 241 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 242 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 243 |
msgid "" |
| 244 |
"If insufficient space is available in the queue, then the default behavior " |
| 245 |
"of B<msgsnd>() is to block until space becomes available. If B<IPC_NOWAIT> " |
| 246 |
"is specified in I<msgflg>, then the call instead fails with the error " |
| 247 |
"B<EAGAIN>." |
| 248 |
msgstr "" |
| 249 |
"Jeśli w kolejce obecna jest niewystarczająca ilość wolnego miejsca, to " |
| 250 |
"domyślne zachowaniem B<msgsnd>() jest blokada do momentu uzyskania wolnej " |
| 251 |
"przestrzeni. Jeśli w I<msgflg> określono B<IPC_NOWAIT>, to zamiast tego " |
| 252 |
"wywołanie zwróci błąd B<EAGAIN>." |
| 253 |
|
| 254 |
#. type: Plain text |
| 255 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 256 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 257 |
msgid "A blocked B<msgsnd>() call may also fail if:" |
| 258 |
msgstr "Wstrzymane wywołanie B<msgsnd>() może się także nie powieść, jeżeli:" |
| 259 |
|
| 260 |
#. type: Plain text |
| 261 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 262 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 263 |
msgid "" |
| 264 |
"the queue is removed, in which case the system call fails with I<errno> set " |
| 265 |
"to B<EIDRM>; or" |
| 266 |
msgstr "" |
| 267 |
"kolejka zostanie usunięta z systemu - w tym przypadku wywołanie systemowe " |
| 268 |
"zgłosi błąd, przypisując zmiennej I<errno> wartość B<EIDRM>;" |
| 269 |
|
| 270 |
#. type: Plain text |
| 271 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 272 |
#: opensuse-tumbleweed |
| 273 |
msgid "" |
| 274 |
"a signal is caught, in which case the system call fails with I<errno> set to " |
| 275 |
"B<EINTR>; see B<signal>(7). (B<msgsnd>() is never automatically restarted " |
| 276 |
"after being interrupted by a signal handler, regardless of the setting of " |
| 277 |
"the B<SA_RESTART> flag when establishing a signal handler.)" |
| 278 |
msgstr "" |
| 279 |
"zostanie przechwycony sygnał - wtedy wywołanie to powoduje przypisanie " |
| 280 |
"zmiennej I<errno> wartości B<EINTR>; patrz B<signal>(7) (B<msgsnd>() po " |
| 281 |
"przerwaniu przez obsługę sygnału nie jest nigdy automatycznie restartowane, " |
| 282 |
"niezależnie od ustawienia znacznika B<SA_RESTART> podanego podczas " |
| 283 |
"ustanawiania funkcji obsługi sygnału)." |
| 284 |
|
| 285 |
# |
| 286 |
#. type: Plain text |
| 287 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 288 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 289 |
msgid "" |
| 290 |
"Upon successful completion the message queue data structure is updated as " |
| 291 |
"follows:" |
| 292 |
msgstr "" |
| 293 |
"Jeśli operacja zakończy się pomyślnie, to struktura danych opisująca kolejkę " |
| 294 |
"zostanie zmodyfikowana w następujący sposób:" |
| 295 |
|
| 296 |
# |
| 297 |
#. type: Plain text |
| 298 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 299 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 300 |
msgid "I<msg_lspid> is set to the process ID of the calling process." |
| 301 |
msgstr "" |
| 302 |
"I<msg_lspid> przypisany zostanie identyfikator procesu wykonującego tę " |
| 303 |
"operację." |
| 304 |
|
| 305 |
# |
| 306 |
#. type: Plain text |
| 307 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 308 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 309 |
msgid "I<msg_qnum> is incremented by 1." |
| 310 |
msgstr "I<msg_qnum> zostanie zwiększone o 1." |
| 311 |
|
| 312 |
# |
| 313 |
#. type: Plain text |
| 314 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 315 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 316 |
msgid "I<msg_stime> is set to the current time." |
| 317 |
msgstr "I<msg_stime> zostanie przypisany bieżący czas." |
| 318 |
|
| 319 |
#. type: SS |
| 320 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 321 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 322 |
#, no-wrap |
| 323 |
msgid "msgrcv()" |
| 324 |
msgstr "msgrcv()" |
| 325 |
|
| 326 |
#. type: Plain text |
| 327 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 328 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 329 |
msgid "" |
| 330 |
"The B<msgrcv>() system call removes a message from the queue specified by " |
| 331 |
"I<msqid> and places it in the buffer pointed to by I<msgp>." |
| 332 |
msgstr "" |
| 333 |
"Wywołanie systemowe B<msgrcv> usuwa komunikat z kolejki określonej przez " |
| 334 |
"I<msqid> i umieszcza go w buforze wskazywanym przez parametr I<msgp>." |
| 335 |
|
| 336 |
#. type: Plain text |
| 337 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 338 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 339 |
msgid "" |
| 340 |
"The argument I<msgsz> specifies the maximum size in bytes for the member " |
| 341 |
"I<mtext> of the structure pointed to by the I<msgp> argument. If the " |
| 342 |
"message text has length greater than I<msgsz>, then the behavior depends on " |
| 343 |
"whether B<MSG_NOERROR> is specified in I<msgflg>. If B<MSG_NOERROR> is " |
| 344 |
"specified, then the message text will be truncated (and the truncated part " |
| 345 |
"will be lost); if B<MSG_NOERROR> is not specified, then the message isn't " |
| 346 |
"removed from the queue and the system call fails returning -1 with I<errno> " |
| 347 |
"set to B<E2BIG>." |
| 348 |
msgstr "" |
| 349 |
"Parametr I<msgsz> określa maksymalny rozmiar w bajtach pola I<mtext> " |
| 350 |
"struktury wskazywanej przez parametr I<msgp>. Jeśli dane komunikatu zajmują " |
| 351 |
"więcej bajtów niż I<msgsz>, to wynik zależy od tego, czy w I<msgflg> " |
| 352 |
"przekazano znacznik B<MSG_NOERROR>. Jeżeli podano B<MSG_NOERROR>, to tekst " |
| 353 |
"komunikatu zostanie obcięty (obcięta część zostanie utracona); jeżeli " |
| 354 |
"B<MSG_NOERROR> nie występuje, to komunikat nie jest usuwany z kolejki, a " |
| 355 |
"wywołanie systemowe kończy się błędem, zwracając wartość -1 i ustawiając " |
| 356 |
"I<errno> na B<E2BIG>." |
| 357 |
|
| 358 |
#. type: Plain text |
| 359 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 360 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 361 |
msgid "" |
| 362 |
"Unless B<MSG_COPY> is specified in I<msgflg> (see below), the I<msgtyp> " |
| 363 |
"argument specifies the type of message requested, as follows:" |
| 364 |
msgstr "" |
| 365 |
"Jeżeli podano B<MSG_COPY> w I<msgflg> (zob. poniżej), parametr I<msgtyp> " |
| 366 |
"określa rodzaj komunikatu w następujący sposób:" |
| 367 |
|
| 368 |
#. type: Plain text |
| 369 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 370 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 371 |
msgid "If I<msgtyp> is 0, then the first message in the queue is read." |
| 372 |
msgstr "" |
| 373 |
"Jeśli I<msgtyp> jest równy 0, to czytany jest pierwszy komunikat z kolejki." |
| 374 |
|
| 375 |
#. type: Plain text |
| 376 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 377 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 378 |
msgid "" |
| 379 |
"If I<msgtyp> is greater than 0, then the first message in the queue of type " |
| 380 |
"I<msgtyp> is read, unless B<MSG_EXCEPT> was specified in I<msgflg>, in which " |
| 381 |
"case the first message in the queue of type not equal to I<msgtyp> will be " |
| 382 |
"read." |
| 383 |
msgstr "" |
| 384 |
"Jeśli I<msgtyp> ma wartość większą niż 0, to z kolejki odczytywany jest " |
| 385 |
"pierwszy komunikat o typie I<msgtyp>, chyba że w parametrze I<msgflg> " |
| 386 |
"zostanie ustawiony znacznik B<MSG_EXCEPT>, co spowoduje, że z kolejki " |
| 387 |
"zostanie odczytany pierwszy komunikat o typie różnym od I<msgtyp>." |
| 388 |
|
| 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 |
"If I<msgtyp> is less than 0, then the first message in the queue with the " |
| 394 |
"lowest type less than or equal to the absolute value of I<msgtyp> will be " |
| 395 |
"read." |
| 396 |
msgstr "" |
| 397 |
"Jeśli I<msgtyp> ma wartość mniejszą niż 0, to z kolejki zostanie odczytany " |
| 398 |
"pierwszy komunikat o najniższym numerze typu, mniejszym lub równym wartości " |
| 399 |
"bezwzględnej I<msgtyp>." |
| 400 |
|
| 401 |
#. type: Plain text |
| 402 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 403 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 404 |
msgid "" |
| 405 |
"The I<msgflg> argument is a bit mask constructed by ORing together zero or " |
| 406 |
"more of the following flags:" |
| 407 |
msgstr "" |
| 408 |
"Parametr I<msgflg> jest maską bitową, utworzoną jako alternatywa (OR) zera " |
| 409 |
"lub więcej następujących znaczników:" |
| 410 |
|
| 411 |
#. type: TP |
| 412 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 413 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 414 |
#, no-wrap |
| 415 |
msgid "B<IPC_NOWAIT>" |
| 416 |
msgstr "B<IPC_NOWAIT>" |
| 417 |
|
| 418 |
#. type: Plain text |
| 419 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 420 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 421 |
msgid "" |
| 422 |
"Return immediately if no message of the requested type is in the queue. The " |
| 423 |
"system call fails with I<errno> set to B<ENOMSG>." |
| 424 |
msgstr "" |
| 425 |
"Nie wstrzymuje pracy procesu, jeśli w kolejce nie ma komunikatów " |
| 426 |
"odpowiedniego typu. Wywołanie systemowe zwróci wówczas błąd, przypisując " |
| 427 |
"zmiennej I<errno> wartość B<ENOMSG>." |
| 428 |
|
| 429 |
#. type: TP |
| 430 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 431 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 432 |
#, no-wrap |
| 433 |
msgid "B<MSG_COPY> (since Linux 3.8)" |
| 434 |
msgstr "B<MSG_COPY> (od Linuksa 3.8)" |
| 435 |
|
| 436 |
#. commit 4a674f34ba04a002244edaf891b5da7fc1473ae8 |
| 437 |
#. type: Plain text |
| 438 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 439 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 440 |
msgid "" |
| 441 |
"Nondestructively fetch a copy of the message at the ordinal position in the " |
| 442 |
"queue specified by I<msgtyp> (messages are considered to be numbered " |
| 443 |
"starting at 0)." |
| 444 |
msgstr "" |
| 445 |
"Nieniszcząco pobiera kopię komunikatu na pozycji porządkowej w kolejce, " |
| 446 |
"określonej przez I<msgtyp> (komunikaty są rozważane jako numerowane od 0)." |
| 447 |
|
| 448 |
#. type: Plain text |
| 449 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 450 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 451 |
msgid "" |
| 452 |
"This flag must be specified in conjunction with B<IPC_NOWAIT>, with the " |
| 453 |
"result that, if there is no message available at the given position, the " |
| 454 |
"call fails immediately with the error B<ENOMSG>. Because they alter the " |
| 455 |
"meaning of I<msgtyp> in orthogonal ways, B<MSG_COPY> and B<MSG_EXCEPT> may " |
| 456 |
"not both be specified in I<msgflg>." |
| 457 |
msgstr "" |
| 458 |
"Ten znacznik należy podać w połączeniu z B<IPC_NOWAIT>, co skutkuje tym, że " |
| 459 |
"jeśli w danej pozycji nie ma dostępnego komunikatu, to wywołanie natychmiast " |
| 460 |
"zwraca błąd B<ENOMSG>. Ponieważ zmienia to znaczenie I<msgtyp> w różny " |
| 461 |
"sposób, B<MSG_COPY> i B<MSG_EXCEPT> nie mogą być podane równocześnie w " |
| 462 |
"I<msgflg>." |
| 463 |
|
| 464 |
#. type: Plain text |
| 465 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 466 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 467 |
msgid "" |
| 468 |
"The B<MSG_COPY> flag was added for the implementation of the kernel " |
| 469 |
"checkpoint-restore facility and is available only if the kernel was built " |
| 470 |
"with the B<CONFIG_CHECKPOINT_RESTORE> option." |
| 471 |
msgstr "" |
| 472 |
"Znacznik B<MSG_COPY> został dodany dla zaimplementowania w jądrze funkcji " |
| 473 |
"przywracania do punktu kontrolnego (checkpoint-restore) i jest dostępny " |
| 474 |
"wyłącznie wtedy, jeśli jądro zbudowano z opcją B<CONFIG_CHECKPOINT_RESTORE>." |
| 475 |
|
| 476 |
#. type: TP |
| 477 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 478 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 479 |
#, no-wrap |
| 480 |
msgid "B<MSG_EXCEPT>" |
| 481 |
msgstr "B<MSG_EXCEPT>" |
| 482 |
|
| 483 |
#. type: Plain text |
| 484 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 485 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 486 |
msgid "" |
| 487 |
"Used with I<msgtyp> greater than 0 to read the first message in the queue " |
| 488 |
"with message type that differs from I<msgtyp>." |
| 489 |
msgstr "" |
| 490 |
"Użyte z parametrem I<msgtyp> większym od 0, spowoduje odczytanie z kolejki " |
| 491 |
"pierwszego komunikatu o typie różnym od I<msgtyp>." |
| 492 |
|
| 493 |
#. type: TP |
| 494 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 495 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 496 |
#, no-wrap |
| 497 |
msgid "B<MSG_NOERROR>" |
| 498 |
msgstr "B<MSG_NOERROR>" |
| 499 |
|
| 500 |
#. type: Plain text |
| 501 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 502 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 503 |
msgid "To truncate the message text if longer than I<msgsz> bytes." |
| 504 |
msgstr "" |
| 505 |
"Spowoduje obcięcie komunikatu, jeśli jego dane są dłuższe niż I<msgsz> " |
| 506 |
"bajtów." |
| 507 |
|
| 508 |
#. type: Plain text |
| 509 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 510 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 511 |
msgid "" |
| 512 |
"If no message of the requested type is available and B<IPC_NOWAIT> isn't " |
| 513 |
"specified in I<msgflg>, the calling process is blocked until one of the " |
| 514 |
"following conditions occurs:" |
| 515 |
msgstr "" |
| 516 |
"Jeśli w kolejce nie ma komunikatu spełniającego te warunki, a znacznik " |
| 517 |
"B<IPC_NOWAIT> nie został ustawiony w I<msgflg>, to proces zostanie " |
| 518 |
"wstrzymany, dopóki nie nastąpi jedno z poniższych zdarzeń:" |
| 519 |
|
| 520 |
#. type: Plain text |
| 521 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 522 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 523 |
msgid "A message of the desired type is placed in the queue." |
| 524 |
msgstr "Komunikat odpowiedniego typu zostanie umieszczony w kolejce." |
| 525 |
|
| 526 |
#. type: Plain text |
| 527 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 528 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 529 |
msgid "" |
| 530 |
"The message queue is removed from the system. In this case, the system call " |
| 531 |
"fails with I<errno> set to B<EIDRM>." |
| 532 |
msgstr "" |
| 533 |
"Kolejka zostanie usunięta z systemu. W tym przypadku wywołanie systemowe " |
| 534 |
"zgłosi błąd, przypisując zmiennej I<errno> wartość B<EIDRM>." |
| 535 |
|
| 536 |
#. type: Plain text |
| 537 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 538 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 539 |
msgid "" |
| 540 |
"The calling process catches a signal. In this case, the system call fails " |
| 541 |
"with I<errno> set to B<EINTR>. (B<msgrcv>() is never automatically " |
| 542 |
"restarted after being interrupted by a signal handler, regardless of the " |
| 543 |
"setting of the B<SA_RESTART> flag when establishing a signal handler.)" |
| 544 |
msgstr "" |
| 545 |
"Proces wywołujący przechwyci sygnał. W takim przypadku wywołanie systemowe " |
| 546 |
"kończy się niepowodzeniem, ustawiając I<errno> na B<EINTR>. (B<msgrcv>() po " |
| 547 |
"przerwaniu przez obsługę sygnału nie jest nigdy automatycznie restartowane, " |
| 548 |
"niezależnie od ustawienia znacznika B<SA_RESTART> podczas ustanawiania " |
| 549 |
"funkcji obsługi sygnału)." |
| 550 |
|
| 551 |
# |
| 552 |
#. type: Plain text |
| 553 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 554 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 555 |
msgid "I<msg_lrpid> is set to the process ID of the calling process." |
| 556 |
msgstr "" |
| 557 |
"I<msg_lrpid> przyjmie wartość równą identyfikatorowi wołającego procesu" |
| 558 |
|
| 559 |
# |
| 560 |
#. type: Plain text |
| 561 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 562 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 563 |
msgid "I<msg_qnum> is decremented by 1." |
| 564 |
msgstr "I<msg_qnum> zostanie zmniejszone o 1." |
| 565 |
|
| 566 |
# |
| 567 |
#. type: Plain text |
| 568 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 569 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 570 |
msgid "I<msg_rtime> is set to the current time." |
| 571 |
msgstr "I<msg_rtime> zostanie przypisany bieżący czas." |
| 572 |
|
| 573 |
#. type: SH |
| 574 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 575 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 576 |
#, no-wrap |
| 577 |
msgid "RETURN VALUE" |
| 578 |
msgstr "WARTOŚĆ ZWRACANA" |
| 579 |
|
| 580 |
#. type: Plain text |
| 581 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 582 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 583 |
msgid "" |
| 584 |
"On success, B<msgsnd>() returns 0 and B<msgrcv>() returns the number of " |
| 585 |
"bytes actually copied into the I<mtext> array. On failure, both functions " |
| 586 |
"return -1, and set I<errno> to indicate the error." |
| 587 |
msgstr "" |
| 588 |
"W przypadku powodzenia, B<msgsnd>() zwróci 0, a B<msgrvc>() zwróci liczbę " |
| 589 |
"bajtów skopiowanych z kolejki do tablicy I<mtext>. W przypadku błędu, " |
| 590 |
"obydwie funkcje zwrócą -1 i ustawią I<errno>, wskazując błąd." |
| 591 |
|
| 592 |
#. type: SH |
| 593 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 594 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 595 |
#, no-wrap |
| 596 |
msgid "ERRORS" |
| 597 |
msgstr "BŁĘDY" |
| 598 |
|
| 599 |
#. type: Plain text |
| 600 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 601 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 602 |
msgid "B<msgsnd>() can fail with the following errors:" |
| 603 |
msgstr "B<msgsnd>() może zawieść z powodu następujących błędów:" |
| 604 |
|
| 605 |
#. type: TP |
| 606 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 607 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 608 |
#, no-wrap |
| 609 |
msgid "B<EACCES>" |
| 610 |
msgstr "B<EACCES>" |
| 611 |
|
| 612 |
#. type: Plain text |
| 613 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 614 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 615 |
msgid "" |
| 616 |
"The calling process does not have write permission on the message queue, and " |
| 617 |
"does not have the B<CAP_IPC_OWNER> capability in the user namespace that " |
| 618 |
"governs its IPC namespace." |
| 619 |
msgstr "" |
| 620 |
"Proces wywołujący nie ma prawa do zapisu kolejki komunikatów, ani nie ma " |
| 621 |
"przywileju B<CAP_IPC_OWNER> (ang. capability) w przestrzeni nazw " |
| 622 |
"użytkownika, która zarządza jego przestrzenią nazw IPC." |
| 623 |
|
| 624 |
#. type: TP |
| 625 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 626 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 627 |
#, no-wrap |
| 628 |
msgid "B<EAGAIN>" |
| 629 |
msgstr "B<EAGAIN>" |
| 630 |
|
| 631 |
#. type: Plain text |
| 632 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 633 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 634 |
msgid "" |
| 635 |
"The message can't be sent due to the I<msg_qbytes> limit for the queue and " |
| 636 |
"B<IPC_NOWAIT> was specified in I<msgflg>." |
| 637 |
msgstr "" |
| 638 |
"Komunikat nie może zostać wysłany z powodu ograniczenia I<msg_qbytes> " |
| 639 |
"dotyczącego kolejki, a nie przekazano znacznika B<IPC_NOWAIT> w parametrze " |
| 640 |
"I<mgsflg>." |
| 641 |
|
| 642 |
#. type: TP |
| 643 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 644 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 645 |
#, no-wrap |
| 646 |
msgid "B<EFAULT>" |
| 647 |
msgstr "B<EFAULT>" |
| 648 |
|
| 649 |
# |
| 650 |
#. type: Plain text |
| 651 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 652 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 653 |
msgid "The address pointed to by I<msgp> isn't accessible." |
| 654 |
msgstr "Adres wskazywany przez I<msgp> jest niedostępny." |
| 655 |
|
| 656 |
#. type: TP |
| 657 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 658 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 659 |
#, no-wrap |
| 660 |
msgid "B<EIDRM>" |
| 661 |
msgstr "B<EIDRM>" |
| 662 |
|
| 663 |
# |
| 664 |
#. type: Plain text |
| 665 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 666 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 667 |
msgid "The message queue was removed." |
| 668 |
msgstr "Kolejka komunikatów została usunięta." |
| 669 |
|
| 670 |
#. type: TP |
| 671 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 672 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 673 |
#, no-wrap |
| 674 |
msgid "B<EINTR>" |
| 675 |
msgstr "B<EINTR>" |
| 676 |
|
| 677 |
# |
| 678 |
#. type: Plain text |
| 679 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 680 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 681 |
msgid "" |
| 682 |
"Sleeping on a full message queue condition, the process caught a signal." |
| 683 |
msgstr "" |
| 684 |
"Podczas oczekiwania na zwolnienie miejsca w kolejce, proces przechwycił " |
| 685 |
"sygnał." |
| 686 |
|
| 687 |
#. type: TP |
| 688 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 689 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 690 |
#, no-wrap |
| 691 |
msgid "B<EINVAL>" |
| 692 |
msgstr "B<EINVAL>" |
| 693 |
|
| 694 |
# |
| 695 |
#. type: Plain text |
| 696 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 697 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 698 |
msgid "" |
| 699 |
"Invalid I<msqid> value, or nonpositive I<mtype> value, or invalid I<msgsz> " |
| 700 |
"value (less than 0 or greater than the system value B<MSGMAX>)." |
| 701 |
msgstr "" |
| 702 |
"Niewłaściwa wartość I<msqid>, I<mtype> (powinna być dodatnia) lub I<msgsz> " |
| 703 |
"(powinna być większa lub równa B<0> i mniejsza lub równa B<MSGMAX>)." |
| 704 |
|
| 705 |
#. type: TP |
| 706 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 707 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 708 |
#, no-wrap |
| 709 |
msgid "B<ENOMEM>" |
| 710 |
msgstr "B<ENOMEM>" |
| 711 |
|
| 712 |
#. type: Plain text |
| 713 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 714 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 715 |
msgid "" |
| 716 |
"The system does not have enough memory to make a copy of the message pointed " |
| 717 |
"to by I<msgp>." |
| 718 |
msgstr "" |
| 719 |
"Brak w systemie pamięci na skopiowanie komunikatu wskazywanego przez I<msgp>." |
| 720 |
|
| 721 |
#. type: Plain text |
| 722 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 723 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 724 |
msgid "B<msgrcv>() can fail with the following errors:" |
| 725 |
msgstr "B<msgrcv>() może zawieść z powodu następujących błędów:" |
| 726 |
|
| 727 |
#. type: TP |
| 728 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 729 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 730 |
#, no-wrap |
| 731 |
msgid "B<E2BIG>" |
| 732 |
msgstr "B<E2BIG>" |
| 733 |
|
| 734 |
#. type: Plain text |
| 735 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 736 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 737 |
msgid "" |
| 738 |
"The message text length is greater than I<msgsz> and B<MSG_NOERROR> isn't " |
| 739 |
"specified in I<msgflg>." |
| 740 |
msgstr "" |
| 741 |
"Tekst komunikatu jest dłuższy niż I<msgsz> i nie ustawiono znacznika " |
| 742 |
"B<MSG_NOERROR> w parametrze I<msgflg>." |
| 743 |
|
| 744 |
#. type: Plain text |
| 745 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 746 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 747 |
msgid "" |
| 748 |
"The calling process does not have read permission on the message queue, and " |
| 749 |
"does not have the B<CAP_IPC_OWNER> capability in the user namespace that " |
| 750 |
"governs its IPC namespace." |
| 751 |
msgstr "" |
| 752 |
"Proces wywołujący nie ma prawa do odczytu kolejki komunikatów, ani nie ma " |
| 753 |
"przywileju B<CAP_IPC_OWNER> (ang. capability) w przestrzeni nazw " |
| 754 |
"użytkownika, która zarządza jego przestrzenią nazw IPC." |
| 755 |
|
| 756 |
# |
| 757 |
#. type: Plain text |
| 758 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 759 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 760 |
msgid "" |
| 761 |
"While the process was sleeping to receive a message, the message queue was " |
| 762 |
"removed." |
| 763 |
msgstr "" |
| 764 |
"Proces oczekiwał na komunikat, ale w międzyczasie kolejka została usunięta." |
| 765 |
|
| 766 |
#. type: Plain text |
| 767 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 768 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 769 |
msgid "" |
| 770 |
"While the process was sleeping to receive a message, the process caught a " |
| 771 |
"signal; see B<signal>(7)." |
| 772 |
msgstr "" |
| 773 |
"Proces przechwycił sygnał podczas oczekiwania na odebranie komunikatu; patrz " |
| 774 |
"B<signal>(7)." |
| 775 |
|
| 776 |
#. type: Plain text |
| 777 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 778 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 779 |
msgid "I<msqid> was invalid, or I<msgsz> was less than 0." |
| 780 |
msgstr "I<msqid> był niepoprawny lub I<msgsz> był mniejszy od 0." |
| 781 |
|
| 782 |
#. type: TP |
| 783 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 784 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 785 |
#, no-wrap |
| 786 |
msgid "B<EINVAL> (since Linux 3.14)" |
| 787 |
msgstr "B<EINVAL> (od Linuksa 3.14)" |
| 788 |
|
| 789 |
#. type: Plain text |
| 790 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 791 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 792 |
msgid "I<msgflg> specified B<MSG_COPY>, but not B<IPC_NOWAIT>." |
| 793 |
msgstr "I<msgflg> określono jako B<MSG_COPY>, ale nie B<IPC_NOWAIT>." |
| 794 |
|
| 795 |
#. type: Plain text |
| 796 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 797 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 798 |
msgid "I<msgflg> specified both B<MSG_COPY> and B<MSG_EXCEPT>." |
| 799 |
msgstr "I<msgflg> określono jako B<MSG_COPY> i B<MSG_EXCEPT>." |
| 800 |
|
| 801 |
#. type: TP |
| 802 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 803 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 804 |
#, no-wrap |
| 805 |
msgid "B<ENOMSG>" |
| 806 |
msgstr "B<ENOMSG>" |
| 807 |
|
| 808 |
#. type: Plain text |
| 809 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 810 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 811 |
msgid "" |
| 812 |
"B<IPC_NOWAIT> was specified in I<msgflg> and no message of the requested " |
| 813 |
"type existed on the message queue." |
| 814 |
msgstr "" |
| 815 |
"Znacznik B<IPC_NOWAIT> został przekazany w I<msgflg>, ale w kolejce nie ma " |
| 816 |
"komunikatu żądanego typu." |
| 817 |
|
| 818 |
#. type: Plain text |
| 819 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 820 |
#: opensuse-tumbleweed |
| 821 |
msgid "" |
| 822 |
"B<IPC_NOWAIT> and B<MSG_COPY> were specified in I<msgflg> and the queue " |
| 823 |
"contains fewer than I<msgtyp> messages." |
| 824 |
msgstr "" |
| 825 |
"B<IPC_NOWAIT> i B<MSG_COPY> zostały określone w I<msgflg>, a kolejka zawiera " |
| 826 |
"mniej niż I<msgtyp> komunikatów." |
| 827 |
|
| 828 |
#. type: TP |
| 829 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 830 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 831 |
#, no-wrap |
| 832 |
msgid "B<ENOSYS> (since Linux 3.8)" |
| 833 |
msgstr "B<ENOSYS> (od Linuksa 3.8)" |
| 834 |
|
| 835 |
#. type: Plain text |
| 836 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 837 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 838 |
msgid "" |
| 839 |
"Both B<MSG_COPY> and B<IPC_NOWAIT> were specified in I<msgflg>, and this " |
| 840 |
"kernel was configured without B<CONFIG_CHECKPOINT_RESTORE>." |
| 841 |
msgstr "" |
| 842 |
"W I<msgflg> określono B<MSG_COPY> i B<IPC_NOWAIT>, a jądro zostało " |
| 843 |
"skonfigurowane bez opcji B<CONFIG_CHECKPOINT_RESTORE>." |
| 844 |
|
| 845 |
#. type: SH |
| 846 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 847 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 848 |
#, no-wrap |
| 849 |
msgid "STANDARDS" |
| 850 |
msgstr "STANDARDY" |
| 851 |
|
| 852 |
#. type: Plain text |
| 853 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 854 |
#: opensuse-tumbleweed |
| 855 |
msgid "POSIX.1-2024 XSI." |
| 856 |
msgstr "POSIX.1-2024 XSI." |
| 857 |
|
| 858 |
#. MSG_COPY since glibc 2.18 |
| 859 |
#. type: Plain text |
| 860 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 861 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 862 |
msgid "" |
| 863 |
"The B<MSG_EXCEPT> and B<MSG_COPY> flags are Linux-specific; their " |
| 864 |
"definitions can be obtained by defining the B<_GNU_SOURCE> feature test " |
| 865 |
"macro." |
| 866 |
msgstr "" |
| 867 |
"Znaczniki B<MSG_EXCEPT> i B<MSG_COPY> są charakterystyczne dla Linuksa, ich " |
| 868 |
"definicje można pobrać przez zdefiniowane makra testującego funkcje " |
| 869 |
"B<_GNU_SOURCE>." |
| 870 |
|
| 871 |
#. type: SH |
| 872 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 873 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 874 |
#, no-wrap |
| 875 |
msgid "HISTORY" |
| 876 |
msgstr "HISTORIA" |
| 877 |
|
| 878 |
#. type: Plain text |
| 879 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 880 |
#: opensuse-tumbleweed |
| 881 |
msgid "SVr4, SUSv1, POSIX.1-2001 XSI." |
| 882 |
msgstr "SVr4, SUSv1, POSIX.1-2001 XSI." |
| 883 |
|
| 884 |
#. type: Plain text |
| 885 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 886 |
#: opensuse-tumbleweed |
| 887 |
msgid "" |
| 888 |
"The I<msgp> argument is declared as I<struct\\ msgbuf\\ *> in glibc 2.0 and " |
| 889 |
"2.1. It is declared as I<void\\ *> in glibc 2.2 and later, as required by " |
| 890 |
"SUSv2 and SUSv3." |
| 891 |
msgstr "" |
| 892 |
"Parametr I<msgp> jest deklarowany jako I<struct\\ msgbuf\\ *> w glibc 2.0 i " |
| 893 |
"glibc 2.1. W glibc 2.2 i późniejszych jest deklarowany jako I<void\\ *>, " |
| 894 |
"zgodnie z wymaganiami SUSv2 i SUSv3." |
| 895 |
|
| 896 |
#. type: SH |
| 897 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 898 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 899 |
#, no-wrap |
| 900 |
msgid "NOTES" |
| 901 |
msgstr "UWAGI" |
| 902 |
|
| 903 |
#. type: Plain text |
| 904 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 905 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 906 |
msgid "" |
| 907 |
"The following limits on message queue resources affect the B<msgsnd>() call:" |
| 908 |
msgstr "Wywołania B<msgsnd>() dotyczą następujące ograniczenia systemowe:" |
| 909 |
|
| 910 |
#. type: TP |
| 911 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 912 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 913 |
#, no-wrap |
| 914 |
msgid "B<MSGMAX>" |
| 915 |
msgstr "B<MSGMAX>" |
| 916 |
|
| 917 |
#. type: Plain text |
| 918 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 919 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 920 |
msgid "" |
| 921 |
"Maximum size of a message text, in bytes (default value: 8192 bytes). On " |
| 922 |
"Linux, this limit can be read and modified via I</proc/sys/kernel/msgmax>." |
| 923 |
msgstr "" |
| 924 |
"Maksymalny rozmiar tekstu komunikatu, w bajtach: (domyślna wartość: 8192 " |
| 925 |
"bajty). Pod Linuksem ten limit można odczytać i modyfikować, używając pliku " |
| 926 |
"I</proc/sys/kernel/msgmax>." |
| 927 |
|
| 928 |
#. type: TP |
| 929 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 930 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 931 |
#, no-wrap |
| 932 |
msgid "B<MSGMNB>" |
| 933 |
msgstr "B<MSGMNB>" |
| 934 |
|
| 935 |
#. type: Plain text |
| 936 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 937 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 938 |
msgid "" |
| 939 |
"Maximum number of bytes that can be held in a message queue (default value: " |
| 940 |
"16384 bytes). On Linux, this limit can be read and modified via I</proc/sys/" |
| 941 |
"kernel/msgmnb>. A privileged process (Linux: a process with the " |
| 942 |
"B<CAP_SYS_RESOURCE> capability) can increase the size of a message queue " |
| 943 |
"beyond B<MSGMNB> using the B<msgctl>(2) B<IPC_SET> operation." |
| 944 |
msgstr "" |
| 945 |
"Maksymalna liczba bajtów, która może być przechowywana w kolejce komunikatów " |
| 946 |
"(domyślna wartość: 16384 bajtów). Pod Linuksem można ten limit odczytać i " |
| 947 |
"zmienić, używając pliku I</proc/sys/kernel/msgmnb>. Proces uprzywilejowany " |
| 948 |
"(w Linuksie: proces z przywilejem B<CAP_SYS_RESOURCE>) może zwiększyć " |
| 949 |
"rozmiar kolejki komunikatów poza B<MSGMNB> za pomocą operacji B<IPC_SET> " |
| 950 |
"B<msgctl>(2)." |
| 951 |
|
| 952 |
#. type: Plain text |
| 953 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 954 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 955 |
msgid "" |
| 956 |
"The implementation has no intrinsic system-wide limits on the number of " |
| 957 |
"message headers (B<MSGTQL>) and the number of bytes in the message pool " |
| 958 |
"(B<MSGPOOL>)." |
| 959 |
msgstr "" |
| 960 |
"W tej implementacji nie ma jawnego systemowego ograniczenia liczby " |
| 961 |
"komunikatów przechowywanych w kolejce (B<MSGTQL>) i na rozmiar obszaru (w " |
| 962 |
"bajtach) przeznaczonego na komunikaty (B<MSGPOOL>)." |
| 963 |
|
| 964 |
#. type: SH |
| 965 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 966 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 967 |
#, no-wrap |
| 968 |
msgid "BUGS" |
| 969 |
msgstr "USTERKI" |
| 970 |
|
| 971 |
#. http://marc.info/?l=linux-kernel&m=139048542803605&w=2 |
| 972 |
#. commit 4f87dac386cc43d5525da7a939d4b4e7edbea22c |
| 973 |
#. type: Plain text |
| 974 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 975 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 976 |
msgid "" |
| 977 |
"In Linux 3.13 and earlier, if B<msgrcv>() was called with the B<MSG_COPY> " |
| 978 |
"flag, but without B<IPC_NOWAIT>, and the message queue contained less than " |
| 979 |
"I<msgtyp> messages, then the call would block until the next message is " |
| 980 |
"written to the queue. At that point, the call would return a copy of the " |
| 981 |
"message, I<regardless> of whether that message was at the ordinal position " |
| 982 |
"I<msgtyp>. This bug is fixed in Linux 3.14." |
| 983 |
msgstr "" |
| 984 |
"W Linuksie 3.13 i wcześniejszych, jeśli B<msgrcv>() było wywołane ze " |
| 985 |
"znacznikiem B<MSG_COPY>, lecz bez B<IPC_NOWAIT>, a kolejka komunikatów " |
| 986 |
"zawierała mniej niż I<msgtyp> komunikatów, to wywołanie było zablokowane aż " |
| 987 |
"do zapisania kolejnego komunikatu do kolejki. W tym momencie wywołanie " |
| 988 |
"zwracało kopię komunikatu I<bez względu> na to czy komunikat był w pozycji " |
| 989 |
"I<msgtyp>. Błąd ten został naprawiony w jądrze Linux 3.14." |
| 990 |
|
| 991 |
#. http://marc.info/?l=linux-kernel&m=139048542803605&w=2 |
| 992 |
#. commit 4f87dac386cc43d5525da7a939d4b4e7edbea22c |
| 993 |
#. type: Plain text |
| 994 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 995 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 996 |
msgid "" |
| 997 |
"Specifying both B<MSG_COPY> and B<MSC_EXCEPT> in I<msgflg> is a logical " |
| 998 |
"error (since these flags impose different interpretations on I<msgtyp>). In " |
| 999 |
"Linux 3.13 and earlier, this error was not diagnosed by B<msgrcv>(). This " |
| 1000 |
"bug is fixed in Linux 3.14." |
| 1001 |
msgstr "" |
| 1002 |
"Podanie zarówno w I<msgflg> zarówno B<MSG_COPY> jak i B<MSC_EXCEPT> jest " |
| 1003 |
"błędem logicznym (ponieważ oba te znaczniki wymagają innej interpretacji " |
| 1004 |
"I<msgtyp>). W Linuksie 3.13 i wcześniejszych, błąd ten nie był diagnozowany " |
| 1005 |
"przez I<msgsrv>(). Zostało to naprawione w jądrze Linux 3.14." |
| 1006 |
|
| 1007 |
#. type: SH |
| 1008 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1009 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1010 |
#, no-wrap |
| 1011 |
msgid "EXAMPLES" |
| 1012 |
msgstr "PRZYKŁADY" |
| 1013 |
|
| 1014 |
#. type: Plain text |
| 1015 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1016 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1017 |
msgid "The program below demonstrates the use of B<msgsnd>() and B<msgrcv>()." |
| 1018 |
msgstr "Program poniżej demonstruje użycie B<msgsnd>() i B<msgrcv>()." |
| 1019 |
|
| 1020 |
#. type: Plain text |
| 1021 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1022 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1023 |
msgid "" |
| 1024 |
"The example program is first run with the B<-s> option to send a message and " |
| 1025 |
"then run again with the B<-r> option to receive a message." |
| 1026 |
msgstr "" |
| 1027 |
"Przykładowy program jest początkowo uruchomiony z opcją B<-s>, aby wysłać " |
| 1028 |
"komunikat, a następnie ponownie z opcją B<-r>, aby otrzymać komunikat." |
| 1029 |
|
| 1030 |
#. type: Plain text |
| 1031 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1032 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1033 |
msgid "The following shell session shows a sample run of the program:" |
| 1034 |
msgstr "Poniższa sesja powłoki pokazuje przykładowy przebieg programu:" |
| 1035 |
|
| 1036 |
#. type: Plain text |
| 1037 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1038 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1039 |
#, no-wrap |
| 1040 |
msgid "" |
| 1041 |
"$B< ./a.out -s>\n" |
| 1042 |
"sent: a message at Wed Mar 4 16:25:45 2015\n" |
| 1043 |
msgstr "" |
| 1044 |
"$B< ./a.out -s>\n" |
| 1045 |
"wysłano: a message at Wed Mar 4 16:25:45 2015\n" |
| 1046 |
|
| 1047 |
#. type: Plain text |
| 1048 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1049 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1050 |
#, no-wrap |
| 1051 |
msgid "" |
| 1052 |
"$B< ./a.out -r>\n" |
| 1053 |
"message received: a message at Wed Mar 4 16:25:45 2015\n" |
| 1054 |
msgstr "" |
| 1055 |
"$B< ./a.out -r>\n" |
| 1056 |
"komunikat otrzymano: a message at Wed Mar 4 16:25:45 2015\n" |
| 1057 |
|
| 1058 |
#. type: SS |
| 1059 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1060 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1061 |
#, no-wrap |
| 1062 |
msgid "Program source" |
| 1063 |
msgstr "Kod źródłowy programu" |
| 1064 |
|
| 1065 |
#. type: Plain text |
| 1066 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1067 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1068 |
#, no-wrap |
| 1069 |
msgid "" |
| 1070 |
"#include E<lt>errno.hE<gt>\n" |
| 1071 |
"#include E<lt>stdio.hE<gt>\n" |
| 1072 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1073 |
"#include E<lt>sys/ipc.hE<gt>\n" |
| 1074 |
"#include E<lt>sys/msg.hE<gt>\n" |
| 1075 |
"#include E<lt>time.hE<gt>\n" |
| 1076 |
"#include E<lt>unistd.hE<gt>\n" |
| 1077 |
"\\&\n" |
| 1078 |
"struct msgbuf {\n" |
| 1079 |
" long mtype;\n" |
| 1080 |
" char mtext[80];\n" |
| 1081 |
"};\n" |
| 1082 |
"\\&\n" |
| 1083 |
"static void\n" |
| 1084 |
"usage(char *prog_name, char *msg)\n" |
| 1085 |
"{\n" |
| 1086 |
" if (msg != NULL)\n" |
| 1087 |
" fputs(msg, stderr);\n" |
| 1088 |
"\\&\n" |
| 1089 |
" fprintf(stderr, \"Usage: %s [options]\\[rs]n\", prog_name);\n" |
| 1090 |
" fprintf(stderr, \"Options are:\\[rs]n\");\n" |
| 1091 |
" fprintf(stderr, \"-s send message using msgsnd()\\[rs]n\");\n" |
| 1092 |
" fprintf(stderr, \"-r read message using msgrcv()\\[rs]n\");\n" |
| 1093 |
" fprintf(stderr, \"-t message type (default is 1)\\[rs]n\");\n" |
| 1094 |
" fprintf(stderr, \"-k message queue key (default is 1234)\\[rs]n\");\n" |
| 1095 |
" exit(EXIT_FAILURE);\n" |
| 1096 |
"}\n" |
| 1097 |
"\\&\n" |
| 1098 |
"static void\n" |
| 1099 |
"send_msg(int qid, int msgtype)\n" |
| 1100 |
"{\n" |
| 1101 |
" time_t t;\n" |
| 1102 |
" struct msgbuf msg;\n" |
| 1103 |
"\\&\n" |
| 1104 |
" msg.mtype = msgtype;\n" |
| 1105 |
"\\&\n" |
| 1106 |
" time(&t);\n" |
| 1107 |
" snprintf(msg.mtext, sizeof(msg.mtext), \"a message at %s\",\n" |
| 1108 |
" ctime(&t));\n" |
| 1109 |
"\\&\n" |
| 1110 |
" if (msgsnd(qid, &msg, sizeof(msg.mtext),\n" |
| 1111 |
" IPC_NOWAIT) == -1)\n" |
| 1112 |
" {\n" |
| 1113 |
" perror(\"msgsnd error\");\n" |
| 1114 |
" exit(EXIT_FAILURE);\n" |
| 1115 |
" }\n" |
| 1116 |
" printf(\"sent: %s\\[rs]n\", msg.mtext);\n" |
| 1117 |
"}\n" |
| 1118 |
"\\&\n" |
| 1119 |
"static void\n" |
| 1120 |
"get_msg(int qid, int msgtype)\n" |
| 1121 |
"{\n" |
| 1122 |
" struct msgbuf msg;\n" |
| 1123 |
"\\&\n" |
| 1124 |
" if (msgrcv(qid, &msg, sizeof(msg.mtext), msgtype,\n" |
| 1125 |
" MSG_NOERROR | IPC_NOWAIT) == -1) {\n" |
| 1126 |
" if (errno != ENOMSG) {\n" |
| 1127 |
" perror(\"msgrcv\");\n" |
| 1128 |
" exit(EXIT_FAILURE);\n" |
| 1129 |
" }\n" |
| 1130 |
" printf(\"No message available for msgrcv()\\[rs]n\");\n" |
| 1131 |
" } else {\n" |
| 1132 |
" printf(\"message received: %s\\[rs]n\", msg.mtext);\n" |
| 1133 |
" }\n" |
| 1134 |
"}\n" |
| 1135 |
"\\&\n" |
| 1136 |
"int\n" |
| 1137 |
"main(int argc, char *argv[])\n" |
| 1138 |
"{\n" |
| 1139 |
" int qid, opt;\n" |
| 1140 |
" int mode = 0; /* 1 = send, 2 = receive */\n" |
| 1141 |
" int msgtype = 1;\n" |
| 1142 |
" int msgkey = 1234;\n" |
| 1143 |
"\\&\n" |
| 1144 |
" while ((opt = getopt(argc, argv, \"srt:k:\")) != -1) {\n" |
| 1145 |
" switch (opt) {\n" |
| 1146 |
" case \\[aq]s\\[aq]:\n" |
| 1147 |
" mode = 1;\n" |
| 1148 |
" break;\n" |
| 1149 |
" case \\[aq]r\\[aq]:\n" |
| 1150 |
" mode = 2;\n" |
| 1151 |
" break;\n" |
| 1152 |
" case \\[aq]t\\[aq]:\n" |
| 1153 |
" msgtype = atoi(optarg);\n" |
| 1154 |
" if (msgtype E<lt>= 0)\n" |
| 1155 |
" usage(argv[0], \"-t option must be greater than 0\\[rs]n\");\n" |
| 1156 |
" break;\n" |
| 1157 |
" case \\[aq]k\\[aq]:\n" |
| 1158 |
" msgkey = atoi(optarg);\n" |
| 1159 |
" break;\n" |
| 1160 |
" default:\n" |
| 1161 |
" usage(argv[0], \"Unrecognized option\\[rs]n\");\n" |
| 1162 |
" }\n" |
| 1163 |
" }\n" |
| 1164 |
"\\&\n" |
| 1165 |
" if (mode == 0)\n" |
| 1166 |
" usage(argv[0], \"must use either -s or -r option\\[rs]n\");\n" |
| 1167 |
"\\&\n" |
| 1168 |
" qid = msgget(msgkey, IPC_CREAT | 0666);\n" |
| 1169 |
"\\&\n" |
| 1170 |
" if (qid == -1) {\n" |
| 1171 |
" perror(\"msgget\");\n" |
| 1172 |
" exit(EXIT_FAILURE);\n" |
| 1173 |
" }\n" |
| 1174 |
"\\&\n" |
| 1175 |
" if (mode == 2)\n" |
| 1176 |
" get_msg(qid, msgtype);\n" |
| 1177 |
" else\n" |
| 1178 |
" send_msg(qid, msgtype);\n" |
| 1179 |
"\\&\n" |
| 1180 |
" exit(EXIT_SUCCESS);\n" |
| 1181 |
"}\n" |
| 1182 |
msgstr "" |
| 1183 |
"#include E<lt>errno.hE<gt>\n" |
| 1184 |
"#include E<lt>stdio.hE<gt>\n" |
| 1185 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1186 |
"#include E<lt>sys/ipc.hE<gt>\n" |
| 1187 |
"#include E<lt>sys/msg.hE<gt>\n" |
| 1188 |
"#include E<lt>time.hE<gt>\n" |
| 1189 |
"#include E<lt>unistd.hE<gt>\n" |
| 1190 |
"\\&\n" |
| 1191 |
"struct msgbuf {\n" |
| 1192 |
" long mtype;\n" |
| 1193 |
" char mtext[80];\n" |
| 1194 |
"};\n" |
| 1195 |
"\\&\n" |
| 1196 |
"static void\n" |
| 1197 |
"usage(char *prog_name, char *msg)\n" |
| 1198 |
"{\n" |
| 1199 |
" if (msg != NULL)\n" |
| 1200 |
" fputs(msg, stderr);\n" |
| 1201 |
"\\&\n" |
| 1202 |
" fprintf(stderr, \"Użycie: %s [opcje]\\[rs]n\", nazwa_prog);\n" |
| 1203 |
" fprintf(stderr, \"Opcje:\\[rs]n\");\n" |
| 1204 |
" fprintf(stderr, \"-s wysyła komunikat przez msgsnd()\\[rs]n\");\n" |
| 1205 |
" fprintf(stderr, \"-r odczytuje komunikat przez msgrcv()\\[rs]n\");\n" |
| 1206 |
" fprintf(stderr, \"-t typ komunikatu (domyślnie: 1)\\[rs]n\");\n" |
| 1207 |
" fprintf(stderr, \"-k klucz kolejki komunikatu (domyślnie: 1234)\\[rs]n\");\n" |
| 1208 |
" exit(EXIT_FAILURE);\n" |
| 1209 |
"}\n" |
| 1210 |
"\\&\n" |
| 1211 |
"static void\n" |
| 1212 |
"send_msg(int qid, int msgtype)\n" |
| 1213 |
"{\n" |
| 1214 |
" time_t t;\n" |
| 1215 |
" struct msgbuf msg;\n" |
| 1216 |
"\\&\n" |
| 1217 |
" msg.mtype = msgtype;\n" |
| 1218 |
"\\&\n" |
| 1219 |
" time(&t);\n" |
| 1220 |
" snprintf(msg.mtext, sizeof(msg.mtext), \"wiadomość o %s\",\n" |
| 1221 |
" ctime(&t));\n" |
| 1222 |
"\\&\n" |
| 1223 |
" if (msgsnd(qid, &msg, sizeof(msg.mtext),\n" |
| 1224 |
" IPC_NOWAIT) == -1)\n" |
| 1225 |
" {\n" |
| 1226 |
" perror(\"błąd msgsnd\");\n" |
| 1227 |
" exit(EXIT_FAILURE);\n" |
| 1228 |
" }\n" |
| 1229 |
" printf(\"wysłano: %s\\[rs]n\", msg.mtext);\n" |
| 1230 |
"}\n" |
| 1231 |
"\\&\n" |
| 1232 |
"static void\n" |
| 1233 |
"get_msg(int qid, int msgtype)\n" |
| 1234 |
"{\n" |
| 1235 |
" struct msgbuf msg;\n" |
| 1236 |
"\\&\n" |
| 1237 |
" if (msgrcv(qid, &msg, sizeof(msg.mtext), msgtype,\n" |
| 1238 |
" MSG_NOERROR | IPC_NOWAIT) == -1) {\n" |
| 1239 |
" if (errno != ENOMSG) {\n" |
| 1240 |
" perror(\"msgrcv\");\n" |
| 1241 |
" exit(EXIT_FAILURE);\n" |
| 1242 |
" }\n" |
| 1243 |
" printf(\"Brak komunikatu dostępnego dla msgrcv()\\[rs]n\");\n" |
| 1244 |
" } else {\n" |
| 1245 |
" printf(\"komunikat otrzymano: %s\\[rs]n\", msg.mtext);\n" |
| 1246 |
" }\n" |
| 1247 |
"}\n" |
| 1248 |
"\\&\n" |
| 1249 |
"int\n" |
| 1250 |
"main(int argc, char *argv[])\n" |
| 1251 |
"{\n" |
| 1252 |
" int qid, opt;\n" |
| 1253 |
" int mode = 0; /* 1 = wysłanie, 2 = otrzymanie */\n" |
| 1254 |
" int msgtype = 1;\n" |
| 1255 |
" int msgkey = 1234;\n" |
| 1256 |
"\\&\n" |
| 1257 |
" while ((opt = getopt(argc, argv, \"srt:k:\")) != -1) {\n" |
| 1258 |
" switch (opt) {\n" |
| 1259 |
" case \\[aq]s\\[aq]:\n" |
| 1260 |
" mode = 1;\n" |
| 1261 |
" break;\n" |
| 1262 |
" case \\[aq]r\\[aq]:\n" |
| 1263 |
" mode = 2;\n" |
| 1264 |
" break;\n" |
| 1265 |
" case \\[aq]t\\[aq]:\n" |
| 1266 |
" msgtype = atoi(optarg);\n" |
| 1267 |
" if (msgtype E<lt>= 0)\n" |
| 1268 |
" usage(argv[0], \"opcja -t musi być większa od 0\\[rs]n\");\n" |
| 1269 |
" break;\n" |
| 1270 |
" case \\[aq]k\\[aq]:\n" |
| 1271 |
" msgkey = atoi(optarg);\n" |
| 1272 |
" break;\n" |
| 1273 |
" default:\n" |
| 1274 |
" usage(argv[0], \"Nierozpoznana opcja\\[rs]n\");\n" |
| 1275 |
" }\n" |
| 1276 |
" }\n" |
| 1277 |
"\\&\n" |
| 1278 |
" if (mode == 0)\n" |
| 1279 |
" usage(argv[0], \"musi być opcją -s albo -r\\[rs]n\");\n" |
| 1280 |
"\\&\n" |
| 1281 |
" qid = msgget(msgkey, IPC_CREAT | 0666);\n" |
| 1282 |
"\\&\n" |
| 1283 |
" if (qid == -1) {\n" |
| 1284 |
" perror(\"msgget\");\n" |
| 1285 |
" exit(EXIT_FAILURE);\n" |
| 1286 |
" }\n" |
| 1287 |
"\\&\n" |
| 1288 |
" if (mode == 2)\n" |
| 1289 |
" get_msg(qid, msgtype);\n" |
| 1290 |
" else\n" |
| 1291 |
" send_msg(qid, msgtype);\n" |
| 1292 |
"\\&\n" |
| 1293 |
" exit(EXIT_SUCCESS);\n" |
| 1294 |
"}\n" |
| 1295 |
|
| 1296 |
#. SRC END |
| 1297 |
#. type: SH |
| 1298 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1299 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1300 |
#, no-wrap |
| 1301 |
msgid "SEE ALSO" |
| 1302 |
msgstr "ZOBACZ TAKŻE" |
| 1303 |
|
| 1304 |
#. type: Plain text |
| 1305 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1306 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1307 |
msgid "" |
| 1308 |
"B<msgctl>(2), B<msgget>(2), B<capabilities>(7), B<mq_overview>(7), " |
| 1309 |
"B<sysvipc>(7)" |
| 1310 |
msgstr "" |
| 1311 |
"B<msgctl>(2), B<msgget>(2), B<capabilities>(7), B<mq_overview>(7), " |
| 1312 |
"B<sysvipc>(7)" |
| 1313 |
|
| 1314 |
#. type: TH |
| 1315 |
#: debian-trixie |
| 1316 |
#, no-wrap |
| 1317 |
msgid "2024-06-15" |
| 1318 |
msgstr "15 czerwca 2024 r." |
| 1319 |
|
| 1320 |
#. type: TH |
| 1321 |
#: debian-trixie |
| 1322 |
#, no-wrap |
| 1323 |
msgid "Linux man-pages 6.9.1" |
| 1324 |
msgstr "Linux man-pages 6.9.1" |
| 1325 |
|
| 1326 |
#. type: Plain text |
| 1327 |
#: debian-trixie |
| 1328 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 1329 |
msgstr "Standardowa biblioteka C (I<libc>, I<-lc>)" |
| 1330 |
|
| 1331 |
#. type: Plain text |
| 1332 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1333 |
#, no-wrap |
| 1334 |
msgid "" |
| 1335 |
"B<int msgsnd(int >I<msqid>B<, const void >I<msgp>B<[.>I<msgsz>B<], size_t >I<msgsz>B<,>\n" |
| 1336 |
"B< int >I<msgflg>B<);>\n" |
| 1337 |
msgstr "" |
| 1338 |
"B<int msgsnd(int >I<msqid>B<, const void >I<msgp>B<[.>I<msgsz>B<], size_t >I<msgsz>B<,>\n" |
| 1339 |
"B< int >I<msgflg>B<);>\n" |
| 1340 |
|
| 1341 |
#. type: Plain text |
| 1342 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1343 |
#, no-wrap |
| 1344 |
msgid "" |
| 1345 |
"B<ssize_t msgrcv(int >I<msqid>B<, void >I<msgp>B<[.>I<msgsz>B<], size_t >I<msgsz>B<, long >I<msgtyp>B<,>\n" |
| 1346 |
"B< int >I<msgflg>B<);>\n" |
| 1347 |
msgstr "" |
| 1348 |
"B<ssize_t msgrcv(int >I<msqid>B<, void >I<msgp>B<[.>I<msgsz>B<], size_t >I<msgsz>B<, long >I<msgtyp>B<,>\n" |
| 1349 |
"B< int >I<msgflg>B<);>\n" |
| 1350 |
|
| 1351 |
#. type: Plain text |
| 1352 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1353 |
msgid "" |
| 1354 |
"a signal is caught, in which case the system call fails with I<errno> set to " |
| 1355 |
"B<EINTR>;B<see> B<signal>(7). (B<msgsnd>() is never automatically " |
| 1356 |
"restarted after being interrupted by a signal handler, regardless of the " |
| 1357 |
"setting of the B<SA_RESTART> flag when establishing a signal handler.)" |
| 1358 |
msgstr "" |
| 1359 |
"zostanie przechwycony sygnał - wtedy wywołanie to powoduje przypisanie " |
| 1360 |
"zmiennej I<errno> wartości B<EINTR>; patrz B<signal>(7) (B<msgsnd>() po " |
| 1361 |
"przerwaniu przez obsługę sygnału nie jest nigdy automatycznie restartowane, " |
| 1362 |
"niezależnie od ustawienia znacznika B<SA_RESTART> podanego podczas " |
| 1363 |
"ustanawiania funkcji obsługi sygnału)." |
| 1364 |
|
| 1365 |
#. type: Plain text |
| 1366 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1367 |
msgid "" |
| 1368 |
"B<IPC_NOWAIT> and B<MSG_COPY> were specified in I<msgflg> and the queue " |
| 1369 |
"contains less than I<msgtyp> messages." |
| 1370 |
msgstr "" |
| 1371 |
"B<IPC_NOWAIT> i B<MSG_COPY> zostały określone w I<msgflg>, a kolejka zawiera " |
| 1372 |
"mniej niż I<msgtyp> komunikatów." |
| 1373 |
|
| 1374 |
#. type: Plain text |
| 1375 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1376 |
msgid "POSIX.1-2008." |
| 1377 |
msgstr "POSIX.1-2008." |
| 1378 |
|
| 1379 |
#. type: Plain text |
| 1380 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1381 |
msgid "POSIX.1-2001, SVr4." |
| 1382 |
msgstr "POSIX.1-2001, SVr4." |
| 1383 |
|
| 1384 |
#. type: Plain text |
| 1385 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1386 |
msgid "" |
| 1387 |
"The I<msgp> argument is declared as I<struct msgbuf\\ *> in glibc 2.0 and " |
| 1388 |
"2.1. It is declared as I<void\\ *> in glibc 2.2 and later, as required by " |
| 1389 |
"SUSv2 and SUSv3." |
| 1390 |
msgstr "" |
| 1391 |
"Parametr I<msgp> jest deklarowany jako I<struct msgbuf\\ *> w glibc 2.0 i " |
| 1392 |
"glibc 2.1. W glibc 2.2 i późniejszych jest deklarowany jako I<void\\ *>, " |
| 1393 |
"zgodnie z wymaganiami SUSv2 i SUSv3." |
| 1394 |
|
| 1395 |
#. type: TH |
| 1396 |
#: fedora-44 fedora-rawhide |
| 1397 |
#, no-wrap |
| 1398 |
msgid "2024-07-23" |
| 1399 |
msgstr "23 lipca 2024 r." |
| 1400 |
|
| 1401 |
#. type: TH |
| 1402 |
#: fedora-44 fedora-rawhide |
| 1403 |
#, no-wrap |
| 1404 |
msgid "Linux man-pages 6.13" |
| 1405 |
msgstr "Linux man-pages 6.13" |
| 1406 |
|
| 1407 |
#. type: TH |
| 1408 |
#: mageia-cauldron |
| 1409 |
#, no-wrap |
| 1410 |
msgid "Linux man-pages 6.17" |
| 1411 |
msgstr "Linux man-pages 6.17" |
| 1412 |
|
| 1413 |
#. type: TH |
| 1414 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1415 |
#, no-wrap |
| 1416 |
msgid "Linux man-pages (unreleased)" |
| 1417 |
msgstr "Linux man-pages (niewydane)" |