|
NAMEtimeout_fdopen —
I/O streams with timeouts
LIBRARYPDEL Library (libpdel, -lpdel)SYNOPSIS#include <sys/types.h>
#include <stdio.h>
#include <pdel/io/timeout_fp.h>
FILE *
DESCRIPTIONtimeout_fdopen () is equivalent to
fdopen(3)
with the addition of an enforced timeout on read or write operations on the
underlying file descriptor fd.
If any read or write operation blocks for longer than
timeout seconds, an error is returned with
errno set to If timeout is zero or negative, no timeout is imposed and the behavior is identical to fdopen(3). fclose(3) should be used to close the returned stream. RETURN VALUEStimeout_fdopen () returns NULL to
indicate an error, with errno set appropriately.
SEE ALSOfdopen(3), libpdel(3)HISTORYThe PDEL library was developed at Packet Design, LLC.http://www.packetdesign.com/
AUTHORSArchie Cobbs ⟨archie@freebsd.org⟩
Visit the GSP FreeBSD Man Page Interface. |