blob: 637f07522e2f44817c63ab2c942f35711f27e04d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
.TH IREAD 3
.SH NAME
iread \- insistent read
.SH SYNOPSIS
.B read(fildes, buf, n)
.B char *buf;
.SH DESCRIPTION
.I Iread,
like
.IR read (1),
reads
.I n
bytes from the file associated with the given file descriptor
into the block of store beginning at
.I buf.
.I Iread,
however, always places exactly
.I n
bytes in
.I buf,
unless
.I read
would return 0.
.PP
.I Iread
returns the number of bytes placed in
.I buf,
which is an integer in the range
.RI 0- n.
.SH DIAGNOSTICS
.I Iread
returns \-1 for an error; see
.IR read (1).
.SH SEE ALSO
read(2)
|