* conversion.c (test_float_to_integer): Make double precision tests
[official-gcc.git] / libio / ChangeLog
blob6d39e982d4d17821521e3a0b6485b32adce6d95f
1 Tue Nov 18 09:53:58 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)
3         * stdstrbufs.cc (DEF_STDFILE): Use STD_VTABLE.
5 Tue Nov 11 01:40:17 1997  Oleg Krivosheev <kriol@fnal.gov>
7         * iomanip.h: Fix guiding decls.
9 Wed Oct 29 23:01:47 1997  Jason Merrill  <jason@yorick.cygnus.com>
11         * gen-params: Override NULL.
13 Wed Oct 22 19:19:32 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)
15         * libio.h (_IO_LOCK_T): Handle glibc 2 when _IO_MTSAFE_IO is
16         not defined.
18         * iovsscanf.c (vsscanf): Make it weak alias of _IO_vsscanf if
19         __linux__ is defined instead of __ELF__
21         * config/linuxlibc1.mt (USER_INCLUDES): Add libio.h.
23 1997-10-15  Ulrich Drepper  <drepper@cygnus.com>
25         * configure.in: Create compatibility code in bits/libc-lock.h file.
27 Thu Oct  9 07:08:41 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)
29         * libio.h (_IO_LOCK_T): Handle glibc 2 when _IO_MTSAFE_IO is
30         not defined.
32         * filedoalloc.c (_IO_file_doallocate): Don't call
33         _IO_cleanup_registration_needed if __linux__ is defined.
35         * iofclose.c (fclose): Make it weak alias of _IO_fclose if
36         __ELF__ is defined.
38         * iovsprintf.c (vsprintf): Make it weak alias of _IO_vsprintf
39         if __ELF__ is defined.
41         * iovsscanf.c (vsscanf): Make it weak alias of _IO_vsscanf if
42         __ELF__ is defined.
44         * config/linuxlibc1.mt (MT_CFLAGS): Defined as -D_G_HAVE_MMAP.
45         (IO_OBJECTS): Add filedoalloc.o fileops.o genops.o iofclose.o
46         iovsprintf.o iovsscanf.o strops.o.
48 Fri Oct  3 10:13:13 1997  Jason Merrill  <jason@yorick.cygnus.com>
50         * iostream.cc, libio.h: Convert other uses of #ifdef
51         _G_HAVE_PRINTF_FP to #if.
53 1997-10-02  Brendan Kehoe  <brendan@lisa.cygnus.com>
55         * iostream.cc (operator<<): Use `#if _G_HAVE_PRINTF_FP', not ifdef.
57 Thu Oct  2 10:36:49 1997  Jason Merrill  <jason@yorick.cygnus.com>
59         * gen-params: Fix __printf_fp test.
60         * config/linuxlibc1.mt (gxx_includedir): Don't define.
62 Thu Oct  2 10:36:26 1997  Ulrich Drepper  <drepper@rtl.cygnus.com>
64         * config/linuxlibc1.mt (_G_CONFIG_H): Don't define.
65         * gen-params: Add test for __printf_fp.
67 Sun Sep 28 12:09:04 1997  Mark Mitchell  <mmitchell@usa.net>
69         * iomanip.h: Use new friend <> syntax.
71 Sun Sep 28 12:04:21 1997  Jason Merrill  <jason@yorick.cygnus.com>
73         * libio.h: Don't use _IO_LOCK_T if it's not defined.
75 Fri Sep 26 20:56:41 1997  Ulrich Drepper  <drepper@rtl.cygnus.com>
77         Based on a patch by H.J. Lu  (hjl@gnu.ai.mit.edu).
79         * Makefile.in (STDIO_OBJECTS): New. Defined as stdfiles.o.
80         (LIBIO_OBJECTS): Add $(STDIO_OBJECTS).
81         (PICFLAG): New, empty.  moved to here from config.shared.
83         * config.shared (DISTCLEAN): Add target-mkfrag.
84         (PICFLAG): Removed.
86         * configure.in (*-linux-gnulibc1): Remove warning.
87         (*-linux-gnu): Use linux.mt mtsafe.mt.
88         (alpha-*-linux*): Use mh-elfalphapic.
90         * gen-params (_G_ullong): Also check unsigned long long int.
91         (_G_llong): Also check long long int.
93         * libio.h (_IO_lock_t): Add support for the Linux libc 5.
94         (_IO_peekc): Defined as _IO_peekc_unlocked if _IO_MTSAFE_IO
95         is not defined.
97         * iostream.cc (__cvt_double): Fix a typo in declaration.
98         (info): Use expr != 0 to initialize the bit fields. Don't
99         initialize "extra" for the Linux libc 5.
101         * streambuf.h (_G_NEED_STDARG_H): Changed from _IO_NEED_STDARG_H.
103         * config/linux.mt (STDIO_OBJECTS): New, empty.
104         (MT_CFLAGS): Removed.
106         * config/linuxlibc1.mt: Rewrite.  it's identical to linux.mt but
107         IO_OBJECTS mentions files not in early libc5 versions.
109         * config/mtsafe.mt: New.
111         * dbz/Makefile.in (check): Support make -j.
113         * tests/tFile.cc (tempfile): Fix a typo.
115 Fri Sep 19 11:52:25 1997  Jim Wilson  <wilson@cygnus.com>
117         * Makefile.in (LIBIO_OBJECTS): Depend on _G_CONFIG_H.
119 1997-09-17 04:08  Ulrich Drepper  <drepper@cygnus.com>
121         * iostream.cc: Add forward declaration for __cvt_double.
122         * libio.h: Define _IO_USE_DTOA is _G_HAVE_PRINTF_FP is not defined.
123         * strops.c (_IO_str_count): Correct last change.
125 1997-09-17 02:50  Ulrich Drepper  <drepper@cygnus.com>
127         * libioP.h: Define __set_errno if not already defined.
128         * fileops.c: Don't try to define __set_errno, it's already defined.
130 1997-09-15 02:37  Ulrich Drepper  <drepper@cygnus.com>
132         * config/linux.mt: Rewrite for use with glibc 2.
133         * config/linuxlibc1.mt: Old content of linux.mt, fir libc4 and
134         libc5.
136         * config.shared (COMPILE.c): Allow new flags in MT_CFLAGS be
137         passed.
138         (COMPILE.cc): Likewise.
140         * configure.in (*-linux*): Remove goal.  We now have...
141         (*-linux-gnulibc1): For libc4 and libc5.  Emit warning.
142         (*-linux-gnu)): For glibc 2.
143         Create links to find headers for multi-threading if necessary.
145         * fileops.c: Make thread-safe by using _IO_cleanup_region_start
146         etc to handle cancelation.  Acquire locks in functions which are
147         called directly.
148         (_IO_file_read, _IO_file_write): Remove dead code.
150         * include/empty.h: Define stub macros for locking.
152         * iolibio.h: Add prototypes for obstack printing functions.
154         * ioseekoff.c (_IO_seekoff): Lock stream before working.
155         * ioseekpos.c (_IO_seekpos): Likewise.
157         * iostream.cc: Add support for long double I/O.
158         Use __printf_fp from glibc is available.
159         Use _IO_cleanup_region_start to handle cancelation correctly.
160         * iostream.h (class ostream): Change opfx and osfx to lock/unlock
161         stream
162         (class istream): Likewise for ipfx, ipfx0, ipfx1, and isfx.
163         Declare new function lock and unlock for ostream and istream.
164         * osform.cc: Use _IO_cleanup_region_start to handle cancelation
165         correctly.
167         * libio.h: Update from glibc version.  Pretty printing.
168         * libioP.h: Likewise.
170         * outfloat.c: Only compile if _IO_USE_DTOA is defined.
172         * stdio/feof.c: Make thread safe.
173         * stdio/ferror.c: Likewise.
174         * stdio/getc.c : Likewise.
175         * stdio/putc.c : Likewise.
176         * stdio/stdio.h: Declare function of thread-safe API.
178         * stdio/obprintf.c: New file.
179         * stdio/vasprintf.c: New file.
181         * stdio-lock.h: Removed.
183         * stdstrbufs.c: Add definitions for thread-safe streams.
185         * streambuf.cc: Initialize lock.
187         * strops.c (_IO_str_count): Undo last change.
189         * tests/tFile.cc: Support parallel builds by avoiding fixed
190         name for test file.
192 Thu Sep 11 18:43:56 1997  Jason Merrill  <jason@yorick.cygnus.com>
194         * Makefile.in (iostream.list): Remove STDIO_WRAP_OBJECTS.
196 Mon Sep  8 01:30:27 1997  Weiwen Liu    <liu@hepunix.physics.yale.edu>
198         * libio.h: Fix typo.
200 Sun Sep  7 23:00:18 1997  Jim Wilson  (wilson@cygnus.com)
202         * linux.mt (LIBIOSTREAM_DEP): Change stdio.list to stmp-stdio.
204 Fri Sep  5 09:58:43 1997  Brendan Kehoe  <brendan@lisa.cygnus.com>
206         * Makefile.in (iostream.list): Instead of adding stdio.list, add
207         STDIO_WRAP_OBJECTS.
208         (iostream.list): Lose dependency on stmp-stdio, not necessary for
209         our stuff.  The stdio stuff is present here just for uniformity
210         with glibc.
212 Thu Sep  4 17:26:22 1997  Brendan Kehoe  <brendan@lisa.cygnus.com>
214         * parsestream.cc (general_parsebuf): Cast return of malloc to char*.
216 1997-09-04 16:11  Ulrich Drepper  <drepper@cygnus.com>
218         Change compared to version initially intended to in:
219         * strops.c (_IO_str_count): Still use _IO_write_ptr, not
220         _IO_write_end, for now.
222         * iofeof.c, ioferror.c, iofflush_u.c, iogetc.c, ioputc.c, peekc.c,
223         stdio-lock.h: New files.
225         * include: New dir.
226         * include/empty.h: New header.
228         * filedoalloc.c: Update and reformat copyright.
229         Don't use DEFUN.
230         Use __set_errno throughout the code to support multi-threaded
231         programs.
232         Correct layout to follow the Coding Standard.
233         Add casts to prevent warnings.
234         * fileops.c: Likewise.
235         * genops.c: Likewise.
236         * iofclose.c: Likewise.
237         * iofdopen.c: Likewise.
238         * iofflush.c: Likewise.
239         * iofgetpos.c: Likewise.
240         * iofgets.c: Likewise.
241         * iofopen.c: Likewise.
242         * iofprintf.c: Likewise.
243         * iofputs.c: Likewise.
244         * iofread.c: Likewise.
245         * iofsetpos.c: Likewise.
246         * ioftell.c: Likewise.
247         * iofwrite.c: Likewise.
248         * iogetdelim.c: Likewise.
249         * iogetline.c: Likewise.
250         * iogets.c: Likewise.
251         * iopadn.c: Likewise.
252         * iopopen.c: Likewise.
253         * ioputs.c: Likewise.
254         * ioseekoff.c: Likewise.
255         * iosetbuffer.c: Likewise.
256         * iosetvbuf.c: Likewise.
257         * iosprintf.c: Likewise.
258         * ioungetc.c: Likewise.
259         * iovsprintf.c: Likewise.
260         * iovsscanf.c: Likewise.
261         * libio.h: Likewise.
262         * libioP.h: Likewise.
263         * stdfiles.c: Likewise.
264         * strfile.h: Likewise.
265         * strops.c: Likewise.
267         * Makefile.in (IO_OBJECTS): Add peekc.o, iogetc.o, ioputc.o,
268         iofeof.o, and ioferror.o.
269         (iostream.list): Depend upon stmp-stdio.  Add the entries
270         from stdio.list to iostream.list.
271         (stmp-stdio): New name for what was the stdio/stdio.list rule.
272         All it now does is cd down into stdio and build stdio.list.
274         * configure.in (ALL): Add libiostream.a.
276         * libio.h [_IO_MTSFE_IO]: Include header declaring locking code.
277         Otherwise define opaque _IO_lock_t.
278         Define _IO_cookie_file.
279         Rename _IO_getc to _IO_getc_unlocked, _IO_peekc to _IO_peekc_unlocked,
280         _IO_putc to _IO_putc_unlocked, _IO_feof to _IO_feof_unclocked, and
281         _IO_ferror to _IO_ferror_unlocked.
282         Add prototypes for _IO_getc, _IO_putc, _IO_feof, _IO_ferror,
283         and _IO_peekc_locked.
284         Add declarations for _IO_flockfile, _IO_funlockfile, and
285         _IO_ftrylockfile.  If !_IO_MTSAFE_IO define _IO_flockfile,
286         _IO_funlockfile, _IO_ftrylockfile, _IO_cleanup_region_start, and
287         _IO_cleanup_region_end as empty macros.
289         * libioP.h: Change type of finish function to take an additional int
290         argument and change declaration of finish functions.
291         Add prototypes for _IO_seekoff and _IO_seekpos.
292         If _G_HAVE_MMAP is defined use stream buffers allocated with mmap.
293         Redefine FREE_BUF and ALLOC_BUF macros to help in both situations.
294         (FILEBUF_LITERAL): If we compile for a thread-safe library also
295         initialize lock member.
297         * filedoalloc.c: Take care for systems already defining _POSIX_SOURCE.
298         Keep name space clean on systems which require this.
299         (_IO_file_doallocate): Adopt ALLOC_BUF call for changed semantic.
301         * fileops.c: Keep name space clean on systems which require this.
302         (_IO_file_attach): Don't fail if seek failed because it's used on a
303         pipe.
304         (_IO_file_underflow): Update buffer pointers before calling `read'
305         since the `read' might not return anymore.
306         (_IO_file_overflow): If stream allows no writes set error flag.
307         (_IO_seekoff): Make sure that after flushing the file pointer in
308         the underlying file is exact.
309         (_IO_file_read): Don't restart `read' syscall if it return EINTR.
310         This violates POSIX.
311         (_IO_file_write): Likewise for `write'.
312         (_IO_cleanup): Install as exit handler in glibc.
314         * genops.c (_IO_setb): Correctly use FREE_BUF.
315         (_IO_default_doallocate): Correctly use ALLOC_BUF.
316         (_IO_init): Initialize lock in stream structure.
317         (_IO_default_finish): Destroy lock.
318         (_IO_get_column): Don't compile since it's not needed.
319         (_IO_nobackup_default): Likewise.
321         * iopopen.c: Take care for systems already defining _POSIX_SOURCE.
322         Correct _IO_fork and _IO_dup2 prototypes.
324         * iofclose.c: Acquire lock before starting the work.
325         * iofflush.c: Likewise.
326         * iofgetpos.c: Likewise.
327         * iofgets.c: Likewise.
328         * iofputs.c: Likewise.
329         * iofread.c: Likewise.
330         * iofsetpos.c: Likewise.
331         * ioftell.c: Likewise.
332         * iofwrite.c: Likewise.
333         * iogetdelim.c: Likewise.
334         * iogets.c: Likewise.
335         * ioputs.c: Likewise.
336         * iosetbuffer.c: Likewise.
337         * iosetvbuf.c: Likewise.
338         * ioungetc.c: Likewise.
340         * iofdopen.c: Create and initialize lock for new stream.
341         * iofopen.c: Likewise.
342         * iopopen.c (_IO_popen): Likewise.
343         * iovsprintf.c: Likewise.
344         * iovsscanf.c: Likewise.
346         * genops.c: Make weak aliases for various functions.
347         * iofclose.c: Likewise.
348         * iofdopen.c: Likewise.
349         * iofflush.c: Likewise.
350         * iofgetpos.c: Likewise.
351         * iofgets.c: Likewise.
352         * iofopen.c: Likewise.
353         * iofputs.c: Likewise.
354         * iofread.c: Likewise.
355         * iofsetpos.c: Likewise.
356         * ioftell.c: Likewise.
357         * iofwrite.c: Likewise.
358         * iogetdelim.c: Likewise.
359         * iogets.c: Likewise.
360         * ioputs.c: Likewise.
361         * iosetbuffer.c: Likewise.
362         * iosetvbuf.c: Likewise.
363         * ioungetc.c: Likewise.
364         * iovsprintf.c: Likewise.
365         * iovsscanf.c: Likewise.
367         * iofflush_u.c: New file.  fflush_unlocked implementation.
369         * iostream.h [_G_HAVE_LONG_DOUBLE_IO]: Declare real long double
370         output operator.
372         * peekc.c: New file.  Implement _IO_peekc_locked function.
374         * stdfiles.c: If we compile for a thread-safe library also define
375         lock variable.
377 Tue Aug 26 12:24:01 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)
379         * testsuite/Makefile.in (check): Don't depend on site.exp.
380         (just-check): Depend on site.exp.
382 Wed Aug 20 02:01:34 1997  Jason Merrill  <jason@yorick.cygnus.com>
384         * iostream.h: Add copy assignment ops for _IO_?stream_withassign.
386 Tue Jul 22 10:31:41 1997  Brendan Kehoe  <brendan@lisa.cygnus.com>
388         * config.shared (CHECK_SUBDIRS): Use install-sh, not install.sh.
390 Wed Jun 25 12:20:55 1997  Brendan Kehoe  <brendan@lisa.cygnus.com>
392         * config.shared (DOING_GPERF): Look for this, defining TOLIBGXX
393         and LIBS for it.
395 Wed Jun 18 11:03:34 1997  Bob Manson  <manson@charmed.cygnus.com>
397         * config.shared (FLAGS_TO_PASS): Don't include RUNTEST.
399 Tue Jun 17 22:23:48 1997  Bob Manson  <manson@charmed.cygnus.com>
401         * config.shared (FLAGS_TO_PASS): Pass RUNTEST and RUNTESTFLAGS.
403 Fri May 16 21:08:53 1997  Bob Manson  <manson@charmed.cygnus.com>
405         * iovfprintf.c: Declare __cvt_double before use.
407         * floatconv.c (d2b): Use _G_int32_t instead of int for the
408         e and bits parameters.
409         (_IO_strtod): Use _G_int32_t.
411         * gen-params: Look for NO_USE_DTOA and USE_INT32_FLAGS.
413         * strops.c (_IO_str_init_static): use _G_int32_t appropriately.
415         * libio.h: If _G_NO_USE_DTOA is set, then don't define
416         _IO_USE_DTOA.
418         * config/mn10200.mt: Don't use dtoa, it only works
419         for "real" doubles.
421 Thu May 15 17:44:12 1997  Bob Manson  <manson@charmed.cygnus.com>
423         * configure.in: Set CHECK_SUBDIRS to testsuite if we're doing
424         a cross compile.
426         * config.shared(check): Only run make check in the directories
427         specified by CHECK_SUBDIRS. Set CHECK_SUBDIRS to SUBDIRS
428         if it has no previous value.
430 Thu May  1 17:35:19 1997  Jason Merrill  <jason@yorick.cygnus.com>
432         * Makefile.in (test, tpipe): Add $(CFLAGS).
434 Wed Apr 30 12:16:29 1997  Jason Merrill  <jason@yorick.cygnus.com>
436         * configure.in: Don't turn on multilib here.
438 Sat Apr 26 13:38:21 1997  Bob Manson  <manson@charmed.cygnus.com>
440         * configure.in (configdirs): Add testsuite directory.
442         * testsuite/ChangeLog:
443         * testsuite/Makefile.in: 
444         * testsuite/libio.tests/tiomanip.exp:
445         * testsuite/libio.tests/tstdiomisc.exp:
446         * testsuite/libio.tests/tiomisc.exp:
447         * testsuite/libio.tests/tFile.exp:
448         * testsuite/libio.tests/tfformat.exp:
449         * testsuite/libio.tests/tiformat.exp:
450         * testsuite/libio.tests/hounddog.exp:
451         * testsuite/libio.tests/putbackdog.exp:
452         * testsuite/configure.in:
453         * testsuite/lib/libio.exp:
454         * testsuite/config/default.exp: 
455         New files for DejaGnu-style testsuite.
456         
457 Fri Apr  4 03:16:44 1997  Ulrich Drepper  <drepepr@cygnus.com>
459         * configure.in: Enable multilibing by default. 
460         Update multilib template to read config-ml.in.
462         * floatconv.c: Enable use in cross targets which use the
463         newlib ieeefp.h header.
465 Thu Jan 23 09:16:16 1997  Brendan Kehoe  <brendan@lisa.cygnus.com>
467         * libioP.h (_IO_file_attach): Delete redundant decl.
469 Tue Jan 21 22:13:45 1997  Brendan Kehoe  <brendan@lisa.cygnus.com>
471         * streambuf.h (class ios): Take out STREAMSIZE member, since we
472         only need (and should only have) the global one.
474 Tue Jan  7 14:02:40 1997  Jason Merrill  <jason@yorick.cygnus.com>
476         * iostream.h (long long fns): Use __extension__.
478         * gen-params: Use _G_llong and _G_ullong instead of long long for
479         deduced types.
481 Fri Dec  6 13:13:30 1996  Jason Merrill  <jason@yorick.cygnus.com>
483         * dbz/dbz.c: Use off_t.
485 Sat Nov 23 15:44:37 1996  Jason Merrill  <jason@yorick.cygnus.com>
487         * Makefile.in (install): Don't install _G_config.h with other headers.
489 Mon Nov 18 17:12:41 1996  Jason Merrill  <jason@yorick.cygnus.com>
491         * config.shared (SUBDIRS): Use -O instead of -O3 for debugging.
493 Sun Nov  3 12:43:34 1996  Jason Merrill  <jason@yorick.cygnus.com>
495         * iostream.cc (write_int): Treat string literals as const.
497 Thu Sep 26 10:09:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
499         * depend: Regenerate.
501 Wed Sep 25 22:54:45 1996  Jason Merrill  <jason@yorick.cygnus.com>
503         * config.shared (depend.new): Deal with headers that don't end in .h.
505 Thu Aug 29 17:05:53 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
507         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
509 Mon Aug  5 01:26:32 1996  Jason Merrill  <jason@yorick.cygnus.com>
511         * config{ure.in,.shared} (DISTCLEAN): Add multilib.out.
513 Fri Aug  2 17:39:35 1996  Jason Merrill  <jason@yorick.cygnus.com>
515         * libio.h (NULL): Use __null.
516         * libioP.h (NULL): Ditto.
517         * streambuf.h (NULL): Ditto.
518         * ioextend.cc (get_array_element): Use NULL instead of (void*)0.
520 Fri Jul  5 18:26:41 1996  Jim Wilson  <wilson@cygnus.com>
522         * strfile.h (struct _IO_streambuf): New struct type.
523         (struct _IO_strfile): Use it.
525 Tue Jun 18 18:24:21 1996  Jason Merrill  <jason@yorick.cygnus.com>
527         * fstream.h (fstreambase): Make __my_fb mutable.
528         From Joe Buck.
530 Tue Jun 18 11:03:53 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
532         * dbz/fake.c (main): Set return type to int.
533         * dbz/dbzmain.c (main): Likewise.
534         * dbz/byteflip.c (main): Likewise.
536 Mon Jun 17 14:05:36 1996  Jason Merrill  <jason@yorick.cygnus.com>
538         * gen-params: Check if clog conflicts with system libraries.
539         * stdstreams.cc: If it does, use __IO_clog.
540         * iostream.h: Likewise.
542 Tue Jun 11 13:39:31 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
544         * stdiostream.h (istdiostream (FILE*)): Put istream base
545         initializer before init for __f.
546         (ostdiostream (FILE*)): Likewise for ostream base init.
548 Tue May 14 11:47:21 1996  Per Bothner  <bothner@andros.cygnus.com>
550         * strfile.h (_IO_str_fields):  Removed _len field.
551         (_IO_STR_DYNAMIC, _IO_STR_FROZEN):  new macros.
552         * strstream.h (strstreambuf::is_static):  Removed.
553         (strstreambuf::frozen):  Use _IO_STR_DYNAMIC instead of is_static.
554         * strstream.h, strstream.cc:  Remove support for !_IO_NEW_STREAMS.
555         * strstream.cc (strstreambuf::init_dynamic):  Don't set _s._len.
556         * strops.c (_IO_str_init_static):  Better handling of the
557         negative (== unbounded) size case.
558         (_IO_str_overflow, _IO_str_underflow, _IO_str_count):  Re-write
559         to not use _s._len, and otherwise cleanup/fix.
560         * strstream.h, strstream.cc (strstreambase::strstreambase()):  Call
561         ios::init here.
562         (other constructors):  Simplify - init already called.
563         
564 Tue May 14 10:55:21 1996  Per Bothner  <bothner@deneb.cygnus.com>
566         Change so that strstreambuf default constructor does no allocation.
567         * strstream.h (strstreambuf::init_dynamic):  Default initial size = 0.
568         * strstream.cc (strstreambuf::init_dynamic):  Don't allocate a
569         buffer (yet) if initial_size is 0.
570         * strops.c (_IO_str_overflow):  Add 100 to size of re-allocated
571         buffer, to handle case when initial size is 0.
573         * iostdio.h (remove, rename, tmpfile, tempnam):  Comment out.
574         
575 Mon May 13 23:19:39 1996  Per Bothner  <bothner@deneb.cygnus.com>
577         * fileops.c (_IO_file_close_it):  Just call _IO_do_flush rather
578         than _IO_file_sync, to avoid useless lseek.
579         
580 Tue May 14 10:48:48 1996  Jason Merrill  <jason@yorick.cygnus.com>
582         * floatconv.c (_IO_strtod): Force rv into the stack.
584         * config.shared (gxx_includedir): Now $(includedir)/g++.
586 Sat Apr 27 02:37:49 1996  Jason Merrill  <jason@yorick.cygnus.com>
588         * libioP.h (JUMP*): Implement for thunks.
589         (_IO_jump_t): Add second dummy field for thunks.
591 Thu Apr 25 13:20:00 1996  Jason Merrill  <jason@yorick.cygnus.com>
593         * config.shared (CXX): Use gcc, not g++.
595 Wed Apr 24 10:29:50 1996  Doug Evans  <dje@blues.cygnus.com>
597         * config.shared (depend.new): Delete $(srcdir)/ from foo.{c,cc}
598         for SunOS VPATH.
599         * depend: Regenerated.
601 Fri Apr 19 17:24:51 1996  Jason Merrill  <jason@yorick.cygnus.com>
603         * Version 2.8.0b3.
605 Wed Apr 10 17:16:01 1996  Jason Merrill  <jason@yorick.cygnus.com>
607         * configure.in (ALL): Don't build iostream.a.
609 Mon Apr  8 14:44:11 1996  Per Bothner  <bothner@kalessin.cygnus.com>
611         * iosetvbuf.c (_IO_setvbuf):  Clear _IO_UNBUFFERED unless _IONBF.
613 Mon Apr  8 15:08:23 1996  Ian Lance Taylor  <ian@cygnus.com>
615         * configure.in: Permit --enable-shared to specify a list of
616         directories.
618 Fri Apr  5 17:48:56 1996  Per Bothner  <bothner@kalessin.cygnus.com>
620         * config.shared (MOSTLYCLEAN):  Also remove ${EXTRA_MOSTLYCLEAN}.
622 Fri Mar 22 23:25:00 1996 Ulrich Drepper  <drepepr@gnu.ai.mit.edu>
624         * genops.c (_IO_sputbackc, _IO_sungetc): Clear EOF flag if putsh
625         back was successful.
627 Wed Mar 27 11:54:08 1996  Jason Merrill  <jason@yorick.cygnus.com>
629         * Version 2.8.0b2.
631 Fri Mar 22 15:39:36 1996  Per Bothner  <bothner@kalessin.cygnus.com>
633         * fileops.c (_IO_do_write):  Revert previous fix.  (It fails to
634         handle the case that fp->_IO_read_end != fp->_IO_write_base.)
635         (_IO_file_overflow):  Instead, if _IO_read_ptr is at the end of
636         the buffer, reset all the read pointers to _IO_buf_base.
638 Tue Mar 12 12:03:17 1996  Per Bothner  <bothner@kalessin.cygnus.com>
640         * fileops.c (_IO_do_write):  Even if to_do==0, must re-set buffer
641         pointers.  Bug and solution from Luke Blanshard <luke@cs.wisc.edu>.
643 Wed Feb 28 10:00:24 1996  Jason Merrill  <jason@yorick.cygnus.com>
645         * Version 2.8.0b1.
647 Tue Feb 27 18:08:16 1996  Per Bothner  <bothner@kalessin.cygnus.com>
649         * iopopen.c (_IO_proc_open):  Use (char*)0 rather than imprecise NULL.
651         * streambuf.h (ios):  Add ios::binary;  deprecate ios::bin.
652         * filebuf.cc (filebuf::open):  Handle ios::binary.
653         
654 Fri Feb  9 12:40:19 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
656         * cleanup.c (_IO_cleanup_registration_needed) [!_G_HAVE_ATEXIT]: Init
657         to NULL.
658         * filedoalloc.c (_IO_cleanup_registration_needed): Remove decl.
660 Thu Feb  8 08:12:50 1996  Brendan Kehoe  <brendan@cygnus.com>
662         * filedoalloc.c (_IO_cleanup_registration_needed): Revert previous
663         change, since cleanup.c only defines it if _G_HAVE_ATEXIT.
665 Wed Feb  7 15:10:17 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
667         * filedoalloc.c (_IO_cleanup_registration_needed): Declare as extern.
669 Tue Dec 12 17:21:13 1995  Per Bothner  <bothner@kalessin.cygnus.com>
671         * indstream.h, instream.cc (indirectbuf::uflow):  New method.
672         * indstream.cc (indirectbuf::underflow):  Fix to use sgetc, not sbumpc.
673         Fixes bug reported by Kevin Beyer <beyer@cs.wisc.edu>.
675         * indstream.cc (indirectbuf::seekpos):  Add paranoia test.
677 Fri Dec  8 14:55:34 1995  Per Bothner  <bothner@kalessin.cygnus.com>
679         * stream.h:  Add warning to not use these functions.
680         * stream.cc (str, chr):  Re-implement here (from libg++).
682 Tue Nov 28 15:07:01 1995  Per Bothner  <bothner@kalessin.cygnus.com>
684         * config.shared:  Use test instead of [ to avoid DEC Unix lossage.
686 Thu Nov 23 14:51:43 1995  Per Bothner  <bothner@kalessin.cygnus.com>
688         * iopopen.c: Move #include <sys/types.h> ahead of #include <signal.h>
689         to deal with BSDI's literal implementation of Posix.
691 Sat Nov 25 11:21:55 1995  Doug Evans  <dje@canuck.cygnus.com>
693         * Makefile.in (install): Set rootme.
694         * config.shared (TOPDIR): Set with ${foo-...} rather than ${foo=...}.
695         (INSTALL): Handle absolute, dot, relative-not-dot values of srcdir.
696         (TEXIDIR): Likewise.
698 Tue Nov 21 14:12:05 1995  Ian Lance Taylor  <ian@cygnus.com>
700         * configure.in: Check ${with_cross_host} rather than comparing
701         ${host} and ${target}.
703 Mon Nov 20 13:55:29 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
705         * configure.in: Match *-sco3.2v[45]*.
707 Wed Nov 15 20:19:31 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
709         * config.shared (FLAGS_TO_PASS): Also pass SHLIB and SHCURSES.
711 Tue Nov 14 01:41:08 1995  Doug Evans  <dje@canuck.cygnus.com>
713         * config.shared (TO_REAL_TOPDIR): Define.
714         (MULTITOP): Deleted.
715         (MULTISRCTOP, MULTIBUILDTOP): New.
716         (TOPDIR): Change MULTITOP to MULTIBUILDTOP, and use TO_REAL_TOPDIR.
717         (INSTALL): Add with_multisrctop, TO_REAL_TOPDIR.
718         (TEXIDIR): Use TO_REAL_TOPDIR.
719         (LIBS): Delete MULTITOP.
720         (FLAGS_TO_PASS): Add NM.
721         (CXXINCLUDES): Delete MULTITOP.
722         (depend.new): Delete adding MULTITOP to ../ build tree references.
723         Add MULTISRCTOP to ../ source tree references.
724         * configure.in: Delete call to cfg-ml-com.in.  Call config-ml.in
725         instead of cfg-ml-pos.in.
727 Sun Nov 12 16:30:48 1995  Per Bothner  <bothner@kalessin.cygnus.com>
729         * Makefile.in (VERSION):  Set to 2.7.1.
730         * configure.in:  Add warning for Linux.
731         * config.shared (DISTCLEAN):  Add EXTRA_DISTCLEAN.
733         * editbuf.h (edit_mark::index_in_buffer):  Avoid unused param warning.
735         * iostream.cc (istream::operator>> (char*)):  Improve ANSI compliance.
737 Fri Nov 10 08:41:37 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
739         * config.shared (check): Add missing semicolon.
741 Thu Nov  9 17:27:22 1995  Jason Merrill  <jason@yorick.cygnus.com>
743         * configure.in (ALL): Remove $(OSPRIM_OBJECTS).
744         * config.shared (check): Set LD_LIBRARY_PATH.
745         * NEWS: Fix typo.
746         * iogetdelim.c (_IO_getdelim): Index *lineptr, rather than lineptr.
747         From alan@spri.levels.unisa.edu.au (Alan Modra).
749 Mon Nov  6 15:03:33 1995  Per Bothner  <bothner@kalessin.cygnus.com>
751         * streambuf.cc, editbuf.cc, isgetline.cc, parsestream.cc:
752         Fixes to avoid -Wall warnings.
754 Fri Nov  3 16:41:41 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
756         * gen-params [!__STDC__]: Include varargs.h instead of stdarg.h.
758 Thu Nov  2 15:04:03 1995  Per Bothner  <bothner@kalessin.cygnus.com>
760         * config.shared:  Re-write if X then Y else true fi to (not X) || Y.
762 Wed Nov  1 13:26:44 1995  Per Bothner  <bothner@kalessin.cygnus.com>
764         * iostream.h (istream::ipfx):  Add default argument value.
765         Reported by Yotam Medini <yotam_medini@tmai.com>.
767         * libioP.h (_IO_blen):  Fix typo.
768         Reported by Bryan T. Vold <btv@ldl.healthpartners.com>.
770 Fri Oct 27 19:26:20 1995  Per Bothner  <bothner@kalessin.cygnus.com>
772         * Makefile.in (_G_config.h):  Set CC to $(CC) rather than to $(CXX),
773         now that CXX defaults to g++ and CC default to gcc (when found).
774         * config.shared:  Simplify CXX and CC, since they get overridden
775         by ../configure anyway.
777 Wed Oct 25 19:45:50 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
779         * iostdio.h: Wrap including the file with #ifndef _IOSTDIO_H.
781 Wed Oct 25 11:14:25 1995  Per Bothner  <bothner@kalessin.cygnus.com>
783         * libio.h (_IO_seekoff, _IO_seekpos):  New declarations.
784         * libioP.h (_IO_seekoff, _IO_seekpos):  Remove declarations.
785         * libioP.h:  Cleanup;  remove old !_IO_UNIFIED_JUMPTABLES stuff.
786         
787         * filebuf.cc (filebuf::~filebuf):  Only call SYSYCLOSE if currently
788         open.  Bug found by Martin Gerbershagen <ger@ezis-ulm.de>.
790         * streambuf.h (streambuf::pubseekoff, streambuf::pubseekpos):
791         Added, from ANSI draft.
792         * filebuf.cc (filebuf::open), iostream.cc (variables places), SFile.cc:
793         Use pubseekoff/pubseekpos rather than sseekoff/sseekpos.
795         * Makefile.in (install):  Don't install libiostream.a.
797         * filedoalloc.c:  Also #include <unistd.h>.
799 Mon Oct  9 18:09:54 1995  Jason Molenda  <crash@phydeaux.cygnus.com>
801         * config.shared (SUFFIXES): add .c.
803 Tue Sep 26 16:08:01 1995  Per Bothner  <bothner@kalessin.cygnus.com>
805         * procbuf.cc:  Move #pragma implementation to beginning.
807 Wed Sep 20 17:53:33 1995  Per Bothner  <bothner@kalessin.cygnus.com>
809         * procbuf.h, procbuf.cc:  Add #pragma interface/implementation stuff.
811 Wed Sep 20 18:59:00 1995  John Eaton  <jwe@bevo.che.wisc.edu>
813         * procbuf.h: Protect from being included multiple times.
815 Wed Sep 20 15:47:14 1995  John Eaton <jwe@bevo.che.wisc.edu>
817         * procbuf.h (procbuf):  Add '_next' pointer field for compatibility
818         with _IO_proc_file.
820 Wed Sep 20 13:54:02 1995  Ian Lance Taylor  <ian@cygnus.com>
822         * config.shared: Add support for maintainer-clean target as a
823         synonym for realclean.
824         * dbz/Makefile.in: Likewise.
826 Mon Sep 11 12:11:19 1995  Per Bothner  <bothner@kalessin.cygnus.com>
828         * iopopen.c:  #include <sys/types.h> before <sys/wait.h>.
829         This is in accordance with Posix, and needed for ISC.
831 Fri Sep  8 00:11:55 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
833         * gen-params: Use double quotes in the eval setting $TYPE to
834         $VALUE, to preserve any single quotes in $VALUE.
836 Mon Aug 21 11:39:09 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
838         * gen-params: Test for an appropriate version of gcc before using
839         mode attributes.
841         * config.shared: Add $(PICDIR) to $ALL.
843 Mon Aug  7 17:51:40 1995  Per Bothner  <bothner@kalessin.cygnus.com>
845         * gen-params:  Generate new macro _G_HAVE_SYS_CDEFS.
846         * libio.h:  If _G_HAVE_SYS_CDEFS, get __P from <sys/cdefs.h>.
848 Fri Aug  4 23:21:17 1995  Paul Eggert  <eggert@twinsun.com>
850         * gen-params: When following typedef changes, allow typedefs
851         that do not have a space before the defined type name,
852         e.g. `typedef void *__gnuc_va_list;' as in Linux.  Also,
853         not require a space in the definiens, e.g. `typedef void*foo;'.
854         
855 Thu Aug  3 17:54:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
857         * iostream.h, iostream.cc (istream::sync):  Added missing method.
859 Thu Aug  3 17:49:34 1995  Per Bothner  <bothner@kalessin.cygnus.com>
861         * configure.in:  Remove netbsd special case.
862         * config/netbsd.mt:  Removed;  no longer used.
864 Tue Jun 20 16:07:12 1995  Paul Eggert  <eggert@twinsun.com>
866         * gen-params: Take transitive closure of `typedef' relation.
867         This is needed for BSD/OS 2.0, which has
868         fpos_t -> off_t -> quad_t -> long long.
870 Mon Jul 24 18:28:10 1995  Doug Evans  <dje@canuck.cygnus.com>
872         * config.shared (TOPDIR): Delete extra '/', $rootme may be empty.
874 Sat Jul 22 13:27:45 1995  Doug Evans  <dje@canuck.cygnus.com>
876         * config.shared (depend.new): Fix quoting in DO NOT EDIT line.
878         * Makefile.in (_G_config.h): Add multilib support.
879         (install): Likewise.
880         * config.shared: Likewise.
881         * configure.in: Likewise.
883 Wed Jun 28 17:40:25 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
885         * PlotFile.h, SFile.h, builtinbuf.h, editbuf.h, fstream.h,
886         indstream.h, iomanip.h, iostream.h, parsestream.h, pfstream.h,
887         procbuf.h, stdiostream.h, stream.h, streambuf.h, strstream.h: Wrap
888         with extern "C++".
890 Thu Jun 22 04:34:01 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
892         * gen-params: Surround attributes with __.
894 Mon Jun 19 00:33:22 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
896         * config.shared (SUBDIRS): Massage broken shells that require
897         'else true'.
899 Sat Jun 17 11:25:38 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
901         * streambuf.h: Declare inline members inline in class.
903 Thu Jun 15 20:45:13 1995  Per Bothner  <bothner@kalessin.cygnus.com>
905         * Makefile.in (VERSION):  Update to version 2.7.0.
907 Wed Jun 14 21:41:11 1995  Jason Merrill  <jason@python.cygnus.com>
909         * Makefile.in (STDIO_WRAP_OBJECTS): Remove stdfiles.o.
910         (LIBIO_OBJECTS): Add stdfiles.o.
912 Wed Jun  7 16:11:36 1995  Jason Merrill  <jason@python.cygnus.com>
914         * config.shared (all): Appease bash.
916 Wed Jun  7 11:16:38 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
918         * configure.in (MOSTLYCLEAN): Remove stamp-picdir.
920         * config.shared (MOSTLYCLEAN): Ditto.
921         (CLEAN): Don't.
923 Mon Jun  5 18:29:39 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
925         * config/mh-*pic: Removed.
927         * configure.in (MOSTLYCLEAN): Remove pic objects.
928         (frags): Use toplevel pic fragments.
930         * config.shared (CXXFLAGS): Use -O3.
931         (PICFLAG, PICDIR): New macros.
932         (all): Depend on $(PICDIR).
933         (FLAGS_TO_PASS): Pass PICFLAG.
934         (.x.o): Also build pic object.
935         (stamp-picdir): Create directory for pic objects.
936         (MOSTLYCLEAN): Remove pic objects.
937         (CLEAN): Remove stamp-picdir.
939         * Makefile.in (iostream.list): Depend on stamp-picdir.
940         (c++clean): Don't remove _G_config.h.
942 Mon Jun  5 15:03:47 1995  Per Bothner  <bothner@kalessin.cygnus.com>
944         * strstream.h, strstream.cc (strstream::strstream()):  Re-implement to
945         be like ostrstream::ostrestream(), and not leak memory.
947         * streambuf.h:  Use #if !_IO_UNIFIED_JUMPTABLES instead of #ifndef.
949         * iolibio.h (_IO_rewind):  Add missing flags when calling _IO_seekoff.
951 Thu May 25 22:30:21 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
953         * config/netbsd.mt (G_CONFIG_ARGS): Add defn for off_t.  Another
954           layer of typedefs has been added and the gen-params script can
955           not handle it.
957 Wed May 10 03:02:58 1995  Jason Merrill  <jason@python.cygnus.com>
959         * iolibio.h (_IO_rewind): Add new argument to _IO_seekoff.
961         * config/linux.mt (LIBIOSTREAM_OBJECTS): Include $(STDIO_WRAP_OBJECTS).
962         (LIBIOSTREAM_DEP): Include stdio.list.
963         (LIBIOSTREAM_USE): Include `cat stdio.list`.
965         * Makefile.in (LIBIOSTREAM_DEP): New variable.
966         (LIBIOSTREAM_USE): Ditto.
967         (libiostream.a): Use them.
968         (iostream.list): Ditto.
969         (stdio.list): New rule.
970         (stdio/stdio.list): Ditto.
972 Tue May  9 18:29:38 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
974         * libioP.h (_IO_jump_t): Change TYPE for __dummy from int to
975         _G_size_t.
977 Sat May  6 13:50:37 1995  Per Bothner  <bothner@kalessin.cygnus.com>
979         * libio.h (_IO_UNIFIED_JUMPTABLES):  #define as true.
980         (_IO_FILE):  Remove _jumps field (#if _IO_UNIFIED_JUMPTABLES).
982         * libioP.h (enum _IO_seekflags_):  Removed.
984         * libioP.h (_IO_setbuf_t):  Change return value of setpos jumptable
985         function to match C++ streambuf::setpos.  (Return NULL on failure.)
986         * fileops.c (_IO_file_setbuf), genops.c (_IO_default_setbuf),
987         filebuf.cc, iosetvbuf.c:  Update to use new setbuf conventions.
989         * streambuf.h (streambuf):  Re-order virtual functions more logically.
990         * streambuf.cc (streambuf::uflow), streambuf.h:  New virtual.
991         * libioP.h (struct _IO_jump_t):  Define using new JUMP_FIELD macro.
992         And re-order in more logical order consistent with streambuf vtable.
993         * fileops.c (_IO_file_jumps), iopopen.c (_IO_proc_jumps), iovfprintf.c
994         (_IO_helper_jumps), streambuf.cc (_IO_streambuf_jumps), strops.c
995         (_IO_str_jumps):  Update accordingly, using JUMP_INIT macro.
996         * stdfiles.c:  Set vtable to point to _IO_file_jumps.
997         * filebuf.cc, iopopen.c, iovfprintf.c (helper_vfprintf), iovsprintf.c,
998         iovsscanf.c:  Use macros and #if to set jumptables.
1000         * streambuf.c:  _IO_streambuf_jumps and the _IO_sb_* methods are not
1001         needed #if _IO_UNIFIED_JUMPTABLES.
1002         * filebuf.cc (filebuf::__new):  Also no longer needed.
1003         * fstream.cc (fstreambase::__fb_init, fstreambase::fstreambase):  Fix.
1004         * stdstrbufs.c:  Use filebuf vtable instead of builtinbuf's.
1005         * builtinbuf.h, builtinbuf.cc (builtinbuf):  Commented out #if
1006         _IO_UNIFIED_JUMPTABLES - no longer needed.
1007         * strstream.cc (SET_STR_JUMPS):  Does nothing now.
1009         * builtinbuf.cc, fileops.c, genops.c, iofgetpos.c, iofsetpos.c,
1010         ioftell.c, iopopen.c, ioseekoff.c, ioseekpos.c, iosetvbuf.c,
1011         iovfprintf.c, iovfscanf.c, strops.c:  Use DEFUN and DEFUN_VOID.
1012         * filebuf.cc, fileops.c, genops.c, iopopen.c, ioseekoff.c, ioseekpos.c,
1013         iosetvbuf.c, iovfscanf.c:  Use new JUMP_* and IO_OVERFLOW/... macros.
1015         * libioP.h (_IO_seekpos_t):  Third arg is now an int (using _IOS_INPUT
1016         and _IOS_OUTPUT), not an enum _IO_seekflags_.  Flags values are
1017         changed, and their sense inverted (to match streambuf::seekpos).
1018         * libioP.h (_IO_seekoff_t):  Similarly match streambuf::seekoff.
1019         * filebuf.cc, fileops.c (_IO_file_fopen, _IO_file_seekoff), genops.c
1020         (_IO_default_seekpos, _IO_default_seekpos), iofgetpos.c, iofsetpos.c,
1021         iolibio.h (_IO_fseek), ioftell.c, ioseekoff.c, ioseekpos.c,
1022         iostream.cc, streambuf.cc, strops.c (_IO_str_seekoff), strstream.cc:
1023         New seekpos/seekoff conventions.
1024         * iostreamP.h (convert_to_seekflags):  Removed - no longer needed.
1026         * iolibio.h (_IO_fread):  New declaration.
1028         * dbz/Makefile.in:  Re-arrange for cleaner dependencies.
1030 Fri May  5 15:55:22 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1032         * libioP.h (_IO_JUMPS. JUMP_FIELD, JUMP0, JUMP1, JUMP2, JUMP3,
1033         JUMP_INIT, _IO_FINISH, _IO_OVERFLOW, ... _IO_SYSSTAT):  New macros
1034         in preparation for new unified jumptable/vtable implementation.
1035         * cleanup.c, filedoalloc.c, iofclose.c, iofflush.c, iofiledoalloc.c,
1036         ioprims.c, iosetbuffer.c, iostrerror.c, ioungetc.c:  Use DEFUN.
1037         * filedoalloc.c, iofclose, iofflush, iosetbuffer.c:  Use new macros.
1039         * iofopen.c, iofdopen.c:  Use macros and #if for new jumptables.
1041         * gen-params:  Do not #include <sys/types.h>.
1042         Add missing quote in 'eval'.
1043         Do add #include <sys/types.h> in test for <sys/resource.h>.
1044         * config/netbsd.mt:  New file, defining _G_CONFIG_ARGS (for fpos_t).
1045         * configure.in:  Use netbsd.mt for NetBSD.
1047 Wed May  3 15:03:47 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1049         * libioP.h (DEFUN, DEFUN_VOID, AND):  New macros, from ansidecl.h.
1050         * iofdopen.c, iofgets.c, iofopen.c, iofputs.c, iofread.c, iofwrite.c,
1051         iogetdelim.c, iogetline.c, iogets.c, ioignore.c, iopadn.c, ioperror.c,
1052         ioputs.c, iovsprintf.c, iovsscanf.c, outfloat.c:  Use DEFUN.
1054 Mon May  1 16:22:30 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1056         * gen-params: #include <sys/types.h>.  Don't use __WCHAR_TYPE__ in
1057         definition of _G_wchar_t.  Use __attribute__ ((mode)) to get
1058         specific-sized ints under gcc, don't worry about int8 or int64
1059         otherwise.  Provide defaults if deduction fails.
1061 Thu Apr 27 18:27:53 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1063         * streambuf.h (ios::~ios):  Delete _arrays.
1064         (_IO_NEW_STREAMS):  Turn on.
1065         * libio.h (__adjust_column):  Remove bogus declaration.
1066         * genops.c (_IO_set_column):  Fix typo (in commented-out code).
1068 Tue Apr 25 17:14:29 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1070         * config.shared (CXXINCLUDES): Use a shell variable with a
1071         different name from the make variable.
1072         * configure.in: Update accordingly.
1074 Mon Apr 17 17:19:40 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1076         * streambuf.h (__adjust_column):  Remove redundant declaration.
1078 Sat Apr 15 11:39:25 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1080         * config.shared (do-clean-dvi):  Also remove *.cps.
1082         * gen-params:  Use ${SED} instead of sed.
1084         * libio.h:  Remove #if'd out stuff (confuses makedepend).
1086         * stdstreams.cc (STD_STR):  Standard streams start with ios::dec set.
1088 Fri Apr 14 23:46:31 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1090         * iostream.h, iostream.cc (istream::read, ostream::write):
1091         Use streamsize for the length parameter.
1093         * streambuf.h:  Removed redundant __overflow and __underflow.
1095         * fstream.h, fstream.cc: Add void fstreambase::attach(int).
1097         * iosscanf.c (_IO_sscanf):  Fix non-__STDC__ missing declaration.
1099 Mon Apr  3 15:40:55 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1101         * indstream.*: Fix prototypes of xsputn and xsgetn.
1103         * fileops.c: Avoid ??? trigraph.
1105 Mon Mar 27 16:16:38 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1107         * iomanip.h (operator<< (ostream&, const omanip<TP>&): Define
1108         separately.
1109         (operator>> (istream&, const imanip<TP>&): Ditto.
1111 Mon Mar 27 08:56:00 1995  Brendan Kehoe  (brendan@lisa.cygnus.com)
1113         * builtinbuf.cc (builtinbuf::setbuf): Cast NULL to streambuf*, to
1114         avoid warning/error about conversion from void*.
1115         * indstream.cc (indirectbuf::seekoff): Likewise.
1116         (indirectbuf::seekpos): Likewise.
1117         * filebuf.cc (filebuf::setbuf): Likewise.
1118         (filebuf::close): Cast NULL to filebuf*.
1120 Wed Mar  1 14:23:18 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1122         * configure.in (DISTCLEAN):  Add, with target-mkfrag.
1124 Fri Feb 24 01:01:08 1995  Jason Merrill  <jason@python.cygnus.com>
1126         * configure.in (frags): Don't require so many dashes in the
1127         canonical target name.
1129 Sat Feb 18 13:18:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1131         * streambuf.cc (streambuf::sync):  Always return 0, even for
1132         non-flushed output.  This is required by the ANSI/ISO draft.
1133         * genops.c (_IO_sync):  Likewise always return 0.
1135 Fri Feb 17 16:33:28 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1137         * fileops.c (_IO_file_close_it):  Call _IO_file_sync, rather
1138         than _IO_do_flush, because we want to adjust the file pointer
1139         if reading and not at end (as in SVR4, and as in fflush).
1140         Also, make sure to return error indication if sync fails.
1141         (_IO_file_sync):  Ignore seek error if it is ESPIPE.
1142         (_IO_file_seekoff):  If not readable, do dumb lseek.
1143         * iofclose.c (_IO_fclose):  If closing a non-filebuf, return -1
1144         if _IO_ERR_SEEN.
1146 Fri Feb 17 19:31:00 1995  Ian Lance Taylor  <ian@cygnus.com>
1148         * gen-params: Check for struct tms in <sys/times.h>, defining
1149         HAVE_SYS_TIMES accordingly.
1151 Wed Feb 15 21:05:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1153         * strops.c (_IO_str_count):  Use LEN macro.
1154         (_IO_str_seekoff):  Update _len field.
1156 Mon Feb  6 19:29:00 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1158         * gen-params: Default to short, long and long long for 16, 32 and
1159         64 bit types, in case detection fails.
1161 Wed Jan 25 18:07:30 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1163         * gen-params (_G_wint_t): Allow for broken promotions.
1165 Tue Jan 24 16:15:40 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1167         * stdstrbufs.cc (_IO_fake_stdiobufs):  Add an extra layer of struct,
1168         to force correct alignment on i960s.
1169         (DEF_STDIOBUF, _IO_{stdin,stdout,stderr}_buf):  Update accordingly.
1171 Thu Jan 19 18:30:53 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1173         * config.shared (CXXINCLUDES): Add libstdc++ to includes for
1174         building libg++.
1175         (LIBS): Also link with libstdc++ when building libg++ toys.
1176         Don't set EXPORT_ALL_VARIABLES; users will have to set
1177         LD_LIBRARY_PATH themselves.
1179 Fri Dec 30 16:38:13 1994  Mike Stump  <mrs@cygnus.com>
1181         * config/linux.mt: Fix build problem on linux 1.0.8.
1183 Thu Dec 22 11:49:45 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
1185         * config/netware.mt: Use gcc to pre-link iostream.nlm's objects
1186           instead of using nlmconv, so that references to functions in
1187           libgcc.a are resolved.
1189         * configure.in: Append .mt to target makefile fragment file names.
1191         * floatconv.c (tens, tinytens, bigtens): Added const qualifier.
1193 Tue Dec 20 09:59:50 1994  Mike Stump  <mrs@cygnus.com>
1195         * gen-params (VTABLE_LABEL_PREFIX): Since some systems have GNU nm
1196         as nm, and they demangle by default, we have to notice this, and
1197         try --no-cplus (linux) or --no-demangle when running nm.
1199 Wed Dec 14 18:13:58 1994  Per Bothner  <bothner@kalessin.cygnus.com>
1201         * gen-params:  To determine vt-name-mangling using dummy.C add
1202         #include and #prama interface/implementation to avoid problem with
1203         assemblers that don't emit local symbols.  Reported under HPUX 8
1204         by Thomas Arend <arend@blasius.Chemietechnik.Uni-Dortmund.DE>.
1206         * streambuf.h (ios::ios):  Move inline definition after
1207         that of ios::init (which ios::ios calls).
1209 Sun Dec  4 19:50:32 1994  Per Bothner  <bothner@kalessin.cygnus.com>
1211         * fileops.c (_IO_file_init, _IO_file_close_it, _IO_file_sync):
1212         Set _offset to _IO_pos_BAD, to support applications that follow
1213         POSIX.1 rules on mixing file handles.
1215         * fileops.c (_IO_file_overflow):  Handle case that buffer was
1216         allocated (perhaps by setvbuf) but _IO_write_base is still 0.
1218         * iostdio.h (setbuffer):  #define as _IO_setbuffer.
1219         * streambuf.h, filebuf.cc:  Removed filebuf::do_write.
1221 Tue Nov 29 23:38:57 1994  Per Bothner  (bothner@rtl.cygnus.com)
1223         * floatconv.c (setword0, setword1):  Fix typo.
1225 Tue Nov 29 15:37:29 1994  Per Bothner  <bothner@kalessin.cygnus.com>
1227         * config.shared:  Move -fno-implicit-template from CXXFLAGS
1228         to LIBCXXFLAGS.  Tests are better run without it.
1230         * floatconv.c (word0, word1):  Re-place/re-implement using unions
1231         instead of casts to avoid optimizer problems.
1233         * dbz/dbzmain.c:  Renamed dirname -> dir_name to avoid OSF
1234         header file braindamage.
1236 Sat Nov  5 19:44:00 1994  Jason Merrill  (jason@phydeaux.cygnus.com)
1238         * config.shared (LIBCFLAGS): Define.
1239         (LIBCXXFLAGS): Define.
1240         (DOING_LIBGXX): Define TOLIBGXX.  Change LIBS to use -lg++.  Add
1241         LD_LIBRARY_PATH and .EXPORT_ALL_VARIABLES:.
1242         (FLAGS_TO_PASS): Add LIBC{,XX}FLAGS.
1243         (XC{,XX}FLAGS): Set to LIBCFLAGS or CFLAGS depending on $LIBDIR.
1244         (COMPILE.c): Define, use in .c.o rule.
1245         (COMPILE.cc): Define, use in .cc.o rule.
1247 Sat Nov  5 15:12:12 1994  Per Bothner  <bothner@kalessin.cygnus.com>
1249         * Makefile.in (VERSION):  Update to 0.67.
1251         * streambuf.h (ios::dont_close):  Is now set by default.
1252         * fstream.h, fstream.cc (__fb_init):  New function.  Clears
1253         ios::dont_close.  Change fstreambase constructors to call it.
1254         * strstream.cc:  *strstream constructors must clear ios::dont_close.
1255         * iostream.cc:  Simplify - don't need to set ios::dont_close.
1256         * ioassign.cc:  Simplify - assume ios::dont_close is always set.
1258         * fstream.h, fstream.cc:  If _IO_NEW_STREAMS, put the
1259         filebuf as a member __my_fb.
1260         * strstream.{h,cc}:  Likewile use a strstreambuf member __my_sb.
1261         * streambuf.h, stdstreams.cc, ioextend.cc:
1262         Fix if _IO_NEW_STREAMS to not use ios::dont_close.
1264         * streambuf.h (class ios):  Move rdbuf later, to avoid
1265         inability of g++ to inline.
1266         * filebuf.cc (filebuf::~filebuf):  Call _IO_do_flush.
1268         * config.shared:  Emit rules to make depend.
1269         * depend:  New file.
1271 Fri Nov  4 17:19:11 1994  Per Bothner  <bothner@kalessin.cygnus.com>
1273         * README:  Fix typos.
1274         * libio.h:  Add comment.  Update Copyright notice.
1276 Fri Nov  4 21:46:30 1994  Paul Eggert  <eggert@twinsun.com>
1278         * libio.h (__P): Change argument name spelling from
1279         `paramlist' to `protos' for compatibility with BSDI 1.1.
1281 Thu Nov  3 00:45:16 1994  Jason Merrill  (jason@phydeaux.cygnus.com)
1283         * config.shared (CXXFLAGS): Add -fno-implicit-templates.
1285 Mon Oct 24 15:57:35 1994  Per Bothner  <bothner@kalessin.cygnus.com>
1287         * config.shared:  Define NOSTDIC and use it for libio too.
1289 Thu Oct 20 19:45:35 1994  Jason Merrill  (jason@phydeaux.cygnus.com)
1291         * iogetdelim.c: #include <stdlib.h>.
1293 Thu Oct 20 17:09:52 1994  Per Bothner  <bothner@kalessin.cygnus.com>
1295         * iostream.h:  Add classes _IO_istream_withassign and
1296         _IO_ostream_withassign.  Re-type cin, cout, cerr, clog.
1297         (class iostream):  Don't add extra _gcount field.
1298         * ioassign.cc:  New file.  Implement operator= for cin etc.
1299         * streambuf.h (class ios):  Change return type of operator=.
1300         * Makefile.in (IOSTREAM_OBJECTS):  Add ioassign.o.
1302         * Makefile.in:  Re-arrange, so linux.mt overrides can work.
1304         * fileops.c (_IO_file_seekoff):  Optimize seeks within buffer.
1306 Wed Oct 19 14:25:47 1994  Jason Merrill  (jason@phydeaux.cygnus.com)
1308         * gen-params (wint_t): Return to using __WCHAR_TYPE__ for
1309         compatibility with gcc versions prior to 2.6.1.
1311 Tue Oct 18 17:08:18 1994  Per Bothner  <bothner@kalessin.cygnus.com>
1313         * Makefile.in:  Define _G_CONFOG_H as _G_config.h for Linux.  Use it.
1314         (IO_OBJECTS):  Add iogetdelim.o.
1315         * config/linux.mt:  New file.
1316         * configure.in:  Select config/linux.mt if Linux.
1317         * iogetdelim.c:  Verious cleanups, many from
1318         Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>.
1319         * libioP.h: Add _IO_getdelim.  Use (void) for no-parameter functions.
1321 Thu Oct 13 16:30:56 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1323         * libio.h:  Rename USE_DTOA to _IO_USE_DTOA for namespace reasons.
1324         * iostream.cc, iovfscanf.c, iovfprintf, floatconv.c:
1325         Update USE_DTOA -> _IO_USE_DTOA.
1327         * libio.h (_IO_feof, _IO_ferror):  Move to here ...
1328         * iolibio:  ... from here
1330         * iostream.cc (istream::get, istream::ignore, istream::read):
1331         Set _gcount to 0 if ipfx0 failed.
1333         * iostream.cc (flush):  Do virtual function call, rather than
1334         going through jumptable.  (To get correct method in derived class.)
1335         Bug and fix from John Wiegley <jw@cis.ohio-state.edu>.
1337         * iofdopen.c (O_ACCMODE):  Define using O_RDWR, not O_RDWRITE.
1339         * streambuf.h (ios::rdbuf(streambuf*)):  New.
1340         * streambuf.h (ios::operator=):  Make private (i.e. dis-allow).
1342 Wed Oct 12 19:09:20 1994  Jason Merrill  (jason@phydeaux.cygnus.com)
1344         * gen-params: Define _G_NO_NRV and _G_NO_EXTERN_TEMPLATES if not
1345         compiling with g++.
1347 Thu Oct  6 16:03:43 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1349         * iostream.texi (ostrstream::str):  Note that NUL is not written
1350         automatically.
1352 Wed Oct  5 17:28:29 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1354         * iogetdelim.c (_IO_getdelim):  New function.
1356 Wed Oct  5 15:40:22 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
1358         * config/netware.mt: New file, first cut at Netware NLM support.
1359         * configure.in (*-*-netware*): Use config/netware.mt.
1361         * config.shared (NLMCONV, LD): New definition.
1363         * gen-params: check for nm in ${binutils}/nm.new.
1364         * config.shared: Likewise.
1366 Tue Oct  4 12:20:01 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1368         * iomanip.h (omanip::operator<<):  Make 2nd arg be const.
1369         Bug and fix reported by Greg McGary <gkm@magilla.cichlid.com>.
1371         * strstream.cc (strstreambuf::pcount):  Simplify, to match
1372         ANSI/ISO specification.
1374 Mon Sep 26 15:19:52 1994  Jason Merrill  (jason@deneb.cygnus.com)
1376         * gen-params: Include <wchar.h> and <wctype.h> if they exist.
1378 Thu Sep  8 14:41:41 1994  Jason Merrill  (jason@deneb.cygnus.com)
1380         * iostream.h (class istream): Declare operator>>(long double&).
1381         (class ostream): Define operator<<(long double).
1383         * iostream.cc (istream::operator>>(long double&)): Define.
1385 Wed Sep  7 14:42:29 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1387         * iostream.texi (Overflow):  Fix bugs in example.
1389 Fri Sep  2 17:45:57 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1391         * iostream.tex:  Document a little on how to write your
1392         own streambuf-derived class, with an example.
1394 Tue Aug 30 13:03:57 1994  Brendan Kehoe  (brendan@lisa.cygnus.com)
1396         * floatconv.c (s2b): Declare X and Y to be _G_int32_t.
1397         (diff, quorem): Declare BORROW, Y, and Z likewise.
1398         (ulp): Declare L likewise.
1399         (_IO_strtod): Declare L and AADJ likewise.
1400         (_IO_dtoa): Declare L and D likewise.  Cast division of D by DS to
1401         _G_int32_t.
1403 Mon Aug 29 16:01:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1405         * iosetvbuf.c (_IO_setvbuf):  If setting _IOFBF and no
1406         buffer was specified, call __doallocate.
1408         * fileops.c, floatconv.c:  Add a bunch of parentheses to
1409         shut up gcc warnings.  Patch from H.J.Lu.
1411         * stdiostream.cc (stdiobuf::sys_read):  Inline call to getc
1412         for the normal case (size==1).
1414 Sat Aug 20 12:14:52 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1416         * Makefile.in (VERSION):  Increase to 0.66.
1418 Fri Aug 19 17:28:41 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1420         * iolibio.h:  Added _IO_printf prototype.
1421         Added extern "C" { ... } wrappers #ifdef __cplusplus.
1422         Bugs reported by Neal Becker <neal@ctd.comsat.com>.
1424 Wed Aug 17 18:17:15 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1426         * fileops.c (_IO_file_seekoff):  For _IO_seek_cur, adjust for
1427         read-ahead before jumping to label dumb.
1429 Wed Aug  3 13:15:01 1994  H.J. Lu  (hjl@nynexst.com)
1431         * libioP.h (CHECK_FILE(FILE,RET)): new, which checks for
1432           FILE == NULL and _IO_MAGIC_MASK.
1433           (COERCE_FILE(FILE)): merged into CHECK_FILE(FILE,RET)
1434           with typo fixes.
1436         * iofread.c, iofwrite.c: add CHECK_FILE(fp, 0);
1437         * iofclose.c: add CHECK_FILE(fp, EOF); remove _IO_MAGIC_MASK check.
1439         * iofflush.c, iofgetpos.c, iofputs.c, iofscanf.c,
1440         iofsetpos.c, iofvbuf.c, ioungetc.c:
1441         Add CHECK_FILE(fp, EOF) and remove COERCE_FILE(fp).
1443         * iofgets.c: add CHECK_FILE(fp, NULL) and remove COERCE_FILE(fp).
1444         * iofprintf.c: add CHECK_FILE(fp, -1) and remove COERCE_FILE(fp).
1445         * ioftell.c: add CHECK_FILE(fp, -1L) and remove COERCE_FILE(fp).
1446         * iosetbuffer.c: add CHECK_FILE(fp, ) and remove COERCE_FILE(fp).
1448 Fri Aug 12 15:35:39 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1450         * iofdopen.c (_IO_fdopen):  #define O_ACCMODE if it isn't.
1451         Still set O_APPEND if "a" is given, but don't unset it
1452         if it isn't.  Added comment.
1454 Mon Aug  8 13:11:00 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1456         * gen-params (VTABLE_LABEL_PREFIX):  Changes in the implementation.
1457         For look for _*vt[$_.]7*filebuf in the nm output, because that
1458         matches what g++ produces and has produced.  Thus it should be
1459         somewhat more robust.
1461 Sun Aug  7 22:52:49 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1463         * gen-params (CC):  Remove no-longer-needed -I options
1464         passed to xgcc (now they are implied by the -B options).
1466 Wed Jul 20 16:41:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1468         * Makefile.in (tooldir):  Added definition, so we can do
1469         'make install' in this directory.
1470         Bug reported by Klamer Schutte <schutte@tpd.tno.nl>.
1472 Mon Jul 18 18:02:34 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1474         * gen-params (VTABLE_LABEL_PREFIX):  Remove filename sppearing
1475         by itself.  Add comment explaining what is going on.
1477 Tue Dec 21 13:02:48 1993  H.J. Lu  (hjl@jalod)
1479         * libio.h: define _IO_uid_t and _IO_HAVE_ST_BLKSIZE
1480           as _G_xxxxxxxx.
1482 Tue Dec 21 13:02:48 1993  H.J. Lu  (hjl@jalod)
1484         * iopopen.c:  Don't include <errno.h>. It is included in "libioP.h".
1486         * iopopen.c (_IO_proc_close) : check if fp is on the list
1487           before close it.
1489 Thu Jul 14 16:38:47 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1491         * gen-params (CONFIG_NM):  Make sed scripts to find vtable name
1492         mangling more robost for different forms of nm output.
1494 Tue Dec 21 13:02:48 1993  H.J. Lu  (hjl@jalod)
1496         * iofopen.c (_IO_fopen): don't check [redundantly] fp == NULL after
1497           IO_file_init(&fp->_file).
1499         * iomanip.h (template<class TP> class iapp):
1500           change ostream to istream.
1502 Tue Jul 12 14:09:02 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1504         * Makefile.in (VERSION):  Increase to 0.65.
1505         * libioP.h (builtinbuf_vtable):  Only define #ifdef __cplusplus.
1507         * gen-params (_G_int8_t):  Only define if defined(__STDC__),
1508         because K&R C compilers don't have signed char.
1509         (_G_int64_t, _G_uint64_t):  Only define if defined(__GNUC__)
1510         because other compilers may not have long long.
1512 Sun Mar 06 13:10:21 1994  H.J. Lu  (hjl@nynexst.com)
1514         * floatconv.c (_IO_dtoa ()): fix a small memory leak, set the
1515           "on_stack" field to be 0 if "result" is not NULL.
1517 Sat Mar 05 13:18:20 1994  H.J. Lu  (hjl@nynexst.com)
1519         * floatconv.c (_IO_dtoa ()): if the number of digits of the
1520           floating point number is more than the previous one, free the
1521           old string and allocate a new one.
1522           [Minor optimization to avoid Bcopy. -PB]
1524 Mon Jul 11 10:53:41 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1526         * fileops.c (_IO_file_underflow):  'count' should be unsigned,
1527         since it contains the return value of read.  Reported by
1528         Teemu Torma <tot@trema.fi>.
1530 Tue Dec 21 13:02:48 1993  H.J. Lu  (hjl@nynexst.com)
1532         * floatconv.c (_IO_strtod ()): make "+" and "-" as error.
1534 Sat Jul  9 15:09:21 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1536         Make sure _IO_FILE::_flags is always initialized correctly, for the
1537         C functions (fopen, fdopen, popen), and not just the C++ functions.
1538         * fileops.c (_IO_file_init):  Set _flags to CLOSED_FILEBUF_FLAGS.
1539         * fileops.c (_IO_file_fopen):  Remove bogus assignment.
1540         * filebuf.cc (filebuf constructors):  Don't pass CLOSED_FILEBUF_FLAGS
1541         to streambuf constructor - _IO_file_init does it instead.
1542         * filebuf.cc (CLOSED_FILEBUF_FLAGS):  Removed.
1543         * iopopen.c (_IO_proc_open):  Use _IO_mask_flags.
1545 Thu Jun 30 08:49:53 1994  Jason Merrill  (jason@deneb.cygnus.com)
1547         * dbz/Makefile.in (mostlyclean): Add target.
1549 Wed Jun 29 09:30:12 1994  Jason Merrill  (jason@deneb.cygnus.com)
1551         * gen-params: Woops, can't run a C program to determine target
1552         characteristics.  Sigh.
1554 Tue Jun 28 03:11:33 1994  Jason Merrill  (jason@deneb.cygnus.com)
1556         * gen-params: Add _G_{,u}int{8,16,64}_t, use a short C program to
1557         determine what all these should be rather than trying to compare
1558         the MAX numbers in the shell.
1560 Sun Jun 26 21:04:24 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1562         * stdiostream.h, stdiostream.cc (stdiobuf::xsgetn):  Removed.
1563         Too hairy.  If we want to optimize it, we should do so in
1564         filebuf::xsgetn (or rather _IO_file_xsgetn).
1566         * stdiostream.h (class stdiobuf), stdiostream.cc:  Fix parameter
1567         and return types of virtual function to matcher base types (Oops!).
1568         * streamstream.cc (stdiobuf::xsgetn, stdiobuf::xsputn):
1569         Optimize to call fread.fwrite directly if !buffered.
1570         * fileops.c:  Fix comment.
1572 Fri Jun 24 11:28:18 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1574         * stdiostream.h (istdiostream, ostdiostream):  New classes.
1576         More robust final cleanup.
1577         * cleanup.c (_IO_register_cleanup):  Register _IO_cleanup,
1578         rather than _IO_flush_all.
1579         * filedoalloc.c: Update comment.
1580         * genops.c (_IO_unbuffer_all):  New.  Makes all files unbuffered.
1581         * genops.c (_IO_cleanup), libioP.h:  New function.  Call
1582         _IO_flush_all, and then _IO_unbuffer_all.  This is in case C++
1583         destructors try to do output *after* _IO_cleanup is called.
1585         Construct standard stdiobufs statically (using type punning).
1586         * stdstrbufs.c;  Unless _STDIO_USES_IOSTREAM declare standard
1587         stdiobufs (for stdin, stdout, and stderr), using type punning
1588         (struct _IO_fake_stdiobuf).  This avoids constructor-time problems.
1589         * stdstreams.cc:  Remove the declarations of the stdiobufs.
1590         Instead use the new (fake) ones in stdstrbufs.cc.  We no longer
1591         have to call ios::sync_with_stdio at constructor time.
1593         Preliminary support for new ANSI streambuf::uflow virtual.
1594         * libioP.h (struct _IO_jump_t):  Add __uflow field.
1595         * genops.c (_IO_default_uflow), libioP.h:  New function.
1596         * fileops.c (_IO_file_jumps), iopopen.c (IO_proc_jumps),
1597         iovfprintf.c (_IO_helper_jumps), strops.c (_IO_str_jumps),
1598         streambuf.cc (_IO_streambuf_jumps):  Add _IO_default_uflow.
1599         * genops.c (__uflow):  New function.
1600         (save_for_backup):  New function.  Some code shared by
1601         __underflow and __uflow, moved out from the former.
1602         (_IO_default_uflow):  New function.
1603         * libio.h (_IO_getc):  Call __uflow, not __underflow.
1605 Wed Jun 22 20:22:49 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1607         Make sure that the vtable of a streambuf is always valid,
1608         which makes ios::rdbuf simpler and faster.
1609         * gen-params:  Add code to determine _G_VTABLE_LABEL_HAS_LENGTH,
1610         _G_VTABLE_LABEL_PREFIX, _G_VTABLE_LABEL_PREFIX_ID, and
1611         _G_USING_THUNKS, which describe how virtual function tables are named.
1612         * stdfiles.c (FILEBUF_LITERAL):  Moved to libioP.h.
1613         * libioP.h (builtinbuf_vtable):  New (complicated) declaration.
1614         * filebuf.cc (filebuf::__new), strstream.cc (SET_STR_JUMPS):
1615         Initialize vtable to builtinbuf_vtable, not NULL.
1616         * stdstrbufs.cc:  New file.  Same as stdfiles.c, except that
1617         vtable is initialized to builtinbuf_vtable, not NULL.
1618         * streambuf.h (ios::rdbuf):  Can now simplify/optimize, due to
1619         above changes.  Always, just return _strbuf.
1620         * builtinbuf.h, builtinbuf.cc (builtinbuf::vtable,
1621         builtinbuf::get_builtin_vtable):  Removed.  No longer needed.
1622         * streambuf.h, builtinbuf.cc (ios::_IO_fix_vtable):  No longer needed.
1623         Only defined #ifdef _STREAM_COMPAT, for binary compatibility.
1624         * Makefile.in:  Move stdfiles.o from IO_OBJECTS to STDIO_WRAP_OBJECTS.
1625         (IOSTREAM_OBJECT):  Add stdstrbufs.o.
1626         * Makefile.in (_G_config.h):  Pass $(CXXFLAGS) as part of $(CXX).
1628 Fri Feb 11 11:08:01 1994  SBPM Marc GINGOLD (marc@david.saclay.cea.fr)
1630         * iovfprintf.c (helper_vfprintf): add
1631           hp->_IO_file_flags = _IO_MAGIC|(_IO_IS_FILEBUF+_IO_NO_READS);
1632         [This is needed because _IO_vfprintf checks for _IO_UNBUFFERED. -PB]
1633         [Actually:  don't set _IO_IS_FILEBUF. -PB]  
1635 Wed Jun 22 13:49:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1637         * stdiostream.cc, stdiostream.h (stdiobuf::buffered):  New methods.
1639         * iofdopen.c (_IO_fdopen):  Various minor improvements.
1641         * iovfscanf.c:  Don't return EOF on control_failure.
1643 Tue Dec 21 13:02:48 1993  H.J. Lu  (hjl@nynexst.com)
1645         * iovfscanf.c:  Enforce the sequence of the conversion specifications.
1647 Fri Jun 17 20:57:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1649         * iofdopen.c:  Use fcntl to check that requested access mode is
1650         compatible with existing access mode, and to change the
1651         O_APPEND file status flag if need be.
1653 Thu Jun 16 17:33:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1655         * streambuf.h (ios::init):  Initialize all the fields.
1656         This may be overkill, but the current ANSI working paper requires it.
1657         * streambuf.h (ios::ios):  Reimplement in terms of ios::init.
1658         * iostream.cc (Non-default constructors istream::istream,
1659         ostream::ostream, iostream::iostream):  Cannot use a mem-initializer,
1660         because it is ignored if initializing a derived class.  Instead,
1661         call ios::init.
1663 Wed Jun 15 13:35:37 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1665         * stdstreams.cc (ISTREAM_DEF):  Fix typo (it's a _fake_istream, not
1666         a _fake_ostream).  Reported by Jason Shirk <jshirk@gomez.intel.com>.
1668         * stdiostream.h, stdiostream.cc (stdiobuf::~stdiobuf):  New.
1669         Call _IO_do_flush.
1670         * stdiostream.cc (stdiobuf::sync):  Call _IO_do_flush rather
1671         than filebuf::sync (to avoid bad seeks).
1673         * libioP.h (_IO_do_flush):  Add missing parentheses.
1675 Fri Jun  3 19:16:57 1994  Jason Merrill  (jason@deneb.cygnus.com)
1677         * config.shared (CXXFLAGS): Remove -fno-implicit-templates.
1679         * iomanip.h: Add explicit external instantiations.
1681 Wed Jun  1 14:14:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1683         * libio.h (struct _IO_FILE_plus):  Move definition from here ...
1684         * libioP.h (struct _IO_FILE_plus):  ... to here.  Since this
1685         file is private to the implementation, we can rename the fields
1686         from the implementor's to the user's name anme space.
1687         (This avoids a lossage on SCO, whose stdio.h has a #define _file.)
1688         * iofdopen.c, iofopen.c, stdfiles.c:  Fix field references accordingly.
1689         * iopopen.c (struct_IO_proc_file):  Rename fields from
1690         implementor's name space to user's, and update usages.
1691         * streambuf.h (streambuf::_vtable):  Re-implement to not need
1692         struct _IO_FILE_plus.
1693         * strfile.h (struct _IO_strfile_): Likewise.
1695 Wed Jun  1 13:57:48 1994  Jason Merrill  (jason@deneb.cygnus.com)
1697         * config.shared (CXXFLAGS): Use -fno-implicit-templates instead of
1698         -fexternal-templates.
1700 Tue May 31 08:49:28 1994  Mike Stump  (mrs@cygnus.com)
1702         * genops.c, iofclose.c, iofdopen.c, iofopen.c, iopopen.c: Be
1703         consistent about protecting #include <stdlib.h>.
1705         * ioputs.c: Add #include <string.h>, to avoid warning on alpha.
1707         * iofdopen.c: Add #include <stdlib.h>, so that malloc works on
1708         machines where sizeof(int) != sizeof(void *).
1710 Mon May 30 17:26:49 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1712         * pfstream.cc (ipfstream::ipfstream, opfstream::opfstream):
1713         Reverse sense of test of return value of procbuf::open.
1714         (It returns NULL on failure.)
1716         * filedoalloc.c (_IO_file_doallocate):  Remove dead code for
1717         USE_MALLOC_BUF.  Add code to return EOF if ALLOC_BUF fails.
1719 Sat May 28 13:47:47 1994  Jason Merrill  (jason@deneb.cygnus.com)
1721         * iomanip.cc: Explicitly instantiate smanip<int> and
1722         smanip<ios::fmtflags>.
1724 Wed May 25 16:04:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1726         * strfile.h:  Use __P instead of _PARAMS.
1728 Fri May 20 11:42:17 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1730         * libio.h: Rename _PARAMS macro to __P for better glibc and BSD
1731         compatibility.  (Also define _PARAMS for backwards compatibility.)
1732         * cleanup.c, iolibio.h, ioperror.c, iovfprintf.c, iovfscanf.c,
1733         libioP.h: Use __P instead of _PARAMS.
1734         * iostdio.h: Use __P instead of _ARGS.
1736         * fileops.c (_IO_file_read):  Minor stylistic tweak.  (It is
1737         preferable to test errno *after* the error return.)
1739 Fri May 13 15:25:36 1994  Jason Merrill  (jason@deneb.cygnus.com)
1741         * iostream.*: Add insertor and extractor for bool (just pretend
1742         it's an int).
1744 Fri May 13 14:12:03 1994  Mike Stump  (mrs@cygnus.com)
1746         * gen-params: Check for builtin bool support.
1748 Wed May 11 00:48:35 1994  Jason Merrill  (jason@deneb.cygnus.com)
1750         Make libg++ build with gcc -ansi -pedantic-errors
1751         * gen-params: #ifdef __STRICT_ANSI__, #define _G_NO_NRV.
1752         * pfstream.cc (ipfstream::ipfstream): Wrap use of variable-size
1753         array in #ifndef __STRICT_ANSI__.
1755 Fri May  6 12:42:21 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1757         * Makefile.in (VERSION):  Increase to 0.64.
1759         * isgetline.cc (istream::getline):  The delimiter should *not*
1760         be included in the gcount().
1762         * filedoalloc.c:  #include <stdlib.h> (If __STDC__) to get malloc.
1763         * iostream.h (ostream::put):  Remove overloaded versions, to match
1764         new working paper.  (Actually just put inside _STREAM_COMPAT, for now.)
1766 Tue May  3 14:14:57 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1768         * genops.c (_IO_default_finish):  Make robust when called
1769         multiple times on the same _IO_FILE*.  (One way this can
1770         happen is by the builtinbuf destructor being followed by the
1771         streambuf destructor.)
1773 Mon May  2 13:55:26 1994  Jason Merrill  (jason@deneb.cygnus.com)
1775         * gen-params: Actually determine wint_t rather than depending on
1776         cpp to provide it or defaulting to the underlying type for
1777         wchar_t.
1779 Sat Apr 30 14:47:30 1994  Jason Merrill  (jason@deneb.cygnus.com)
1781         * gen-params: Add _G_wint_t, allow __*_TYPE__ to override values
1782         at compile time, fix definition of _G_ARGS.
1784 Fri Apr 29 16:55:37 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1786         * libio.h: Remove #pragma interface.  (There is no implementation.)
1788 Mon Mar 28 14:22:26 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1790         * iostream.cc (ostream::operator<<(double)):  Add/fix support
1791         for printing '+' when ios::showpos is set.
1792         (Fixes bug reported by Doug Moore <dougm@cs.rice.edu>.)
1793         * iostream.cc (istream::read):  Set eofbit as well as failbit on eof.
1794         * iostream.cc (ostream::operator<<(int)):  Fix conversion
1795         to unsigned (used to lose on INT_MIN).
1796         * iostream.cc (ostream::operator<<(long)):  Use (unsigned long),
1797         rather than (unsigned) for temporary.
1799         * config.shared, Makefile.in:  Remove definitions and uses
1800         of XTRAFLAGS.  It is no longer needed, since it is
1801         now implied by the -B flag.
1803 Fri Mar 25 00:31:22 1994  Jason Merrill  (jason@deneb.cygnus.com)
1805         * builtinbuf.h: Add put /**/ around comment on trailing #endif.
1807         * Makefile.in (c++clean): Make clean in tests subdir, too.
1809 Wed Mar 23 16:42:09 1994  Doug Evans  (dje@canuck.cygnus.com)
1811         * configure.in: Remove Makefile.tem before creating it.
1812         Needed when configuring from read-only source trees.
1814 Wed Mar 16 14:06:42 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1816         * stdstreams.cc:  Fix so that stdiobuf are used for cin/cout/cerr,
1817         unless _STDIO_USES_IOSTREAM is defined.
1818         * filebuf.cc (filebuf::setbuf):  Fix confusion about return
1819         value from _IO_file_setbuf.
1821 Sun Mar 13 00:54:12 1994  Paul Eggert  (eggert@twinsun.com)
1823         * config.shared: Ensure that `all' precedes `.PHONY';
1824         BSDI 1.1 needs this.
1826 Sat Mar 12 03:58:00 1994  Paul Eggert  (eggert@twinsun.com)
1828         * config.shared: Output a definition of INSTALL that uses
1829         $${rootme}, not ${rootme}.  Most `make's don't care, but BSDI
1830         1.1 `make' does.
1832 Fri Mar  4 17:33:01 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1834         * iopopen.c:  #define _POSIX_SOURCE.
1835         * isgetline.c (istream::getline):  Various fixes.
1837 Thu Mar  3 17:58:20 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1839         * iostream.cc (write_int):  Fix test for when to add initial '0'
1840         when ios::oct and ios::showbase are set.
1841         For hex, showbase adds initial 0x (or 0X) regardless of val==0.
1842         Bugs reported by Phil Roth <proth@cs.uiuc.edu>.
1844 Mon Feb 21 13:18:20 1994  H.J. Lu  (hjl@nynexst.com)
1846         * libio.h (_IO_PENDING_OUTPUT_COUNT(_fp)): return the
1847         pending output count in _fp.
1849 Fri Feb 25 09:26:57 1994  Ian Lance Taylor  (ian@cygnus.com)
1851         * gen-params: For HAVE_SYS_WAIT, compile dummy.c, not dummy.C.
1853 Tue Feb 22 11:19:09 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1855         * streambuf.h, genops.c, libioP.h:  Rename references to
1856         _IO_FILE fields other_gbase => _IO_save_base,
1857         _aux_limit => _IO_backup_base, and _other_egptr => _IO_save_end.
1858         * libio.h:  Remove no-longer needed macros _other_gbase,
1859         _aux_limit, and _other_egptr.
1860         * genops.c (__underflow, _IO_default_finishh, _IO_unsave_markers):
1861         Check _IO_save_base for NULL before FREEing it or calling
1862         _IO_free_backup_area.
1864 Thu Feb 17 15:26:59 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1866         * gen-params:  Improve deduction of _G_uint32 and _G_int32.
1867         Should now work for 16-bit, 32-bit, or 64-bit targets.
1868         * gen-params:  Check for sys/wait.h using ${CC}, since it's
1869         now used in a C file, not a C++ file.
1870         * floatconv.c:  Typedef _G_uint32_t as unsigned32, and use
1871         unsigned32 in place of unsigned long.  (Needed for Alpha.)
1873 Tue Feb  8 13:40:15 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1875         * fileops.c (_IO_file_close_it):  Simplify by using _IO_do_flush.
1876         * fileops.c (_IO_file_finish):  Don't call _IO_file_close_it -
1877         do it inline.  Call _IO_do_flush even if _IO_DELETE_DONT_CLOSE.
1878         * fileops.c (_IO_file_attach):  Set _IO_DELETE_DONT_CLOSE.
1879         * genops.c (_IO_flush_all):  Only call overflow if there is
1880         something to write.
1881         * iofclose.c (_IO_fclose):  Check that magic number is correct,
1882         and clear it when done.  Avoids crashing some buggy applications.
1883         * iogetline.c (_IO_getline):  Don't gratuitously increment old_len.
1884         * iogets.c (_IO_gets):  Take care to get required ANSi semantics.
1886 Sun Feb  6 19:50:39 1994  Jason Merrill  (jason@deneb.cygnus.com)
1888         * iomanip.cc: Explicitly instantiate operator<< and >>.
1890 Fri Feb  4 12:28:22 1994  Jason Merrill  (jason@deneb.cygnus.com)
1892         * config.shared (CXXFLAGS): Use -fexternal-templates.
1894         * iomanip.h: Uncomment #pragma interface.
1896 Thu Jan 20 13:48:40 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1898         If no characters are read by fgets, ANSI C doesn't allow '\0' to
1899         be written to the buffer, but it is required by ANSI C++
1900         for istream::get and istream::getline.  Both use _IO_getline ...
1901         * iogetline.c (_IO_getline):  Don't write a '\0' at the end
1902         of the read data.  The input buffer length does not include
1903         space for a '\0'.
1904         * iofgets.c, iogets.c:  Change appropriately.
1905         Also check for _IO_ERR_SEEN, as required by ANSI.
1906         * isgetline.cc:  Update accordingly.
1908 Mon Jan 17 13:24:26 1994  Jason Merrill  (jason@deneb.cygnus.com)
1910         * Makefile.in (c++clean): Added target for compiler testing
1911         (i.e. make c++clean all).
1913 Mon Jan 10 11:20:42 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1915         * libio.h (_IO_putc):  Add parentheses.
1916         Patch from Rik Faith <faith@cs.unc.edu>.
1918 Tue Jan  4 01:32:28 1993  Hongjiu Lu (hjl@nynexst.com)
1920         * genops.c (_IO_default_xsputn):
1921           (_IO_default_xsgetn):
1922         * ioignore.c: change "_IO_size_t count" to
1923           "_IO_ssize_t count".
1924         * iogetline.c: change "_IO_size_t len" to
1925           "_IO_ssize_t len".
1927 Mon Dec 20 00:31:21 1993  Per Bothner  (bothner@kalessin.cygnus.com)
1929         * config.shared (CXXINCLUDES):  Fix quoting of $(NOSTDINC).
1931 Sun Dec 19 21:03:45 1993  Per Bothner  (bothner@kalessin.cygnus.com)
1933         * Makefile.in (VERSION):  Increase to 0.63.
1935 Fri Dec 17 13:02:44 1993  Per Bothner  (bothner@kalessin.cygnus.com)
1937         * iofread.c (_IO_fread):  Return 0 if either size or count is 0.
1938         * iofwrite.c (_IO_fwrite):  Return 0 if either size or count is 0.
1939         (This is consistent with fread, and most implementations, but not
1940         with a literal reading of the ANSI spec.)
1941         * iovfscanf.c (_IO_vfscanf):  If got EOF while skipping spaces,
1942         set seen_eof and break (instead of returning).
1943         * sbscan.cc (streambuf::vscan):  Set error state before returning.
1944         * streambuf.h:  Add a forward declarations for class istream
1945         to work around a g++ vtable name mangling bug.  (Patch from
1946         harry@pdsrc.hilco.com via Jeffrey A Law <law@snake.cs.utah.edu>.)
1947         * NEWS:  New file.
1949 Sat Dec 11 16:21:08 1993  Per Bothner  (bothner@kalessin.cygnus.com)
1951         * iovfprintf.c (struct helper_file, _IO_helper_overflow,
1952         helper_vfprintf, _IO_helper_jumps):  New structs and functions.
1953         (_IO_vfprintf):  Use helper_vfprintf to make printing to
1954         unbuffered files more efficient.
1955         * genops.c (_IO_default_underflow), libioP.h:  New function.
1957         * iovsscanf.c (_IO_vsscanf):  The input string's length marks
1958         its logical end-of-file.
1960 Wed Dec  8 13:20:46 1993  Per Bothner  (bothner@kalessin.cygnus.com)
1962         * indstream.cc (indirectbuf::sync()):  Don't crash if get_stream()
1963         or put_stream() are NULL;  sync() both streams even if error.
1965 Sun Dec  5 19:24:29 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
1967         * iostreamP.h (convert_to_seekflags): Use _IO_seek_set instead of
1968         0 inside the conditial expressions.
1970         * iofsetpos.c (_IO_fsetpos): Delete unused var `pos'.
1972 Sat Dec  4 15:57:26 1993  Per Bothner  (bothner@kalessin.cygnus.com)
1974         * filedoalloc.c (_IO_file_doallocate):  Change type of couldbetty
1975         to int, and type of size to _IO_size_t, instead of size_t.
1976         (Change needed for Ultrix, which incorrectly deliberately doesn't
1977         define size_t in <sys/types.h> if _POSIX_SOURCE is defined.)
1979 Thu Dec  2 22:43:03 1993  Per Bothner  (bothner@kalessin.cygnus.com)
1981         * fileops.c (_IO_file_finish):  Remove redundant call to _IO_un_link.
1982         * iofclose.c (_IO_fclose):  Don't call fp->_jumps->__close;  it's
1983         too low-level.  Instead call _IO_file_close_it.
1984         * dbz/Makefile.in (rclean, distclean):  Add some missing files.
1986 Wed Dec  1 13:19:14 1993  Per Bothner  (bothner@kalessin.cygnus.com)
1988         * config/hpux.mt (MATH_H_INLINES): No longer define.
1989         Patch from Jeffrey A Law <law@snake.cs.utah.edu>.
1991 Fri Nov 26 13:28:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
1993         * config.shared (CINCLUDES):  Define default if libg++.
1994         * iofread.c:  Use _IO_sgetn.c.
1995         * iolibio.h (_IO_clearerr):  Fix typo.
1996         * genops.c (_IO_seekmark):  Return 0 on success.
1997         * floactconv.c (Binit):  Change to static.
1998         * iofclose.c (_IO_fclose):  Check if file is _IO_stdin, _IO_stdout,
1999         or _IO_stderr;  if so don't try to free it.  Fix from hjl@nynexst.com.
2001         * genops.c (_IO_default_sync), libioP.h:  New function.
2002         * libioP.h (_IO_default_close):  Use _IO_default_sync -same interface.
2004         * Makefile.in:  Increase version to 0.62.
2005         * iopopen.c (_IO_proc_close):  Use waitpid (available in libibarty,
2006         if needed), rather than wait.  Don't block/ignore SIGINT etc,
2007         as this is counter to Posix.2.
2008         * iopopen.c:  Chain open proc_files, and have the child close
2009         the ones that are open (as required by Posix.2).
2011         * fstream.h (fstreambase::rdbuf), strstream.h (strstreambase
2012         ::rdbuf):  Call ios::rdbuf() instead of getting _strbuf directly.
2014         * sbscan.cc (streambuf::vscan):  Comment out duplicate default arg.
2015         * floatconv.c:  Recognize Alpha and i860 as little-endian.
2016         * streambuf.cc:  Return two bogus value returns from void functions.
2017         * iolibio.h, iofwrite.c:  Fix buffer type to (const void*).
2018         * libio.h:  Predefine of struct _IO_FILE to help non-g++-compilers.
2019         * libioP.h, pfstream.cc, stdfiles.c, iovfscanf.c: Cleanup syntax junk.
2020         * stdstreams.cc:  Minor simplification.
2021         * streambuf.h, builtinbuf.cc:  Add non-const ios::_IO_fix_vtable()
2022         for temporary binary compatibility.
2024         * filedoalloc.c, fileops.c:  Add _POSIX_SOURCE.
2025         * fileops.c, iofopen.c, iofputs.c, iostream.cc, strops.c,
2026         strstream.cc, genops.c:  Add some missing #includes.
2027         * iofopen.c, iofdopen.c:  Return NULL if malloc fails.
2028         * iovfscanf.c:  Fix return type in strtol prototype.
2029         * fwrite.c:  Remove bogus file.
2031 Wed Nov 17 14:09:42 1993  Per Bothner  (bothner@cygnus.com)
2033         * builtinbuf.cc (ios::_IO_fix_vtable), streambuf.h:  Make method
2034         const, to reduce problems with -Wcast-qual.
2036 Tue Nov 16 19:30:42 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
2038         * config.shared (CXXINCLUDE): use ${} instead of $() for NOSTDINC
2040 Tue Nov 16 14:15:45 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2042         * iopopen.c (_IO_proc_close):  Re-structure to avoid
2043         declarations after statements.
2044         * floatconv.c:  If not __STDC__, #define DBL_MANT_DIG.
2045         * config/isc.mt (G_CONFIG_ARGS): Remove bogus spaces.
2046         Patch from David A. Avery <daa@nic.cerf.net>.
2048 Tue Nov 16 15:58:31 1993  Mark Eichin  (eichin@cygnus.com)
2050         * Makefile.in (_G_config.h): explicitly use $(SHELL) to run
2051         gen-params, since we know it is a script (we're explicitly looking
2052         in ${srcdir} for it) and /bin/sh might not be good enough.
2054 Mon Nov 15 13:26:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2056         * builtinbuf.cc:  Don't depend on initialization of static
2057         variable builtinbuf::vtable, since that might happen after
2058         we need it (for a static constructor).  Instead, initialize
2059         it when needed by inlining the code from get_builtin_vtable
2060         into ios::_IO_fix_vtable().
2062         * floatconv.c:  Avoid using #elif, which some C compilers lack.
2063         * iogetline.c, libioP.h:  Make char parameter be int, to avoid
2064         some default promotion anomalies.
2066 Fri Nov  5 11:49:46 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2068         * config.shared (do-clean-dvi):  Remove TeX work files.
2069         * iopopen.c (extern _IO_fork):  Don't use parameter type void.
2070         * strops.c (_IO_str_init_static):  Clear the allocate_buffer
2071         function pointer, to mark the strfile as being static.
2072         Bug fix from Mike Raisbeck <mike@pudding.rtr.COM>.
2074 Thu Nov  4 10:44:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2076         * filebuf.cc (filebuf:): Use sseekoff rather than seekoff
2077         (which loses if vtable pointer is NULL).
2079         * iostream.cc (ostream::operator<<(long long n)):  Fix thinko.
2081         * Makefile.in (VERSION):  Increase to 0.60.
2082         * Makefile.in (IO_OBJECTS):  Added iopopen.o.
2083         * config.shared (DISTCLEAN):  Also remove Make.pack.
2084         * config.shared (CXXINCLUDES):  Add $(NOSTDINC).
2086         * config.shared (INSTALL):  Fix so it ues the correct install.sh
2087         whether $srcdir is absolute or relative.
2089         * floatconv.c (DBL_MAX_10_EXP): Fix default value.
2091 Wed Nov  3 10:20:49 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2093         * gen-params:  Make more robust to allow random junk (NeXT
2094         has spaces) before typedefs.
2096         * fileops.c (_IO_file_overflow):  Reduce code duplication.
2097         * Makefile.in (IO_OBJECTS):  Remove ioputs.o.
2099         * iovfscanf.c, libio.h:  Extra parameter to _IO_vfscanf,
2100         for optionally setting an error indication..
2101         * iofscanf.c, ioscanf.c, iofscanf.c, iovsscanf.c:  Fix calls to
2102         _IO_vfscanf to pass an extra NULL.
2103         * sbscan.cc (streambuf::vscan):  If passed an extra stream,
2104         set its error state (using new _IO_vfscanf parameter.
2106         * filedoalloc.c, fileops.c, genops.c, iogetline.c, ioignore.c,
2107         libio.h, libioP.h, streambuf.cc streambuf.h, strfile.h, strops.c,
2108         strstream.cc:  Replace macros (_base, _ebuf, _eback, _gptr, _egptr,
2109         _pbase, _pptr, _epptr) by field names (_IO_buf_base, _IO_buf_end,
2110         _IO_read_base, _IO_read_pre, IO_read_end, _IO_write_base,
2111         _IO_write_ptr, _IO_write_end).
2112         * libio.h:  Remove the old macros (which fixes a conflict.
2113         
2114 Mon Nov  1 15:22:12 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2116         * iostream.cc:  Use _IO_sputn instead of sputn.  _IO_sputn does
2117         not require a vtable pointer, and is also slightly faster.
2119         * builtinbuf.{h,cc} (builtinbuf::setbuf):  Fix return and
2120         parameter types.
2122 Mon Oct 25 12:56:33 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2124         Kludge to make sure _IO_FILE buffers get flushed before exit.
2125         * dbz/dbzmain.c, dbz/fake.c, dbz/byteflip.c:
2126         Invoke DBZ_FINISH macro (if defined) before (normal) exits.
2127         * dbz/Makefile.in (CFLAGS):  Define DBZ_FINISH to call _IO_flush_all.
2129 Sat Oct 23 22:10:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2131         * Makefile.in (VERSION):  Set to 0.60 for libg++ release.
2132         * fileops.c (_IO_file_attach):  Set _offset to _IO_pos_BAD.
2133         * iostream.cc (ostream::flush):  Fix thinkp.
2134         * editbuf.cc, isgetsb.cc, isscan.cc, osform.cc, parsestream.cc,
2135         pfstream.cc, sbform.cc, sbscan.cc, stdstreams.cc, stream.cc:
2136         Replace #include "ioprivate.h" by #include "libioP.h" (and
2137         sometimes stdarg.h, stdlib.h and/or string.h).
2138         * ioprivate.h:  Removed.
2141 Thu Oct 21 19:24:02 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2143         * PlotFile.h, SFile.h, editbuf.cc, editbuf.h, filebuf.cc,
2144         fstream.cc, fstream.h, indstream.cc, indstream.h, iomanip.cc,
2145         iomanip.h, ioprivate.h, iostream.cc, iostream.h, isgetline.cc,
2146         isgetsb.cc, parsestream.cc, parsestream.h, pfstream.cc,
2147         pfstream.h, procbuf.cc, procbuf.h, stdiostream.cc, stdiostream.h,
2148         stdstreams.cc, streambuf.cc, streambuf.h, strstream.cc,
2149         strstream.h:  Remove old (duplicate) copyright notices.
2151         * iostream.cc:  Fix calls to sync() to be safe in the presence
2152         of vtable-less streambufs.
2154 Wed Oct 20 15:22:04 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2156         * streambuf.h (streambuf::underflow, streambuf::overflow): 
2157         Don't make virtual functions pure.
2158         * streambuf.cc (streambuf::underflow, streambuf::overflow):
2159         Default definitions (return EOF).
2160         * fstream.h:  Add new (int fd, char* buf, int len) constructors.
2161         These are deprecated, but added for AT&T compatibility.
2162         * fstream.cc fstreambase::fstreambase(int fd, char *p, int l): New.
2164 Thu Oct 14 14:57:01 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
2166         * configure.in: use 'mv -f' instead of 'mv'
2168 Tue Oct 12 05:01:44 1993  Mike Stump  (mrs@cygnus.com)
2170         * floatconv.c: Fix typo, change __STDC to __STDC__.
2172 Mon Oct 11 17:03:12 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2174         * cleanup.c:  It should be #if _G_HAVE_ATEXIT, not #ifdef.
2176         * floatconv.c, iostrerror.c, iovfprintf.c, iovfscanf.c, libioP.h:
2177         Bunch of fixes to allow use of non-ANSI (K&R) C compilers.
2179         * Makefile.in (iostream.list):  Use CC=$(CXX) to force use of gcc.
2180         * README:  New file.
2182 Fri Oct  8 16:19:58 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2184         * Makefile.in:  Move ioungetc.o from STDIO_WRAP_OBJECTS to
2185         IO_OBJECTS (since it is needed for iovfscanf.c).
2186         * iostrerror.c:  Add declaration of strerror.
2188 Thu Oct  7 12:02:28 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2190         * cleanup.c:  New file, to cause flushing at exit.
2191         * filedoalloc.c:  Cause flushing on exit.
2192         * Makefile.in (OSPRIM_OBJECTS):  Add cleanup.o.
2193         * gen-params:  Check for atexit.
2195 Tue Oct  5 19:11:14 1993  Mike Stump  (mrs@cygnus.com)
2197         * ioperror.c (_IO_strerror): Add missing ()s in _PARAMS usage.
2199 Tue Oct  5 10:33:37 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2201         * iofprintf.c, iofscanf.c, ioprintf.c, ioscanf.c, iosprintf.c,
2202         iosscanf.c:  Remove bogus semi-colon after va_dcl.
2203         * ioperror.c:  Fix typos in declaration.
2205 Mon Oct  4 17:12:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2207         * configure.in (CLEAN):  Define (as _G_config.h *.a).
2209         * fileops.c (_IO_file_read):  Don't assume EINTR is defined.
2210         * iosetbuf.c:  Replace by generalized ...
2211         * iosetbuffer.c:  ... variant, derived from BSD.
2212         * Makefile.in (STDIO_WRAP_OBJECTS):  Change correspondingly.
2213         * iosetvbuf.c (iosetvbuf):  Minor ANSI tweak.
2214         * iostdio.h (setbuf, setlinebuf):  New #defines.
2215         * iolibio.h (_IO_setbuf, _IO_setlinebuf):  (Re-)define as macros.
2216         * Makefile.in (LIBIO_OBJECTS):  New macro.
2218 Tue Sep 28 14:15:52 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2220         * libioP.h (_IO_proc_open, _IO_proc_close): Add missing return types.
2221         * procbuf.cc:  Belated fixes.
2223 Mon Sep 27 14:04:47 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2225         * Makefile.in: List new files.  Add STDIO_WRAP_OBJECTS macro.
2226         * floatconv.c (d2b):  Use Exp_msk11 instead of Exp_msk1.
2227         * iofgetpos.c (_IO_fgetpos), iofsetpos.c (_IO_fsetpos):  Clean up.
2228         * iolibio.h:  New file.  Declarations of _IO_foo, for most foo
2229         where foo is a stdio function.  (Remove these from libio.h.)
2230         * iostream.h (istream::istreambuf, ostream::ostreambuf):  Move
2231         obsolete functions inside #ifdef _STREAM_COMPAT.
2232         * libio.h, libioP.h, streambuf.h, parsestream.h, stdiostream.h:
2233         Use _IO_fpos_t rather than _IO_pos_t.
2234         * iopopen.c:  New file type, for pipe (popen-like) streams.
2235         * procbuf.cc:  Now just a C++ wrapper for the files in iopopen.c.
2236         * streambuf.h (ios::unsetf):  Return complete old value of flags.
2237         * iogets.c (_IO_gets(), ioungetc.c (_IO_ungetc), ioperror.c
2238         (_IO_perror), iostrerror.c (_IO_strerror):  New files and 
2239         functions, for stdio implementation.
2240         * iostdio.h:  Add declarations for various recently-added functions.
2242 Sun Sep 12 14:24:55 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2244         * streambuf.h (ios::showpos):: Fix typo.
2246 Fri Aug 27 12:05:47 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2248         * iopadn.c (_IO_padn):  Change to return count of chars written.
2249         * outfloat.c, iovfprintf.c:  Change for new _IO_padn interface.
2250         * iostream.cc (ostream::operator<<):  Make sure to set badbit
2251         on a failure (many places).  Use _IO_padn more.
2252         * iostream.cc (ostream& ostream::operator<<(const void *p):  Move to
2253         * osform.cc:  ... here, to reduce linking-in-the-world syndrome.
2254         * osform.cc: Use rdbuf(), instead of _strbuf directly.
2256         * genops.c (_IO_sgetn), libio.h:  New function.
2257         * streambuf.h (streambuf.h::sgetn):  Use _IO_sgetn.
2258         * SFile.cc (SFile::operator[]):  Use sseekoff, not seekoff.
2260 Thu Aug 26 10:16:31 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
2262         * config.shared (SUBDIRS): only recurse if the directory is configured
2264 Wed Aug 25 12:56:12 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2266         * config/{hpux.mt, isc.mt, sco4.mt}:
2267         Moved from ../libg++/config (since they affect _G_config.h).
2268         * configure.in:  Set target_make_frag to one of the above files.
2270 Fri Aug 20 00:53:14 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2272         * iofopen.c (iofopen):  Fix type passed to _IO_un_link().
2273         * Makefile.in (_G_config.h):  Pass $CC (not $CXX) as CC.
2275         * configure.in (configdirs):  Add dbz and stdio.
2276         * fileops.c (_IO_file_seekoff):  Convert more old functionality.
2277         * iofdopen.c:  Use mode parameter to set _flags.
2278         * iofscanf.c, ioputs.c, ioscanf.c, iosprintf.c:  New files.
2279         * Makefile.in (IO_OBJECTS):  Added new objects.
2280         * iostdio.h:  Add feof. fscanf, puts, sprintf, vsprintf.
2281         * libio.h:  Add _IO_vprintf macro.
2282         * iofopen.c:  Invoke _IO_un_link if failure.
2283         * iovsprintf.c:  Write terminating NUL.
2285         * libioP.h:  Add COERCE_FILE macro (by default does nothing).
2286         * iofclose.c, iofflush.c, iofgets.c, iofprintf.c, iofputs.c,
2287         iofread.c, ioftell.c, iofwrite.c, iosetbuf.c, iosetvbuf.c:
2288         Invoke COERCE_FILE macro.
2289         * ioftell.c:  Use _IO_seekoff.
2291 Wed Aug 18 22:49:56 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2293         * sbform.cc (streambuf::form), sbscan.cc (streambuf::scan):
2294         Remove cast to _IO_va_list.  (Loses if array type.)
2296         * libio.h:  Handle _IO_va_list for systems that need <stdarg.h>.
2297         * floatconv.h:  Fix typo (reported by H.J.Lu).
2299 Wed Aug 18 19:34:04 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
2301         * configure.in (INSTALLDIR): handle native vs. cross case
2303         * Makefile.in (install): don't use $TARGETLIB, set INSTALLDIR to
2304         $(libdir) 
2306 Wed Aug 18 12:10:03 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2308         * Makefile.in:  Rename iostream-files to iostream.list.
2309         * configure.in:  Add iostream.list to MOSTLYCLEAN.
2311 Tue Aug 17 18:56:59 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2313         * Makefile.in:  Depend on _G_config.h where appropriate.
2314         * config.shared (CXXINCLUDES):  If doing libg++, search ../libio.
2316 Tue Aug 17 17:34:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2318         New directory.  Based on old libg++/iostream code,
2319         but extensively re-written.