Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!gamiddleton From: gamiddleton@watmath.UUCP Newsgroups: comp.lang.c++ Subject: stdio.h problem Message-ID: <15705@watmath.waterloo.edu> Date: Mon, 30-Nov-87 21:13:05 EST Article-I.D.: watmath.15705 Posted: Mon Nov 30 21:13:05 1987 Date-Received: Thu, 3-Dec-87 21:16:44 EST Distribution: comp Organization: MFCF Lines: 27 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 includeto 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