gamiddleton@watmath.UUCP (12/01/87)
I found a couple of problems with (v1.2.1) stdio.h.
In the definition of the _iobuf structure we have this:
extern struct _iobuf {
#if vax || u3b || u3b2 || u3b5 || mc68k || hp9000s200
int _cnt;
char *_ptr;
#else
char *_ptr;
int _cnt;
#endif
It won't work on a Sun, since the Sun C library uses the same definition
as is used on vaxes. Also, there is this:
# ifdef BSD
int _bufsiz;
short _flag;
# else
which will not work because the bsd cpp doesn't define 'BSD' (one has to
include <sys/param.h> to get it defined). Surely this has already been
noticed; I'm posting this because I haven't seen it mentioned here yet.
-Guy Middleton, University of Waterloo Institute for Computer Research
gamiddleton@math.waterloo.edu, watmath!gamiddleton