[comp.sys.hp] SIGIO trapping on sockets

Daniel.Stodolsky@cs.cmu.edu (07/10/89)

In an X application, in need to trap SIGIO on sockets. On a hp 835 (OS
v. 3.10), the ioctl call for FIOASYNC succedes, but FIOSSAIOSTAT  fail,
and perror() indicates

Operation not supported on a socket.

The berkley fcntl call with F_SETOWN appears to be nonexistent.

Any suggestions?


Dan Stodolsky
danner@edrc.cmu.edu

klaas@hpindda.HP.COM (Darin Klaas) (07/13/89)

/ hpindda:comp.sys.hp / Daniel.Stodolsky@cs.cmu.edu / 11:15 am  Jul  9, 1989 /
> In an X application, in need to trap SIGIO on sockets. On a hp 835 (OS
> v. 3.10), the ioctl call for FIOASYNC succedes, but FIOSSAIOSTAT  fail,
> The berkley fcntl call with F_SETOWN appears to be nonexistent.

> Any suggestions?

I can't find my 4.3BSD documentation anywhere handy, so I can't explain
FIOSSAIOSTAT.  We don't implement F_SETOWN per se; use SIOCSPGRP to 
set the process group.  Note that the value you pass to this ioctl
is different than in BSD, i.e. the sign is reversed, which is the same
as other uses of SIOCSPGRP withing HP-UX.  This should be documented
in the socket(7) man page and the BSDIPC programmers guide.

-- darin