Debian Codegraph @

templates/man2/recvmmsg.2.pot

raw
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:39+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 "recvmmsg"
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-08"
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 "recvmmsg - receive multiple messages on a socket"
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 ""
77 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
78 "B<#include E<lt>sys/socket.hE<gt>>\n"
79 msgstr ""
80
81 #. type: Plain text
82 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
83 #: opensuse-tumbleweed
84 #, no-wrap
85 msgid ""
86 "B<int recvmmsg(>unsigned int n;\n"
87 "B< int >I<sockfd>B<, struct mmsghdr >I<msgvec>B<[>I<n>B<], unsigned int >I<n>B<,>\n"
88 "B< int >I<flags>B<, struct timespec *>I<timeout>B<);>\n"
89 msgstr ""
90
91 #. type: SH
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, no-wrap
95 msgid "DESCRIPTION"
96 msgstr ""
97
98 #. type: Plain text
99 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
101 msgid ""
102 "The B<recvmmsg>() system call is an extension of B<recvmsg>(2) that allows "
103 "the caller to receive multiple messages from a socket using a single system "
104 "call. (This has performance benefits for some applications.) A further "
105 "extension over B<recvmsg>(2) is support for a timeout on the receive "
106 "operation."
107 msgstr ""
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 msgid ""
113 "The I<sockfd> argument is the file descriptor of the socket to receive data "
114 "from."
115 msgstr ""
116
117 #. type: Plain text
118 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
119 #: opensuse-leap-16-1 opensuse-tumbleweed
120 msgid ""
121 "The I<msgvec> argument is a pointer to an array of I<mmsghdr> structures. "
122 "The size of this array is specified in I<n>."
123 msgstr ""
124
125 #. type: Plain text
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 msgid "The I<mmsghdr> structure is defined in I<E<lt>sys/socket.hE<gt>> as:"
129 msgstr ""
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 #, no-wrap
135 msgid ""
136 "struct mmsghdr {\n"
137 " struct msghdr msg_hdr; /* Message header */\n"
138 " unsigned int msg_len; /* Number of received bytes for header */\n"
139 "};\n"
140 msgstr ""
141
142 #. type: Plain text
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 msgid ""
146 "The I<msg_hdr> field is a I<msghdr> structure, as described in "
147 "B<recvmsg>(2). The I<msg_len> field is the number of bytes returned for the "
148 "message in the entry. This field has the same value as the return value of "
149 "a single B<recvmsg>(2) on the header."
150 msgstr ""
151
152 #. type: Plain text
153 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
154 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
155 msgid ""
156 "The I<flags> argument contains flags ORed together. The flags are the same "
157 "as documented for B<recvmsg>(2), with the following addition:"
158 msgstr ""
159
160 #. type: TP
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 #, no-wrap
164 msgid "B<MSG_WAITFORONE> (since Linux 2.6.34)"
165 msgstr ""
166
167 #. type: Plain text
168 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
169 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
170 msgid "Turns on B<MSG_DONTWAIT> after the first message has been received."
171 msgstr ""
172
173 #. type: Plain text
174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
176 msgid ""
177 "The I<timeout> argument points to a I<struct timespec> (see "
178 "B<clock_gettime>(2)) defining a timeout (seconds plus nanoseconds) for the "
179 "receive operation (I<but see BUGS!>). (This interval will be rounded up to "
180 "the system clock granularity, and kernel scheduling delays mean that the "
181 "blocking interval may overrun by a small amount.) If I<timeout> is NULL, "
182 "then the operation blocks indefinitely."
183 msgstr ""
184
185 #. type: Plain text
186 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
187 #: opensuse-leap-16-1 opensuse-tumbleweed
188 msgid ""
189 "A blocking B<recvmmsg>() call blocks until I<n> messages have been received "
190 "or until the timeout expires. A nonblocking call reads as many messages as "
191 "are available (up to the limit specified by I<n>) and returns immediately."
192 msgstr ""
193
194 #. type: Plain text
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 msgid ""
198 "On return from B<recvmmsg>(), successive elements of I<msgvec> are updated "
199 "to contain information about each received message: I<msg_len> contains the "
200 "size of the received message; the subfields of I<msg_hdr> are updated as "
201 "described in B<recvmsg>(2). The return value of the call indicates the "
202 "number of elements of I<msgvec> that have been updated."
203 msgstr ""
204
205 #. type: SH
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 #, no-wrap
209 msgid "RETURN VALUE"
210 msgstr ""
211
212 #. type: Plain text
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 msgid ""
216 "On success, B<recvmmsg>() returns the number of messages received in "
217 "I<msgvec>; on error, -1 is returned, and I<errno> is set to indicate the "
218 "error."
219 msgstr ""
220
221 #. type: SH
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 #, no-wrap
225 msgid "ERRORS"
226 msgstr ""
227
228 #. type: Plain text
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 msgid ""
232 "Errors are as for B<recvmsg>(2). In addition, the following error can occur:"
233 msgstr ""
234
235 #. type: TP
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 #, no-wrap
239 msgid "B<EINVAL>"
240 msgstr ""
241
242 #. type: Plain text
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 msgid "I<timeout> is invalid."
246 msgstr ""
247
248 #. type: Plain text
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 msgid "See also BUGS."
252 msgstr ""
253
254 #. type: SH
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 #, no-wrap
258 msgid "STANDARDS"
259 msgstr ""
260
261 #. type: Plain text
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 msgid "Linux."
265 msgstr ""
266
267 #. type: SH
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 #, no-wrap
271 msgid "HISTORY"
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 "Linux 2.6.33, glibc 2.12."
278 msgstr ""
279
280 #. type: SH
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 #, no-wrap
284 msgid "BUGS"
285 msgstr ""
286
287 #. FIXME . https://bugzilla.kernel.org/show_bug.cgi?id=75371
288 #. http://thread.gmane.org/gmane.linux.man/5677
289 #. type: Plain text
290 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
291 #: opensuse-leap-16-1 opensuse-tumbleweed
292 msgid ""
293 "The I<timeout> argument does not work as intended. The timeout is checked "
294 "only after the receipt of each datagram, so that if up to I<n-1> datagrams "
295 "are received before the timeout expires, but then no further datagrams are "
296 "received, the call will block forever."
297 msgstr ""
298
299 #. type: Plain text
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 msgid ""
303 "If an error occurs after at least one message has been received, the call "
304 "succeeds, and returns the number of messages received. The error code is "
305 "expected to be returned on a subsequent call to B<recvmmsg>(). In the "
306 "current implementation, however, the error code can be overwritten in the "
307 "meantime by an unrelated network event on a socket, for example an incoming "
308 "ICMP packet."
309 msgstr ""
310
311 #. type: SH
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 #, no-wrap
315 msgid "EXAMPLES"
316 msgstr ""
317
318 #. type: Plain text
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 msgid ""
322 "The following program uses B<recvmmsg>() to receive multiple messages on a "
323 "socket and stores them in multiple buffers. The call returns if all buffers "
324 "are filled or if the timeout specified has expired."
325 msgstr ""
326
327 #. type: Plain text
328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
330 msgid ""
331 "The following snippet periodically generates UDP datagrams containing a "
332 "random number:"
333 msgstr ""
334
335 #. type: Plain text
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 #, no-wrap
339 msgid ""
340 "$B< while true; do echo $RANDOM E<gt> /dev/udp/127.0.0.1/1234;>\n"
341 "B<sleep 0.25; done>\n"
342 msgstr ""
343
344 #. type: Plain text
345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
347 msgid ""
348 "These datagrams are read by the example application, which can give the "
349 "following output:"
350 msgstr ""
351
352 #. type: Plain text
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 #, no-wrap
356 msgid ""
357 "$B< ./a.out>\n"
358 "5 messages received\n"
359 "1 11782\n"
360 "2 11345\n"
361 "3 304\n"
362 "4 13514\n"
363 "5 28421\n"
364 msgstr ""
365
366 #. type: SS
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 #, no-wrap
370 msgid "Program source"
371 msgstr ""
372
373 #. type: Plain text
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 #, no-wrap
377 msgid ""
378 "#define _GNU_SOURCE\n"
379 "#include E<lt>arpa/inet.hE<gt>\n"
380 "#include E<lt>netinet/in.hE<gt>\n"
381 "#include E<lt>stdio.hE<gt>\n"
382 "#include E<lt>stdlib.hE<gt>\n"
383 "#include E<lt>string.hE<gt>\n"
384 "#include E<lt>sys/socket.hE<gt>\n"
385 "#include E<lt>time.hE<gt>\n"
386 "\\&\n"
387 "int\n"
388 "main(void)\n"
389 "{\n"
390 "#define VLEN 10\n"
391 "#define BUFSIZE 200\n"
392 "#define TIMEOUT 1\n"
393 " int sockfd, retval;\n"
394 " char bufs[VLEN][BUFSIZE+1];\n"
395 " struct iovec iovecs[VLEN];\n"
396 " struct mmsghdr msgs[VLEN];\n"
397 " struct timespec timeout;\n"
398 " struct sockaddr_in addr;\n"
399 "\\&\n"
400 " sockfd = socket(AF_INET, SOCK_DGRAM, 0);\n"
401 " if (sockfd == -1) {\n"
402 " perror(\"socket()\");\n"
403 " exit(EXIT_FAILURE);\n"
404 " }\n"
405 "\\&\n"
406 " addr.sin_family = AF_INET;\n"
407 " addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);\n"
408 " addr.sin_port = htons(1234);\n"
409 " if (bind(sockfd, (struct sockaddr *) &addr, sizeof(addr)) == -1) {\n"
410 " perror(\"bind()\");\n"
411 " exit(EXIT_FAILURE);\n"
412 " }\n"
413 "\\&\n"
414 " memset(msgs, 0, sizeof(msgs));\n"
415 " for (size_t i = 0; i E<lt> VLEN; i++) {\n"
416 " iovecs[i].iov_base = bufs[i];\n"
417 " iovecs[i].iov_len = BUFSIZE;\n"
418 " msgs[i].msg_hdr.msg_iov = &iovecs[i];\n"
419 " msgs[i].msg_hdr.msg_iovlen = 1;\n"
420 " }\n"
421 "\\&\n"
422 " timeout.tv_sec = TIMEOUT;\n"
423 " timeout.tv_nsec = 0;\n"
424 "\\&\n"
425 " retval = recvmmsg(sockfd, msgs, VLEN, 0, &timeout);\n"
426 " if (retval == -1) {\n"
427 " perror(\"recvmmsg()\");\n"
428 " exit(EXIT_FAILURE);\n"
429 " }\n"
430 "\\&\n"
431 " printf(\"%d messages received\\[rs]n\", retval);\n"
432 " for (size_t i = 0; i E<lt> retval; i++) {\n"
433 " bufs[i][msgs[i].msg_len] = 0;\n"
434 " printf(\"%zu %s\", i+1, bufs[i]);\n"
435 " }\n"
436 " exit(EXIT_SUCCESS);\n"
437 "}\n"
438 msgstr ""
439
440 #. SRC END
441 #. type: SH
442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
444 #, no-wrap
445 msgid "SEE ALSO"
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 ""
452 "B<clock_gettime>(2), B<recvmsg>(2), B<sendmmsg>(2), B<sendmsg>(2), "
453 "B<socket>(2), B<socket>(7)"
454 msgstr ""
455
456 #. type: TH
457 #: debian-trixie
458 #, no-wrap
459 msgid "2024-06-15"
460 msgstr ""
461
462 #. type: TH
463 #: debian-trixie
464 #, no-wrap
465 msgid "Linux man-pages 6.9.1"
466 msgstr ""
467
468 #. type: Plain text
469 #: debian-trixie
470 msgid "Standard C library (I<libc>, I<-lc>)"
471 msgstr ""
472
473 #. type: Plain text
474 #: debian-trixie
475 #, no-wrap
476 msgid ""
477 "B<int recvmmsg(int >I<sockfd>B<, struct mmsghdr *>I<msgvec>B<, unsigned int >I<vlen>B<,>\n"
478 "B< int >I<flags>B<, struct timespec *>I<timeout>B<);>\n"
479 msgstr ""
480
481 #. type: Plain text
482 #: debian-trixie
483 msgid ""
484 "The I<msgvec> argument is a pointer to an array of I<mmsghdr> structures. "
485 "The size of this array is specified in I<vlen>."
486 msgstr ""
487
488 #. type: Plain text
489 #: debian-trixie
490 msgid ""
491 "A blocking B<recvmmsg>() call blocks until I<vlen> messages have been "
492 "received or until the timeout expires. A nonblocking call reads as many "
493 "messages as are available (up to the limit specified by I<vlen>) and "
494 "returns immediately."
495 msgstr ""
496
497 #. FIXME . https://bugzilla.kernel.org/show_bug.cgi?id=75371
498 #. http://thread.gmane.org/gmane.linux.man/5677
499 #. type: Plain text
500 #: debian-trixie
501 msgid ""
502 "The I<timeout> argument does not work as intended. The timeout is checked "
503 "only after the receipt of each datagram, so that if up to I<vlen-1> "
504 "datagrams are received before the timeout expires, but then no further "
505 "datagrams are received, the call will block forever."
506 msgstr ""
507
508 #. type: TH
509 #: fedora-44 fedora-rawhide
510 #, no-wrap
511 msgid "2024-11-17"
512 msgstr ""
513
514 #. type: TH
515 #: fedora-44 fedora-rawhide
516 #, no-wrap
517 msgid "Linux man-pages 6.13"
518 msgstr ""
519
520 #. type: Plain text
521 #: fedora-44 fedora-rawhide
522 #, no-wrap
523 msgid ""
524 "B<int recvmmsg(int >I<sockfd>B<, struct mmsghdr >I<msgvec>B<[.>I<n>B<], unsigned int >I<n>B<,>\n"
525 "B< int >I<flags>B<, struct timespec *>I<timeout>B<);>\n"
526 msgstr ""
527
528 #. type: TH
529 #: mageia-cauldron
530 #, no-wrap
531 msgid "Linux man-pages 6.17"
532 msgstr ""
533
534 #. type: TH
535 #: opensuse-leap-16-1 opensuse-tumbleweed
536 #, no-wrap
537 msgid "Linux man-pages (unreleased)"
538 msgstr ""