Debian Codegraph @

templates/man2/sendfile.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:42+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 "sendfile"
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 "sendfile - transfer data between file descriptors"
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/sendfile.hE<gt>>\n"
77 msgstr ""
78
79 #
80 #. The below is too ugly. Comments about glibc versions belong
81 #. in the notes, not in the header.
82 #. .B #include <features.h>
83 #. .B #if (__GLIBC__==2 && __GLIBC_MINOR__>=1) || __GLIBC__>2
84 #. .B #include <sys/sendfile.h>
85 #. #else
86 #. .B #include <sys/types.h>
87 #. .B /* No system prototype before glibc 2.1. */
88 #. .BI "ssize_t sendfile(int" " out_fd" ", int" " in_fd" ", off_t *" #. offset ", size_t" " count" )
89 #. .B #endif
90 #. type: Plain text
91 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
92 #: opensuse-tumbleweed
93 #, no-wrap
94 msgid ""
95 "B<ssize_t sendfile(int>I< out_fd>B<, int>I< in_fd>B<, off_t *_Nullable >I<offset>B<,>\n"
96 "B< size_t >I<count>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 "B<sendfile>() copies data between one file descriptor and another. Because "
111 "this copying is done within the kernel, B<sendfile>() is more efficient "
112 "than the combination of B<read>(2) and B<write>(2), which would require "
113 "transferring data to and from user space."
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 "I<in_fd> should be a file descriptor opened for reading and I<out_fd> should "
121 "be a descriptor opened for writing."
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 msgid ""
128 "If I<offset> is not NULL, then it points to a variable holding the file "
129 "offset from which B<sendfile>() will start reading data from I<in_fd>. "
130 "When B<sendfile>() returns, this variable will be set to the offset of the "
131 "byte following the last byte that was read. If I<offset> is not NULL, then "
132 "B<sendfile>() does not modify the file offset of I<in_fd>; otherwise the "
133 "file offset is adjusted to reflect the number of bytes read from I<in_fd>."
134 msgstr ""
135
136 #. type: Plain text
137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
139 msgid ""
140 "If I<offset> is NULL, then data will be read from I<in_fd> starting at the "
141 "file offset, and the file offset will be updated by the call."
142 msgstr ""
143
144 #. type: Plain text
145 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
146 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
147 msgid "I<count> is the number of bytes to copy between the file descriptors."
148 msgstr ""
149
150 #. commit b964bf53e540262f2d12672b3cca10842c0172e7
151 #. type: Plain text
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 msgid ""
155 "The I<in_fd> argument must correspond to a file which supports B<mmap>(2)-"
156 "like operations (i.e., it cannot be a socket). Except since Linux 5.12 and "
157 "if I<out_fd> is a pipe, in which case B<sendfile>() desugars to a "
158 "B<splice>(2) and its restrictions apply."
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 "Before Linux 2.6.33, I<out_fd> must refer to a socket. Since Linux 2.6.33 "
166 "it can be any file. If it's seekable, then B<sendfile>() changes the file "
167 "offset appropriately."
168 msgstr ""
169
170 #. type: SH
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 #, no-wrap
174 msgid "RETURN VALUE"
175 msgstr ""
176
177 #. type: Plain text
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 msgid ""
181 "If the transfer was successful, the number of bytes written to I<out_fd> is "
182 "returned. Note that a successful call to B<sendfile>() may write fewer "
183 "bytes than requested; the caller should be prepared to retry the call if "
184 "there were unsent bytes. See also NOTES."
185 msgstr ""
186
187 #. type: Plain text
188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
190 msgid "On error, -1 is returned, and I<errno> is set to indicate the error."
191 msgstr ""
192
193 #. type: SH
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 #, no-wrap
197 msgid "ERRORS"
198 msgstr ""
199
200 #. type: TP
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 #, no-wrap
204 msgid "B<EAGAIN>"
205 msgstr ""
206
207 #. type: Plain text
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 msgid ""
211 "Nonblocking I/O has been selected using B<O_NONBLOCK> and the write would "
212 "block."
213 msgstr ""
214
215 #. type: TP
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 #, no-wrap
219 msgid "B<EBADF>"
220 msgstr ""
221
222 #. type: Plain text
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 msgid ""
226 "The input file was not opened for reading or the output file was not opened "
227 "for writing."
228 msgstr ""
229
230 #. type: TP
231 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
232 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
233 #, no-wrap
234 msgid "B<EFAULT>"
235 msgstr ""
236
237 #. type: Plain text
238 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
239 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
240 msgid "Bad address."
241 msgstr ""
242
243 #. type: TP
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 #, no-wrap
247 msgid "B<EINVAL>"
248 msgstr ""
249
250 #. type: Plain text
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 msgid ""
254 "Descriptor is not valid or locked, or an B<mmap>(2)-like operation is not "
255 "available for I<in_fd>, or I<count> is negative."
256 msgstr ""
257
258 #. type: Plain text
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 msgid ""
262 "I<out_fd> has the B<O_APPEND> flag set. This is not currently supported by "
263 "B<sendfile>()."
264 msgstr ""
265
266 #. type: TP
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 #, no-wrap
270 msgid "B<EIO>"
271 msgstr ""
272
273 #. type: Plain text
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 msgid "Unspecified error while reading from I<in_fd>."
277 msgstr ""
278
279 #. type: TP
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 #, no-wrap
283 msgid "B<ENOMEM>"
284 msgstr ""
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 "Insufficient memory to read from I<in_fd>."
290 msgstr ""
291
292 #. type: TP
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 #, no-wrap
296 msgid "B<EOVERFLOW>"
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 "I<count> is too large, the operation would result in exceeding the maximum "
304 "size of either the input file or the output file."
305 msgstr ""
306
307 #. type: TP
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 #, no-wrap
311 msgid "B<ESPIPE>"
312 msgstr ""
313
314 #. type: Plain text
315 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
316 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
317 msgid "I<offset> is not NULL but the input file is not seekable."
318 msgstr ""
319
320 #. type: SH
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 #, no-wrap
324 msgid "VERSIONS"
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 "Other UNIX systems implement B<sendfile>() with different semantics and "
332 "prototypes. It should not be used in portable programs."
333 msgstr ""
334
335 #. type: SH
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 #, no-wrap
339 msgid "STANDARDS"
340 msgstr ""
341
342 #. type: Plain text
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 msgid "None."
346 msgstr ""
347
348 #. type: SH
349 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
350 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
351 #, no-wrap
352 msgid "HISTORY"
353 msgstr ""
354
355 #. type: Plain text
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 msgid "Linux 2.2, glibc 2.1."
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 "In Linux 2.4 and earlier, I<out_fd> could also refer to a regular file; this "
366 "possibility went away in the Linux 2.6.x kernel series, but was restored in "
367 "Linux 2.6.33."
368 msgstr ""
369
370 #. type: Plain text
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 msgid ""
374 "The original Linux B<sendfile>() system call was not designed to handle "
375 "large file offsets. Consequently, Linux 2.4 added B<sendfile64>(), with a "
376 "wider type for the I<offset> argument. The glibc B<sendfile>() wrapper "
377 "function transparently deals with the kernel differences."
378 msgstr ""
379
380 #. type: SH
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 #, no-wrap
384 msgid "NOTES"
385 msgstr ""
386
387 #. commit e28cc71572da38a5a12c1cfe4d7032017adccf69
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 "B<sendfile>() will transfer at most 0x7ffff000 (2,147,479,552) bytes, "
393 "returning the number of bytes actually transferred. (This is true on both "
394 "32-bit and 64-bit systems.)"
395 msgstr ""
396
397 #. type: Plain text
398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
400 msgid ""
401 "If you plan to use B<sendfile>() for sending files to a TCP socket, but "
402 "need to send some header data in front of the file contents, you will find "
403 "it useful to employ the B<TCP_CORK> option, described in B<tcp>(7), to "
404 "minimize the number of packets and to tune performance."
405 msgstr ""
406
407 #. type: Plain text
408 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
409 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
410 msgid ""
411 "Applications may wish to fall back to B<read>(2) and B<write>(2) in the "
412 "case where B<sendfile>() fails with B<EINVAL> or B<ENOSYS>."
413 msgstr ""
414
415 #. type: Plain text
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 msgid ""
419 "If I<out_fd> refers to a socket or pipe with zero-copy support, callers must "
420 "ensure the transferred portions of the file referred to by I<in_fd> remain "
421 "unmodified until the reader on the other end of I<out_fd> has consumed the "
422 "transferred data."
423 msgstr ""
424
425 #. type: Plain text
426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
428 msgid ""
429 "The Linux-specific B<splice>(2) call supports transferring data between "
430 "arbitrary file descriptors provided one (or both) of them is a pipe."
431 msgstr ""
432
433 #. type: SH
434 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
435 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
436 #, no-wrap
437 msgid "SEE ALSO"
438 msgstr ""
439
440 #. type: Plain text
441 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
442 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
443 msgid ""
444 "B<copy_file_range>(2), B<mmap>(2), B<open>(2), B<socket>(2), B<splice>(2)"
445 msgstr ""
446
447 #. type: TH
448 #: debian-trixie
449 #, no-wrap
450 msgid "2024-05-02"
451 msgstr ""
452
453 #. type: TH
454 #: debian-trixie
455 #, no-wrap
456 msgid "Linux man-pages 6.9.1"
457 msgstr ""
458
459 #. type: Plain text
460 #: debian-trixie
461 msgid "Standard C library (I<libc>, I<-lc>)"
462 msgstr ""
463
464 #
465 #. The below is too ugly. Comments about glibc versions belong
466 #. in the notes, not in the header.
467 #. .B #include <features.h>
468 #. .B #if (__GLIBC__==2 && __GLIBC_MINOR__>=1) || __GLIBC__>2
469 #. .B #include <sys/sendfile.h>
470 #. #else
471 #. .B #include <sys/types.h>
472 #. .B /* No system prototype before glibc 2.1. */
473 #. .BI "ssize_t sendfile(int" " out_fd" ", int" " in_fd" ", off_t *" #. offset ", size_t" " count" )
474 #. .B #endif
475 #. type: Plain text
476 #: debian-trixie fedora-44 fedora-rawhide
477 #, no-wrap
478 msgid ""
479 "B<ssize_t sendfile(int>I< out_fd>B<, int>I< in_fd>B<, off_t *_Nullable >I<offset>B<,>\n"
480 "B< size_t>I< count>B<);>\n"
481 msgstr ""
482
483 #. type: TH
484 #: fedora-44 fedora-rawhide
485 #, no-wrap
486 msgid "2024-07-23"
487 msgstr ""
488
489 #. type: TH
490 #: fedora-44 fedora-rawhide
491 #, no-wrap
492 msgid "Linux man-pages 6.13"
493 msgstr ""
494
495 #. type: TH
496 #: mageia-cauldron
497 #, no-wrap
498 msgid "Linux man-pages 6.17"
499 msgstr ""
500
501 #. type: TH
502 #: opensuse-leap-16-1 opensuse-tumbleweed
503 #, no-wrap
504 msgid "Linux man-pages (unreleased)"
505 msgstr ""