stdio.h problem on 4.0 (was News 2.11.19...)
Marcus J. Ranum
mjr at decuac.DEC.COM
Thu Sep 13 07:42:33 AEST 1990
In article <21955 at grebyn.com>, karl at 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.
More information about the Comp.unix.ultrix
mailing list