File: io_timeouted.3

package info (click to toggle)
libowfat 0.34-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,288 kB
  • sloc: ansic: 20,181; makefile: 16
file content (17 lines) | stat: -rw-r--r-- 603 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.TH io_timeouted 3
.SH NAME
io_timeouted \- return a file descriptor over deadline
.SH SYNTAX
.B #include <libowfat/io.h>

int64 \fBio_timeouted\fP();
.SH DESCRIPTION
io_timeouted returns the next file descriptor that is past it's deadline.
If no descriptors are past their deadlines, it returns -1.

After io_timeouted() returned -1, you should wait a second before
calling it again.  Checking for connections past their deadline involves
walking through the whole data structure, which may thrash the CPU
cache needlessly.  Treat it as an expensive operation.
.SH "SEE ALSO"
io_wait(3), io_timeout(3)