link cfunc
October 27, 2009; Gregg M. Townsend
Contributor: Cheyenne Wills
Requires: UNIX, dynamic loading
This file is in the public domain.
fpoll(f, msec) waits until data is available for input from file f, and then returns. It also returns when end-of-file is reached. If msec is specified, and no data is available after waiting that many milliseconds, then fpoll fails. If msec is omitted, fpoll waits indefinitely.