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