Debian Codegraph @

templates/man2/read.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 "read"
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 "read - read from a file descriptor"
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>unistd.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 read(>size_t count;\n"
85 "B< int >I<fd>B<, void >I<buf>B<[>I<count>B<], size_t >I<count>B<);>\n"
86 msgstr ""
87
88 #. type: SH
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid "DESCRIPTION"
93 msgstr ""
94
95 #. type: Plain text
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 msgid ""
99 "B<read>() attempts to read up to I<count> bytes from file descriptor I<fd> "
100 "into the buffer starting at I<buf>."
101 msgstr ""
102
103 #. type: Plain text
104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
106 msgid ""
107 "On files that support seeking, the read operation commences at the file "
108 "offset, and the file offset is incremented by the number of bytes read. If "
109 "the file offset is at or past the end of file, no bytes are read, and "
110 "B<read>() returns zero."
111 msgstr ""
112
113 #. type: Plain text
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 msgid ""
117 "If I<count> is zero, B<read>() I<may> detect the errors described below. "
118 "In the absence of any errors, or if B<read>() does not check for errors, a "
119 "B<read>() with a I<count> of 0 returns zero and has no other effects."
120 msgstr ""
121
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 msgid ""
126 "According to POSIX.1, if I<count> is greater than B<SSIZE_MAX>, the result "
127 "is implementation-defined; see NOTES for the upper limit on Linux."
128 msgstr ""
129
130 #. type: SH
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 #, no-wrap
134 msgid "RETURN VALUE"
135 msgstr ""
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 msgid ""
141 "On success, the number of bytes read is returned (zero indicates end of "
142 "file), and the file position is advanced by this number. It is not an error "
143 "if this number is smaller than the number of bytes requested; this may "
144 "happen for example because fewer bytes are actually available right now "
145 "(maybe because we were close to end-of-file, or because we are reading from "
146 "a pipe, or from a terminal), or because B<read>() was interrupted by a "
147 "signal. See also NOTES."
148 msgstr ""
149
150 #. type: Plain text
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 msgid ""
154 "On error, -1 is returned, and I<errno> is set to indicate the error. In "
155 "this case, it is left unspecified whether the file position (if any) changes."
156 msgstr ""
157
158 #. type: SH
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 #, no-wrap
162 msgid "ERRORS"
163 msgstr ""
164
165 #. type: TP
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 #, no-wrap
169 msgid "B<EAGAIN>"
170 msgstr ""
171
172 #. type: Plain text
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 msgid ""
176 "The file descriptor I<fd> refers to a file other than a socket and has been "
177 "marked nonblocking (B<O_NONBLOCK>), and the read would block. See "
178 "B<open>(2) for further details on the B<O_NONBLOCK> flag."
179 msgstr ""
180
181 #. type: TP
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 #, no-wrap
185 msgid "B<EAGAIN> or B<EWOULDBLOCK>"
186 msgstr ""
187
188 #. Actually EAGAIN on Linux
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 "The file descriptor I<fd> refers to a socket and has been marked nonblocking "
194 "(B<O_NONBLOCK>), and the read would block. POSIX.1-2001 allows either error "
195 "to be returned for this case, and does not require these constants to have "
196 "the same value, so a portable application should check for both "
197 "possibilities."
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<EBADF>"
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 "I<fd> is not a valid file descriptor or is not open for reading."
211 msgstr ""
212
213 #. type: TP
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 #, no-wrap
217 msgid "B<EFAULT>"
218 msgstr ""
219
220 #. type: Plain text
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 msgid "I<buf> is outside your accessible address space."
224 msgstr ""
225
226 #. type: TP
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 #, no-wrap
230 msgid "B<EINTR>"
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 "The call was interrupted by a signal before any data was read; see "
238 "B<signal>(7)."
239 msgstr ""
240
241 #. type: TP
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
244 #, no-wrap
245 msgid "B<EINVAL>"
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 ""
252 "I<fd> is attached to an object which is unsuitable for reading; or the file "
253 "was opened with the B<O_DIRECT> flag, and either the address specified in "
254 "I<buf>, the value specified in I<count>, or the file offset is not suitably "
255 "aligned."
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<fd> was created via a call to B<timerfd_create>(2) and the wrong size "
263 "buffer was given to B<read>(); see B<timerfd_create>(2) for further "
264 "information."
265 msgstr ""
266
267 #. type: TP
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 #, no-wrap
271 msgid "B<EIO>"
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 "I/O error. This will happen for example when the process is in a background "
279 "process group, tries to read from its controlling terminal, and either it is "
280 "ignoring or blocking B<SIGTTIN> or its process group is orphaned. It may "
281 "also occur when there is a low-level I/O error while reading from a disk or "
282 "tape. A further possible cause of B<EIO> on networked filesystems is when "
283 "an advisory lock had been taken out on the file descriptor and this lock has "
284 "been lost. See the I<Lost locks> section of B<fcntl>(2) for further "
285 "details."
286 msgstr ""
287
288 #. type: TP
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 #, no-wrap
292 msgid "B<EISDIR>"
293 msgstr ""
294
295 #. type: Plain text
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 msgid "I<fd> refers to a directory."
299 msgstr ""
300
301 #. type: Plain text
302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
304 msgid "Other errors may occur, depending on the object connected to I<fd>."
305 msgstr ""
306
307 #. type: SH
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 #, no-wrap
311 msgid "STANDARDS"
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 "POSIX.1-2008."
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 "HISTORY"
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 "SVr4, 4.3BSD, POSIX.1-2001."
331 msgstr ""
332
333 #. type: SH
334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
336 #, no-wrap
337 msgid "NOTES"
338 msgstr ""
339
340 #. commit e28cc71572da38a5a12c1cfe4d7032017adccf69
341 #. type: Plain text
342 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
343 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
344 msgid ""
345 "On Linux, B<read>() (and similar system calls) will transfer at most "
346 "0x7ffff000 (2,147,479,552) bytes, returning the number of bytes actually "
347 "transferred. (This is true on both 32-bit and 64-bit systems.)"
348 msgstr ""
349
350 #. type: Plain text
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 msgid ""
354 "On NFS filesystems, reading small amounts of data will update the timestamp "
355 "only the first time, subsequent calls may not do so. This is caused by "
356 "client side attribute caching, because most if not all NFS clients leave "
357 "I<st_atime> (last file access time) updates to the server, and client side "
358 "reads satisfied from the client's cache will not cause I<st_atime> updates "
359 "on the server as there are no server-side reads. UNIX semantics can be "
360 "obtained by disabling client-side attribute caching, but in most situations "
361 "this will substantially increase server load and decrease performance."
362 msgstr ""
363
364 #. type: SH
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 #, no-wrap
368 msgid "BUGS"
369 msgstr ""
370
371 #. type: Plain text
372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
374 msgid ""
375 "According to POSIX.1-2008/SUSv4 Section XSI 2.9.7 (\"Thread Interactions "
376 "with Regular File Operations\"):"
377 msgstr ""
378
379 #. type: Plain text
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 msgid ""
383 "All of the following functions shall be atomic with respect to each other in "
384 "the effects specified in POSIX.1-2008 when they operate on regular files or "
385 "symbolic links: ..."
386 msgstr ""
387
388 #
389 #. http://thread.gmane.org/gmane.linux.kernel/1649458
390 #. From: Michael Kerrisk (man-pages <mtk.manpages <at> gmail.com>
391 #. Subject: Update of file offset on write() etc. is non-atomic with I/O
392 #. Date: 2014-02-17 15:41:37 GMT
393 #. Newsgroups: gmane.linux.kernel, gmane.linux.file-systems
394 #. commit 9c225f2655e36a470c4f58dbbc99244c5fc7f2d4
395 #. Author: Linus Torvalds <[email protected]>
396 #. Date: Mon Mar 3 09:36:58 2014 -0800
397 #. vfs: atomic f_pos accesses as per POSIX
398 #. type: Plain text
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 msgid ""
402 "Among the APIs subsequently listed are B<read>() and B<readv>(2). And "
403 "among the effects that should be atomic across threads (and processes) are "
404 "updates of the file offset. However, before Linux 3.14, this was not the "
405 "case: if two processes that share an open file description (see B<open>(2)) "
406 "perform a B<read>() (or B<readv>(2)) at the same time, then the I/O "
407 "operations were not atomic with respect to updating the file offset, with "
408 "the result that the reads in the two processes might (incorrectly) overlap "
409 "in the blocks of data that they obtained. This problem was fixed in Linux "
410 "3.14."
411 msgstr ""
412
413 #. type: SH
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 #, no-wrap
417 msgid "SEE ALSO"
418 msgstr ""
419
420 #. type: Plain text
421 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
422 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
423 msgid ""
424 "B<close>(2), B<fcntl>(2), B<ioctl>(2), B<lseek>(2), B<open>(2), B<pread>(2), "
425 "B<readdir>(2), B<readlink>(2), B<readv>(2), B<select>(2), B<write>(2), "
426 "B<fread>(3)"
427 msgstr ""
428
429 #. type: TH
430 #: debian-trixie
431 #, no-wrap
432 msgid "2024-05-02"
433 msgstr ""
434
435 #. type: TH
436 #: debian-trixie
437 #, no-wrap
438 msgid "Linux man-pages 6.9.1"
439 msgstr ""
440
441 #. type: Plain text
442 #: debian-trixie
443 msgid "Standard C library (I<libc>, I<-lc>)"
444 msgstr ""
445
446 #. type: Plain text
447 #: debian-trixie fedora-44 fedora-rawhide
448 #, no-wrap
449 msgid "B<ssize_t read(int >I<fd>B<, void >I<buf>B<[.>I<count>B<], size_t >I<count>B<);>\n"
450 msgstr ""
451
452 #. type: TH
453 #: fedora-44 fedora-rawhide
454 #, no-wrap
455 msgid "2024-07-23"
456 msgstr ""
457
458 #. type: TH
459 #: fedora-44 fedora-rawhide
460 #, no-wrap
461 msgid "Linux man-pages 6.13"
462 msgstr ""
463
464 #. type: TH
465 #: mageia-cauldron
466 #, no-wrap
467 msgid "Linux man-pages 6.17"
468 msgstr ""
469
470 #. type: TH
471 #: opensuse-leap-16-1 opensuse-tumbleweed
472 #, no-wrap
473 msgid "Linux man-pages (unreleased)"
474 msgstr ""