How to distinguish between STREAMS and non-STREAMS

Boyd Roberts boyd at necisa.ho.necisa.oz.au
Thu Jan 31 14:19:31 AEST 1991


josef at nixpbe.nixdorf.de (josef Moellers) writes:
>
>Does anybody now of a bulletproof and FAST method to distinguish between
>a STREAMS fd and a non-STREAMS fd?
>I cannot use calls to getmsg/putmsg, as I am not allowed to change the
>state of the STREAM.
>

Why not do a putmsg() with an invalid pointer to the message? -- gag.

EFAULT tells you that it's a stream.


Boyd Roberts			boyd at necisa.ho.necisa.oz.au

``When the going gets wierd, the weird turn pro...''



More information about the Comp.unix.internals mailing list