Path: utzoo!dciem!nrcaer!scs!spl1!laidbak!att!mtunx!rutgers!mit-eddie!uw-beaver!tektronix!reed!percival!nerd From: nerd@percival.UUCP (Michael Galassi) Newsgroups: comp.sources.d Subject: newgetty question Message-ID: <1259@percival.UUCP> Date: 6 Jun 88 05:14:48 GMT Article-I.D.: percival.1259 Reply-To: nerd@percival.UUCP (Michael Galassi) Organization: Percy's UNIX, Portland, OR. Lines: 21 Howdy, I just finished trying to compile the newgetty program recently posted. I got _rdchk, _defread and _defopen as undefined by ld. I solved the _rdchk as follows but have no clue as to what the other two routines are supposed to do. Anyone have a clue for me to go by? As per usual, thanks in advance, -michael int rdchk(fp) FILE *fp; { int i; ioctl(fileno(fp), FIONREAD, &i); return i; } -- Michael Galassi | If my opinions happen to be the same as ...!tektronix!tessi!percival!nerd | my employer's it is ONLY a coincidence, ...!uunet!littlei!percival!nerd | of course coincidences DO happen.