[comp.sys.hp] Getting SIGIO from an input stream

gordon@maxwell.waterloo.edu (Gordon R. Strachan) (01/30/90)

I am trying to port a BSD program to hp-ux that makes extensive use of the
fcntl parameter F_SETOWN.  Supposedly this will cause a SIGIO signal to be
sent everytime there is input available in the input stream.  Naturally
hp-ux does not support this option but according to termio(7) there is
a similar ioctl command I can use.  According to the man pages the command
FIOSSAIOSTAT should enable SIGIO to be sent to the process whose id is
set in the FIOSSAIOOWN command.  Fine, this seem to be what I want but
when I use the commands the compiler complains that it is an undefined
variable.  Indeed none of the Asynchronous I/O commands for ioctl are
anywhere to be found in any of the include files!!

So the question which include file is supposed to contain FIOSSAIOSTAT
and FIOSSAIOOWN?  If they are supposed to be in <sys/termio.h> could
someone send me a new version because they are not in mine.

Thank you in advance

Gordon Strachan

rer@hpfcdc.HP.COM (Rob Robason) (02/06/90)

> So the question which include file is supposed to contain FIOSSAIOSTAT
> and FIOSSAIOOWN?  If they are supposed to be in <sys/termio.h> could
> someone send me a new version because they are not in mine.

As usual, it is helpful if you indicate which system, 300 or 800, you
are running and what release, 6.5, 3.1, &c.  On this 7.0 300 these two
macros are defined in <sys/ioctl.h>.  Hope this helps.

Rob Robason

By the way, notes is not a very reliable way to get support for your
system.  My $0.02 is an unofficial response, and may only be worth only
what you paid me for it (for casual onlookers, that's 0.00).  HP offers
contractual support services which are the best in the industry.