| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:32+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 21 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "MSGOP" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 28 |
#: opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2026-02-11" |
| 31 |
msgstr "" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "" |
| 38 |
|
| 39 |
#. type: SH |
| 40 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 41 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "NAME" |
| 44 |
msgstr "" |
| 45 |
|
| 46 |
#. type: Plain text |
| 47 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 48 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 49 |
msgid "msgrcv, msgsnd - System V message queue operations" |
| 50 |
msgstr "" |
| 51 |
|
| 52 |
#. type: SH |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
#, no-wrap |
| 56 |
msgid "LIBRARY" |
| 57 |
msgstr "" |
| 58 |
|
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 61 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 63 |
msgstr "" |
| 64 |
|
| 65 |
#. type: SH |
| 66 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 67 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
#, no-wrap |
| 69 |
msgid "SYNOPSIS" |
| 70 |
msgstr "" |
| 71 |
|
| 72 |
#. type: Plain text |
| 73 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 74 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
#, no-wrap |
| 76 |
msgid "B<#include E<lt>sys/msg.hE<gt>>\n" |
| 77 |
msgstr "" |
| 78 |
|
| 79 |
#. type: Plain text |
| 80 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 81 |
#: opensuse-tumbleweed |
| 82 |
#, no-wrap |
| 83 |
msgid "" |
| 84 |
"B<ssize_t msgrcv(>size_t msgsz;\n" |
| 85 |
"B< int >I<msqid>B<, void >I<msgp>B<[>I<msgsz>B<], size_t >I<msgsz>B<, long >I<msgtyp>B<,>\n" |
| 86 |
"B< int >I<msgflg>B<);>\n" |
| 87 |
msgstr "" |
| 88 |
|
| 89 |
#. type: Plain text |
| 90 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 91 |
#: opensuse-tumbleweed |
| 92 |
#, no-wrap |
| 93 |
msgid "" |
| 94 |
"B<int msgsnd(>size_t msgsz;\n" |
| 95 |
"B< int >I<msqid>B<, const void >I<msgp>B<[>I<msgsz>B<], size_t >I<msgsz>B<,>\n" |
| 96 |
"B< int >I<msgflg>B<);>\n" |
| 97 |
msgstr "" |
| 98 |
|
| 99 |
#. type: SH |
| 100 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 101 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 102 |
#, no-wrap |
| 103 |
msgid "DESCRIPTION" |
| 104 |
msgstr "" |
| 105 |
|
| 106 |
#. type: Plain text |
| 107 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 108 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 109 |
msgid "" |
| 110 |
"The B<msgsnd>() and B<msgrcv>() system calls are used to send messages to, " |
| 111 |
"and receive messages from, a System\\ V message queue. The calling process " |
| 112 |
"must have write permission on the message queue in order to send a message, " |
| 113 |
"and read permission to receive a message." |
| 114 |
msgstr "" |
| 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 I<msgp> argument is a pointer to a caller-defined structure of the " |
| 121 |
"following general form:" |
| 122 |
msgstr "" |
| 123 |
|
| 124 |
#. type: Plain text |
| 125 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 126 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 127 |
#, no-wrap |
| 128 |
msgid "" |
| 129 |
"struct msgbuf {\n" |
| 130 |
" long mtype; /* message type, must be E<gt> 0 */\n" |
| 131 |
" char mtext[1]; /* message data */\n" |
| 132 |
"};\n" |
| 133 |
msgstr "" |
| 134 |
|
| 135 |
#. type: Plain text |
| 136 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 137 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 138 |
msgid "" |
| 139 |
"The I<mtext> field is an array (or other structure) whose size is specified " |
| 140 |
"by I<msgsz>, a nonnegative integer value. Messages of zero length (i.e., no " |
| 141 |
"I<mtext> field) are permitted. The I<mtype> field must have a strictly " |
| 142 |
"positive integer value. This value can be used by the receiving process for " |
| 143 |
"message selection (see the description of B<msgrcv>() below)." |
| 144 |
msgstr "" |
| 145 |
|
| 146 |
#. type: SS |
| 147 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 148 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 149 |
#, no-wrap |
| 150 |
msgid "msgsnd()" |
| 151 |
msgstr "" |
| 152 |
|
| 153 |
#. type: Plain text |
| 154 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 155 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 156 |
msgid "" |
| 157 |
"The B<msgsnd>() system call appends a copy of the message pointed to by " |
| 158 |
"I<msgp> to the message queue whose identifier is specified by I<msqid>." |
| 159 |
msgstr "" |
| 160 |
|
| 161 |
#. type: Plain text |
| 162 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 163 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 164 |
msgid "" |
| 165 |
"If sufficient space is available in the queue, B<msgsnd>() succeeds " |
| 166 |
"immediately. The queue capacity is governed by the I<msg_qbytes> field in " |
| 167 |
"the associated data structure for the message queue. During queue creation " |
| 168 |
"this field is initialized to B<MSGMNB> bytes, but this limit can be modified " |
| 169 |
"using B<msgctl>(2). A message queue is considered to be full if either of " |
| 170 |
"the following conditions is true:" |
| 171 |
msgstr "" |
| 172 |
|
| 173 |
#. type: IP |
| 174 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 175 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 176 |
#, no-wrap |
| 177 |
msgid "\\[bu]" |
| 178 |
msgstr "" |
| 179 |
|
| 180 |
#. type: Plain text |
| 181 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 182 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 183 |
msgid "" |
| 184 |
"Adding a new message to the queue would cause the total number of bytes in " |
| 185 |
"the queue to exceed the queue's maximum size (the I<msg_qbytes> field)." |
| 186 |
msgstr "" |
| 187 |
|
| 188 |
#. type: Plain text |
| 189 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 190 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 191 |
msgid "" |
| 192 |
"Adding another message to the queue would cause the total number of messages " |
| 193 |
"in the queue to exceed the queue's maximum size (the I<msg_qbytes> field). " |
| 194 |
"This check is necessary to prevent an unlimited number of zero-length " |
| 195 |
"messages being placed on the queue. Although such messages contain no data, " |
| 196 |
"they nevertheless consume (locked) kernel memory." |
| 197 |
msgstr "" |
| 198 |
|
| 199 |
#. type: Plain text |
| 200 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 201 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 202 |
msgid "" |
| 203 |
"If insufficient space is available in the queue, then the default behavior " |
| 204 |
"of B<msgsnd>() is to block until space becomes available. If B<IPC_NOWAIT> " |
| 205 |
"is specified in I<msgflg>, then the call instead fails with the error " |
| 206 |
"B<EAGAIN>." |
| 207 |
msgstr "" |
| 208 |
|
| 209 |
#. type: Plain text |
| 210 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 211 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 212 |
msgid "A blocked B<msgsnd>() call may also fail if:" |
| 213 |
msgstr "" |
| 214 |
|
| 215 |
#. type: Plain text |
| 216 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 217 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 218 |
msgid "" |
| 219 |
"the queue is removed, in which case the system call fails with I<errno> set " |
| 220 |
"to B<EIDRM>; or" |
| 221 |
msgstr "" |
| 222 |
|
| 223 |
#. type: Plain text |
| 224 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 225 |
#: opensuse-tumbleweed |
| 226 |
msgid "" |
| 227 |
"a signal is caught, in which case the system call fails with I<errno> set to " |
| 228 |
"B<EINTR>; see B<signal>(7). (B<msgsnd>() is never automatically restarted " |
| 229 |
"after being interrupted by a signal handler, regardless of the setting of " |
| 230 |
"the B<SA_RESTART> flag when establishing a signal handler.)" |
| 231 |
msgstr "" |
| 232 |
|
| 233 |
#. type: Plain text |
| 234 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 235 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 236 |
msgid "" |
| 237 |
"Upon successful completion the message queue data structure is updated as " |
| 238 |
"follows:" |
| 239 |
msgstr "" |
| 240 |
|
| 241 |
#. type: Plain text |
| 242 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 243 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 244 |
msgid "I<msg_lspid> is set to the process ID of the calling process." |
| 245 |
msgstr "" |
| 246 |
|
| 247 |
#. type: Plain text |
| 248 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 249 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 250 |
msgid "I<msg_qnum> is incremented by 1." |
| 251 |
msgstr "" |
| 252 |
|
| 253 |
#. type: Plain text |
| 254 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 255 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 256 |
msgid "I<msg_stime> is set to the current time." |
| 257 |
msgstr "" |
| 258 |
|
| 259 |
#. type: SS |
| 260 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 261 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 262 |
#, no-wrap |
| 263 |
msgid "msgrcv()" |
| 264 |
msgstr "" |
| 265 |
|
| 266 |
#. type: Plain text |
| 267 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 268 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 269 |
msgid "" |
| 270 |
"The B<msgrcv>() system call removes a message from the queue specified by " |
| 271 |
"I<msqid> and places it in the buffer pointed to by I<msgp>." |
| 272 |
msgstr "" |
| 273 |
|
| 274 |
#. type: Plain text |
| 275 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 276 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 277 |
msgid "" |
| 278 |
"The argument I<msgsz> specifies the maximum size in bytes for the member " |
| 279 |
"I<mtext> of the structure pointed to by the I<msgp> argument. If the " |
| 280 |
"message text has length greater than I<msgsz>, then the behavior depends on " |
| 281 |
"whether B<MSG_NOERROR> is specified in I<msgflg>. If B<MSG_NOERROR> is " |
| 282 |
"specified, then the message text will be truncated (and the truncated part " |
| 283 |
"will be lost); if B<MSG_NOERROR> is not specified, then the message isn't " |
| 284 |
"removed from the queue and the system call fails returning -1 with I<errno> " |
| 285 |
"set to B<E2BIG>." |
| 286 |
msgstr "" |
| 287 |
|
| 288 |
#. type: Plain text |
| 289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 290 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 291 |
msgid "" |
| 292 |
"Unless B<MSG_COPY> is specified in I<msgflg> (see below), the I<msgtyp> " |
| 293 |
"argument specifies the type of message requested, as follows:" |
| 294 |
msgstr "" |
| 295 |
|
| 296 |
#. type: Plain text |
| 297 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 298 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 299 |
msgid "If I<msgtyp> is 0, then the first message in the queue is read." |
| 300 |
msgstr "" |
| 301 |
|
| 302 |
#. type: Plain text |
| 303 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 304 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 305 |
msgid "" |
| 306 |
"If I<msgtyp> is greater than 0, then the first message in the queue of type " |
| 307 |
"I<msgtyp> is read, unless B<MSG_EXCEPT> was specified in I<msgflg>, in which " |
| 308 |
"case the first message in the queue of type not equal to I<msgtyp> will be " |
| 309 |
"read." |
| 310 |
msgstr "" |
| 311 |
|
| 312 |
#. type: Plain text |
| 313 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 314 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 315 |
msgid "" |
| 316 |
"If I<msgtyp> is less than 0, then the first message in the queue with the " |
| 317 |
"lowest type less than or equal to the absolute value of I<msgtyp> will be " |
| 318 |
"read." |
| 319 |
msgstr "" |
| 320 |
|
| 321 |
#. type: Plain text |
| 322 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 323 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 324 |
msgid "" |
| 325 |
"The I<msgflg> argument is a bit mask constructed by ORing together zero or " |
| 326 |
"more of the following flags:" |
| 327 |
msgstr "" |
| 328 |
|
| 329 |
#. type: TP |
| 330 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 331 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 332 |
#, no-wrap |
| 333 |
msgid "B<IPC_NOWAIT>" |
| 334 |
msgstr "" |
| 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 |
"Return immediately if no message of the requested type is in the queue. The " |
| 341 |
"system call fails with I<errno> set to B<ENOMSG>." |
| 342 |
msgstr "" |
| 343 |
|
| 344 |
#. type: TP |
| 345 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 346 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 347 |
#, no-wrap |
| 348 |
msgid "B<MSG_COPY> (since Linux 3.8)" |
| 349 |
msgstr "" |
| 350 |
|
| 351 |
#. commit 4a674f34ba04a002244edaf891b5da7fc1473ae8 |
| 352 |
#. type: Plain text |
| 353 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 354 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 355 |
msgid "" |
| 356 |
"Nondestructively fetch a copy of the message at the ordinal position in the " |
| 357 |
"queue specified by I<msgtyp> (messages are considered to be numbered " |
| 358 |
"starting at 0)." |
| 359 |
msgstr "" |
| 360 |
|
| 361 |
#. type: Plain text |
| 362 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 363 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 364 |
msgid "" |
| 365 |
"This flag must be specified in conjunction with B<IPC_NOWAIT>, with the " |
| 366 |
"result that, if there is no message available at the given position, the " |
| 367 |
"call fails immediately with the error B<ENOMSG>. Because they alter the " |
| 368 |
"meaning of I<msgtyp> in orthogonal ways, B<MSG_COPY> and B<MSG_EXCEPT> may " |
| 369 |
"not both be specified in I<msgflg>." |
| 370 |
msgstr "" |
| 371 |
|
| 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 |
"The B<MSG_COPY> flag was added for the implementation of the kernel " |
| 377 |
"checkpoint-restore facility and is available only if the kernel was built " |
| 378 |
"with the B<CONFIG_CHECKPOINT_RESTORE> option." |
| 379 |
msgstr "" |
| 380 |
|
| 381 |
#. type: TP |
| 382 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 383 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 384 |
#, no-wrap |
| 385 |
msgid "B<MSG_EXCEPT>" |
| 386 |
msgstr "" |
| 387 |
|
| 388 |
#. type: Plain text |
| 389 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 390 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 391 |
msgid "" |
| 392 |
"Used with I<msgtyp> greater than 0 to read the first message in the queue " |
| 393 |
"with message type that differs from I<msgtyp>." |
| 394 |
msgstr "" |
| 395 |
|
| 396 |
#. type: TP |
| 397 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 398 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 399 |
#, no-wrap |
| 400 |
msgid "B<MSG_NOERROR>" |
| 401 |
msgstr "" |
| 402 |
|
| 403 |
#. type: Plain text |
| 404 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 405 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 406 |
msgid "To truncate the message text if longer than I<msgsz> bytes." |
| 407 |
msgstr "" |
| 408 |
|
| 409 |
#. type: Plain text |
| 410 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 411 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 412 |
msgid "" |
| 413 |
"If no message of the requested type is available and B<IPC_NOWAIT> isn't " |
| 414 |
"specified in I<msgflg>, the calling process is blocked until one of the " |
| 415 |
"following conditions occurs:" |
| 416 |
msgstr "" |
| 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 "A message of the desired type is placed in the queue." |
| 422 |
msgstr "" |
| 423 |
|
| 424 |
#. type: Plain text |
| 425 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 426 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 427 |
msgid "" |
| 428 |
"The message queue is removed from the system. In this case, the system call " |
| 429 |
"fails with I<errno> set to B<EIDRM>." |
| 430 |
msgstr "" |
| 431 |
|
| 432 |
#. type: Plain text |
| 433 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 434 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 435 |
msgid "" |
| 436 |
"The calling process catches a signal. In this case, the system call fails " |
| 437 |
"with I<errno> set to B<EINTR>. (B<msgrcv>() is never automatically " |
| 438 |
"restarted after being interrupted by a signal handler, regardless of the " |
| 439 |
"setting of the B<SA_RESTART> flag when establishing a signal handler.)" |
| 440 |
msgstr "" |
| 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 "I<msg_lrpid> is set to the process ID of the calling process." |
| 446 |
msgstr "" |
| 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 "I<msg_qnum> is decremented by 1." |
| 452 |
msgstr "" |
| 453 |
|
| 454 |
#. type: Plain text |
| 455 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 456 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 457 |
msgid "I<msg_rtime> is set to the current time." |
| 458 |
msgstr "" |
| 459 |
|
| 460 |
#. type: SH |
| 461 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 462 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 463 |
#, no-wrap |
| 464 |
msgid "RETURN VALUE" |
| 465 |
msgstr "" |
| 466 |
|
| 467 |
#. type: Plain text |
| 468 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 469 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 470 |
msgid "" |
| 471 |
"On success, B<msgsnd>() returns 0 and B<msgrcv>() returns the number of " |
| 472 |
"bytes actually copied into the I<mtext> array. On failure, both functions " |
| 473 |
"return -1, and set I<errno> to indicate the error." |
| 474 |
msgstr "" |
| 475 |
|
| 476 |
#. type: SH |
| 477 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 478 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 479 |
#, no-wrap |
| 480 |
msgid "ERRORS" |
| 481 |
msgstr "" |
| 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 "B<msgsnd>() can fail with the following errors:" |
| 487 |
msgstr "" |
| 488 |
|
| 489 |
#. type: TP |
| 490 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 491 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 492 |
#, no-wrap |
| 493 |
msgid "B<EACCES>" |
| 494 |
msgstr "" |
| 495 |
|
| 496 |
#. type: Plain text |
| 497 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 498 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 499 |
msgid "" |
| 500 |
"The calling process does not have write permission on the message queue, and " |
| 501 |
"does not have the B<CAP_IPC_OWNER> capability in the user namespace that " |
| 502 |
"governs its IPC namespace." |
| 503 |
msgstr "" |
| 504 |
|
| 505 |
#. type: TP |
| 506 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 507 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 508 |
#, no-wrap |
| 509 |
msgid "B<EAGAIN>" |
| 510 |
msgstr "" |
| 511 |
|
| 512 |
#. type: Plain text |
| 513 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 514 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 515 |
msgid "" |
| 516 |
"The message can't be sent due to the I<msg_qbytes> limit for the queue and " |
| 517 |
"B<IPC_NOWAIT> was specified in I<msgflg>." |
| 518 |
msgstr "" |
| 519 |
|
| 520 |
#. type: TP |
| 521 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 522 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 523 |
#, no-wrap |
| 524 |
msgid "B<EFAULT>" |
| 525 |
msgstr "" |
| 526 |
|
| 527 |
#. type: Plain text |
| 528 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 529 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 530 |
msgid "The address pointed to by I<msgp> isn't accessible." |
| 531 |
msgstr "" |
| 532 |
|
| 533 |
#. type: TP |
| 534 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 535 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 536 |
#, no-wrap |
| 537 |
msgid "B<EIDRM>" |
| 538 |
msgstr "" |
| 539 |
|
| 540 |
#. type: Plain text |
| 541 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 542 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 543 |
msgid "The message queue was removed." |
| 544 |
msgstr "" |
| 545 |
|
| 546 |
#. type: TP |
| 547 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 548 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 549 |
#, no-wrap |
| 550 |
msgid "B<EINTR>" |
| 551 |
msgstr "" |
| 552 |
|
| 553 |
#. type: Plain text |
| 554 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 555 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 556 |
msgid "" |
| 557 |
"Sleeping on a full message queue condition, the process caught a signal." |
| 558 |
msgstr "" |
| 559 |
|
| 560 |
#. type: TP |
| 561 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 562 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 563 |
#, no-wrap |
| 564 |
msgid "B<EINVAL>" |
| 565 |
msgstr "" |
| 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 "" |
| 571 |
"Invalid I<msqid> value, or nonpositive I<mtype> value, or invalid I<msgsz> " |
| 572 |
"value (less than 0 or greater than the system value B<MSGMAX>)." |
| 573 |
msgstr "" |
| 574 |
|
| 575 |
#. type: TP |
| 576 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 577 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 578 |
#, no-wrap |
| 579 |
msgid "B<ENOMEM>" |
| 580 |
msgstr "" |
| 581 |
|
| 582 |
#. type: Plain text |
| 583 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 584 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 585 |
msgid "" |
| 586 |
"The system does not have enough memory to make a copy of the message pointed " |
| 587 |
"to by I<msgp>." |
| 588 |
msgstr "" |
| 589 |
|
| 590 |
#. type: Plain text |
| 591 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 592 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 593 |
msgid "B<msgrcv>() can fail with the following errors:" |
| 594 |
msgstr "" |
| 595 |
|
| 596 |
#. type: TP |
| 597 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 598 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 599 |
#, no-wrap |
| 600 |
msgid "B<E2BIG>" |
| 601 |
msgstr "" |
| 602 |
|
| 603 |
#. type: Plain text |
| 604 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 605 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 606 |
msgid "" |
| 607 |
"The message text length is greater than I<msgsz> and B<MSG_NOERROR> isn't " |
| 608 |
"specified in I<msgflg>." |
| 609 |
msgstr "" |
| 610 |
|
| 611 |
#. type: Plain text |
| 612 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 613 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 614 |
msgid "" |
| 615 |
"The calling process does not have read permission on the message queue, and " |
| 616 |
"does not have the B<CAP_IPC_OWNER> capability in the user namespace that " |
| 617 |
"governs its IPC namespace." |
| 618 |
msgstr "" |
| 619 |
|
| 620 |
#. type: Plain text |
| 621 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 622 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 623 |
msgid "" |
| 624 |
"While the process was sleeping to receive a message, the message queue was " |
| 625 |
"removed." |
| 626 |
msgstr "" |
| 627 |
|
| 628 |
#. type: Plain text |
| 629 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 630 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 631 |
msgid "" |
| 632 |
"While the process was sleeping to receive a message, the process caught a " |
| 633 |
"signal; see B<signal>(7)." |
| 634 |
msgstr "" |
| 635 |
|
| 636 |
#. type: Plain text |
| 637 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 638 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 639 |
msgid "I<msqid> was invalid, or I<msgsz> was less than 0." |
| 640 |
msgstr "" |
| 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<EINVAL> (since Linux 3.14)" |
| 647 |
msgstr "" |
| 648 |
|
| 649 |
#. type: Plain text |
| 650 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 651 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 652 |
msgid "I<msgflg> specified B<MSG_COPY>, but not B<IPC_NOWAIT>." |
| 653 |
msgstr "" |
| 654 |
|
| 655 |
#. type: Plain text |
| 656 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 657 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 658 |
msgid "I<msgflg> specified both B<MSG_COPY> and B<MSG_EXCEPT>." |
| 659 |
msgstr "" |
| 660 |
|
| 661 |
#. type: TP |
| 662 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 663 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 664 |
#, no-wrap |
| 665 |
msgid "B<ENOMSG>" |
| 666 |
msgstr "" |
| 667 |
|
| 668 |
#. type: Plain text |
| 669 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 670 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 671 |
msgid "" |
| 672 |
"B<IPC_NOWAIT> was specified in I<msgflg> and no message of the requested " |
| 673 |
"type existed on the message queue." |
| 674 |
msgstr "" |
| 675 |
|
| 676 |
#. type: Plain text |
| 677 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 678 |
#: opensuse-tumbleweed |
| 679 |
msgid "" |
| 680 |
"B<IPC_NOWAIT> and B<MSG_COPY> were specified in I<msgflg> and the queue " |
| 681 |
"contains fewer than I<msgtyp> messages." |
| 682 |
msgstr "" |
| 683 |
|
| 684 |
#. type: TP |
| 685 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 686 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 687 |
#, no-wrap |
| 688 |
msgid "B<ENOSYS> (since Linux 3.8)" |
| 689 |
msgstr "" |
| 690 |
|
| 691 |
#. type: Plain text |
| 692 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 693 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 694 |
msgid "" |
| 695 |
"Both B<MSG_COPY> and B<IPC_NOWAIT> were specified in I<msgflg>, and this " |
| 696 |
"kernel was configured without B<CONFIG_CHECKPOINT_RESTORE>." |
| 697 |
msgstr "" |
| 698 |
|
| 699 |
#. type: SH |
| 700 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 701 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 702 |
#, no-wrap |
| 703 |
msgid "STANDARDS" |
| 704 |
msgstr "" |
| 705 |
|
| 706 |
#. type: Plain text |
| 707 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 708 |
#: opensuse-tumbleweed |
| 709 |
msgid "POSIX.1-2024 XSI." |
| 710 |
msgstr "" |
| 711 |
|
| 712 |
#. MSG_COPY since glibc 2.18 |
| 713 |
#. type: Plain text |
| 714 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 715 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 716 |
msgid "" |
| 717 |
"The B<MSG_EXCEPT> and B<MSG_COPY> flags are Linux-specific; their " |
| 718 |
"definitions can be obtained by defining the B<_GNU_SOURCE> feature test " |
| 719 |
"macro." |
| 720 |
msgstr "" |
| 721 |
|
| 722 |
#. type: SH |
| 723 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 724 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 725 |
#, no-wrap |
| 726 |
msgid "HISTORY" |
| 727 |
msgstr "" |
| 728 |
|
| 729 |
#. type: Plain text |
| 730 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 731 |
#: opensuse-tumbleweed |
| 732 |
msgid "SVr4, SUSv1, POSIX.1-2001 XSI." |
| 733 |
msgstr "" |
| 734 |
|
| 735 |
#. type: Plain text |
| 736 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 737 |
#: opensuse-tumbleweed |
| 738 |
msgid "" |
| 739 |
"The I<msgp> argument is declared as I<struct\\ msgbuf\\ *> in glibc 2.0 and " |
| 740 |
"2.1. It is declared as I<void\\ *> in glibc 2.2 and later, as required by " |
| 741 |
"SUSv2 and SUSv3." |
| 742 |
msgstr "" |
| 743 |
|
| 744 |
#. type: SH |
| 745 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 746 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 747 |
#, no-wrap |
| 748 |
msgid "NOTES" |
| 749 |
msgstr "" |
| 750 |
|
| 751 |
#. type: Plain text |
| 752 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 753 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 754 |
msgid "" |
| 755 |
"The following limits on message queue resources affect the B<msgsnd>() call:" |
| 756 |
msgstr "" |
| 757 |
|
| 758 |
#. type: TP |
| 759 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 760 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 761 |
#, no-wrap |
| 762 |
msgid "B<MSGMAX>" |
| 763 |
msgstr "" |
| 764 |
|
| 765 |
#. type: Plain text |
| 766 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 767 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 768 |
msgid "" |
| 769 |
"Maximum size of a message text, in bytes (default value: 8192 bytes). On " |
| 770 |
"Linux, this limit can be read and modified via I</proc/sys/kernel/msgmax>." |
| 771 |
msgstr "" |
| 772 |
|
| 773 |
#. type: TP |
| 774 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 775 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 776 |
#, no-wrap |
| 777 |
msgid "B<MSGMNB>" |
| 778 |
msgstr "" |
| 779 |
|
| 780 |
#. type: Plain text |
| 781 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 782 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 783 |
msgid "" |
| 784 |
"Maximum number of bytes that can be held in a message queue (default value: " |
| 785 |
"16384 bytes). On Linux, this limit can be read and modified via I</proc/sys/" |
| 786 |
"kernel/msgmnb>. A privileged process (Linux: a process with the " |
| 787 |
"B<CAP_SYS_RESOURCE> capability) can increase the size of a message queue " |
| 788 |
"beyond B<MSGMNB> using the B<msgctl>(2) B<IPC_SET> operation." |
| 789 |
msgstr "" |
| 790 |
|
| 791 |
#. type: Plain text |
| 792 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 793 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 794 |
msgid "" |
| 795 |
"The implementation has no intrinsic system-wide limits on the number of " |
| 796 |
"message headers (B<MSGTQL>) and the number of bytes in the message pool " |
| 797 |
"(B<MSGPOOL>)." |
| 798 |
msgstr "" |
| 799 |
|
| 800 |
#. type: SH |
| 801 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 802 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 803 |
#, no-wrap |
| 804 |
msgid "BUGS" |
| 805 |
msgstr "" |
| 806 |
|
| 807 |
#. http://marc.info/?l=linux-kernel&m=139048542803605&w=2 |
| 808 |
#. commit 4f87dac386cc43d5525da7a939d4b4e7edbea22c |
| 809 |
#. type: Plain text |
| 810 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 811 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 812 |
msgid "" |
| 813 |
"In Linux 3.13 and earlier, if B<msgrcv>() was called with the B<MSG_COPY> " |
| 814 |
"flag, but without B<IPC_NOWAIT>, and the message queue contained less than " |
| 815 |
"I<msgtyp> messages, then the call would block until the next message is " |
| 816 |
"written to the queue. At that point, the call would return a copy of the " |
| 817 |
"message, I<regardless> of whether that message was at the ordinal position " |
| 818 |
"I<msgtyp>. This bug is fixed in Linux 3.14." |
| 819 |
msgstr "" |
| 820 |
|
| 821 |
#. http://marc.info/?l=linux-kernel&m=139048542803605&w=2 |
| 822 |
#. commit 4f87dac386cc43d5525da7a939d4b4e7edbea22c |
| 823 |
#. type: Plain text |
| 824 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 825 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 826 |
msgid "" |
| 827 |
"Specifying both B<MSG_COPY> and B<MSC_EXCEPT> in I<msgflg> is a logical " |
| 828 |
"error (since these flags impose different interpretations on I<msgtyp>). In " |
| 829 |
"Linux 3.13 and earlier, this error was not diagnosed by B<msgrcv>(). This " |
| 830 |
"bug is fixed in Linux 3.14." |
| 831 |
msgstr "" |
| 832 |
|
| 833 |
#. type: SH |
| 834 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 835 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 836 |
#, no-wrap |
| 837 |
msgid "EXAMPLES" |
| 838 |
msgstr "" |
| 839 |
|
| 840 |
#. type: Plain text |
| 841 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 842 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 843 |
msgid "The program below demonstrates the use of B<msgsnd>() and B<msgrcv>()." |
| 844 |
msgstr "" |
| 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 |
"The example program is first run with the B<-s> option to send a message and " |
| 851 |
"then run again with the B<-r> option to receive a message." |
| 852 |
msgstr "" |
| 853 |
|
| 854 |
#. type: Plain text |
| 855 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 856 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 857 |
msgid "The following shell session shows a sample run of the program:" |
| 858 |
msgstr "" |
| 859 |
|
| 860 |
#. type: Plain text |
| 861 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 862 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 863 |
#, no-wrap |
| 864 |
msgid "" |
| 865 |
"$B< ./a.out -s>\n" |
| 866 |
"sent: a message at Wed Mar 4 16:25:45 2015\n" |
| 867 |
msgstr "" |
| 868 |
|
| 869 |
#. type: Plain text |
| 870 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 871 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 872 |
#, no-wrap |
| 873 |
msgid "" |
| 874 |
"$B< ./a.out -r>\n" |
| 875 |
"message received: a message at Wed Mar 4 16:25:45 2015\n" |
| 876 |
msgstr "" |
| 877 |
|
| 878 |
#. type: SS |
| 879 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 880 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 881 |
#, no-wrap |
| 882 |
msgid "Program source" |
| 883 |
msgstr "" |
| 884 |
|
| 885 |
#. type: Plain text |
| 886 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 887 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 888 |
#, no-wrap |
| 889 |
msgid "" |
| 890 |
"#include E<lt>errno.hE<gt>\n" |
| 891 |
"#include E<lt>stdio.hE<gt>\n" |
| 892 |
"#include E<lt>stdlib.hE<gt>\n" |
| 893 |
"#include E<lt>sys/ipc.hE<gt>\n" |
| 894 |
"#include E<lt>sys/msg.hE<gt>\n" |
| 895 |
"#include E<lt>time.hE<gt>\n" |
| 896 |
"#include E<lt>unistd.hE<gt>\n" |
| 897 |
"\\&\n" |
| 898 |
"struct msgbuf {\n" |
| 899 |
" long mtype;\n" |
| 900 |
" char mtext[80];\n" |
| 901 |
"};\n" |
| 902 |
"\\&\n" |
| 903 |
"static void\n" |
| 904 |
"usage(char *prog_name, char *msg)\n" |
| 905 |
"{\n" |
| 906 |
" if (msg != NULL)\n" |
| 907 |
" fputs(msg, stderr);\n" |
| 908 |
"\\&\n" |
| 909 |
" fprintf(stderr, \"Usage: %s [options]\\[rs]n\", prog_name);\n" |
| 910 |
" fprintf(stderr, \"Options are:\\[rs]n\");\n" |
| 911 |
" fprintf(stderr, \"-s send message using msgsnd()\\[rs]n\");\n" |
| 912 |
" fprintf(stderr, \"-r read message using msgrcv()\\[rs]n\");\n" |
| 913 |
" fprintf(stderr, \"-t message type (default is 1)\\[rs]n\");\n" |
| 914 |
" fprintf(stderr, \"-k message queue key (default is 1234)\\[rs]n\");\n" |
| 915 |
" exit(EXIT_FAILURE);\n" |
| 916 |
"}\n" |
| 917 |
"\\&\n" |
| 918 |
"static void\n" |
| 919 |
"send_msg(int qid, int msgtype)\n" |
| 920 |
"{\n" |
| 921 |
" time_t t;\n" |
| 922 |
" struct msgbuf msg;\n" |
| 923 |
"\\&\n" |
| 924 |
" msg.mtype = msgtype;\n" |
| 925 |
"\\&\n" |
| 926 |
" time(&t);\n" |
| 927 |
" snprintf(msg.mtext, sizeof(msg.mtext), \"a message at %s\",\n" |
| 928 |
" ctime(&t));\n" |
| 929 |
"\\&\n" |
| 930 |
" if (msgsnd(qid, &msg, sizeof(msg.mtext),\n" |
| 931 |
" IPC_NOWAIT) == -1)\n" |
| 932 |
" {\n" |
| 933 |
" perror(\"msgsnd error\");\n" |
| 934 |
" exit(EXIT_FAILURE);\n" |
| 935 |
" }\n" |
| 936 |
" printf(\"sent: %s\\[rs]n\", msg.mtext);\n" |
| 937 |
"}\n" |
| 938 |
"\\&\n" |
| 939 |
"static void\n" |
| 940 |
"get_msg(int qid, int msgtype)\n" |
| 941 |
"{\n" |
| 942 |
" struct msgbuf msg;\n" |
| 943 |
"\\&\n" |
| 944 |
" if (msgrcv(qid, &msg, sizeof(msg.mtext), msgtype,\n" |
| 945 |
" MSG_NOERROR | IPC_NOWAIT) == -1) {\n" |
| 946 |
" if (errno != ENOMSG) {\n" |
| 947 |
" perror(\"msgrcv\");\n" |
| 948 |
" exit(EXIT_FAILURE);\n" |
| 949 |
" }\n" |
| 950 |
" printf(\"No message available for msgrcv()\\[rs]n\");\n" |
| 951 |
" } else {\n" |
| 952 |
" printf(\"message received: %s\\[rs]n\", msg.mtext);\n" |
| 953 |
" }\n" |
| 954 |
"}\n" |
| 955 |
"\\&\n" |
| 956 |
"int\n" |
| 957 |
"main(int argc, char *argv[])\n" |
| 958 |
"{\n" |
| 959 |
" int qid, opt;\n" |
| 960 |
" int mode = 0; /* 1 = send, 2 = receive */\n" |
| 961 |
" int msgtype = 1;\n" |
| 962 |
" int msgkey = 1234;\n" |
| 963 |
"\\&\n" |
| 964 |
" while ((opt = getopt(argc, argv, \"srt:k:\")) != -1) {\n" |
| 965 |
" switch (opt) {\n" |
| 966 |
" case \\[aq]s\\[aq]:\n" |
| 967 |
" mode = 1;\n" |
| 968 |
" break;\n" |
| 969 |
" case \\[aq]r\\[aq]:\n" |
| 970 |
" mode = 2;\n" |
| 971 |
" break;\n" |
| 972 |
" case \\[aq]t\\[aq]:\n" |
| 973 |
" msgtype = atoi(optarg);\n" |
| 974 |
" if (msgtype E<lt>= 0)\n" |
| 975 |
" usage(argv[0], \"-t option must be greater than 0\\[rs]n\");\n" |
| 976 |
" break;\n" |
| 977 |
" case \\[aq]k\\[aq]:\n" |
| 978 |
" msgkey = atoi(optarg);\n" |
| 979 |
" break;\n" |
| 980 |
" default:\n" |
| 981 |
" usage(argv[0], \"Unrecognized option\\[rs]n\");\n" |
| 982 |
" }\n" |
| 983 |
" }\n" |
| 984 |
"\\&\n" |
| 985 |
" if (mode == 0)\n" |
| 986 |
" usage(argv[0], \"must use either -s or -r option\\[rs]n\");\n" |
| 987 |
"\\&\n" |
| 988 |
" qid = msgget(msgkey, IPC_CREAT | 0666);\n" |
| 989 |
"\\&\n" |
| 990 |
" if (qid == -1) {\n" |
| 991 |
" perror(\"msgget\");\n" |
| 992 |
" exit(EXIT_FAILURE);\n" |
| 993 |
" }\n" |
| 994 |
"\\&\n" |
| 995 |
" if (mode == 2)\n" |
| 996 |
" get_msg(qid, msgtype);\n" |
| 997 |
" else\n" |
| 998 |
" send_msg(qid, msgtype);\n" |
| 999 |
"\\&\n" |
| 1000 |
" exit(EXIT_SUCCESS);\n" |
| 1001 |
"}\n" |
| 1002 |
msgstr "" |
| 1003 |
|
| 1004 |
#. SRC END |
| 1005 |
#. type: SH |
| 1006 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1007 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1008 |
#, no-wrap |
| 1009 |
msgid "SEE ALSO" |
| 1010 |
msgstr "" |
| 1011 |
|
| 1012 |
#. type: Plain text |
| 1013 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1014 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1015 |
msgid "" |
| 1016 |
"B<msgctl>(2), B<msgget>(2), B<capabilities>(7), B<mq_overview>(7), " |
| 1017 |
"B<sysvipc>(7)" |
| 1018 |
msgstr "" |
| 1019 |
|
| 1020 |
#. type: TH |
| 1021 |
#: debian-trixie |
| 1022 |
#, no-wrap |
| 1023 |
msgid "2024-06-15" |
| 1024 |
msgstr "" |
| 1025 |
|
| 1026 |
#. type: TH |
| 1027 |
#: debian-trixie |
| 1028 |
#, no-wrap |
| 1029 |
msgid "Linux man-pages 6.9.1" |
| 1030 |
msgstr "" |
| 1031 |
|
| 1032 |
#. type: Plain text |
| 1033 |
#: debian-trixie |
| 1034 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 1035 |
msgstr "" |
| 1036 |
|
| 1037 |
#. type: Plain text |
| 1038 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1039 |
#, no-wrap |
| 1040 |
msgid "" |
| 1041 |
"B<int msgsnd(int >I<msqid>B<, const void >I<msgp>B<[.>I<msgsz>B<], size_t >I<msgsz>B<,>\n" |
| 1042 |
"B< int >I<msgflg>B<);>\n" |
| 1043 |
msgstr "" |
| 1044 |
|
| 1045 |
#. type: Plain text |
| 1046 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1047 |
#, no-wrap |
| 1048 |
msgid "" |
| 1049 |
"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" |
| 1050 |
"B< int >I<msgflg>B<);>\n" |
| 1051 |
msgstr "" |
| 1052 |
|
| 1053 |
#. type: Plain text |
| 1054 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1055 |
msgid "" |
| 1056 |
"a signal is caught, in which case the system call fails with I<errno> set to " |
| 1057 |
"B<EINTR>;B<see> B<signal>(7). (B<msgsnd>() is never automatically " |
| 1058 |
"restarted after being interrupted by a signal handler, regardless of the " |
| 1059 |
"setting of the B<SA_RESTART> flag when establishing a signal handler.)" |
| 1060 |
msgstr "" |
| 1061 |
|
| 1062 |
#. type: Plain text |
| 1063 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1064 |
msgid "" |
| 1065 |
"B<IPC_NOWAIT> and B<MSG_COPY> were specified in I<msgflg> and the queue " |
| 1066 |
"contains less than I<msgtyp> messages." |
| 1067 |
msgstr "" |
| 1068 |
|
| 1069 |
#. type: Plain text |
| 1070 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1071 |
msgid "POSIX.1-2008." |
| 1072 |
msgstr "" |
| 1073 |
|
| 1074 |
#. type: Plain text |
| 1075 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1076 |
msgid "POSIX.1-2001, SVr4." |
| 1077 |
msgstr "" |
| 1078 |
|
| 1079 |
#. type: Plain text |
| 1080 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1081 |
msgid "" |
| 1082 |
"The I<msgp> argument is declared as I<struct msgbuf\\ *> in glibc 2.0 and " |
| 1083 |
"2.1. It is declared as I<void\\ *> in glibc 2.2 and later, as required by " |
| 1084 |
"SUSv2 and SUSv3." |
| 1085 |
msgstr "" |
| 1086 |
|
| 1087 |
#. type: TH |
| 1088 |
#: fedora-44 fedora-rawhide |
| 1089 |
#, no-wrap |
| 1090 |
msgid "2024-07-23" |
| 1091 |
msgstr "" |
| 1092 |
|
| 1093 |
#. type: TH |
| 1094 |
#: fedora-44 fedora-rawhide |
| 1095 |
#, no-wrap |
| 1096 |
msgid "Linux man-pages 6.13" |
| 1097 |
msgstr "" |
| 1098 |
|
| 1099 |
#. type: TH |
| 1100 |
#: mageia-cauldron |
| 1101 |
#, no-wrap |
| 1102 |
msgid "Linux man-pages 6.17" |
| 1103 |
msgstr "" |
| 1104 |
|
| 1105 |
#. type: TH |
| 1106 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1107 |
#, no-wrap |
| 1108 |
msgid "Linux man-pages (unreleased)" |
| 1109 |
msgstr "" |