[comp.unix.questions] Am I the only one without FIONREAD?

brian@apt.UUCP (Brian Litzinger) (06/25/89)

I'm working on some software which could really take advantage
of an ioctl that exists on almost every machine I've every
worked on except this one.

The function is FIONREAD which is ioctl(fd,FIONREAD,arg) on the
ultrix machine I have access to, and _IOR(fd,127,arg) on this
Sun system here, but I doesn't seem to exist in any form on the
386 machine sitting here.

When the FIONREAD ioctl is used on a file or stream it returns
in arg the number of bytes which are immediately available to
be read.

The 386 machines here run either Microport or Interactive 386 Unix,
and include Interlan or Lachman TCP/IP support.

Did uport & ISC simply forget the '#define FIONREAD ...' or did
they forget to implement it in their drivers. Or does System V.3.2
for the 386 have some other method for doing this.  Help!

<>  Brian Litzinger @ APT Technology Inc., San Jose, CA
<>  UUCP:  {apple,sun,pyramid}!daver!apt!brian    brian@apt.UUCP
<>  VOICE: 408 370 9077      FAX: 408 370 9291