Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!munnari.oz.au!metro!cluster!necisa!boyd From: boyd@necisa.ho.necisa.oz.au (Boyd Roberts) Newsgroups: comp.unix.internals Subject: Re: How to distinguish between STREAMS and non-STREAMS Keywords: STREAMS tty character-special Message-ID: <2003@necisa.ho.necisa.oz.au> Date: 31 Jan 91 03:19:31 GMT References: Organization: NEC Information Systems Australia Pty. Ltd. Lines: 16 josef@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@necisa.ho.necisa.oz.au ``When the going gets wierd, the weird turn pro...''