summaryrefslogtreecommitdiff
path: root/man/timeout.3
blob: 6113f27107070ce1b0628ec9cdca1dddf9b6ec9b (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
36
.TH qlibs: timeout 3
.SH NAME
timeout \- reading from and writing to a file descriptor
.SH SYNTAX
.B #include \(dqtimeout.h\(dq

int \fBtimeoutread\fP(int \fIt\fR,int \fIfd\fR,char *\fIbuf\fR,int \fIlen\fR);
.br
int \fBtimeoutwrite\fP(int,int,char *,int);
.SH DESCRIPTION
.B timeoutread
reads from file descriptor
.I fd
.I len
bytes into
.I buf 
returning 
.I 0
on success and
.I -1
in case a timeout has occured.
.B timeoutwrite
writes to file descriptor
.I fd
.I len
bytes from
.I buf 
returning 
.I 0
on success and
.I -1
in case a timeout has occured.
.SH "SEE ALSO"
wait(3),
timeoutconn(3)
taia(3).