Mon Nov 17 23:42:03 1997 Bruno Haible <haible@ilog.fr>
[official-gcc.git] / libio / ChangeLog
blobc7ac8bc3918f109cff15a5253743069eae583373
1 Tue Nov 11 01:40:17 1997  Oleg Krivosheev <kriol@fnal.gov>
3         * iomanip.h: Fix guiding decls.
5 Wed Oct 29 23:01:47 1997  Jason Merrill  <jason@yorick.cygnus.com>
7         * gen-params: Override NULL.
9 Wed Oct 22 19:19:32 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)
11         * libio.h (_IO_LOCK_T): Handle glibc 2 when _IO_MTSAFE_IO is
12         not defined.
14         * iovsscanf.c (vsscanf): Make it weak alias of _IO_vsscanf if
15         __linux__ is defined instead of __ELF__
17         * config/linuxlibc1.mt (USER_INCLUDES): Add libio.h.
19 1997-10-15  Ulrich Drepper  <drepper@cygnus.com>
21         * configure.in: Create compatibility code in bits/libc-lock.h file.
23 Thu Oct  9 07:08:41 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)
25         * libio.h (_IO_LOCK_T): Handle glibc 2 when _IO_MTSAFE_IO is
26         not defined.
28         * filedoalloc.c (_IO_file_doallocate): Don't call
29         _IO_cleanup_registration_needed if __linux__ is defined.
31         * iofclose.c (fclose): Make it weak alias of _IO_fclose if
32         __ELF__ is defined.
34         * iovsprintf.c (vsprintf): Make it weak alias of _IO_vsprintf
35         if __ELF__ is defined.
37         * iovsscanf.c (vsscanf): Make it weak alias of _IO_vsscanf if
38         __ELF__ is defined.
40         * config/linuxlibc1.mt (MT_CFLAGS): Defined as -D_G_HAVE_MMAP.
41         (IO_OBJECTS): Add filedoalloc.o fileops.o genops.o iofclose.o
42         iovsprintf.o iovsscanf.o strops.o.
44 Fri Oct  3 10:13:13 1997  Jason Merrill  <jason@yorick.cygnus.com>
46         * iostream.cc, libio.h: Convert other uses of #ifdef
47         _G_HAVE_PRINTF_FP to #if.
49 1997-10-02  Brendan Kehoe  <brendan@lisa.cygnus.com>
51         * iostream.cc (operator<<): Use `#if _G_HAVE_PRINTF_FP', not ifdef.
53 Thu Oct  2 10:36:49 1997  Jason Merrill  <jason@yorick.cygnus.com>
55         * gen-params: Fix __printf_fp test.
56         * config/linuxlibc1.mt (gxx_includedir): Don't define.
58 Thu Oct  2 10:36:26 1997  Ulrich Drepper  <drepper@rtl.cygnus.com>
60         * config/linuxlibc1.mt (_G_CONFIG_H): Don't define.
61         * gen-params: Add test for __printf_fp.
63 Sun Sep 28 12:09:04 1997  Mark Mitchell  <mmitchell@usa.net>
65         * iomanip.h: Use new friend <> syntax.
67 Sun Sep 28 12:04:21 1997  Jason Merrill  <jason@yorick.cygnus.com>
69         * libio.h: Don't use _IO_LOCK_T if it's not defined.
71 Fri Sep 26 20:56:41 1997  Ulrich Drepper  <drepper@rtl.cygnus.com>
73         Based on a patch by H.J. Lu  (hjl@gnu.ai.mit.edu).
75         * Makefile.in (STDIO_OBJECTS): New. Defined as stdfiles.o.
76         (LIBIO_OBJECTS): Add $(STDIO_OBJECTS).
77         (PICFLAG): New, empty.  moved to here from config.shared.
79         * config.shared (DISTCLEAN): Add target-mkfrag.
80         (PICFLAG): Removed.
82         * configure.in (*-linux-gnulibc1): Remove warning.
83         (*-linux-gnu): Use linux.mt mtsafe.mt.
84         (alpha-*-linux*): Use mh-elfalphapic.
86         * gen-params (_G_ullong): Also check unsigned long long int.
87         (_G_llong): Also check long long int.
89         * libio.h (_IO_lock_t): Add support for the Linux libc 5.
90         (_IO_peekc): Defined as _IO_peekc_unlocked if _IO_MTSAFE_IO
91         is not defined.
93         * iostream.cc (__cvt_double): Fix a typo in declaration.
94         (info): Use expr != 0 to initialize the bit fields. Don't
95         initialize "extra" for the Linux libc 5.
97         * streambuf.h (_G_NEED_STDARG_H): Changed from _IO_NEED_STDARG_H.
99         * config/linux.mt (STDIO_OBJECTS): New, empty.
100         (MT_CFLAGS): Removed.
102         * config/linuxlibc1.mt: Rewrite.  it's identical to linux.mt but
103         IO_OBJECTS mentions files not in early libc5 versions.
105         * config/mtsafe.mt: New.
107         * dbz/Makefile.in (check): Support make -j.
109         * tests/tFile.cc (tempfile): Fix a typo.
111 Fri Sep 19 11:52:25 1997  Jim Wilson  <wilson@cygnus.com>
113         * Makefile.in (LIBIO_OBJECTS): Depend on _G_CONFIG_H.
115 1997-09-17 04:08  Ulrich Drepper  <drepper@cygnus.com>
117         * iostream.cc: Add forward declaration for __cvt_double.
118         * libio.h: Define _IO_USE_DTOA is _G_HAVE_PRINTF_FP is not defined.
119         * strops.c (_IO_str_count): Correct last change.
121 1997-09-17 02:50  Ulrich Drepper  <drepper@cygnus.com>
123         * libioP.h: Define __set_errno if not already defined.
124         * fileops.c: Don't try to define __set_errno, it's already defined.
126 1997-09-15 02:37  Ulrich Drepper  <drepper@cygnus.com>
128         * config/linux.mt: Rewrite for use with glibc 2.
129         * config/linuxlibc1.mt: Old content of linux.mt, fir libc4 and
130         libc5.
132         * config.shared (COMPILE.c): Allow new flags in MT_CFLAGS be
133         passed.
134         (COMPILE.cc): Likewise.
136         * configure.in (*-linux*): Remove goal.  We now have...
137         (*-linux-gnulibc1): For libc4 and libc5.  Emit warning.
138         (*-linux-gnu)): For glibc 2.
139         Create links to find headers for multi-threading if necessary.
141         * fileops.c: Make thread-safe by using _IO_cleanup_region_start
142         etc to handle cancelation.  Acquire locks in functions which are
143         called directly.
144         (_IO_file_read, _IO_file_write): Remove dead code.
146         * include/empty.h: Define stub macros for locking.
148         * iolibio.h: Add prototypes for obstack printing functions.
150         * ioseekoff.c (_IO_seekoff): Lock stream before working.
151         * ioseekpos.c (_IO_seekpos): Likewise.
153         * iostream.cc: Add support for long double I/O.
154         Use __printf_fp from glibc is available.
155         Use _IO_cleanup_region_start to handle cancelation correctly.
156         * iostream.h (class ostream): Change opfx and osfx to lock/unlock
157         stream
158         (class istream): Likewise for ipfx, ipfx0, ipfx1, and isfx.
159         Declare new function lock and unlock for ostream and istream.
160         * osform.cc: Use _IO_cleanup_region_start to handle cancelation
161         correctly.
163         * libio.h: Update from glibc version.  Pretty printing.
164         * libioP.h: Likewise.
166         * outfloat.c: Only compile if _IO_USE_DTOA is defined.
168         * stdio/feof.c: Make thread safe.
169         * stdio/ferror.c: Likewise.
170         * stdio/getc.c : Likewise.
171         * stdio/putc.c : Likewise.
172         * stdio/stdio.h: Declare function of thread-safe API.
174         * stdio/obprintf.c: New file.
175         * stdio/vasprintf.c: New file.
177         * stdio-lock.h: Removed.
179         * stdstrbufs.c: Add definitions for thread-safe streams.
181         * streambuf.cc: Initialize lock.
183         * strops.c (_IO_str_count): Undo last change.
185         * tests/tFile.cc: Support parallel builds by avoiding fixed
186         name for test file.
188 Thu Sep 11 18:43:56 1997  Jason Merrill  <jason@yorick.cygnus.com>
190         * Makefile.in (iostream.list): Remove STDIO_WRAP_OBJECTS.
192 Mon Sep  8 01:30:27 1997  Weiwen Liu    <liu@hepunix.physics.yale.edu>
194         * libio.h: Fix typo.
196 Sun Sep  7 23:00:18 1997  Jim Wilson  (wilson@cygnus.com)
198         * linux.mt (LIBIOSTREAM_DEP): Change stdio.list to stmp-stdio.
200 Fri Sep  5 09:58:43 1997  Brendan Kehoe  <brendan@lisa.cygnus.com>
202         * Makefile.in (iostream.list): Instead of adding stdio.list, add
203         STDIO_WRAP_OBJECTS.
204         (iostream.list): Lose dependency on stmp-stdio, not necessary for
205         our stuff.  The stdio stuff is present here just for uniformity
206         with glibc.
208 Thu Sep  4 17:26:22 1997  Brendan Kehoe  <brendan@lisa.cygnus.com>
210         * parsestream.cc (general_parsebuf): Cast return of malloc to char*.
212 1997-09-04 16:11  Ulrich Drepper  <drepper@cygnus.com>
214         Change compared to version initially intended to in:
215         * strops.c (_IO_str_count): Still use _IO_write_ptr, not
216         _IO_write_end, for now.
218         * iofeof.c, ioferror.c, iofflush_u.c, iogetc.c, ioputc.c, peekc.c,
219         stdio-lock.h: New files.
221         * include: New dir.
222         * include/empty.h: New header.
224         * filedoalloc.c: Update and reformat copyright.
225         Don't use DEFUN.
226         Use __set_errno throughout the code to support multi-threaded
227         programs.
228         Correct layout to follow the Coding Standard.
229         Add casts to prevent warnings.
230         * fileops.c: Likewise.
231         * genops.c: Likewise.
232         * iofclose.c: Likewise.
233         * iofdopen.c: Likewise.
234         * iofflush.c: Likewise.
235         * iofgetpos.c: Likewise.
236         * iofgets.c: Likewise.
237         * iofopen.c: Likewise.
238         * iofprintf.c: Likewise.
239         * iofputs.c: Likewise.
240         * iofread.c: Likewise.
241         * iofsetpos.c: Likewise.
242         * ioftell.c: Likewise.
243         * iofwrite.c: Likewise.
244         * iogetdelim.c: Likewise.
245         * iogetline.c: Likewise.
246         * iogets.c: Likewise.
247         * iopadn.c: Likewise.
248         * iopopen.c: Likewise.
249         * ioputs.c: Likewise.
250         * ioseekoff.c: Likewise.
251         * iosetbuffer.c: Likewise.
252         * iosetvbuf.c: Likewise.
253         * iosprintf.c: Likewise.
254         * ioungetc.c: Likewise.
255         * iovsprintf.c: Likewise.
256         * iovsscanf.c: Likewise.
257         * libio.h: Likewise.
258         * libioP.h: Likewise.
259         * stdfiles.c: Likewise.
260         * strfile.h: Likewise.
261         * strops.c: Likewise.
263         * Makefile.in (IO_OBJECTS): Add peekc.o, iogetc.o, ioputc.o,
264         iofeof.o, and ioferror.o.
265         (iostream.list): Depend upon stmp-stdio.  Add the entries
266         from stdio.list to iostream.list.
267         (stmp-stdio): New name for what was the stdio/stdio.list rule.
268         All it now does is cd down into stdio and build stdio.list.
270         * configure.in (ALL): Add libiostream.a.
272         * libio.h [_IO_MTSFE_IO]: Include header declaring locking code.
273         Otherwise define opaque _IO_lock_t.
274         Define _IO_cookie_file.
275         Rename _IO_getc to _IO_getc_unlocked, _IO_peekc to _IO_peekc_unlocked,
276         _IO_putc to _IO_putc_unlocked, _IO_feof to _IO_feof_unclocked, and
277         _IO_ferror to _IO_ferror_unlocked.
278         Add prototypes for _IO_getc, _IO_putc, _IO_feof, _IO_ferror,
279         and _IO_peekc_locked.
280         Add declarations for _IO_flockfile, _IO_funlockfile, and
281         _IO_ftrylockfile.  If !_IO_MTSAFE_IO define _IO_flockfile,
282         _IO_funlockfile, _IO_ftrylockfile, _IO_cleanup_region_start, and
283         _IO_cleanup_region_end as empty macros.
285         * libioP.h: Change type of finish function to take an additional int
286         argument and change declaration of finish functions.
287         Add prototypes for _IO_seekoff and _IO_seekpos.
288         If _G_HAVE_MMAP is defined use stream buffers allocated with mmap.
289         Redefine FREE_BUF and ALLOC_BUF macros to help in both situations.
290         (FILEBUF_LITERAL): If we compile for a thread-safe library also
291         initialize lock member.
293         * filedoalloc.c: Take care for systems already defining _POSIX_SOURCE.
294         Keep name space clean on systems which require this.
295         (_IO_file_doallocate): Adopt ALLOC_BUF call for changed semantic.
297         * fileops.c: Keep name space clean on systems which require this.
298         (_IO_file_attach): Don't fail if seek failed because it's used on a
299         pipe.
300         (_IO_file_underflow): Update buffer pointers before calling `read'
301         since the `read' might not return anymore.
302         (_IO_file_overflow): If stream allows no writes set error flag.
303         (_IO_seekoff): Make sure that after flushing the file pointer in
304         the underlying file is exact.
305         (_IO_file_read): Don't restart `read' syscall if it return EINTR.
306         This violates POSIX.
307         (_IO_file_write): Likewise for `write'.
308         (_IO_cleanup): Install as exit handler in glibc.
310         * genops.c (_IO_setb): Correctly use FREE_BUF.
311         (_IO_default_doallocate): Correctly use ALLOC_BUF.
312         (_IO_init): Initialize lock in stream structure.
313         (_IO_default_finish): Destroy lock.
314         (_IO_get_column): Don't compile since it's not needed.
315         (_IO_nobackup_default): Likewise.
317         * iopopen.c: Take care for systems already defining _POSIX_SOURCE.
318         Correct _IO_fork and _IO_dup2 prototypes.
320         * iofclose.c: Acquire lock before starting the work.
321         * iofflush.c: Likewise.
322         * iofgetpos.c: Likewise.
323         * iofgets.c: Likewise.
324         * iofputs.c: Likewise.
325         * iofread.c: Likewise.
326         * iofsetpos.c: Likewise.
327         * ioftell.c: Likewise.
328         * iofwrite.c: Likewise.
329         * iogetdelim.c: Likewise.
330         * iogets.c: Likewise.
331         * ioputs.c: Likewise.
332         * iosetbuffer.c: Likewise.
333         * iosetvbuf.c: Likewise.
334         * ioungetc.c: Likewise.
336         * iofdopen.c: Create and initialize lock for new stream.
337         * iofopen.c: Likewise.
338         * iopopen.c (_IO_popen): Likewise.
339         * iovsprintf.c: Likewise.
340         * iovsscanf.c: Likewise.
342         * genops.c: Make weak aliases for various functions.
343         * iofclose.c: Likewise.
344         * iofdopen.c: Likewise.
345         * iofflush.c: Likewise.
346         * iofgetpos.c: Likewise.
347         * iofgets.c: Likewise.
348         * iofopen.c: Likewise.
349         * iofputs.c: Likewise.
350         * iofread.c: Likewise.
351         * iofsetpos.c: Likewise.
352         * ioftell.c: Likewise.
353         * iofwrite.c: Likewise.
354         * iogetdelim.c: Likewise.
355         * iogets.c: Likewise.
356         * ioputs.c: Likewise.
357         * iosetbuffer.c: Likewise.
358         * iosetvbuf.c: Likewise.
359         * ioungetc.c: Likewise.
360         * iovsprintf.c: Likewise.
361         * iovsscanf.c: Likewise.
363         * iofflush_u.c: New file.  fflush_unlocked implementation.
365         * iostream.h [_G_HAVE_LONG_DOUBLE_IO]: Declare real long double
366         output operator.
368         * peekc.c: New file.  Implement _IO_peekc_locked function.
370         * stdfiles.c: If we compile for a thread-safe library also define
371         lock variable.
373 Tue Aug 26 12:24:01 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)
375         * testsuite/Makefile.in (check): Don't depend on site.exp.
376         (just-check): Depend on site.exp.
378 Wed Aug 20 02:01:34 1997  Jason Merrill  <jason@yorick.cygnus.com>
380         * iostream.h: Add copy assignment ops for _IO_?stream_withassign.
382 Tue Jul 22 10:31:41 1997  Brendan Kehoe  <brendan@lisa.cygnus.com>
384         * config.shared (CHECK_SUBDIRS): Use install-sh, not install.sh.
386 Wed Jun 25 12:20:55 1997  Brendan Kehoe  <brendan@lisa.cygnus.com>
388         * config.shared (DOING_GPERF): Look for this, defining TOLIBGXX
389         and LIBS for it.
391 Wed Jun 18 11:03:34 1997  Bob Manson  <manson@charmed.cygnus.com>
393         * config.shared (FLAGS_TO_PASS): Don't include RUNTEST.
395 Tue Jun 17 22:23:48 1997  Bob Manson  <manson@charmed.cygnus.com>
397         * config.shared (FLAGS_TO_PASS): Pass RUNTEST and RUNTESTFLAGS.
399 Fri May 16 21:08:53 1997  Bob Manson  <manson@charmed.cygnus.com>
401         * iovfprintf.c: Declare __cvt_double before use.
403         * floatconv.c (d2b): Use _G_int32_t instead of int for the
404         e and bits parameters.
405         (_IO_strtod): Use _G_int32_t.
407         * gen-params: Look for NO_USE_DTOA and USE_INT32_FLAGS.
409         * strops.c (_IO_str_init_static): use _G_int32_t appropriately.
411         * libio.h: If _G_NO_USE_DTOA is set, then don't define
412         _IO_USE_DTOA.
414         * config/mn10200.mt: Don't use dtoa, it only works
415         for "real" doubles.
417 Thu May 15 17:44:12 1997  Bob Manson  <manson@charmed.cygnus.com>
419         * configure.in: Set CHECK_SUBDIRS to testsuite if we're doing
420         a cross compile.
422         * config.shared(check): Only run make check in the directories
423         specified by CHECK_SUBDIRS. Set CHECK_SUBDIRS to SUBDIRS
424         if it has no previous value.
426 Thu May  1 17:35:19 1997  Jason Merrill  <jason@yorick.cygnus.com>
428         * Makefile.in (test, tpipe): Add $(CFLAGS).
430 Wed Apr 30 12:16:29 1997  Jason Merrill  <jason@yorick.cygnus.com>
432         * configure.in: Don't turn on multilib here.
434 Sat Apr 26 13:38:21 1997  Bob Manson  <manson@charmed.cygnus.com>
436         * configure.in (configdirs): Add testsuite directory.
438         * testsuite/ChangeLog:
439         * testsuite/Makefile.in: 
440         * testsuite/libio.tests/tiomanip.exp:
441         * testsuite/libio.tests/tstdiomisc.exp:
442         * testsuite/libio.tests/tiomisc.exp:
443         * testsuite/libio.tests/tFile.exp:
444         * testsuite/libio.tests/tfformat.exp:
445         * testsuite/libio.tests/tiformat.exp:
446         * testsuite/libio.tests/hounddog.exp:
447         * testsuite/libio.tests/putbackdog.exp:
448         * testsuite/configure.in:
449         * testsuite/lib/libio.exp:
450         * testsuite/config/default.exp: 
451         New files for DejaGnu-style testsuite.
452         
453 Fri Apr  4 03:16:44 1997  Ulrich Drepper  <drepepr@cygnus.com>
455         * configure.in: Enable multilibing by default. 
456         Update multilib template to read config-ml.in.
458         * floatconv.c: Enable use in cross targets which use the
459         newlib ieeefp.h header.
461 Thu Jan 23 09:16:16 1997  Brendan Kehoe  <brendan@lisa.cygnus.com>
463         * libioP.h (_IO_file_attach): Delete redundant decl.
465 Tue Jan 21 22:13:45 1997  Brendan Kehoe  <brendan@lisa.cygnus.com>
467         * streambuf.h (class ios): Take out STREAMSIZE member, since we
468         only need (and should only have) the global one.
470 Tue Jan  7 14:02:40 1997  Jason Merrill  <jason@yorick.cygnus.com>
472         * iostream.h (long long fns): Use __extension__.
474         * gen-params: Use _G_llong and _G_ullong instead of long long for
475         deduced types.
477 Fri Dec  6 13:13:30 1996  Jason Merrill  <jason@yorick.cygnus.com>
479         * dbz/dbz.c: Use off_t.
481 Sat Nov 23 15:44:37 1996  Jason Merrill  <jason@yorick.cygnus.com>
483         * Makefile.in (install): Don't install _G_config.h with other headers.
485 Mon Nov 18 17:12:41 1996  Jason Merrill  <jason@yorick.cygnus.com>
487         * config.shared (SUBDIRS): Use -O instead of -O3 for debugging.
489 Sun Nov  3 12:43:34 1996  Jason Merrill  <jason@yorick.cygnus.com>
491         * iostream.cc (write_int): Treat string literals as const.
493 Thu Sep 26 10:09:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
495         * depend: Regenerate.
497 Wed Sep 25 22:54:45 1996  Jason Merrill  <jason@yorick.cygnus.com>
499         * config.shared (depend.new): Deal with headers that don't end in .h.
501 Thu Aug 29 17:05:53 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
503         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
505 Mon Aug  5 01:26:32 1996  Jason Merrill  <jason@yorick.cygnus.com>
507         * config{ure.in,.shared} (DISTCLEAN): Add multilib.out.
509 Fri Aug  2 17:39:35 1996  Jason Merrill  <jason@yorick.cygnus.com>
511         * libio.h (NULL): Use __null.
512         * libioP.h (NULL): Ditto.
513         * streambuf.h (NULL): Ditto.
514         * ioextend.cc (get_array_element): Use NULL instead of (void*)0.
516 Fri Jul  5 18:26:41 1996  Jim Wilson  <wilson@cygnus.com>
518         * strfile.h (struct _IO_streambuf): New struct type.
519         (struct _IO_strfile): Use it.
521 Tue Jun 18 18:24:21 1996  Jason Merrill  <jason@yorick.cygnus.com>
523         * fstream.h (fstreambase): Make __my_fb mutable.
524         From Joe Buck.
526 Tue Jun 18 11:03:53 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
528         * dbz/fake.c (main): Set return type to int.
529         * dbz/dbzmain.c (main): Likewise.
530         * dbz/byteflip.c (main): Likewise.
532 Mon Jun 17 14:05:36 1996  Jason Merrill  <jason@yorick.cygnus.com>
534         * gen-params: Check if clog conflicts with system libraries.
535         * stdstreams.cc: If it does, use __IO_clog.
536         * iostream.h: Likewise.
538 Tue Jun 11 13:39:31 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
540         * stdiostream.h (istdiostream (FILE*)): Put istream base
541         initializer before init for __f.
542         (ostdiostream (FILE*)): Likewise for ostream base init.
544 Tue May 14 11:47:21 1996  Per Bothner  <bothner@andros.cygnus.com>
546         * strfile.h (_IO_str_fields):  Removed _len field.
547         (_IO_STR_DYNAMIC, _IO_STR_FROZEN):  new macros.
548         * strstream.h (strstreambuf::is_static):  Removed.
549         (strstreambuf::frozen):  Use _IO_STR_DYNAMIC instead of is_static.
550         * strstream.h, strstream.cc:  Remove support for !_IO_NEW_STREAMS.
551         * strstream.cc (strstreambuf::init_dynamic):  Don't set _s._len.
552         * strops.c (_IO_str_init_static):  Better handling of the
553         negative (== unbounded) size case.
554         (_IO_str_overflow, _IO_str_underflow, _IO_str_count):  Re-write
555         to not use _s._len, and otherwise cleanup/fix.
556         * strstream.h, strstream.cc (strstreambase::strstreambase()):  Call
557         ios::init here.
558         (other constructors):  Simplify - init already called.
559         
560 Tue May 14 10:55:21 1996  Per Bothner  <bothner@deneb.cygnus.com>
562         Change so that strstreambuf default constructor does no allocation.
563         * strstream.h (strstreambuf::init_dynamic):  Default initial size = 0.
564         * strstream.cc (strstreambuf::init_dynamic):  Don't allocate a
565         buffer (yet) if initial_size is 0.
566         * strops.c (_IO_str_overflow):  Add 100 to size of re-allocated
567         buffer, to handle case when initial size is 0.
569         * iostdio.h (remove, rename, tmpfile, tempnam):  Comment out.
570         
571 Mon May 13 23:19:39 1996  Per Bothner  <bothner@deneb.cygnus.com>
573         * fileops.c (_IO_file_close_it):  Just call _IO_do_flush rather
574         than _IO_file_sync, to avoid useless lseek.
575         
576 Tue May 14 10:48:48 1996  Jason Merrill  <jason@yorick.cygnus.com>
578         * floatconv.c (_IO_strtod): Force rv into the stack.
580         * config.shared (gxx_includedir): Now $(includedir)/g++.
582 Sat Apr 27 02:37:49 1996  Jason Merrill  <jason@yorick.cygnus.com>
584         * libioP.h (JUMP*): Implement for thunks.
585         (_IO_jump_t): Add second dummy field for thunks.
587 Thu Apr 25 13:20:00 1996  Jason Merrill  <jason@yorick.cygnus.com>
589         * config.shared (CXX): Use gcc, not g++.
591 Wed Apr 24 10:29:50 1996  Doug Evans  <dje@blues.cygnus.com>
593         * config.shared (depend.new): Delete $(srcdir)/ from foo.{c,cc}
594         for SunOS VPATH.
595         * depend: Regenerated.
597 Fri Apr 19 17:24:51 1996  Jason Merrill  <jason@yorick.cygnus.com>
599         * Version 2.8.0b3.
601 Wed Apr 10 17:16:01 1996  Jason Merrill  <jason@yorick.cygnus.com>
603         * configure.in (ALL): Don't build iostream.a.
605 Mon Apr  8 14:44:11 1996  Per Bothner  <bothner@kalessin.cygnus.com>
607         * iosetvbuf.c (_IO_setvbuf):  Clear _IO_UNBUFFERED unless _IONBF.
609 Mon Apr  8 15:08:23 1996  Ian Lance Taylor  <ian@cygnus.com>
611         * configure.in: Permit --enable-shared to specify a list of
612         directories.
614 Fri Apr  5 17:48:56 1996  Per Bothner  <bothner@kalessin.cygnus.com>
616         * config.shared (MOSTLYCLEAN):  Also remove ${EXTRA_MOSTLYCLEAN}.
618 Fri Mar 22 23:25:00 1996 Ulrich Drepper  <drepepr@gnu.ai.mit.edu>
620         * genops.c (_IO_sputbackc, _IO_sungetc): Clear EOF flag if putsh
621         back was successful.
623 Wed Mar 27 11:54:08 1996  Jason Merrill  <jason@yorick.cygnus.com>
625         * Version 2.8.0b2.
627 Fri Mar 22 15:39:36 1996  Per Bothner  <bothner@kalessin.cygnus.com>
629         * fileops.c (_IO_do_write):  Revert previous fix.  (It fails to
630         handle the case that fp->_IO_read_end != fp->_IO_write_base.)
631         (_IO_file_overflow):  Instead, if _IO_read_ptr is at the end of
632         the buffer, reset all the read pointers to _IO_buf_base.
634 Tue Mar 12 12:03:17 1996  Per Bothner  <bothner@kalessin.cygnus.com>
636         * fileops.c (_IO_do_write):  Even if to_do==0, must re-set buffer
637         pointers.  Bug and solution from Luke Blanshard <luke@cs.wisc.edu>.
639 Wed Feb 28 10:00:24 1996  Jason Merrill  <jason@yorick.cygnus.com>
641         * Version 2.8.0b1.
643 Tue Feb 27 18:08:16 1996  Per Bothner  <bothner@kalessin.cygnus.com>
645         * iopopen.c (_IO_proc_open):  Use (char*)0 rather than imprecise NULL.
647         * streambuf.h (ios):  Add ios::binary;  deprecate ios::bin.
648         * filebuf.cc (filebuf::open):  Handle ios::binary.
649         
650 Fri Feb  9 12:40:19 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
652         * cleanup.c (_IO_cleanup_registration_needed) [!_G_HAVE_ATEXIT]: Init
653         to NULL.
654         * filedoalloc.c (_IO_cleanup_registration_needed): Remove decl.
656 Thu Feb  8 08:12:50 1996  Brendan Kehoe  <brendan@cygnus.com>
658         * filedoalloc.c (_IO_cleanup_registration_needed): Revert previous
659         change, since cleanup.c only defines it if _G_HAVE_ATEXIT.
661 Wed Feb  7 15:10:17 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
663         * filedoalloc.c (_IO_cleanup_registration_needed): Declare as extern.
665 Tue Dec 12 17:21:13 1995  Per Bothner  <bothner@kalessin.cygnus.com>
667         * indstream.h, instream.cc (indirectbuf::uflow):  New method.
668         * indstream.cc (indirectbuf::underflow):  Fix to use sgetc, not sbumpc.
669         Fixes bug reported by Kevin Beyer <beyer@cs.wisc.edu>.
671         * indstream.cc (indirectbuf::seekpos):  Add paranoia test.
673 Fri Dec  8 14:55:34 1995  Per Bothner  <bothner@kalessin.cygnus.com>
675         * stream.h:  Add warning to not use these functions.
676         * stream.cc (str, chr):  Re-implement here (from libg++).
678 Tue Nov 28 15:07:01 1995  Per Bothner  <bothner@kalessin.cygnus.com>
680         * config.shared:  Use test instead of [ to avoid DEC Unix lossage.
682 Thu Nov 23 14:51:43 1995  Per Bothner  <bothner@kalessin.cygnus.com>
684         * iopopen.c: Move #include <sys/types.h> ahead of #include <signal.h>
685         to deal with BSDI's literal implementation of Posix.
687 Sat Nov 25 11:21:55 1995  Doug Evans  <dje@canuck.cygnus.com>
689         * Makefile.in (install): Set rootme.
690         * config.shared (TOPDIR): Set with ${foo-...} rather than ${foo=...}.
691         (INSTALL): Handle absolute, dot, relative-not-dot values of srcdir.
692         (TEXIDIR): Likewise.
694 Tue Nov 21 14:12:05 1995  Ian Lance Taylor  <ian@cygnus.com>
696         * configure.in: Check ${with_cross_host} rather than comparing
697         ${host} and ${target}.
699 Mon Nov 20 13:55:29 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
701         * configure.in: Match *-sco3.2v[45]*.
703 Wed Nov 15 20:19:31 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
705         * config.shared (FLAGS_TO_PASS): Also pass SHLIB and SHCURSES.
707 Tue Nov 14 01:41:08 1995  Doug Evans  <dje@canuck.cygnus.com>
709         * config.shared (TO_REAL_TOPDIR): Define.
710         (MULTITOP): Deleted.
711         (MULTISRCTOP, MULTIBUILDTOP): New.
712         (TOPDIR): Change MULTITOP to MULTIBUILDTOP, and use TO_REAL_TOPDIR.
713         (INSTALL): Add with_multisrctop, TO_REAL_TOPDIR.
714         (TEXIDIR): Use TO_REAL_TOPDIR.
715         (LIBS): Delete MULTITOP.
716         (FLAGS_TO_PASS): Add NM.
717         (CXXINCLUDES): Delete MULTITOP.
718         (depend.new): Delete adding MULTITOP to ../ build tree references.
719         Add MULTISRCTOP to ../ source tree references.
720         * configure.in: Delete call to cfg-ml-com.in.  Call config-ml.in
721         instead of cfg-ml-pos.in.
723 Sun Nov 12 16:30:48 1995  Per Bothner  <bothner@kalessin.cygnus.com>
725         * Makefile.in (VERSION):  Set to 2.7.1.
726         * configure.in:  Add warning for Linux.
727         * config.shared (DISTCLEAN):  Add EXTRA_DISTCLEAN.
729         * editbuf.h (edit_mark::index_in_buffer):  Avoid unused param warning.
731         * iostream.cc (istream::operator>> (char*)):  Improve ANSI compliance.
733 Fri Nov 10 08:41:37 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
735         * config.shared (check): Add missing semicolon.
737 Thu Nov  9 17:27:22 1995  Jason Merrill  <jason@yorick.cygnus.com>
739         * configure.in (ALL): Remove $(OSPRIM_OBJECTS).
740         * config.shared (check): Set LD_LIBRARY_PATH.
741         * NEWS: Fix typo.
742         * iogetdelim.c (_IO_getdelim): Index *lineptr, rather than lineptr.
743         From alan@spri.levels.unisa.edu.au (Alan Modra).
745 Mon Nov  6 15:03:33 1995  Per Bothner  <bothner@kalessin.cygnus.com>
747         * streambuf.cc, editbuf.cc, isgetline.cc, parsestream.cc:
748         Fixes to avoid -Wall warnings.
750 Fri Nov  3 16:41:41 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
752         * gen-params [!__STDC__]: Include varargs.h instead of stdarg.h.
754 Thu Nov  2 15:04:03 1995  Per Bothner  <bothner@kalessin.cygnus.com>
756         * config.shared:  Re-write if X then Y else true fi to (not X) || Y.
758 Wed Nov  1 13:26:44 1995  Per Bothner  <bothner@kalessin.cygnus.com>
760         * iostream.h (istream::ipfx):  Add default argument value.
761         Reported by Yotam Medini <yotam_medini@tmai.com>.
763         * libioP.h (_IO_blen):  Fix typo.
764         Reported by Bryan T. Vold <btv@ldl.healthpartners.com>.
766 Fri Oct 27 19:26:20 1995  Per Bothner  <bothner@kalessin.cygnus.com>
768         * Makefile.in (_G_config.h):  Set CC to $(CC) rather than to $(CXX),
769         now that CXX defaults to g++ and CC default to gcc (when found).
770         * config.shared:  Simplify CXX and CC, since they get overridden
771         by ../configure anyway.
773 Wed Oct 25 19:45:50 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
775         * iostdio.h: Wrap including the file with #ifndef _IOSTDIO_H.
777 Wed Oct 25 11:14:25 1995  Per Bothner  <bothner@kalessin.cygnus.com>
779         * libio.h (_IO_seekoff, _IO_seekpos):  New declarations.
780         * libioP.h (_IO_seekoff, _IO_seekpos):  Remove declarations.
781         * libioP.h:  Cleanup;  remove old !_IO_UNIFIED_JUMPTABLES stuff.
782         
783         * filebuf.cc (filebuf::~filebuf):  Only call SYSYCLOSE if currently
784         open.  Bug found by Martin Gerbershagen <ger@ezis-ulm.de>.
786         * streambuf.h (streambuf::pubseekoff, streambuf::pubseekpos):
787         Added, from ANSI draft.
788         * filebuf.cc (filebuf::open), iostream.cc (variables places), SFile.cc:
789         Use pubseekoff/pubseekpos rather than sseekoff/sseekpos.
791         * Makefile.in (install):  Don't install libiostream.a.
793         * filedoalloc.c:  Also #include <unistd.h>.
795 Mon Oct  9 18:09:54 1995  Jason Molenda  <crash@phydeaux.cygnus.com>
797         * config.shared (SUFFIXES): add .c.
799 Tue Sep 26 16:08:01 1995  Per Bothner  <bothner@kalessin.cygnus.com>
801         * procbuf.cc:  Move #pragma implementation to beginning.
803 Wed Sep 20 17:53:33 1995  Per Bothner  <bothner@kalessin.cygnus.com>
805         * procbuf.h, procbuf.cc:  Add #pragma interface/implementation stuff.
807 Wed Sep 20 18:59:00 1995  John Eaton  <jwe@bevo.che.wisc.edu>
809         * procbuf.h: Protect from being included multiple times.
811 Wed Sep 20 15:47:14 1995  John Eaton <jwe@bevo.che.wisc.edu>
813         * procbuf.h (procbuf):  Add '_next' pointer field for compatibility
814         with _IO_proc_file.
816 Wed Sep 20 13:54:02 1995  Ian Lance Taylor  <ian@cygnus.com>
818         * config.shared: Add support for maintainer-clean target as a
819         synonym for realclean.
820         * dbz/Makefile.in: Likewise.
822 Mon Sep 11 12:11:19 1995  Per Bothner  <bothner@kalessin.cygnus.com>
824         * iopopen.c:  #include <sys/types.h> before <sys/wait.h>.
825         This is in accordance with Posix, and needed for ISC.
827 Fri Sep  8 00:11:55 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
829         * gen-params: Use double quotes in the eval setting $TYPE to
830         $VALUE, to preserve any single quotes in $VALUE.
832 Mon Aug 21 11:39:09 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
834         * gen-params: Test for an appropriate version of gcc before using
835         mode attributes.
837         * config.shared: Add $(PICDIR) to $ALL.
839 Mon Aug  7 17:51:40 1995  Per Bothner  <bothner@kalessin.cygnus.com>
841         * gen-params:  Generate new macro _G_HAVE_SYS_CDEFS.
842         * libio.h:  If _G_HAVE_SYS_CDEFS, get __P from <sys/cdefs.h>.
844 Fri Aug  4 23:21:17 1995  Paul Eggert  <eggert@twinsun.com>
846         * gen-params: When following typedef changes, allow typedefs
847         that do not have a space before the defined type name,
848         e.g. `typedef void *__gnuc_va_list;' as in Linux.  Also,
849         not require a space in the definiens, e.g. `typedef void*foo;'.
850         
851 Thu Aug  3 17:54:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
853         * iostream.h, iostream.cc (istream::sync):  Added missing method.
855 Thu Aug  3 17:49:34 1995  Per Bothner  <bothner@kalessin.cygnus.com>
857         * configure.in:  Remove netbsd special case.
858         * config/netbsd.mt:  Removed;  no longer used.
860 Tue Jun 20 16:07:12 1995  Paul Eggert  <eggert@twinsun.com>
862         * gen-params: Take transitive closure of `typedef' relation.
863         This is needed for BSD/OS 2.0, which has
864         fpos_t -> off_t -> quad_t -> long long.
866 Mon Jul 24 18:28:10 1995  Doug Evans  <dje@canuck.cygnus.com>
868         * config.shared (TOPDIR): Delete extra '/', $rootme may be empty.
870 Sat Jul 22 13:27:45 1995  Doug Evans  <dje@canuck.cygnus.com>
872         * config.shared (depend.new): Fix quoting in DO NOT EDIT line.
874         * Makefile.in (_G_config.h): Add multilib support.
875         (install): Likewise.
876         * config.shared: Likewise.
877         * configure.in: Likewise.
879 Wed Jun 28 17:40:25 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
881         * PlotFile.h, SFile.h, builtinbuf.h, editbuf.h, fstream.h,
882         indstream.h, iomanip.h, iostream.h, parsestream.h, pfstream.h,
883         procbuf.h, stdiostream.h, stream.h, streambuf.h, strstream.h: Wrap
884         with extern "C++".
886 Thu Jun 22 04:34:01 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
888         * gen-params: Surround attributes with __.
890 Mon Jun 19 00:33:22 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
892         * config.shared (SUBDIRS): Massage broken shells that require
893         'else true'.
895 Sat Jun 17 11:25:38 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
897         * streambuf.h: Declare inline members inline in class.
899 Thu Jun 15 20:45:13 1995  Per Bothner  <bothner@kalessin.cygnus.com>
901         * Makefile.in (VERSION):  Update to version 2.7.0.
903 Wed Jun 14 21:41:11 1995  Jason Merrill  <jason@python.cygnus.com>
905         * Makefile.in (STDIO_WRAP_OBJECTS): Remove stdfiles.o.
906         (LIBIO_OBJECTS): Add stdfiles.o.
908 Wed Jun  7 16:11:36 1995  Jason Merrill  <jason@python.cygnus.com>
910         * config.shared (all): Appease bash.
912 Wed Jun  7 11:16:38 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
914         * configure.in (MOSTLYCLEAN): Remove stamp-picdir.
916         * config.shared (MOSTLYCLEAN): Ditto.
917         (CLEAN): Don't.
919 Mon Jun  5 18:29:39 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
921         * config/mh-*pic: Removed.
923         * configure.in (MOSTLYCLEAN): Remove pic objects.
924         (frags): Use toplevel pic fragments.
926         * config.shared (CXXFLAGS): Use -O3.
927         (PICFLAG, PICDIR): New macros.
928         (all): Depend on $(PICDIR).
929         (FLAGS_TO_PASS): Pass PICFLAG.
930         (.x.o): Also build pic object.
931         (stamp-picdir): Create directory for pic objects.
932         (MOSTLYCLEAN): Remove pic objects.
933         (CLEAN): Remove stamp-picdir.
935         * Makefile.in (iostream.list): Depend on stamp-picdir.
936         (c++clean): Don't remove _G_config.h.
938 Mon Jun  5 15:03:47 1995  Per Bothner  <bothner@kalessin.cygnus.com>
940         * strstream.h, strstream.cc (strstream::strstream()):  Re-implement to
941         be like ostrstream::ostrestream(), and not leak memory.
943         * streambuf.h:  Use #if !_IO_UNIFIED_JUMPTABLES instead of #ifndef.
945         * iolibio.h (_IO_rewind):  Add missing flags when calling _IO_seekoff.
947 Thu May 25 22:30:21 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
949         * config/netbsd.mt (G_CONFIG_ARGS): Add defn for off_t.  Another
950           layer of typedefs has been added and the gen-params script can
951           not handle it.
953 Wed May 10 03:02:58 1995  Jason Merrill  <jason@python.cygnus.com>
955         * iolibio.h (_IO_rewind): Add new argument to _IO_seekoff.
957         * config/linux.mt (LIBIOSTREAM_OBJECTS): Include $(STDIO_WRAP_OBJECTS).
958         (LIBIOSTREAM_DEP): Include stdio.list.
959         (LIBIOSTREAM_USE): Include `cat stdio.list`.
961         * Makefile.in (LIBIOSTREAM_DEP): New variable.
962         (LIBIOSTREAM_USE): Ditto.
963         (libiostream.a): Use them.
964         (iostream.list): Ditto.
965         (stdio.list): New rule.
966         (stdio/stdio.list): Ditto.
968 Tue May  9 18:29:38 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
970         * libioP.h (_IO_jump_t): Change TYPE for __dummy from int to
971         _G_size_t.
973 Sat May  6 13:50:37 1995  Per Bothner  <bothner@kalessin.cygnus.com>
975         * libio.h (_IO_UNIFIED_JUMPTABLES):  #define as true.
976         (_IO_FILE):  Remove _jumps field (#if _IO_UNIFIED_JUMPTABLES).
978         * libioP.h (enum _IO_seekflags_):  Removed.
980         * libioP.h (_IO_setbuf_t):  Change return value of setpos jumptable
981         function to match C++ streambuf::setpos.  (Return NULL on failure.)
982         * fileops.c (_IO_file_setbuf), genops.c (_IO_default_setbuf),
983         filebuf.cc, iosetvbuf.c:  Update to use new setbuf conventions.
985         * streambuf.h (streambuf):  Re-order virtual functions more logically.
986         * streambuf.cc (streambuf::uflow), streambuf.h:  New virtual.
987         * libioP.h (struct _IO_jump_t):  Define using new JUMP_FIELD macro.
988         And re-order in more logical order consistent with streambuf vtable.
989         * fileops.c (_IO_file_jumps), iopopen.c (_IO_proc_jumps), iovfprintf.c
990         (_IO_helper_jumps), streambuf.cc (_IO_streambuf_jumps), strops.c
991         (_IO_str_jumps):  Update accordingly, using JUMP_INIT macro.
992         * stdfiles.c:  Set vtable to point to _IO_file_jumps.
993         * filebuf.cc, iopopen.c, iovfprintf.c (helper_vfprintf), iovsprintf.c,
994         iovsscanf.c:  Use macros and #if to set jumptables.
996         * streambuf.c:  _IO_streambuf_jumps and the _IO_sb_* methods are not
997         needed #if _IO_UNIFIED_JUMPTABLES.
998         * filebuf.cc (filebuf::__new):  Also no longer needed.
999         * fstream.cc (fstreambase::__fb_init, fstreambase::fstreambase):  Fix.
1000         * stdstrbufs.c:  Use filebuf vtable instead of builtinbuf's.
1001         * builtinbuf.h, builtinbuf.cc (builtinbuf):  Commented out #if
1002         _IO_UNIFIED_JUMPTABLES - no longer needed.
1003         * strstream.cc (SET_STR_JUMPS):  Does nothing now.
1005         * builtinbuf.cc, fileops.c, genops.c, iofgetpos.c, iofsetpos.c,
1006         ioftell.c, iopopen.c, ioseekoff.c, ioseekpos.c, iosetvbuf.c,
1007         iovfprintf.c, iovfscanf.c, strops.c:  Use DEFUN and DEFUN_VOID.
1008         * filebuf.cc, fileops.c, genops.c, iopopen.c, ioseekoff.c, ioseekpos.c,
1009         iosetvbuf.c, iovfscanf.c:  Use new JUMP_* and IO_OVERFLOW/... macros.
1011         * libioP.h (_IO_seekpos_t):  Third arg is now an int (using _IOS_INPUT
1012         and _IOS_OUTPUT), not an enum _IO_seekflags_.  Flags values are
1013         changed, and their sense inverted (to match streambuf::seekpos).
1014         * libioP.h (_IO_seekoff_t):  Similarly match streambuf::seekoff.
1015         * filebuf.cc, fileops.c (_IO_file_fopen, _IO_file_seekoff), genops.c
1016         (_IO_default_seekpos, _IO_default_seekpos), iofgetpos.c, iofsetpos.c,
1017         iolibio.h (_IO_fseek), ioftell.c, ioseekoff.c, ioseekpos.c,
1018         iostream.cc, streambuf.cc, strops.c (_IO_str_seekoff), strstream.cc:
1019         New seekpos/seekoff conventions.
1020         * iostreamP.h (convert_to_seekflags):  Removed - no longer needed.
1022         * iolibio.h (_IO_fread):  New declaration.
1024         * dbz/Makefile.in:  Re-arrange for cleaner dependencies.
1026 Fri May  5 15:55:22 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1028         * libioP.h (_IO_JUMPS. JUMP_FIELD, JUMP0, JUMP1, JUMP2, JUMP3,
1029         JUMP_INIT, _IO_FINISH, _IO_OVERFLOW, ... _IO_SYSSTAT):  New macros
1030         in preparation for new unified jumptable/vtable implementation.
1031         * cleanup.c, filedoalloc.c, iofclose.c, iofflush.c, iofiledoalloc.c,
1032         ioprims.c, iosetbuffer.c, iostrerror.c, ioungetc.c:  Use DEFUN.
1033         * filedoalloc.c, iofclose, iofflush, iosetbuffer.c:  Use new macros.
1035         * iofopen.c, iofdopen.c:  Use macros and #if for new jumptables.
1037         * gen-params:  Do not #include <sys/types.h>.
1038         Add missing quote in 'eval'.
1039         Do add #include <sys/types.h> in test for <sys/resource.h>.
1040         * config/netbsd.mt:  New file, defining _G_CONFIG_ARGS (for fpos_t).
1041         * configure.in:  Use netbsd.mt for NetBSD.
1043 Wed May  3 15:03:47 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1045         * libioP.h (DEFUN, DEFUN_VOID, AND):  New macros, from ansidecl.h.
1046         * iofdopen.c, iofgets.c, iofopen.c, iofputs.c, iofread.c, iofwrite.c,
1047         iogetdelim.c, iogetline.c, iogets.c, ioignore.c, iopadn.c, ioperror.c,
1048         ioputs.c, iovsprintf.c, iovsscanf.c, outfloat.c:  Use DEFUN.
1050 Mon May  1 16:22:30 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1052         * gen-params: #include <sys/types.h>.  Don't use __WCHAR_TYPE__ in
1053         definition of _G_wchar_t.  Use __attribute__ ((mode)) to get
1054         specific-sized ints under gcc, don't worry about int8 or int64
1055         otherwise.  Provide defaults if deduction fails.
1057 Thu Apr 27 18:27:53 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1059         * streambuf.h (ios::~ios):  Delete _arrays.
1060         (_IO_NEW_STREAMS):  Turn on.
1061         * libio.h (__adjust_column):  Remove bogus declaration.
1062         * genops.c (_IO_set_column):  Fix typo (in commented-out code).
1064 Tue Apr 25 17:14:29 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1066         * config.shared (CXXINCLUDES): Use a shell variable with a
1067         different name from the make variable.
1068         * configure.in: Update accordingly.
1070 Mon Apr 17 17:19:40 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1072         * streambuf.h (__adjust_column):  Remove redundant declaration.
1074 Sat Apr 15 11:39:25 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1076         * config.shared (do-clean-dvi):  Also remove *.cps.
1078         * gen-params:  Use ${SED} instead of sed.
1080         * libio.h:  Remove #if'd out stuff (confuses makedepend).
1082         * stdstreams.cc (STD_STR):  Standard streams start with ios::dec set.
1084 Fri Apr 14 23:46:31 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1086         * iostream.h, iostream.cc (istream::read, ostream::write):
1087         Use streamsize for the length parameter.
1089         * streambuf.h:  Removed redundant __overflow and __underflow.
1091         * fstream.h, fstream.cc: Add void fstreambase::attach(int).
1093         * iosscanf.c (_IO_sscanf):  Fix non-__STDC__ missing declaration.
1095 Mon Apr  3 15:40:55 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1097         * indstream.*: Fix prototypes of xsputn and xsgetn.
1099         * fileops.c: Avoid ??? trigraph.
1101 Mon Mar 27 16:16:38 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1103         * iomanip.h (operator<< (ostream&, const omanip<TP>&): Define
1104         separately.
1105         (operator>> (istream&, const imanip<TP>&): Ditto.
1107 Mon Mar 27 08:56:00 1995  Brendan Kehoe  (brendan@lisa.cygnus.com)
1109         * builtinbuf.cc (builtinbuf::setbuf): Cast NULL to streambuf*, to
1110         avoid warning/error about conversion from void*.
1111         * indstream.cc (indirectbuf::seekoff): Likewise.
1112         (indirectbuf::seekpos): Likewise.
1113         * filebuf.cc (filebuf::setbuf): Likewise.
1114         (filebuf::close): Cast NULL to filebuf*.
1116 Wed Mar  1 14:23:18 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1118         * configure.in (DISTCLEAN):  Add, with target-mkfrag.
1120 Fri Feb 24 01:01:08 1995  Jason Merrill  <jason@python.cygnus.com>
1122         * configure.in (frags): Don't require so many dashes in the
1123         canonical target name.
1125 Sat Feb 18 13:18:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1127         * streambuf.cc (streambuf::sync):  Always return 0, even for
1128         non-flushed output.  This is required by the ANSI/ISO draft.
1129         * genops.c (_IO_sync):  Likewise always return 0.
1131 Fri Feb 17 16:33:28 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1133         * fileops.c (_IO_file_close_it):  Call _IO_file_sync, rather
1134         than _IO_do_flush, because we want to adjust the file pointer
1135         if reading and not at end (as in SVR4, and as in fflush).
1136         Also, make sure to return error indication if sync fails.
1137         (_IO_file_sync):  Ignore seek error if it is ESPIPE.
1138         (_IO_file_seekoff):  If not readable, do dumb lseek.
1139         * iofclose.c (_IO_fclose):  If closing a non-filebuf, return -1
1140         if _IO_ERR_SEEN.
1142 Fri Feb 17 19:31:00 1995  Ian Lance Taylor  <ian@cygnus.com>
1144         * gen-params: Check for struct tms in <sys/times.h>, defining
1145         HAVE_SYS_TIMES accordingly.
1147 Wed Feb 15 21:05:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1149         * strops.c (_IO_str_count):  Use LEN macro.
1150         (_IO_str_seekoff):  Update _len field.
1152 Mon Feb  6 19:29:00 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1154         * gen-params: Default to short, long and long long for 16, 32 and
1155         64 bit types, in case detection fails.
1157 Wed Jan 25 18:07:30 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1159         * gen-params (_G_wint_t): Allow for broken promotions.
1161 Tue Jan 24 16:15:40 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1163         * stdstrbufs.cc (_IO_fake_stdiobufs):  Add an extra layer of struct,
1164         to force correct alignment on i960s.
1165         (DEF_STDIOBUF, _IO_{stdin,stdout,stderr}_buf):  Update accordingly.
1167 Thu Jan 19 18:30:53 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
1169         * config.shared (CXXINCLUDES): Add libstdc++ to includes for
1170         building libg++.
1171         (LIBS): Also link with libstdc++ when building libg++ toys.
1172         Don't set EXPORT_ALL_VARIABLES; users will have to set
1173         LD_LIBRARY_PATH themselves.
1175 Fri Dec 30 16:38:13 1994  Mike Stump  <mrs@cygnus.com>
1177         * config/linux.mt: Fix build problem on linux 1.0.8.
1179 Thu Dec 22 11:49:45 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
1181         * config/netware.mt: Use gcc to pre-link iostream.nlm's objects
1182           instead of using nlmconv, so that references to functions in
1183           libgcc.a are resolved.
1185         * configure.in: Append .mt to target makefile fragment file names.
1187         * floatconv.c (tens, tinytens, bigtens): Added const qualifier.
1189 Tue Dec 20 09:59:50 1994  Mike Stump  <mrs@cygnus.com>
1191         * gen-params (VTABLE_LABEL_PREFIX): Since some systems have GNU nm
1192         as nm, and they demangle by default, we have to notice this, and
1193         try --no-cplus (linux) or --no-demangle when running nm.
1195 Wed Dec 14 18:13:58 1994  Per Bothner  <bothner@kalessin.cygnus.com>
1197         * gen-params:  To determine vt-name-mangling using dummy.C add
1198         #include and #prama interface/implementation to avoid problem with
1199         assemblers that don't emit local symbols.  Reported under HPUX 8
1200         by Thomas Arend <arend@blasius.Chemietechnik.Uni-Dortmund.DE>.
1202         * streambuf.h (ios::ios):  Move inline definition after
1203         that of ios::init (which ios::ios calls).
1205 Sun Dec  4 19:50:32 1994  Per Bothner  <bothner@kalessin.cygnus.com>
1207         * fileops.c (_IO_file_init, _IO_file_close_it, _IO_file_sync):
1208         Set _offset to _IO_pos_BAD, to support applications that follow
1209         POSIX.1 rules on mixing file handles.
1211         * fileops.c (_IO_file_overflow):  Handle case that buffer was
1212         allocated (perhaps by setvbuf) but _IO_write_base is still 0.
1214         * iostdio.h (setbuffer):  #define as _IO_setbuffer.
1215         * streambuf.h, filebuf.cc:  Removed filebuf::do_write.
1217 Tue Nov 29 23:38:57 1994  Per Bothner  (bothner@rtl.cygnus.com)
1219         * floatconv.c (setword0, setword1):  Fix typo.
1221 Tue Nov 29 15:37:29 1994  Per Bothner  <bothner@kalessin.cygnus.com>
1223         * config.shared:  Move -fno-implicit-template from CXXFLAGS
1224         to LIBCXXFLAGS.  Tests are better run without it.
1226         * floatconv.c (word0, word1):  Re-place/re-implement using unions
1227         instead of casts to avoid optimizer problems.
1229         * dbz/dbzmain.c:  Renamed dirname -> dir_name to avoid OSF
1230         header file braindamage.
1232 Sat Nov  5 19:44:00 1994  Jason Merrill  (jason@phydeaux.cygnus.com)
1234         * config.shared (LIBCFLAGS): Define.
1235         (LIBCXXFLAGS): Define.
1236         (DOING_LIBGXX): Define TOLIBGXX.  Change LIBS to use -lg++.  Add
1237         LD_LIBRARY_PATH and .EXPORT_ALL_VARIABLES:.
1238         (FLAGS_TO_PASS): Add LIBC{,XX}FLAGS.
1239         (XC{,XX}FLAGS): Set to LIBCFLAGS or CFLAGS depending on $LIBDIR.
1240         (COMPILE.c): Define, use in .c.o rule.
1241         (COMPILE.cc): Define, use in .cc.o rule.
1243 Sat Nov  5 15:12:12 1994  Per Bothner  <bothner@kalessin.cygnus.com>
1245         * Makefile.in (VERSION):  Update to 0.67.
1247         * streambuf.h (ios::dont_close):  Is now set by default.
1248         * fstream.h, fstream.cc (__fb_init):  New function.  Clears
1249         ios::dont_close.  Change fstreambase constructors to call it.
1250         * strstream.cc:  *strstream constructors must clear ios::dont_close.
1251         * iostream.cc:  Simplify - don't need to set ios::dont_close.
1252         * ioassign.cc:  Simplify - assume ios::dont_close is always set.
1254         * fstream.h, fstream.cc:  If _IO_NEW_STREAMS, put the
1255         filebuf as a member __my_fb.
1256         * strstream.{h,cc}:  Likewile use a strstreambuf member __my_sb.
1257         * streambuf.h, stdstreams.cc, ioextend.cc:
1258         Fix if _IO_NEW_STREAMS to not use ios::dont_close.
1260         * streambuf.h (class ios):  Move rdbuf later, to avoid
1261         inability of g++ to inline.
1262         * filebuf.cc (filebuf::~filebuf):  Call _IO_do_flush.
1264         * config.shared:  Emit rules to make depend.
1265         * depend:  New file.
1267 Fri Nov  4 17:19:11 1994  Per Bothner  <bothner@kalessin.cygnus.com>
1269         * README:  Fix typos.
1270         * libio.h:  Add comment.  Update Copyright notice.
1272 Fri Nov  4 21:46:30 1994  Paul Eggert  <eggert@twinsun.com>
1274         * libio.h (__P): Change argument name spelling from
1275         `paramlist' to `protos' for compatibility with BSDI 1.1.
1277 Thu Nov  3 00:45:16 1994  Jason Merrill  (jason@phydeaux.cygnus.com)
1279         * config.shared (CXXFLAGS): Add -fno-implicit-templates.
1281 Mon Oct 24 15:57:35 1994  Per Bothner  <bothner@kalessin.cygnus.com>
1283         * config.shared:  Define NOSTDIC and use it for libio too.
1285 Thu Oct 20 19:45:35 1994  Jason Merrill  (jason@phydeaux.cygnus.com)
1287         * iogetdelim.c: #include <stdlib.h>.
1289 Thu Oct 20 17:09:52 1994  Per Bothner  <bothner@kalessin.cygnus.com>
1291         * iostream.h:  Add classes _IO_istream_withassign and
1292         _IO_ostream_withassign.  Re-type cin, cout, cerr, clog.
1293         (class iostream):  Don't add extra _gcount field.
1294         * ioassign.cc:  New file.  Implement operator= for cin etc.
1295         * streambuf.h (class ios):  Change return type of operator=.
1296         * Makefile.in (IOSTREAM_OBJECTS):  Add ioassign.o.
1298         * Makefile.in:  Re-arrange, so linux.mt overrides can work.
1300         * fileops.c (_IO_file_seekoff):  Optimize seeks within buffer.
1302 Wed Oct 19 14:25:47 1994  Jason Merrill  (jason@phydeaux.cygnus.com)
1304         * gen-params (wint_t): Return to using __WCHAR_TYPE__ for
1305         compatibility with gcc versions prior to 2.6.1.
1307 Tue Oct 18 17:08:18 1994  Per Bothner  <bothner@kalessin.cygnus.com>
1309         * Makefile.in:  Define _G_CONFOG_H as _G_config.h for Linux.  Use it.
1310         (IO_OBJECTS):  Add iogetdelim.o.
1311         * config/linux.mt:  New file.
1312         * configure.in:  Select config/linux.mt if Linux.
1313         * iogetdelim.c:  Verious cleanups, many from
1314         Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>.
1315         * libioP.h: Add _IO_getdelim.  Use (void) for no-parameter functions.
1317 Thu Oct 13 16:30:56 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1319         * libio.h:  Rename USE_DTOA to _IO_USE_DTOA for namespace reasons.
1320         * iostream.cc, iovfscanf.c, iovfprintf, floatconv.c:
1321         Update USE_DTOA -> _IO_USE_DTOA.
1323         * libio.h (_IO_feof, _IO_ferror):  Move to here ...
1324         * iolibio:  ... from here
1326         * iostream.cc (istream::get, istream::ignore, istream::read):
1327         Set _gcount to 0 if ipfx0 failed.
1329         * iostream.cc (flush):  Do virtual function call, rather than
1330         going through jumptable.  (To get correct method in derived class.)
1331         Bug and fix from John Wiegley <jw@cis.ohio-state.edu>.
1333         * iofdopen.c (O_ACCMODE):  Define using O_RDWR, not O_RDWRITE.
1335         * streambuf.h (ios::rdbuf(streambuf*)):  New.
1336         * streambuf.h (ios::operator=):  Make private (i.e. dis-allow).
1338 Wed Oct 12 19:09:20 1994  Jason Merrill  (jason@phydeaux.cygnus.com)
1340         * gen-params: Define _G_NO_NRV and _G_NO_EXTERN_TEMPLATES if not
1341         compiling with g++.
1343 Thu Oct  6 16:03:43 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1345         * iostream.texi (ostrstream::str):  Note that NUL is not written
1346         automatically.
1348 Wed Oct  5 17:28:29 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1350         * iogetdelim.c (_IO_getdelim):  New function.
1352 Wed Oct  5 15:40:22 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
1354         * config/netware.mt: New file, first cut at Netware NLM support.
1355         * configure.in (*-*-netware*): Use config/netware.mt.
1357         * config.shared (NLMCONV, LD): New definition.
1359         * gen-params: check for nm in ${binutils}/nm.new.
1360         * config.shared: Likewise.
1362 Tue Oct  4 12:20:01 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1364         * iomanip.h (omanip::operator<<):  Make 2nd arg be const.
1365         Bug and fix reported by Greg McGary <gkm@magilla.cichlid.com>.
1367         * strstream.cc (strstreambuf::pcount):  Simplify, to match
1368         ANSI/ISO specification.
1370 Mon Sep 26 15:19:52 1994  Jason Merrill  (jason@deneb.cygnus.com)
1372         * gen-params: Include <wchar.h> and <wctype.h> if they exist.
1374 Thu Sep  8 14:41:41 1994  Jason Merrill  (jason@deneb.cygnus.com)
1376         * iostream.h (class istream): Declare operator>>(long double&).
1377         (class ostream): Define operator<<(long double).
1379         * iostream.cc (istream::operator>>(long double&)): Define.
1381 Wed Sep  7 14:42:29 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1383         * iostream.texi (Overflow):  Fix bugs in example.
1385 Fri Sep  2 17:45:57 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1387         * iostream.tex:  Document a little on how to write your
1388         own streambuf-derived class, with an example.
1390 Tue Aug 30 13:03:57 1994  Brendan Kehoe  (brendan@lisa.cygnus.com)
1392         * floatconv.c (s2b): Declare X and Y to be _G_int32_t.
1393         (diff, quorem): Declare BORROW, Y, and Z likewise.
1394         (ulp): Declare L likewise.
1395         (_IO_strtod): Declare L and AADJ likewise.
1396         (_IO_dtoa): Declare L and D likewise.  Cast division of D by DS to
1397         _G_int32_t.
1399 Mon Aug 29 16:01:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1401         * iosetvbuf.c (_IO_setvbuf):  If setting _IOFBF and no
1402         buffer was specified, call __doallocate.
1404         * fileops.c, floatconv.c:  Add a bunch of parentheses to
1405         shut up gcc warnings.  Patch from H.J.Lu.
1407         * stdiostream.cc (stdiobuf::sys_read):  Inline call to getc
1408         for the normal case (size==1).
1410 Sat Aug 20 12:14:52 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1412         * Makefile.in (VERSION):  Increase to 0.66.
1414 Fri Aug 19 17:28:41 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1416         * iolibio.h:  Added _IO_printf prototype.
1417         Added extern "C" { ... } wrappers #ifdef __cplusplus.
1418         Bugs reported by Neal Becker <neal@ctd.comsat.com>.
1420 Wed Aug 17 18:17:15 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1422         * fileops.c (_IO_file_seekoff):  For _IO_seek_cur, adjust for
1423         read-ahead before jumping to label dumb.
1425 Wed Aug  3 13:15:01 1994  H.J. Lu  (hjl@nynexst.com)
1427         * libioP.h (CHECK_FILE(FILE,RET)): new, which checks for
1428           FILE == NULL and _IO_MAGIC_MASK.
1429           (COERCE_FILE(FILE)): merged into CHECK_FILE(FILE,RET)
1430           with typo fixes.
1432         * iofread.c, iofwrite.c: add CHECK_FILE(fp, 0);
1433         * iofclose.c: add CHECK_FILE(fp, EOF); remove _IO_MAGIC_MASK check.
1435         * iofflush.c, iofgetpos.c, iofputs.c, iofscanf.c,
1436         iofsetpos.c, iofvbuf.c, ioungetc.c:
1437         Add CHECK_FILE(fp, EOF) and remove COERCE_FILE(fp).
1439         * iofgets.c: add CHECK_FILE(fp, NULL) and remove COERCE_FILE(fp).
1440         * iofprintf.c: add CHECK_FILE(fp, -1) and remove COERCE_FILE(fp).
1441         * ioftell.c: add CHECK_FILE(fp, -1L) and remove COERCE_FILE(fp).
1442         * iosetbuffer.c: add CHECK_FILE(fp, ) and remove COERCE_FILE(fp).
1444 Fri Aug 12 15:35:39 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1446         * iofdopen.c (_IO_fdopen):  #define O_ACCMODE if it isn't.
1447         Still set O_APPEND if "a" is given, but don't unset it
1448         if it isn't.  Added comment.
1450 Mon Aug  8 13:11:00 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1452         * gen-params (VTABLE_LABEL_PREFIX):  Changes in the implementation.
1453         For look for _*vt[$_.]7*filebuf in the nm output, because that
1454         matches what g++ produces and has produced.  Thus it should be
1455         somewhat more robust.
1457 Sun Aug  7 22:52:49 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1459         * gen-params (CC):  Remove no-longer-needed -I options
1460         passed to xgcc (now they are implied by the -B options).
1462 Wed Jul 20 16:41:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1464         * Makefile.in (tooldir):  Added definition, so we can do
1465         'make install' in this directory.
1466         Bug reported by Klamer Schutte <schutte@tpd.tno.nl>.
1468 Mon Jul 18 18:02:34 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1470         * gen-params (VTABLE_LABEL_PREFIX):  Remove filename sppearing
1471         by itself.  Add comment explaining what is going on.
1473 Tue Dec 21 13:02:48 1993  H.J. Lu  (hjl@jalod)
1475         * libio.h: define _IO_uid_t and _IO_HAVE_ST_BLKSIZE
1476           as _G_xxxxxxxx.
1478 Tue Dec 21 13:02:48 1993  H.J. Lu  (hjl@jalod)
1480         * iopopen.c:  Don't include <errno.h>. It is included in "libioP.h".
1482         * iopopen.c (_IO_proc_close) : check if fp is on the list
1483           before close it.
1485 Thu Jul 14 16:38:47 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1487         * gen-params (CONFIG_NM):  Make sed scripts to find vtable name
1488         mangling more robost for different forms of nm output.
1490 Tue Dec 21 13:02:48 1993  H.J. Lu  (hjl@jalod)
1492         * iofopen.c (_IO_fopen): don't check [redundantly] fp == NULL after
1493           IO_file_init(&fp->_file).
1495         * iomanip.h (template<class TP> class iapp):
1496           change ostream to istream.
1498 Tue Jul 12 14:09:02 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1500         * Makefile.in (VERSION):  Increase to 0.65.
1501         * libioP.h (builtinbuf_vtable):  Only define #ifdef __cplusplus.
1503         * gen-params (_G_int8_t):  Only define if defined(__STDC__),
1504         because K&R C compilers don't have signed char.
1505         (_G_int64_t, _G_uint64_t):  Only define if defined(__GNUC__)
1506         because other compilers may not have long long.
1508 Sun Mar 06 13:10:21 1994  H.J. Lu  (hjl@nynexst.com)
1510         * floatconv.c (_IO_dtoa ()): fix a small memory leak, set the
1511           "on_stack" field to be 0 if "result" is not NULL.
1513 Sat Mar 05 13:18:20 1994  H.J. Lu  (hjl@nynexst.com)
1515         * floatconv.c (_IO_dtoa ()): if the number of digits of the
1516           floating point number is more than the previous one, free the
1517           old string and allocate a new one.
1518           [Minor optimization to avoid Bcopy. -PB]
1520 Mon Jul 11 10:53:41 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1522         * fileops.c (_IO_file_underflow):  'count' should be unsigned,
1523         since it contains the return value of read.  Reported by
1524         Teemu Torma <tot@trema.fi>.
1526 Tue Dec 21 13:02:48 1993  H.J. Lu  (hjl@nynexst.com)
1528         * floatconv.c (_IO_strtod ()): make "+" and "-" as error.
1530 Sat Jul  9 15:09:21 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1532         Make sure _IO_FILE::_flags is always initialized correctly, for the
1533         C functions (fopen, fdopen, popen), and not just the C++ functions.
1534         * fileops.c (_IO_file_init):  Set _flags to CLOSED_FILEBUF_FLAGS.
1535         * fileops.c (_IO_file_fopen):  Remove bogus assignment.
1536         * filebuf.cc (filebuf constructors):  Don't pass CLOSED_FILEBUF_FLAGS
1537         to streambuf constructor - _IO_file_init does it instead.
1538         * filebuf.cc (CLOSED_FILEBUF_FLAGS):  Removed.
1539         * iopopen.c (_IO_proc_open):  Use _IO_mask_flags.
1541 Thu Jun 30 08:49:53 1994  Jason Merrill  (jason@deneb.cygnus.com)
1543         * dbz/Makefile.in (mostlyclean): Add target.
1545 Wed Jun 29 09:30:12 1994  Jason Merrill  (jason@deneb.cygnus.com)
1547         * gen-params: Woops, can't run a C program to determine target
1548         characteristics.  Sigh.
1550 Tue Jun 28 03:11:33 1994  Jason Merrill  (jason@deneb.cygnus.com)
1552         * gen-params: Add _G_{,u}int{8,16,64}_t, use a short C program to
1553         determine what all these should be rather than trying to compare
1554         the MAX numbers in the shell.
1556 Sun Jun 26 21:04:24 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1558         * stdiostream.h, stdiostream.cc (stdiobuf::xsgetn):  Removed.
1559         Too hairy.  If we want to optimize it, we should do so in
1560         filebuf::xsgetn (or rather _IO_file_xsgetn).
1562         * stdiostream.h (class stdiobuf), stdiostream.cc:  Fix parameter
1563         and return types of virtual function to matcher base types (Oops!).
1564         * streamstream.cc (stdiobuf::xsgetn, stdiobuf::xsputn):
1565         Optimize to call fread.fwrite directly if !buffered.
1566         * fileops.c:  Fix comment.
1568 Fri Jun 24 11:28:18 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1570         * stdiostream.h (istdiostream, ostdiostream):  New classes.
1572         More robust final cleanup.
1573         * cleanup.c (_IO_register_cleanup):  Register _IO_cleanup,
1574         rather than _IO_flush_all.
1575         * filedoalloc.c: Update comment.
1576         * genops.c (_IO_unbuffer_all):  New.  Makes all files unbuffered.
1577         * genops.c (_IO_cleanup), libioP.h:  New function.  Call
1578         _IO_flush_all, and then _IO_unbuffer_all.  This is in case C++
1579         destructors try to do output *after* _IO_cleanup is called.
1581         Construct standard stdiobufs statically (using type punning).
1582         * stdstrbufs.c;  Unless _STDIO_USES_IOSTREAM declare standard
1583         stdiobufs (for stdin, stdout, and stderr), using type punning
1584         (struct _IO_fake_stdiobuf).  This avoids constructor-time problems.
1585         * stdstreams.cc:  Remove the declarations of the stdiobufs.
1586         Instead use the new (fake) ones in stdstrbufs.cc.  We no longer
1587         have to call ios::sync_with_stdio at constructor time.
1589         Preliminary support for new ANSI streambuf::uflow virtual.
1590         * libioP.h (struct _IO_jump_t):  Add __uflow field.
1591         * genops.c (_IO_default_uflow), libioP.h:  New function.
1592         * fileops.c (_IO_file_jumps), iopopen.c (IO_proc_jumps),
1593         iovfprintf.c (_IO_helper_jumps), strops.c (_IO_str_jumps),
1594         streambuf.cc (_IO_streambuf_jumps):  Add _IO_default_uflow.
1595         * genops.c (__uflow):  New function.
1596         (save_for_backup):  New function.  Some code shared by
1597         __underflow and __uflow, moved out from the former.
1598         (_IO_default_uflow):  New function.
1599         * libio.h (_IO_getc):  Call __uflow, not __underflow.
1601 Wed Jun 22 20:22:49 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1603         Make sure that the vtable of a streambuf is always valid,
1604         which makes ios::rdbuf simpler and faster.
1605         * gen-params:  Add code to determine _G_VTABLE_LABEL_HAS_LENGTH,
1606         _G_VTABLE_LABEL_PREFIX, _G_VTABLE_LABEL_PREFIX_ID, and
1607         _G_USING_THUNKS, which describe how virtual function tables are named.
1608         * stdfiles.c (FILEBUF_LITERAL):  Moved to libioP.h.
1609         * libioP.h (builtinbuf_vtable):  New (complicated) declaration.
1610         * filebuf.cc (filebuf::__new), strstream.cc (SET_STR_JUMPS):
1611         Initialize vtable to builtinbuf_vtable, not NULL.
1612         * stdstrbufs.cc:  New file.  Same as stdfiles.c, except that
1613         vtable is initialized to builtinbuf_vtable, not NULL.
1614         * streambuf.h (ios::rdbuf):  Can now simplify/optimize, due to
1615         above changes.  Always, just return _strbuf.
1616         * builtinbuf.h, builtinbuf.cc (builtinbuf::vtable,
1617         builtinbuf::get_builtin_vtable):  Removed.  No longer needed.
1618         * streambuf.h, builtinbuf.cc (ios::_IO_fix_vtable):  No longer needed.
1619         Only defined #ifdef _STREAM_COMPAT, for binary compatibility.
1620         * Makefile.in:  Move stdfiles.o from IO_OBJECTS to STDIO_WRAP_OBJECTS.
1621         (IOSTREAM_OBJECT):  Add stdstrbufs.o.
1622         * Makefile.in (_G_config.h):  Pass $(CXXFLAGS) as part of $(CXX).
1624 Fri Feb 11 11:08:01 1994  SBPM Marc GINGOLD (marc@david.saclay.cea.fr)
1626         * iovfprintf.c (helper_vfprintf): add
1627           hp->_IO_file_flags = _IO_MAGIC|(_IO_IS_FILEBUF+_IO_NO_READS);
1628         [This is needed because _IO_vfprintf checks for _IO_UNBUFFERED. -PB]
1629         [Actually:  don't set _IO_IS_FILEBUF. -PB]  
1631 Wed Jun 22 13:49:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1633         * stdiostream.cc, stdiostream.h (stdiobuf::buffered):  New methods.
1635         * iofdopen.c (_IO_fdopen):  Various minor improvements.
1637         * iovfscanf.c:  Don't return EOF on control_failure.
1639 Tue Dec 21 13:02:48 1993  H.J. Lu  (hjl@nynexst.com)
1641         * iovfscanf.c:  Enforce the sequence of the conversion specifications.
1643 Fri Jun 17 20:57:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1645         * iofdopen.c:  Use fcntl to check that requested access mode is
1646         compatible with existing access mode, and to change the
1647         O_APPEND file status flag if need be.
1649 Thu Jun 16 17:33:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1651         * streambuf.h (ios::init):  Initialize all the fields.
1652         This may be overkill, but the current ANSI working paper requires it.
1653         * streambuf.h (ios::ios):  Reimplement in terms of ios::init.
1654         * iostream.cc (Non-default constructors istream::istream,
1655         ostream::ostream, iostream::iostream):  Cannot use a mem-initializer,
1656         because it is ignored if initializing a derived class.  Instead,
1657         call ios::init.
1659 Wed Jun 15 13:35:37 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1661         * stdstreams.cc (ISTREAM_DEF):  Fix typo (it's a _fake_istream, not
1662         a _fake_ostream).  Reported by Jason Shirk <jshirk@gomez.intel.com>.
1664         * stdiostream.h, stdiostream.cc (stdiobuf::~stdiobuf):  New.
1665         Call _IO_do_flush.
1666         * stdiostream.cc (stdiobuf::sync):  Call _IO_do_flush rather
1667         than filebuf::sync (to avoid bad seeks).
1669         * libioP.h (_IO_do_flush):  Add missing parentheses.
1671 Fri Jun  3 19:16:57 1994  Jason Merrill  (jason@deneb.cygnus.com)
1673         * config.shared (CXXFLAGS): Remove -fno-implicit-templates.
1675         * iomanip.h: Add explicit external instantiations.
1677 Wed Jun  1 14:14:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1679         * libio.h (struct _IO_FILE_plus):  Move definition from here ...
1680         * libioP.h (struct _IO_FILE_plus):  ... to here.  Since this
1681         file is private to the implementation, we can rename the fields
1682         from the implementor's to the user's name anme space.
1683         (This avoids a lossage on SCO, whose stdio.h has a #define _file.)
1684         * iofdopen.c, iofopen.c, stdfiles.c:  Fix field references accordingly.
1685         * iopopen.c (struct_IO_proc_file):  Rename fields from
1686         implementor's name space to user's, and update usages.
1687         * streambuf.h (streambuf::_vtable):  Re-implement to not need
1688         struct _IO_FILE_plus.
1689         * strfile.h (struct _IO_strfile_): Likewise.
1691 Wed Jun  1 13:57:48 1994  Jason Merrill  (jason@deneb.cygnus.com)
1693         * config.shared (CXXFLAGS): Use -fno-implicit-templates instead of
1694         -fexternal-templates.
1696 Tue May 31 08:49:28 1994  Mike Stump  (mrs@cygnus.com)
1698         * genops.c, iofclose.c, iofdopen.c, iofopen.c, iopopen.c: Be
1699         consistent about protecting #include <stdlib.h>.
1701         * ioputs.c: Add #include <string.h>, to avoid warning on alpha.
1703         * iofdopen.c: Add #include <stdlib.h>, so that malloc works on
1704         machines where sizeof(int) != sizeof(void *).
1706 Mon May 30 17:26:49 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1708         * pfstream.cc (ipfstream::ipfstream, opfstream::opfstream):
1709         Reverse sense of test of return value of procbuf::open.
1710         (It returns NULL on failure.)
1712         * filedoalloc.c (_IO_file_doallocate):  Remove dead code for
1713         USE_MALLOC_BUF.  Add code to return EOF if ALLOC_BUF fails.
1715 Sat May 28 13:47:47 1994  Jason Merrill  (jason@deneb.cygnus.com)
1717         * iomanip.cc: Explicitly instantiate smanip<int> and
1718         smanip<ios::fmtflags>.
1720 Wed May 25 16:04:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1722         * strfile.h:  Use __P instead of _PARAMS.
1724 Fri May 20 11:42:17 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1726         * libio.h: Rename _PARAMS macro to __P for better glibc and BSD
1727         compatibility.  (Also define _PARAMS for backwards compatibility.)
1728         * cleanup.c, iolibio.h, ioperror.c, iovfprintf.c, iovfscanf.c,
1729         libioP.h: Use __P instead of _PARAMS.
1730         * iostdio.h: Use __P instead of _ARGS.
1732         * fileops.c (_IO_file_read):  Minor stylistic tweak.  (It is
1733         preferable to test errno *after* the error return.)
1735 Fri May 13 15:25:36 1994  Jason Merrill  (jason@deneb.cygnus.com)
1737         * iostream.*: Add insertor and extractor for bool (just pretend
1738         it's an int).
1740 Fri May 13 14:12:03 1994  Mike Stump  (mrs@cygnus.com)
1742         * gen-params: Check for builtin bool support.
1744 Wed May 11 00:48:35 1994  Jason Merrill  (jason@deneb.cygnus.com)
1746         Make libg++ build with gcc -ansi -pedantic-errors
1747         * gen-params: #ifdef __STRICT_ANSI__, #define _G_NO_NRV.
1748         * pfstream.cc (ipfstream::ipfstream): Wrap use of variable-size
1749         array in #ifndef __STRICT_ANSI__.
1751 Fri May  6 12:42:21 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1753         * Makefile.in (VERSION):  Increase to 0.64.
1755         * isgetline.cc (istream::getline):  The delimiter should *not*
1756         be included in the gcount().
1758         * filedoalloc.c:  #include <stdlib.h> (If __STDC__) to get malloc.
1759         * iostream.h (ostream::put):  Remove overloaded versions, to match
1760         new working paper.  (Actually just put inside _STREAM_COMPAT, for now.)
1762 Tue May  3 14:14:57 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1764         * genops.c (_IO_default_finish):  Make robust when called
1765         multiple times on the same _IO_FILE*.  (One way this can
1766         happen is by the builtinbuf destructor being followed by the
1767         streambuf destructor.)
1769 Mon May  2 13:55:26 1994  Jason Merrill  (jason@deneb.cygnus.com)
1771         * gen-params: Actually determine wint_t rather than depending on
1772         cpp to provide it or defaulting to the underlying type for
1773         wchar_t.
1775 Sat Apr 30 14:47:30 1994  Jason Merrill  (jason@deneb.cygnus.com)
1777         * gen-params: Add _G_wint_t, allow __*_TYPE__ to override values
1778         at compile time, fix definition of _G_ARGS.
1780 Fri Apr 29 16:55:37 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1782         * libio.h: Remove #pragma interface.  (There is no implementation.)
1784 Mon Mar 28 14:22:26 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1786         * iostream.cc (ostream::operator<<(double)):  Add/fix support
1787         for printing '+' when ios::showpos is set.
1788         (Fixes bug reported by Doug Moore <dougm@cs.rice.edu>.)
1789         * iostream.cc (istream::read):  Set eofbit as well as failbit on eof.
1790         * iostream.cc (ostream::operator<<(int)):  Fix conversion
1791         to unsigned (used to lose on INT_MIN).
1792         * iostream.cc (ostream::operator<<(long)):  Use (unsigned long),
1793         rather than (unsigned) for temporary.
1795         * config.shared, Makefile.in:  Remove definitions and uses
1796         of XTRAFLAGS.  It is no longer needed, since it is
1797         now implied by the -B flag.
1799 Fri Mar 25 00:31:22 1994  Jason Merrill  (jason@deneb.cygnus.com)
1801         * builtinbuf.h: Add put /**/ around comment on trailing #endif.
1803         * Makefile.in (c++clean): Make clean in tests subdir, too.
1805 Wed Mar 23 16:42:09 1994  Doug Evans  (dje@canuck.cygnus.com)
1807         * configure.in: Remove Makefile.tem before creating it.
1808         Needed when configuring from read-only source trees.
1810 Wed Mar 16 14:06:42 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1812         * stdstreams.cc:  Fix so that stdiobuf are used for cin/cout/cerr,
1813         unless _STDIO_USES_IOSTREAM is defined.
1814         * filebuf.cc (filebuf::setbuf):  Fix confusion about return
1815         value from _IO_file_setbuf.
1817 Sun Mar 13 00:54:12 1994  Paul Eggert  (eggert@twinsun.com)
1819         * config.shared: Ensure that `all' precedes `.PHONY';
1820         BSDI 1.1 needs this.
1822 Sat Mar 12 03:58:00 1994  Paul Eggert  (eggert@twinsun.com)
1824         * config.shared: Output a definition of INSTALL that uses
1825         $${rootme}, not ${rootme}.  Most `make's don't care, but BSDI
1826         1.1 `make' does.
1828 Fri Mar  4 17:33:01 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1830         * iopopen.c:  #define _POSIX_SOURCE.
1831         * isgetline.c (istream::getline):  Various fixes.
1833 Thu Mar  3 17:58:20 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1835         * iostream.cc (write_int):  Fix test for when to add initial '0'
1836         when ios::oct and ios::showbase are set.
1837         For hex, showbase adds initial 0x (or 0X) regardless of val==0.
1838         Bugs reported by Phil Roth <proth@cs.uiuc.edu>.
1840 Mon Feb 21 13:18:20 1994  H.J. Lu  (hjl@nynexst.com)
1842         * libio.h (_IO_PENDING_OUTPUT_COUNT(_fp)): return the
1843         pending output count in _fp.
1845 Fri Feb 25 09:26:57 1994  Ian Lance Taylor  (ian@cygnus.com)
1847         * gen-params: For HAVE_SYS_WAIT, compile dummy.c, not dummy.C.
1849 Tue Feb 22 11:19:09 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1851         * streambuf.h, genops.c, libioP.h:  Rename references to
1852         _IO_FILE fields other_gbase => _IO_save_base,
1853         _aux_limit => _IO_backup_base, and _other_egptr => _IO_save_end.
1854         * libio.h:  Remove no-longer needed macros _other_gbase,
1855         _aux_limit, and _other_egptr.
1856         * genops.c (__underflow, _IO_default_finishh, _IO_unsave_markers):
1857         Check _IO_save_base for NULL before FREEing it or calling
1858         _IO_free_backup_area.
1860 Thu Feb 17 15:26:59 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1862         * gen-params:  Improve deduction of _G_uint32 and _G_int32.
1863         Should now work for 16-bit, 32-bit, or 64-bit targets.
1864         * gen-params:  Check for sys/wait.h using ${CC}, since it's
1865         now used in a C file, not a C++ file.
1866         * floatconv.c:  Typedef _G_uint32_t as unsigned32, and use
1867         unsigned32 in place of unsigned long.  (Needed for Alpha.)
1869 Tue Feb  8 13:40:15 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1871         * fileops.c (_IO_file_close_it):  Simplify by using _IO_do_flush.
1872         * fileops.c (_IO_file_finish):  Don't call _IO_file_close_it -
1873         do it inline.  Call _IO_do_flush even if _IO_DELETE_DONT_CLOSE.
1874         * fileops.c (_IO_file_attach):  Set _IO_DELETE_DONT_CLOSE.
1875         * genops.c (_IO_flush_all):  Only call overflow if there is
1876         something to write.
1877         * iofclose.c (_IO_fclose):  Check that magic number is correct,
1878         and clear it when done.  Avoids crashing some buggy applications.
1879         * iogetline.c (_IO_getline):  Don't gratuitously increment old_len.
1880         * iogets.c (_IO_gets):  Take care to get required ANSi semantics.
1882 Sun Feb  6 19:50:39 1994  Jason Merrill  (jason@deneb.cygnus.com)
1884         * iomanip.cc: Explicitly instantiate operator<< and >>.
1886 Fri Feb  4 12:28:22 1994  Jason Merrill  (jason@deneb.cygnus.com)
1888         * config.shared (CXXFLAGS): Use -fexternal-templates.
1890         * iomanip.h: Uncomment #pragma interface.
1892 Thu Jan 20 13:48:40 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1894         If no characters are read by fgets, ANSI C doesn't allow '\0' to
1895         be written to the buffer, but it is required by ANSI C++
1896         for istream::get and istream::getline.  Both use _IO_getline ...
1897         * iogetline.c (_IO_getline):  Don't write a '\0' at the end
1898         of the read data.  The input buffer length does not include
1899         space for a '\0'.
1900         * iofgets.c, iogets.c:  Change appropriately.
1901         Also check for _IO_ERR_SEEN, as required by ANSI.
1902         * isgetline.cc:  Update accordingly.
1904 Mon Jan 17 13:24:26 1994  Jason Merrill  (jason@deneb.cygnus.com)
1906         * Makefile.in (c++clean): Added target for compiler testing
1907         (i.e. make c++clean all).
1909 Mon Jan 10 11:20:42 1994  Per Bothner  (bothner@kalessin.cygnus.com)
1911         * libio.h (_IO_putc):  Add parentheses.
1912         Patch from Rik Faith <faith@cs.unc.edu>.
1914 Tue Jan  4 01:32:28 1993  Hongjiu Lu (hjl@nynexst.com)
1916         * genops.c (_IO_default_xsputn):
1917           (_IO_default_xsgetn):
1918         * ioignore.c: change "_IO_size_t count" to
1919           "_IO_ssize_t count".
1920         * iogetline.c: change "_IO_size_t len" to
1921           "_IO_ssize_t len".
1923 Mon Dec 20 00:31:21 1993  Per Bothner  (bothner@kalessin.cygnus.com)
1925         * config.shared (CXXINCLUDES):  Fix quoting of $(NOSTDINC).
1927 Sun Dec 19 21:03:45 1993  Per Bothner  (bothner@kalessin.cygnus.com)
1929         * Makefile.in (VERSION):  Increase to 0.63.
1931 Fri Dec 17 13:02:44 1993  Per Bothner  (bothner@kalessin.cygnus.com)
1933         * iofread.c (_IO_fread):  Return 0 if either size or count is 0.
1934         * iofwrite.c (_IO_fwrite):  Return 0 if either size or count is 0.
1935         (This is consistent with fread, and most implementations, but not
1936         with a literal reading of the ANSI spec.)
1937         * iovfscanf.c (_IO_vfscanf):  If got EOF while skipping spaces,
1938         set seen_eof and break (instead of returning).
1939         * sbscan.cc (streambuf::vscan):  Set error state before returning.
1940         * streambuf.h:  Add a forward declarations for class istream
1941         to work around a g++ vtable name mangling bug.  (Patch from
1942         harry@pdsrc.hilco.com via Jeffrey A Law <law@snake.cs.utah.edu>.)
1943         * NEWS:  New file.
1945 Sat Dec 11 16:21:08 1993  Per Bothner  (bothner@kalessin.cygnus.com)
1947         * iovfprintf.c (struct helper_file, _IO_helper_overflow,
1948         helper_vfprintf, _IO_helper_jumps):  New structs and functions.
1949         (_IO_vfprintf):  Use helper_vfprintf to make printing to
1950         unbuffered files more efficient.
1951         * genops.c (_IO_default_underflow), libioP.h:  New function.
1953         * iovsscanf.c (_IO_vsscanf):  The input string's length marks
1954         its logical end-of-file.
1956 Wed Dec  8 13:20:46 1993  Per Bothner  (bothner@kalessin.cygnus.com)
1958         * indstream.cc (indirectbuf::sync()):  Don't crash if get_stream()
1959         or put_stream() are NULL;  sync() both streams even if error.
1961 Sun Dec  5 19:24:29 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
1963         * iostreamP.h (convert_to_seekflags): Use _IO_seek_set instead of
1964         0 inside the conditial expressions.
1966         * iofsetpos.c (_IO_fsetpos): Delete unused var `pos'.
1968 Sat Dec  4 15:57:26 1993  Per Bothner  (bothner@kalessin.cygnus.com)
1970         * filedoalloc.c (_IO_file_doallocate):  Change type of couldbetty
1971         to int, and type of size to _IO_size_t, instead of size_t.
1972         (Change needed for Ultrix, which incorrectly deliberately doesn't
1973         define size_t in <sys/types.h> if _POSIX_SOURCE is defined.)
1975 Thu Dec  2 22:43:03 1993  Per Bothner  (bothner@kalessin.cygnus.com)
1977         * fileops.c (_IO_file_finish):  Remove redundant call to _IO_un_link.
1978         * iofclose.c (_IO_fclose):  Don't call fp->_jumps->__close;  it's
1979         too low-level.  Instead call _IO_file_close_it.
1980         * dbz/Makefile.in (rclean, distclean):  Add some missing files.
1982 Wed Dec  1 13:19:14 1993  Per Bothner  (bothner@kalessin.cygnus.com)
1984         * config/hpux.mt (MATH_H_INLINES): No longer define.
1985         Patch from Jeffrey A Law <law@snake.cs.utah.edu>.
1987 Fri Nov 26 13:28:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
1989         * config.shared (CINCLUDES):  Define default if libg++.
1990         * iofread.c:  Use _IO_sgetn.c.
1991         * iolibio.h (_IO_clearerr):  Fix typo.
1992         * genops.c (_IO_seekmark):  Return 0 on success.
1993         * floactconv.c (Binit):  Change to static.
1994         * iofclose.c (_IO_fclose):  Check if file is _IO_stdin, _IO_stdout,
1995         or _IO_stderr;  if so don't try to free it.  Fix from hjl@nynexst.com.
1997         * genops.c (_IO_default_sync), libioP.h:  New function.
1998         * libioP.h (_IO_default_close):  Use _IO_default_sync -same interface.
2000         * Makefile.in:  Increase version to 0.62.
2001         * iopopen.c (_IO_proc_close):  Use waitpid (available in libibarty,
2002         if needed), rather than wait.  Don't block/ignore SIGINT etc,
2003         as this is counter to Posix.2.
2004         * iopopen.c:  Chain open proc_files, and have the child close
2005         the ones that are open (as required by Posix.2).
2007         * fstream.h (fstreambase::rdbuf), strstream.h (strstreambase
2008         ::rdbuf):  Call ios::rdbuf() instead of getting _strbuf directly.
2010         * sbscan.cc (streambuf::vscan):  Comment out duplicate default arg.
2011         * floatconv.c:  Recognize Alpha and i860 as little-endian.
2012         * streambuf.cc:  Return two bogus value returns from void functions.
2013         * iolibio.h, iofwrite.c:  Fix buffer type to (const void*).
2014         * libio.h:  Predefine of struct _IO_FILE to help non-g++-compilers.
2015         * libioP.h, pfstream.cc, stdfiles.c, iovfscanf.c: Cleanup syntax junk.
2016         * stdstreams.cc:  Minor simplification.
2017         * streambuf.h, builtinbuf.cc:  Add non-const ios::_IO_fix_vtable()
2018         for temporary binary compatibility.
2020         * filedoalloc.c, fileops.c:  Add _POSIX_SOURCE.
2021         * fileops.c, iofopen.c, iofputs.c, iostream.cc, strops.c,
2022         strstream.cc, genops.c:  Add some missing #includes.
2023         * iofopen.c, iofdopen.c:  Return NULL if malloc fails.
2024         * iovfscanf.c:  Fix return type in strtol prototype.
2025         * fwrite.c:  Remove bogus file.
2027 Wed Nov 17 14:09:42 1993  Per Bothner  (bothner@cygnus.com)
2029         * builtinbuf.cc (ios::_IO_fix_vtable), streambuf.h:  Make method
2030         const, to reduce problems with -Wcast-qual.
2032 Tue Nov 16 19:30:42 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
2034         * config.shared (CXXINCLUDE): use ${} instead of $() for NOSTDINC
2036 Tue Nov 16 14:15:45 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2038         * iopopen.c (_IO_proc_close):  Re-structure to avoid
2039         declarations after statements.
2040         * floatconv.c:  If not __STDC__, #define DBL_MANT_DIG.
2041         * config/isc.mt (G_CONFIG_ARGS): Remove bogus spaces.
2042         Patch from David A. Avery <daa@nic.cerf.net>.
2044 Tue Nov 16 15:58:31 1993  Mark Eichin  (eichin@cygnus.com)
2046         * Makefile.in (_G_config.h): explicitly use $(SHELL) to run
2047         gen-params, since we know it is a script (we're explicitly looking
2048         in ${srcdir} for it) and /bin/sh might not be good enough.
2050 Mon Nov 15 13:26:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2052         * builtinbuf.cc:  Don't depend on initialization of static
2053         variable builtinbuf::vtable, since that might happen after
2054         we need it (for a static constructor).  Instead, initialize
2055         it when needed by inlining the code from get_builtin_vtable
2056         into ios::_IO_fix_vtable().
2058         * floatconv.c:  Avoid using #elif, which some C compilers lack.
2059         * iogetline.c, libioP.h:  Make char parameter be int, to avoid
2060         some default promotion anomalies.
2062 Fri Nov  5 11:49:46 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2064         * config.shared (do-clean-dvi):  Remove TeX work files.
2065         * iopopen.c (extern _IO_fork):  Don't use parameter type void.
2066         * strops.c (_IO_str_init_static):  Clear the allocate_buffer
2067         function pointer, to mark the strfile as being static.
2068         Bug fix from Mike Raisbeck <mike@pudding.rtr.COM>.
2070 Thu Nov  4 10:44:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2072         * filebuf.cc (filebuf:): Use sseekoff rather than seekoff
2073         (which loses if vtable pointer is NULL).
2075         * iostream.cc (ostream::operator<<(long long n)):  Fix thinko.
2077         * Makefile.in (VERSION):  Increase to 0.60.
2078         * Makefile.in (IO_OBJECTS):  Added iopopen.o.
2079         * config.shared (DISTCLEAN):  Also remove Make.pack.
2080         * config.shared (CXXINCLUDES):  Add $(NOSTDINC).
2082         * config.shared (INSTALL):  Fix so it ues the correct install.sh
2083         whether $srcdir is absolute or relative.
2085         * floatconv.c (DBL_MAX_10_EXP): Fix default value.
2087 Wed Nov  3 10:20:49 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2089         * gen-params:  Make more robust to allow random junk (NeXT
2090         has spaces) before typedefs.
2092         * fileops.c (_IO_file_overflow):  Reduce code duplication.
2093         * Makefile.in (IO_OBJECTS):  Remove ioputs.o.
2095         * iovfscanf.c, libio.h:  Extra parameter to _IO_vfscanf,
2096         for optionally setting an error indication..
2097         * iofscanf.c, ioscanf.c, iofscanf.c, iovsscanf.c:  Fix calls to
2098         _IO_vfscanf to pass an extra NULL.
2099         * sbscan.cc (streambuf::vscan):  If passed an extra stream,
2100         set its error state (using new _IO_vfscanf parameter.
2102         * filedoalloc.c, fileops.c, genops.c, iogetline.c, ioignore.c,
2103         libio.h, libioP.h, streambuf.cc streambuf.h, strfile.h, strops.c,
2104         strstream.cc:  Replace macros (_base, _ebuf, _eback, _gptr, _egptr,
2105         _pbase, _pptr, _epptr) by field names (_IO_buf_base, _IO_buf_end,
2106         _IO_read_base, _IO_read_pre, IO_read_end, _IO_write_base,
2107         _IO_write_ptr, _IO_write_end).
2108         * libio.h:  Remove the old macros (which fixes a conflict.
2109         
2110 Mon Nov  1 15:22:12 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2112         * iostream.cc:  Use _IO_sputn instead of sputn.  _IO_sputn does
2113         not require a vtable pointer, and is also slightly faster.
2115         * builtinbuf.{h,cc} (builtinbuf::setbuf):  Fix return and
2116         parameter types.
2118 Mon Oct 25 12:56:33 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2120         Kludge to make sure _IO_FILE buffers get flushed before exit.
2121         * dbz/dbzmain.c, dbz/fake.c, dbz/byteflip.c:
2122         Invoke DBZ_FINISH macro (if defined) before (normal) exits.
2123         * dbz/Makefile.in (CFLAGS):  Define DBZ_FINISH to call _IO_flush_all.
2125 Sat Oct 23 22:10:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2127         * Makefile.in (VERSION):  Set to 0.60 for libg++ release.
2128         * fileops.c (_IO_file_attach):  Set _offset to _IO_pos_BAD.
2129         * iostream.cc (ostream::flush):  Fix thinkp.
2130         * editbuf.cc, isgetsb.cc, isscan.cc, osform.cc, parsestream.cc,
2131         pfstream.cc, sbform.cc, sbscan.cc, stdstreams.cc, stream.cc:
2132         Replace #include "ioprivate.h" by #include "libioP.h" (and
2133         sometimes stdarg.h, stdlib.h and/or string.h).
2134         * ioprivate.h:  Removed.
2137 Thu Oct 21 19:24:02 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2139         * PlotFile.h, SFile.h, editbuf.cc, editbuf.h, filebuf.cc,
2140         fstream.cc, fstream.h, indstream.cc, indstream.h, iomanip.cc,
2141         iomanip.h, ioprivate.h, iostream.cc, iostream.h, isgetline.cc,
2142         isgetsb.cc, parsestream.cc, parsestream.h, pfstream.cc,
2143         pfstream.h, procbuf.cc, procbuf.h, stdiostream.cc, stdiostream.h,
2144         stdstreams.cc, streambuf.cc, streambuf.h, strstream.cc,
2145         strstream.h:  Remove old (duplicate) copyright notices.
2147         * iostream.cc:  Fix calls to sync() to be safe in the presence
2148         of vtable-less streambufs.
2150 Wed Oct 20 15:22:04 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2152         * streambuf.h (streambuf::underflow, streambuf::overflow): 
2153         Don't make virtual functions pure.
2154         * streambuf.cc (streambuf::underflow, streambuf::overflow):
2155         Default definitions (return EOF).
2156         * fstream.h:  Add new (int fd, char* buf, int len) constructors.
2157         These are deprecated, but added for AT&T compatibility.
2158         * fstream.cc fstreambase::fstreambase(int fd, char *p, int l): New.
2160 Thu Oct 14 14:57:01 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
2162         * configure.in: use 'mv -f' instead of 'mv'
2164 Tue Oct 12 05:01:44 1993  Mike Stump  (mrs@cygnus.com)
2166         * floatconv.c: Fix typo, change __STDC to __STDC__.
2168 Mon Oct 11 17:03:12 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2170         * cleanup.c:  It should be #if _G_HAVE_ATEXIT, not #ifdef.
2172         * floatconv.c, iostrerror.c, iovfprintf.c, iovfscanf.c, libioP.h:
2173         Bunch of fixes to allow use of non-ANSI (K&R) C compilers.
2175         * Makefile.in (iostream.list):  Use CC=$(CXX) to force use of gcc.
2176         * README:  New file.
2178 Fri Oct  8 16:19:58 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2180         * Makefile.in:  Move ioungetc.o from STDIO_WRAP_OBJECTS to
2181         IO_OBJECTS (since it is needed for iovfscanf.c).
2182         * iostrerror.c:  Add declaration of strerror.
2184 Thu Oct  7 12:02:28 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2186         * cleanup.c:  New file, to cause flushing at exit.
2187         * filedoalloc.c:  Cause flushing on exit.
2188         * Makefile.in (OSPRIM_OBJECTS):  Add cleanup.o.
2189         * gen-params:  Check for atexit.
2191 Tue Oct  5 19:11:14 1993  Mike Stump  (mrs@cygnus.com)
2193         * ioperror.c (_IO_strerror): Add missing ()s in _PARAMS usage.
2195 Tue Oct  5 10:33:37 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2197         * iofprintf.c, iofscanf.c, ioprintf.c, ioscanf.c, iosprintf.c,
2198         iosscanf.c:  Remove bogus semi-colon after va_dcl.
2199         * ioperror.c:  Fix typos in declaration.
2201 Mon Oct  4 17:12:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2203         * configure.in (CLEAN):  Define (as _G_config.h *.a).
2205         * fileops.c (_IO_file_read):  Don't assume EINTR is defined.
2206         * iosetbuf.c:  Replace by generalized ...
2207         * iosetbuffer.c:  ... variant, derived from BSD.
2208         * Makefile.in (STDIO_WRAP_OBJECTS):  Change correspondingly.
2209         * iosetvbuf.c (iosetvbuf):  Minor ANSI tweak.
2210         * iostdio.h (setbuf, setlinebuf):  New #defines.
2211         * iolibio.h (_IO_setbuf, _IO_setlinebuf):  (Re-)define as macros.
2212         * Makefile.in (LIBIO_OBJECTS):  New macro.
2214 Tue Sep 28 14:15:52 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2216         * libioP.h (_IO_proc_open, _IO_proc_close): Add missing return types.
2217         * procbuf.cc:  Belated fixes.
2219 Mon Sep 27 14:04:47 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2221         * Makefile.in: List new files.  Add STDIO_WRAP_OBJECTS macro.
2222         * floatconv.c (d2b):  Use Exp_msk11 instead of Exp_msk1.
2223         * iofgetpos.c (_IO_fgetpos), iofsetpos.c (_IO_fsetpos):  Clean up.
2224         * iolibio.h:  New file.  Declarations of _IO_foo, for most foo
2225         where foo is a stdio function.  (Remove these from libio.h.)
2226         * iostream.h (istream::istreambuf, ostream::ostreambuf):  Move
2227         obsolete functions inside #ifdef _STREAM_COMPAT.
2228         * libio.h, libioP.h, streambuf.h, parsestream.h, stdiostream.h:
2229         Use _IO_fpos_t rather than _IO_pos_t.
2230         * iopopen.c:  New file type, for pipe (popen-like) streams.
2231         * procbuf.cc:  Now just a C++ wrapper for the files in iopopen.c.
2232         * streambuf.h (ios::unsetf):  Return complete old value of flags.
2233         * iogets.c (_IO_gets(), ioungetc.c (_IO_ungetc), ioperror.c
2234         (_IO_perror), iostrerror.c (_IO_strerror):  New files and 
2235         functions, for stdio implementation.
2236         * iostdio.h:  Add declarations for various recently-added functions.
2238 Sun Sep 12 14:24:55 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2240         * streambuf.h (ios::showpos):: Fix typo.
2242 Fri Aug 27 12:05:47 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2244         * iopadn.c (_IO_padn):  Change to return count of chars written.
2245         * outfloat.c, iovfprintf.c:  Change for new _IO_padn interface.
2246         * iostream.cc (ostream::operator<<):  Make sure to set badbit
2247         on a failure (many places).  Use _IO_padn more.
2248         * iostream.cc (ostream& ostream::operator<<(const void *p):  Move to
2249         * osform.cc:  ... here, to reduce linking-in-the-world syndrome.
2250         * osform.cc: Use rdbuf(), instead of _strbuf directly.
2252         * genops.c (_IO_sgetn), libio.h:  New function.
2253         * streambuf.h (streambuf.h::sgetn):  Use _IO_sgetn.
2254         * SFile.cc (SFile::operator[]):  Use sseekoff, not seekoff.
2256 Thu Aug 26 10:16:31 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
2258         * config.shared (SUBDIRS): only recurse if the directory is configured
2260 Wed Aug 25 12:56:12 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2262         * config/{hpux.mt, isc.mt, sco4.mt}:
2263         Moved from ../libg++/config (since they affect _G_config.h).
2264         * configure.in:  Set target_make_frag to one of the above files.
2266 Fri Aug 20 00:53:14 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2268         * iofopen.c (iofopen):  Fix type passed to _IO_un_link().
2269         * Makefile.in (_G_config.h):  Pass $CC (not $CXX) as CC.
2271         * configure.in (configdirs):  Add dbz and stdio.
2272         * fileops.c (_IO_file_seekoff):  Convert more old functionality.
2273         * iofdopen.c:  Use mode parameter to set _flags.
2274         * iofscanf.c, ioputs.c, ioscanf.c, iosprintf.c:  New files.
2275         * Makefile.in (IO_OBJECTS):  Added new objects.
2276         * iostdio.h:  Add feof. fscanf, puts, sprintf, vsprintf.
2277         * libio.h:  Add _IO_vprintf macro.
2278         * iofopen.c:  Invoke _IO_un_link if failure.
2279         * iovsprintf.c:  Write terminating NUL.
2281         * libioP.h:  Add COERCE_FILE macro (by default does nothing).
2282         * iofclose.c, iofflush.c, iofgets.c, iofprintf.c, iofputs.c,
2283         iofread.c, ioftell.c, iofwrite.c, iosetbuf.c, iosetvbuf.c:
2284         Invoke COERCE_FILE macro.
2285         * ioftell.c:  Use _IO_seekoff.
2287 Wed Aug 18 22:49:56 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2289         * sbform.cc (streambuf::form), sbscan.cc (streambuf::scan):
2290         Remove cast to _IO_va_list.  (Loses if array type.)
2292         * libio.h:  Handle _IO_va_list for systems that need <stdarg.h>.
2293         * floatconv.h:  Fix typo (reported by H.J.Lu).
2295 Wed Aug 18 19:34:04 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
2297         * configure.in (INSTALLDIR): handle native vs. cross case
2299         * Makefile.in (install): don't use $TARGETLIB, set INSTALLDIR to
2300         $(libdir) 
2302 Wed Aug 18 12:10:03 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2304         * Makefile.in:  Rename iostream-files to iostream.list.
2305         * configure.in:  Add iostream.list to MOSTLYCLEAN.
2307 Tue Aug 17 18:56:59 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2309         * Makefile.in:  Depend on _G_config.h where appropriate.
2310         * config.shared (CXXINCLUDES):  If doing libg++, search ../libio.
2312 Tue Aug 17 17:34:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
2314         New directory.  Based on old libg++/iostream code,
2315         but extensively re-written.