SUMMARY [Q]Solaris 2.x replacement for FIONREAD

From: rich@brake.demon.co.uk
Date: Wed Sep 25 1996 - 15:08:45 CDT


Hi managers,

It's there. At least in Solaris 2.4 and 2.5, it is defined in
/usr/include/sys/filio.h

Thanks to:-
Russ Poffenberger <poffen@San-Jose.ate.slb.com>
Henry Unger <hunger@hitech.com>
Greg Onufer <Greg.Onufer@Eng.Sun.COM>
mike@trdlnk.com (Michael Sullivan)

Original Question:-

> What is the replacement for FIONREAD under Solaris 2.x when I want to read how many characters are available on a serial port or socket?
>
> Under bsd(Solaris 1.x) I have used :-
>
> ioctl(fd, FIONREAD, &bytes);
>
> Where fd is the file descriptor(int) and bytes(int) is the number of characters ready to be read.

Richard Skelton | e-mail : Richard.Skelton@brake.demon.co.uk
                         WWW : http://www.brake.demon.co.uk/index.html
                         WWW : http://www.netlink.co.uk/users/brake/



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:10 CDT