Path: utzoo!attcan!uunet!aplcen!decuac!mjr From: mjr@decuac.DEC.COM (Marcus J. Ranum) Newsgroups: comp.unix.ultrix Subject: Re: stdio.h problem on 4.0 (was News 2.11.19...) Message-ID: <3319@decuac.DEC.COM> Date: 12 Sep 90 21:42:33 GMT References: <421@ucunix.SAN.UC.EDU> <21955@grebyn.com> Organization: Digital Equipment Corp., Washington ULTRIX Resource Center Lines: 20 In article <21955@grebyn.com>, karl@grebyn.com (Karl A. Nyberg) writes: : > [...] 314 is : >something like "fileno(fp) = -1;" and 316 is "fileno(fp) = fno;") : : This is definitely a problem with Ultrix. 4.0. I just tried recomiling : X11R4, fix 14 and got the SAME problem with Xterm. it has to do with the : declaration of fileno in /usr/include/stdio.h. The Ultrix 4.0 version has : added a cast of (int) over the 3.0 version. This causes some real problems : on the lhs of an assignment statement. That's not a problem with the operating system, the assignment to fileno() in your code is broken. Assigning to fileno() is evil. mjr. -- Eagles may soar, free and proud, but weasles never get sucked into jet engines.