GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
TIMEOUT_FDOPEN(3) FreeBSD Library Functions Manual TIMEOUT_FDOPEN(3)

timeout_fdopen
I/O streams with timeouts

PDEL Library (libpdel, -lpdel)

#include <sys/types.h>
#include <stdio.h>
#include <pdel/io/timeout_fp.h>

FILE *
timeout_fdopen(int fd, const char *mode, int timeout);

timeout_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 ETIMEDOUT.

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.

timeout_fdopen() returns NULL to indicate an error, with errno set appropriately.

fdopen(3), libpdel(3)

The PDEL library was developed at Packet Design, LLC. http://www.packetdesign.com/

Archie Cobbs ⟨archie@freebsd.org⟩
April 22, 2002 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.