1 Fri Feb 13 00:57:20 1998 Krister Walfridsson (cato@df.lth.se)
3 * fileops.c: #include <unistd.h>.
6 1998-02-10 Mark Mitchell <mmitchell@usa.net>
8 * iostream.cc (ostream::operator<<(long double)): Don't use
11 Fri Feb 6 01:35:56 1998 Manfred Hollstein <manfred@s-direktnet.de>
13 * config.shared (FLAGS_TO_PASS): Don't emit PICFLAG.
14 (.c.o): Check value of enable_shared, not PICFLAG.
19 1998-01-20 Andreas Schwab (schwab@issan.informatik.uni-dortmund.de)
21 * iostream.cc (istream::operator>>(long double&))
22 [!_G_HAVE_LONG_DOUBLE_IO]: Scan value into separate variable, in
23 case long double is bigger than double.
24 (ostream::operator<<(double)) [_G_HAVE_PRINTF_FP]: Fix order of
25 initializers of struct printf_info to match declaration order,
26 to work around g++ bug.
27 (ostream::operator<<(long double)) [_G_HAVE_PRINTF_FP]: Likewise.
29 * gen-params: Add missing quotes. Avoid useless use of command
32 Sun Feb 1 13:29:47 1998 H.J. Lu (hjl@gnu.org)
34 * filebuf.cc (filebuf::open): Call _IO_file_open if
35 _G_HAVE_IO_FILE_OPEN is 1.
37 * libio.h (_IO_fpos64_t, _IO_off64_t): Defined if
38 _G_IO_IO_FILE_VERSION == 0x20001.
40 * libioP.h (_IO_file_open): New declaration.
42 * libio.h (_IO_FILE, _IO_stdin_, _IO_stdout_, _IO_stderr_,
43 _IO_seekoff, _IO_seekpos): Add support for libio in glibc 2.1.
44 * libioP.h (_IO_seekoff_t, _IO_seekpos_t, _IO_seek_t,
45 _IO_seekoff, _IO_seekpos, _IO_default_seekoff,
46 _IO_default_seekpos, _IO_default_seek, _IO_file_seekoff,
47 _IO_file_seek, _IO_str_seekoff, _IO_pos_BAD, _IO_pos_as_off,
49 * streambuf.h (streamoff, streampos): Ditto.
51 * gen-params (__extension__): Use only if gcc version >= 2.8.
53 Sun Feb 1 13:08:18 1998 Krister Walfridsson (cato@df.lth.se)
55 * dbz/dbz.c (putconf): Handle systems which use "long long" as type
57 * dbz/dbzmain.c (mkfiles): Likewise.
59 Wed Jan 28 10:27:11 1998 Manfred Hollstein <manfred@s-direktnet.de>
61 * config.shared (FLAGS_TO_PASS): Add gxx_include_dir.
63 * stdio/configure.in, tests/configure.in: Update with yesterday's
64 toplevel configure.in changes.
65 * testsuite/configure.in: Likewise.
67 * config.shared: Fix typo in yesterday's changes.
69 Tue Jan 27 23:26:07 1998 Manfred Hollstein <manfred@s-direktnet.de>
71 * config.shared: Emit everything which needs to be re-definable
72 via file descriptor 1; the generic stuff is emitted using redirection
75 * configure.in (package_makefile_rules_frag): New variable
76 which is used in the call to config.shared; redirect file descriptor 2
77 to ${package_makefile_rules_frag}.
79 Tue Jan 27 10:35:22 1998 H.J. Lu (hjl@gnu.org)
81 * configure.in (topsrcdir): New.
82 (CHECK_SUBDIRS, configdirs): Check ${topsrcdir}/gcc instead.
83 (config-ml.in): Use ${topsrcdir}/config-ml.in.
85 * tests/configure.in (topsrcdir): New.
86 (CHECK): Check ${topsrcdir}/gcc instead.
88 Fri Jan 16 00:48:03 1998 Manfred Hollstein <manfred@lts.sel.alcatel.de>
90 * config.shared (FLAGS_TO_PASS): Add SHELL.
92 Tue Jan 13 21:30:33 1998 H.J. Lu (hjl@gnu.org)
94 * configure.in (CHECK_SUBDIRS): Set to testsuite only if
95 ${srcdir}/../gcc exists.
96 (configdirs): Include testsuite only if ${srcdir}/../gcc exists.
98 * tests/Makefile.in (check): Depend on $(CHECK).
100 * tests/configure.in (CHECK): Set to "check-iostream
101 check-stdio" if ${srcdir}/../../gcc doesn't exists.
103 1997-12-12 Brendan Kehoe <brendan@lisa.cygnus.com>
105 Don't make gperf depend upon libg++.
106 * config.shared (TOLIBGCXX) [DOING_GPERF]: Delete.
107 (LIBS) [DOING_GPERF]: Make it just `-L../libstdc++ -lstdc++'.
109 Thu Dec 11 11:20:59 1997 H.J. Lu (hjl@gnu.org)
111 * configure.in (target frags): Add *-linux-gnu.
113 Fri Dec 5 16:22:15 1997 H.J. Lu (hjl@gnu.org)
115 * streambuf.cc (streambuf::~streambuf): Don't delete _lock
116 for _IO_stdin/_IO_stdout/_IO_stderr.
118 Thu Nov 27 01:32:43 1997 Jeffrey A Law (law@cygnus.com)
120 * Makefile.in (install): Change gxx_includedir to gcc_include_dir.
121 * config.shared (gxx_includedir): Remove default definition.
122 * config/linux.mt: Change gxx_includedir to gxx_include_dir.
123 * config/linuxaxp1.mt: Likewise.
125 Wed Nov 26 16:08:50 1997 Richard Henderson (rth@cygnus.com)
127 * configure.in (target frags): Add powerpc*-linux-gnulibc1.
128 (stdio-lock): Similarly.
130 * configure.in (target frags): Add alpha*-linux-gnulibc1.
131 (pic frags): Its alpha*- not alpha-.
132 (stdio-lock): Kill everything. Add alpha*-linux-gnulibc1.
133 * libio.h: Check __GLIBC_MINOR__ to find stdio-lock.h. If not
134 _IO_MTSAFE_IO & GLIBC, make sure the lock pointer is still there.
135 * libioP.h: Check __GLIBC_MINOR__ to find libc-lock.h.
137 * config/linuxaxp1-libc-lock.h: New file.
138 * config/linuxaxp1-stdio-lock.h: New file.
139 * config/linuxaxp1.mt: New file.
141 * gen-params (va_list): Check for and use __gnuc_va_list.
142 (NULL): Work around some linux kernel headers and redefine NULL.
144 Mon Nov 24 17:04:18 1997 Michael Meissner <meissner@cygnus.com>
146 * stdiostream.cc (sys_read): Declare ch with int type, rather than
149 Tue Nov 18 09:53:58 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
151 * stdstrbufs.cc (DEF_STDFILE): Use STD_VTABLE.
153 Tue Nov 11 01:40:17 1997 Oleg Krivosheev <kriol@fnal.gov>
155 * iomanip.h: Fix guiding decls.
157 1997-11-05 Brendan Kehoe <brendan@lisa.cygnus.com>
159 * libio.h (__P): Name its arg `p' instead of `params'.
160 Avoids problems with an unchanged Solaris math.h header.
162 Wed Oct 29 23:01:47 1997 Jason Merrill <jason@yorick.cygnus.com>
164 * gen-params: Override NULL.
166 1997-10-27 03:53 Ulrich Drepper <drepper@cygnus.com>
168 * stdio-lock.h: Removed. Was never needed.
170 Wed Oct 22 19:19:32 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
172 * libio.h (_IO_LOCK_T): Handle glibc 2 when _IO_MTSAFE_IO is
175 * iovsscanf.c (vsscanf): Make it weak alias of _IO_vsscanf if
176 __linux__ is defined instead of __ELF__
178 * config/linuxlibc1.mt (USER_INCLUDES): Add libio.h.
180 1997-10-15 Ulrich Drepper <drepper@cygnus.com>
182 * configure.in: Create compatibility code in bits/libc-lock.h file.
184 Thu Oct 9 07:08:41 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
186 * libio.h (_IO_LOCK_T): Handle glibc 2 when _IO_MTSAFE_IO is
189 * filedoalloc.c (_IO_file_doallocate): Don't call
190 _IO_cleanup_registration_needed if __linux__ is defined.
192 * iofclose.c (fclose): Make it weak alias of _IO_fclose if
195 * iovsprintf.c (vsprintf): Make it weak alias of _IO_vsprintf
196 if __ELF__ is defined.
198 * iovsscanf.c (vsscanf): Make it weak alias of _IO_vsscanf if
201 * config/linuxlibc1.mt (MT_CFLAGS): Defined as -D_G_HAVE_MMAP.
202 (IO_OBJECTS): Add filedoalloc.o fileops.o genops.o iofclose.o
203 iovsprintf.o iovsscanf.o strops.o.
205 Fri Oct 3 10:13:13 1997 Jason Merrill <jason@yorick.cygnus.com>
207 * iostream.cc, libio.h: Convert other uses of #ifdef
208 _G_HAVE_PRINTF_FP to #if.
210 1997-10-02 Brendan Kehoe <brendan@lisa.cygnus.com>
212 * iostream.cc (operator<<): Use `#if _G_HAVE_PRINTF_FP', not ifdef.
214 Thu Oct 2 10:36:49 1997 Jason Merrill <jason@yorick.cygnus.com>
216 * gen-params: Fix __printf_fp test.
217 * config/linuxlibc1.mt (gxx_includedir): Don't define.
219 Thu Oct 2 10:36:26 1997 Ulrich Drepper <drepper@rtl.cygnus.com>
221 * config/linuxlibc1.mt (_G_CONFIG_H): Don't define.
222 * gen-params: Add test for __printf_fp.
224 Sun Sep 28 12:09:04 1997 Mark Mitchell <mmitchell@usa.net>
226 * iomanip.h: Use new friend <> syntax.
228 Sun Sep 28 12:04:21 1997 Jason Merrill <jason@yorick.cygnus.com>
230 * libio.h: Don't use _IO_LOCK_T if it's not defined.
232 Fri Sep 26 20:56:41 1997
234 Based on a patch by H.J. Lu (hjl@gnu.ai.mit.edu).
236 * Makefile.in (STDIO_OBJECTS): New. Defined as stdfiles.o.
237 (LIBIO_OBJECTS): Add $(STDIO_OBJECTS).
238 (PICFLAG): New, empty. moved to here from config.shared.
240 * config.shared (DISTCLEAN): Add target-mkfrag.
243 * configure.in (*-linux-gnulibc1): Remove warning.
244 (*-linux-gnu): Use linux.mt mtsafe.mt.
245 (alpha-*-linux*): Use mh-elfalphapic.
247 * gen-params (_G_ullong): Also check unsigned long long int.
248 (_G_llong): Also check long long int.
250 * libio.h (_IO_lock_t): Add support for the Linux libc 5.
251 (_IO_peekc): Defined as _IO_peekc_unlocked if _IO_MTSAFE_IO
254 * iostream.cc (__cvt_double): Fix a typo in declaration.
255 (info): Use expr != 0 to initialize the bit fields. Don't
256 initialize "extra" for the Linux libc 5.
258 * streambuf.h (_G_NEED_STDARG_H): Changed from _IO_NEED_STDARG_H.
260 * config/linux.mt (STDIO_OBJECTS): New, empty.
261 (MT_CFLAGS): Removed.
263 * config/linuxlibc1.mt: Rewrite. it's identical to linux.mt but
264 IO_OBJECTS mentions files not in early libc5 versions.
266 * config/mtsafe.mt: New.
268 * dbz/Makefile.in (check): Support make -j.
270 * tests/tFile.cc (tempfile): Fix a typo.
272 1997-09-19 11:52 Jim Wilson <wilson@cygnus.com>
274 * Makefile.in (LIBIO_OBJECTS): Depend on _G_CONFIG_H.
276 1997-09-17 04:08 Ulrich Drepper <drepper@cygnus.com>
278 * iostream.cc: Add forward declaration for __cvt_double.
279 * libio.h: Define _IO_USE_DTOA is _G_HAVE_PRINTF_FP is not defined.
280 * strops.c (_IO_str_count): Correct last change.
282 1997-09-17 02:50 Ulrich Drepper <drepper@cygnus.com>
284 * libioP.h: Define __set_errno if not already defined.
286 1997-09-15 02:37 Ulrich Drepper <drepper@cygnus.com>
288 * config/linux.mt: Rewrite for use with glibc 2.
289 * config/linuxlibc1.mt: Old content of linux.mt, fir libc4 and
292 * config.shared (COMPILE.c): Allow new flags in MT_CFLAGS be
294 (COMPILE.cc): Likewise.
296 * configure.in (*-linux*): Remove goal. We now have...
297 (*-linux-gnulibc1): For libc4 and libc5. Emit warning.
298 (*-linux-gnu)): For glibc 2.
299 Create links to find headers for multi-threading if necessary.
301 * fileops.c: Make thread-safe by using _IO_cleanup_region_start
302 etc to handle cancelation. Acquire locks in functions which are
304 (_IO_file_read, _IO_file_write): Remove dead code.
306 * include/empty.h: Define stub macros for locking.
308 * iolibio.h: Add prototypes for obstack printing functions.
310 * ioseekoff.c (_IO_seekoff): Lock stream before working.
311 * ioseekpos.c (_IO_seekpos): Likewise.
313 * iostream.cc: Add support for long double I/O.
314 Use __printf_fp from glibc is available.
315 Use _IO_cleanup_region_start to handle cancelation correctly.
316 * iostream.h (class ostream): Change opfx and osfx to lock/unlock
318 (class istream): Likewise for ipfx, ipfx0, ipfx1, and isfx.
319 Declare new function lock and unlock for ostream and istream.
320 * osform.cc: Use _IO_cleanup_region_start to handle cancelation
323 * libio.h: Update from glibc version. Pretty printing.
324 * libioP.h: Likewise.
326 * outfloat.c: Only compile if _IO_USE_DTOA is defined.
328 * stdio/feof.c: Make thread safe.
329 * stdio/ferror.c: Likewise.
330 * stdio/getc.c : Likewise.
331 * stdio/putc.c : Likewise.
332 * stdio/stdio.h: Declare function of thread-safe API.
334 * stdio/obprintf.c: New file.
335 * stdio/vasprintf.c: New file.
337 * stdio-lock.h: Removed.
339 * stdstrbufs.c: Add definitions for thread-safe streams.
341 * streambuf.cc: Initialize lock.
343 * strops.c (_IO_str_count): Undo last change.
345 * tests/tFile.cc: Support parallel builds by avoiding fixed
348 Thu Sep 11 18:43:56 1997 Jason Merrill <jason@yorick.cygnus.com>
350 * Makefile.in (iostream.list): Remove STDIO_WRAP_OBJECTS.
352 Mon Sep 8 01:30:27 1997 Weiwen Liu <liu@hepunix.physics.yale.edu>
356 Sun Sep 7 23:00:18 1997 Jim Wilson (wilson@cygnus.com)
358 * linux.mt (LIBIOSTREAM_DEP): Change stdio.list to stmp-stdio.
360 Fri Sep 5 09:58:43 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
362 * Makefile.in (iostream.list): Instead of adding stdio.list, add
364 (iostream.list): Lose dependency on stmp-stdio, not necessary for
365 our stuff. The stdio stuff is present here just for uniformity
368 Thu Sep 4 17:26:22 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
370 * parsestream.cc (general_parsebuf): Cast return of malloc to char*.
372 1997-09-04 16:11 Ulrich Drepper <drepper@cygnus.com>
374 Change compared to version initially intended to in:
375 * strops.c (_IO_str_count): Still use _IO_write_ptr, not
376 _IO_write_end, for now.
378 * iofeof.c, ioferror.c, iofflush_u.c, iogetc.c, ioputc.c, peekc.c,
379 stdio-lock.h: New files.
382 * include/empty.h: New header.
384 * filedoalloc.c: Update and reformat copyright.
386 Use __set_errno throughout the code to support multi-threaded
388 Correct layout to follow the Coding Standard.
389 Add casts to prevent warnings.
390 * fileops.c: Likewise.
391 * genops.c: Likewise.
392 * iofclose.c: Likewise.
393 * iofdopen.c: Likewise.
394 * iofflush.c: Likewise.
395 * iofgetpos.c: Likewise.
396 * iofgets.c: Likewise.
397 * iofopen.c: Likewise.
398 * iofprintf.c: Likewise.
399 * iofputs.c: Likewise.
400 * iofread.c: Likewise.
401 * iofsetpos.c: Likewise.
402 * ioftell.c: Likewise.
403 * iofwrite.c: Likewise.
404 * iogetdelim.c: Likewise.
405 * iogetline.c: Likewise.
406 * iogets.c: Likewise.
407 * iopadn.c: Likewise.
408 * iopopen.c: Likewise.
409 * ioputs.c: Likewise.
410 * ioseekoff.c: Likewise.
411 * iosetbuffer.c: Likewise.
412 * iosetvbuf.c: Likewise.
413 * iosprintf.c: Likewise.
414 * ioungetc.c: Likewise.
415 * iovsprintf.c: Likewise.
416 * iovsscanf.c: Likewise.
418 * libioP.h: Likewise.
419 * stdfiles.c: Likewise.
420 * strfile.h: Likewise.
421 * strops.c: Likewise.
423 * Makefile.in (IO_OBJECTS): Add peekc.o, iogetc.o, ioputc.o,
424 iofeof.o, and ioferror.o.
425 (iostream.list): Depend upon stmp-stdio. Add the entries
426 from stdio.list to iostream.list.
427 (stmp-stdio): New name for what was the stdio/stdio.list rule.
428 All it now does is cd down into stdio and build stdio.list.
430 * configure.in (ALL): Add libiostream.a.
432 * libio.h [_IO_MTSFE_IO]: Include header declaring locking code.
433 Otherwise define opaque _IO_lock_t.
434 Define _IO_cookie_file.
435 Rename _IO_getc to _IO_getc_unlocked, _IO_peekc to _IO_peekc_unlocked,
436 _IO_putc to _IO_putc_unlocked, _IO_feof to _IO_feof_unclocked, and
437 _IO_ferror to _IO_ferror_unlocked.
438 Add prototypes for _IO_getc, _IO_putc, _IO_feof, _IO_ferror,
439 and _IO_peekc_locked.
440 Add declarations for _IO_flockfile, _IO_funlockfile, and
441 _IO_ftrylockfile. If !_IO_MTSAFE_IO define _IO_flockfile,
442 _IO_funlockfile, _IO_ftrylockfile, _IO_cleanup_region_start, and
443 _IO_cleanup_region_end as empty macros.
445 * libioP.h: Change type of finish function to take an additional int
446 argument and change declaration of finish functions.
447 Add prototypes for _IO_seekoff and _IO_seekpos.
448 If _G_HAVE_MMAP is defined use stream buffers allocated with mmap.
449 Redefine FREE_BUF and ALLOC_BUF macros to help in both situations.
450 (FILEBUF_LITERAL): If we compile for a thread-safe library also
451 initialize lock member.
453 * filedoalloc.c: Take care for systems already defining _POSIX_SOURCE.
454 Keep name space clean on systems which require this.
455 (_IO_file_doallocate): Adopt ALLOC_BUF call for changed semantic.
457 * fileops.c: Keep name space clean on systems which require this.
458 (_IO_file_attach): Don't fail if seek failed because it's used on a
460 (_IO_file_underflow): Update buffer pointers before calling `read'
461 since the `read' might not return anymore.
462 (_IO_file_overflow): If stream allows no writes set error flag.
463 (_IO_seekoff): Make sure that after flushing the file pointer in
464 the underlying file is exact.
465 (_IO_file_read): Don't restart `read' syscall if it return EINTR.
467 (_IO_file_write): Likewise for `write'.
468 (_IO_cleanup): Install as exit handler in glibc.
470 * genops.c (_IO_setb): Correctly use FREE_BUF.
471 (_IO_default_doallocate): Correctly use ALLOC_BUF.
472 (_IO_init): Initialize lock in stream structure.
473 (_IO_default_finish): Destroy lock.
474 (_IO_get_column): Don't compile since it's not needed.
475 (_IO_nobackup_default): Likewise.
477 * iopopen.c: Take care for systems already defining _POSIX_SOURCE.
478 Correct _IO_fork and _IO_dup2 prototypes.
480 * iofclose.c: Acquire lock before starting the work.
481 * iofflush.c: Likewise.
482 * iofgetpos.c: Likewise.
483 * iofgets.c: Likewise.
484 * iofputs.c: Likewise.
485 * iofread.c: Likewise.
486 * iofsetpos.c: Likewise.
487 * ioftell.c: Likewise.
488 * iofwrite.c: Likewise.
489 * iogetdelim.c: Likewise.
490 * iogets.c: Likewise.
491 * ioputs.c: Likewise.
492 * iosetbuffer.c: Likewise.
493 * iosetvbuf.c: Likewise.
494 * ioungetc.c: Likewise.
496 * iofdopen.c: Create and initialize lock for new stream.
497 * iofopen.c: Likewise.
498 * iopopen.c (_IO_popen): Likewise.
499 * iovsprintf.c: Likewise.
500 * iovsscanf.c: Likewise.
502 * genops.c: Make weak aliases for various functions.
503 * iofclose.c: Likewise.
504 * iofdopen.c: Likewise.
505 * iofflush.c: Likewise.
506 * iofgetpos.c: Likewise.
507 * iofgets.c: Likewise.
508 * iofopen.c: Likewise.
509 * iofputs.c: Likewise.
510 * iofread.c: Likewise.
511 * iofsetpos.c: Likewise.
512 * ioftell.c: Likewise.
513 * iofwrite.c: Likewise.
514 * iogetdelim.c: Likewise.
515 * iogets.c: Likewise.
516 * ioputs.c: Likewise.
517 * iosetbuffer.c: Likewise.
518 * iosetvbuf.c: Likewise.
519 * ioungetc.c: Likewise.
520 * iovsprintf.c: Likewise.
521 * iovsscanf.c: Likewise.
523 * iofflush_u.c: New file. fflush_unlocked implementation.
525 * iostream.h [_G_HAVE_LONG_DOUBLE_IO]: Declare real long double
528 * peekc.c: New file. Implement _IO_peekc_locked function.
530 * stdfiles.c: If we compile for a thread-safe library also define
533 Tue Aug 26 12:24:01 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
535 * testsuite/Makefile.in (check): Don't depend on site.exp.
536 (just-check): Depend on site.exp.
538 Wed Aug 20 02:01:34 1997 Jason Merrill <jason@yorick.cygnus.com>
540 * iostream.h: Add copy assignment ops for _IO_?stream_withassign.
542 Tue Jul 22 10:31:41 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
544 * config.shared (CHECK_SUBDIRS): Use install-sh, not install.sh.
546 Wed Jun 25 12:20:55 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
548 * config.shared (DOING_GPERF): Look for this, defining TOLIBGXX
551 Wed Jun 18 11:03:34 1997 Bob Manson <manson@charmed.cygnus.com>
553 * config.shared (FLAGS_TO_PASS): Don't include RUNTEST.
555 Tue Jun 17 22:23:48 1997 Bob Manson <manson@charmed.cygnus.com>
557 * config.shared (FLAGS_TO_PASS): Pass RUNTEST and RUNTESTFLAGS.
559 Fri May 16 21:08:53 1997 Bob Manson <manson@charmed.cygnus.com>
561 * iovfprintf.c: Declare __cvt_double before use.
563 * floatconv.c (d2b): Use _G_int32_t instead of int for the
564 e and bits parameters.
565 (_IO_strtod): Use _G_int32_t.
567 * gen-params: Look for NO_USE_DTOA and USE_INT32_FLAGS.
569 * strops.c (_IO_str_init_static): use _G_int32_t appropriately.
571 * libio.h: If _G_NO_USE_DTOA is set, then don't define
574 * config/mn10200.mt: Don't use dtoa, it only works
577 Thu May 15 17:44:12 1997 Bob Manson <manson@charmed.cygnus.com>
579 * configure.in: Set CHECK_SUBDIRS to testsuite if we're doing
582 * config.shared(check): Only run make check in the directories
583 specified by CHECK_SUBDIRS. Set CHECK_SUBDIRS to SUBDIRS
584 if it has no previous value.
586 Thu May 1 17:35:19 1997 Jason Merrill <jason@yorick.cygnus.com>
588 * Makefile.in (test, tpipe): Add $(CFLAGS).
590 Wed Apr 30 12:16:29 1997 Jason Merrill <jason@yorick.cygnus.com>
592 * configure.in: Don't turn on multilib here.
594 Sat Apr 26 13:38:21 1997 Bob Manson <manson@charmed.cygnus.com>
596 * configure.in (configdirs): Add testsuite directory.
598 * testsuite/ChangeLog:
599 * testsuite/Makefile.in:
600 * testsuite/libio.tests/tiomanip.exp:
601 * testsuite/libio.tests/tstdiomisc.exp:
602 * testsuite/libio.tests/tiomisc.exp:
603 * testsuite/libio.tests/tFile.exp:
604 * testsuite/libio.tests/tfformat.exp:
605 * testsuite/libio.tests/tiformat.exp:
606 * testsuite/libio.tests/hounddog.exp:
607 * testsuite/libio.tests/putbackdog.exp:
608 * testsuite/configure.in:
609 * testsuite/lib/libio.exp:
610 * testsuite/config/default.exp:
611 New files for DejaGnu-style testsuite.
613 Fri Apr 4 03:16:44 1997 Ulrich Drepper <drepepr@cygnus.com>
615 * configure.in: Enable multilibing by default.
616 Update multilib template to read config-ml.in.
618 * floatconv.c: Enable use in cross targets which use the
619 newlib ieeefp.h header.
621 Thu Jan 23 09:16:16 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
623 * libioP.h (_IO_file_attach): Delete redundant decl.
625 Tue Jan 21 22:13:45 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
627 * streambuf.h (class ios): Take out STREAMSIZE member, since we
628 only need (and should only have) the global one.
630 Tue Jan 7 14:02:40 1997 Jason Merrill <jason@yorick.cygnus.com>
632 * iostream.h (long long fns): Use __extension__.
634 * gen-params: Use _G_llong and _G_ullong instead of long long for
637 Fri Dec 6 13:13:30 1996 Jason Merrill <jason@yorick.cygnus.com>
639 * dbz/dbz.c: Use off_t.
641 Sat Nov 23 15:44:37 1996 Jason Merrill <jason@yorick.cygnus.com>
643 * Makefile.in (install): Don't install _G_config.h with other headers.
645 Mon Nov 18 17:12:41 1996 Jason Merrill <jason@yorick.cygnus.com>
647 * config.shared (SUBDIRS): Use -O instead of -O3 for debugging.
649 Sun Nov 3 12:43:34 1996 Jason Merrill <jason@yorick.cygnus.com>
651 * iostream.cc (write_int): Treat string literals as const.
653 Thu Sep 26 10:09:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
655 * depend: Regenerate.
657 Wed Sep 25 22:54:45 1996 Jason Merrill <jason@yorick.cygnus.com>
659 * config.shared (depend.new): Deal with headers that don't end in .h.
661 Thu Aug 29 17:05:53 1996 Michael Meissner <meissner@tiktok.cygnus.com>
663 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
665 Mon Aug 5 01:26:32 1996 Jason Merrill <jason@yorick.cygnus.com>
667 * config{ure.in,.shared} (DISTCLEAN): Add multilib.out.
669 Fri Aug 2 17:39:35 1996 Jason Merrill <jason@yorick.cygnus.com>
671 * libio.h (NULL): Use __null.
672 * libioP.h (NULL): Ditto.
673 * streambuf.h (NULL): Ditto.
674 * ioextend.cc (get_array_element): Use NULL instead of (void*)0.
676 Fri Jul 5 18:26:41 1996 Jim Wilson <wilson@cygnus.com>
678 * strfile.h (struct _IO_streambuf): New struct type.
679 (struct _IO_strfile): Use it.
681 Tue Jun 18 18:24:21 1996 Jason Merrill <jason@yorick.cygnus.com>
683 * fstream.h (fstreambase): Make __my_fb mutable.
686 Tue Jun 18 11:03:53 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
688 * dbz/fake.c (main): Set return type to int.
689 * dbz/dbzmain.c (main): Likewise.
690 * dbz/byteflip.c (main): Likewise.
692 Mon Jun 17 14:05:36 1996 Jason Merrill <jason@yorick.cygnus.com>
694 * gen-params: Check if clog conflicts with system libraries.
695 * stdstreams.cc: If it does, use __IO_clog.
696 * iostream.h: Likewise.
698 Tue Jun 11 13:39:31 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
700 * stdiostream.h (istdiostream (FILE*)): Put istream base
701 initializer before init for __f.
702 (ostdiostream (FILE*)): Likewise for ostream base init.
704 Tue May 14 11:47:21 1996 Per Bothner <bothner@andros.cygnus.com>
706 * strfile.h (_IO_str_fields): Removed _len field.
707 (_IO_STR_DYNAMIC, _IO_STR_FROZEN): new macros.
708 * strstream.h (strstreambuf::is_static): Removed.
709 (strstreambuf::frozen): Use _IO_STR_DYNAMIC instead of is_static.
710 * strstream.h, strstream.cc: Remove support for !_IO_NEW_STREAMS.
711 * strstream.cc (strstreambuf::init_dynamic): Don't set _s._len.
712 * strops.c (_IO_str_init_static): Better handling of the
713 negative (== unbounded) size case.
714 (_IO_str_overflow, _IO_str_underflow, _IO_str_count): Re-write
715 to not use _s._len, and otherwise cleanup/fix.
716 * strstream.h, strstream.cc (strstreambase::strstreambase()): Call
718 (other constructors): Simplify - init already called.
720 Tue May 14 10:55:21 1996 Per Bothner <bothner@deneb.cygnus.com>
722 Change so that strstreambuf default constructor does no allocation.
723 * strstream.h (strstreambuf::init_dynamic): Default initial size = 0.
724 * strstream.cc (strstreambuf::init_dynamic): Don't allocate a
725 buffer (yet) if initial_size is 0.
726 * strops.c (_IO_str_overflow): Add 100 to size of re-allocated
727 buffer, to handle case when initial size is 0.
729 * iostdio.h (remove, rename, tmpfile, tempnam): Comment out.
731 Mon May 13 23:19:39 1996 Per Bothner <bothner@deneb.cygnus.com>
733 * fileops.c (_IO_file_close_it): Just call _IO_do_flush rather
734 than _IO_file_sync, to avoid useless lseek.
736 Tue May 14 10:48:48 1996 Jason Merrill <jason@yorick.cygnus.com>
738 * floatconv.c (_IO_strtod): Force rv into the stack.
740 * config.shared (gxx_includedir): Now $(includedir)/g++.
742 Sat Apr 27 02:37:49 1996 Jason Merrill <jason@yorick.cygnus.com>
744 * libioP.h (JUMP*): Implement for thunks.
745 (_IO_jump_t): Add second dummy field for thunks.
747 Thu Apr 25 13:20:00 1996 Jason Merrill <jason@yorick.cygnus.com>
749 * config.shared (CXX): Use gcc, not g++.
751 Wed Apr 24 10:29:50 1996 Doug Evans <dje@blues.cygnus.com>
753 * config.shared (depend.new): Delete $(srcdir)/ from foo.{c,cc}
755 * depend: Regenerated.
757 Fri Apr 19 17:24:51 1996 Jason Merrill <jason@yorick.cygnus.com>
761 Wed Apr 10 17:16:01 1996 Jason Merrill <jason@yorick.cygnus.com>
763 * configure.in (ALL): Don't build iostream.a.
765 Mon Apr 8 14:44:11 1996 Per Bothner <bothner@kalessin.cygnus.com>
767 * iosetvbuf.c (_IO_setvbuf): Clear _IO_UNBUFFERED unless _IONBF.
769 Mon Apr 8 15:08:23 1996 Ian Lance Taylor <ian@cygnus.com>
771 * configure.in: Permit --enable-shared to specify a list of
774 Fri Apr 5 17:48:56 1996 Per Bothner <bothner@kalessin.cygnus.com>
776 * config.shared (MOSTLYCLEAN): Also remove ${EXTRA_MOSTLYCLEAN}.
778 Fri Mar 22 23:25:00 1996 Ulrich Drepper <drepepr@gnu.ai.mit.edu>
780 * genops.c (_IO_sputbackc, _IO_sungetc): Clear EOF flag if putsh
783 Wed Mar 27 11:54:08 1996 Jason Merrill <jason@yorick.cygnus.com>
787 Fri Mar 22 15:39:36 1996 Per Bothner <bothner@kalessin.cygnus.com>
789 * fileops.c (_IO_do_write): Revert previous fix. (It fails to
790 handle the case that fp->_IO_read_end != fp->_IO_write_base.)
791 (_IO_file_overflow): Instead, if _IO_read_ptr is at the end of
792 the buffer, reset all the read pointers to _IO_buf_base.
794 Tue Mar 12 12:03:17 1996 Per Bothner <bothner@kalessin.cygnus.com>
796 * fileops.c (_IO_do_write): Even if to_do==0, must re-set buffer
797 pointers. Bug and solution from Luke Blanshard <luke@cs.wisc.edu>.
799 Wed Feb 28 10:00:24 1996 Jason Merrill <jason@yorick.cygnus.com>
803 Tue Feb 27 18:08:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
805 * iopopen.c (_IO_proc_open): Use (char*)0 rather than imprecise NULL.
807 * streambuf.h (ios): Add ios::binary; deprecate ios::bin.
808 * filebuf.cc (filebuf::open): Handle ios::binary.
810 Fri Feb 9 12:40:19 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
812 * cleanup.c (_IO_cleanup_registration_needed) [!_G_HAVE_ATEXIT]: Init
814 * filedoalloc.c (_IO_cleanup_registration_needed): Remove decl.
816 Thu Feb 8 08:12:50 1996 Brendan Kehoe <brendan@cygnus.com>
818 * filedoalloc.c (_IO_cleanup_registration_needed): Revert previous
819 change, since cleanup.c only defines it if _G_HAVE_ATEXIT.
821 Wed Feb 7 15:10:17 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
823 * filedoalloc.c (_IO_cleanup_registration_needed): Declare as extern.
825 Tue Dec 12 17:21:13 1995 Per Bothner <bothner@kalessin.cygnus.com>
827 * indstream.h, instream.cc (indirectbuf::uflow): New method.
828 * indstream.cc (indirectbuf::underflow): Fix to use sgetc, not sbumpc.
829 Fixes bug reported by Kevin Beyer <beyer@cs.wisc.edu>.
831 * indstream.cc (indirectbuf::seekpos): Add paranoia test.
833 Fri Dec 8 14:55:34 1995 Per Bothner <bothner@kalessin.cygnus.com>
835 * stream.h: Add warning to not use these functions.
836 * stream.cc (str, chr): Re-implement here (from libg++).
838 Tue Nov 28 15:07:01 1995 Per Bothner <bothner@kalessin.cygnus.com>
840 * config.shared: Use test instead of [ to avoid DEC Unix lossage.
842 Thu Nov 23 14:51:43 1995 Per Bothner <bothner@kalessin.cygnus.com>
844 * iopopen.c: Move #include <sys/types.h> ahead of #include <signal.h>
845 to deal with BSDI's literal implementation of Posix.
847 Sat Nov 25 11:21:55 1995 Doug Evans <dje@canuck.cygnus.com>
849 * Makefile.in (install): Set rootme.
850 * config.shared (TOPDIR): Set with ${foo-...} rather than ${foo=...}.
851 (INSTALL): Handle absolute, dot, relative-not-dot values of srcdir.
854 Tue Nov 21 14:12:05 1995 Ian Lance Taylor <ian@cygnus.com>
856 * configure.in: Check ${with_cross_host} rather than comparing
857 ${host} and ${target}.
859 Mon Nov 20 13:55:29 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
861 * configure.in: Match *-sco3.2v[45]*.
863 Wed Nov 15 20:19:31 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
865 * config.shared (FLAGS_TO_PASS): Also pass SHLIB and SHCURSES.
867 Tue Nov 14 01:41:08 1995 Doug Evans <dje@canuck.cygnus.com>
869 * config.shared (TO_REAL_TOPDIR): Define.
871 (MULTISRCTOP, MULTIBUILDTOP): New.
872 (TOPDIR): Change MULTITOP to MULTIBUILDTOP, and use TO_REAL_TOPDIR.
873 (INSTALL): Add with_multisrctop, TO_REAL_TOPDIR.
874 (TEXIDIR): Use TO_REAL_TOPDIR.
875 (LIBS): Delete MULTITOP.
876 (FLAGS_TO_PASS): Add NM.
877 (CXXINCLUDES): Delete MULTITOP.
878 (depend.new): Delete adding MULTITOP to ../ build tree references.
879 Add MULTISRCTOP to ../ source tree references.
880 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in
881 instead of cfg-ml-pos.in.
883 Sun Nov 12 16:30:48 1995 Per Bothner <bothner@kalessin.cygnus.com>
885 * Makefile.in (VERSION): Set to 2.7.1.
886 * configure.in: Add warning for Linux.
887 * config.shared (DISTCLEAN): Add EXTRA_DISTCLEAN.
889 * editbuf.h (edit_mark::index_in_buffer): Avoid unused param warning.
891 * iostream.cc (istream::operator>> (char*)): Improve ANSI compliance.
893 Fri Nov 10 08:41:37 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
895 * config.shared (check): Add missing semicolon.
897 Thu Nov 9 17:27:22 1995 Jason Merrill <jason@yorick.cygnus.com>
899 * configure.in (ALL): Remove $(OSPRIM_OBJECTS).
900 * config.shared (check): Set LD_LIBRARY_PATH.
902 * iogetdelim.c (_IO_getdelim): Index *lineptr, rather than lineptr.
903 From alan@spri.levels.unisa.edu.au (Alan Modra).
905 Mon Nov 6 15:03:33 1995 Per Bothner <bothner@kalessin.cygnus.com>
907 * streambuf.cc, editbuf.cc, isgetline.cc, parsestream.cc:
908 Fixes to avoid -Wall warnings.
910 Fri Nov 3 16:41:41 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
912 * gen-params [!__STDC__]: Include varargs.h instead of stdarg.h.
914 Thu Nov 2 15:04:03 1995 Per Bothner <bothner@kalessin.cygnus.com>
916 * config.shared: Re-write if X then Y else true fi to (not X) || Y.
918 Wed Nov 1 13:26:44 1995 Per Bothner <bothner@kalessin.cygnus.com>
920 * iostream.h (istream::ipfx): Add default argument value.
921 Reported by Yotam Medini <yotam_medini@tmai.com>.
923 * libioP.h (_IO_blen): Fix typo.
924 Reported by Bryan T. Vold <btv@ldl.healthpartners.com>.
926 Fri Oct 27 19:26:20 1995 Per Bothner <bothner@kalessin.cygnus.com>
928 * Makefile.in (_G_config.h): Set CC to $(CC) rather than to $(CXX),
929 now that CXX defaults to g++ and CC default to gcc (when found).
930 * config.shared: Simplify CXX and CC, since they get overridden
931 by ../configure anyway.
933 Wed Oct 25 19:45:50 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
935 * iostdio.h: Wrap including the file with #ifndef _IOSTDIO_H.
937 Wed Oct 25 11:14:25 1995 Per Bothner <bothner@kalessin.cygnus.com>
939 * libio.h (_IO_seekoff, _IO_seekpos): New declarations.
940 * libioP.h (_IO_seekoff, _IO_seekpos): Remove declarations.
941 * libioP.h: Cleanup; remove old !_IO_UNIFIED_JUMPTABLES stuff.
943 * filebuf.cc (filebuf::~filebuf): Only call SYSYCLOSE if currently
944 open. Bug found by Martin Gerbershagen <ger@ezis-ulm.de>.
946 * streambuf.h (streambuf::pubseekoff, streambuf::pubseekpos):
947 Added, from ANSI draft.
948 * filebuf.cc (filebuf::open), iostream.cc (variables places), SFile.cc:
949 Use pubseekoff/pubseekpos rather than sseekoff/sseekpos.
951 * Makefile.in (install): Don't install libiostream.a.
953 * filedoalloc.c: Also #include <unistd.h>.
955 Mon Oct 9 18:09:54 1995 Jason Molenda <crash@phydeaux.cygnus.com>
957 * config.shared (SUFFIXES): add .c.
959 Tue Sep 26 16:08:01 1995 Per Bothner <bothner@kalessin.cygnus.com>
961 * procbuf.cc: Move #pragma implementation to beginning.
963 Wed Sep 20 17:53:33 1995 Per Bothner <bothner@kalessin.cygnus.com>
965 * procbuf.h, procbuf.cc: Add #pragma interface/implementation stuff.
967 Wed Sep 20 18:59:00 1995 John Eaton <jwe@bevo.che.wisc.edu>
969 * procbuf.h: Protect from being included multiple times.
971 Wed Sep 20 15:47:14 1995 John Eaton <jwe@bevo.che.wisc.edu>
973 * procbuf.h (procbuf): Add '_next' pointer field for compatibility
976 Wed Sep 20 13:54:02 1995 Ian Lance Taylor <ian@cygnus.com>
978 * config.shared: Add support for maintainer-clean target as a
979 synonym for realclean.
980 * dbz/Makefile.in: Likewise.
982 Mon Sep 11 12:11:19 1995 Per Bothner <bothner@kalessin.cygnus.com>
984 * iopopen.c: #include <sys/types.h> before <sys/wait.h>.
985 This is in accordance with Posix, and needed for ISC.
987 Fri Sep 8 00:11:55 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
989 * gen-params: Use double quotes in the eval setting $TYPE to
990 $VALUE, to preserve any single quotes in $VALUE.
992 Mon Aug 21 11:39:09 1995 Jason Merrill <jason@phydeaux.cygnus.com>
994 * gen-params: Test for an appropriate version of gcc before using
997 * config.shared: Add $(PICDIR) to $ALL.
999 Mon Aug 7 17:51:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1001 * gen-params: Generate new macro _G_HAVE_SYS_CDEFS.
1002 * libio.h: If _G_HAVE_SYS_CDEFS, get __P from <sys/cdefs.h>.
1004 Fri Aug 4 23:21:17 1995 Paul Eggert <eggert@twinsun.com>
1006 * gen-params: When following typedef changes, allow typedefs
1007 that do not have a space before the defined type name,
1008 e.g. `typedef void *__gnuc_va_list;' as in Linux. Also,
1009 not require a space in the definiens, e.g. `typedef void*foo;'.
1011 Thu Aug 3 17:54:15 1995 Per Bothner <bothner@kalessin.cygnus.com>
1013 * iostream.h, iostream.cc (istream::sync): Added missing method.
1015 Thu Aug 3 17:49:34 1995 Per Bothner <bothner@kalessin.cygnus.com>
1017 * configure.in: Remove netbsd special case.
1018 * config/netbsd.mt: Removed; no longer used.
1020 Tue Jun 20 16:07:12 1995 Paul Eggert <eggert@twinsun.com>
1022 * gen-params: Take transitive closure of `typedef' relation.
1023 This is needed for BSD/OS 2.0, which has
1024 fpos_t -> off_t -> quad_t -> long long.
1026 Mon Jul 24 18:28:10 1995 Doug Evans <dje@canuck.cygnus.com>
1028 * config.shared (TOPDIR): Delete extra '/', $rootme may be empty.
1030 Sat Jul 22 13:27:45 1995 Doug Evans <dje@canuck.cygnus.com>
1032 * config.shared (depend.new): Fix quoting in DO NOT EDIT line.
1034 * Makefile.in (_G_config.h): Add multilib support.
1035 (install): Likewise.
1036 * config.shared: Likewise.
1037 * configure.in: Likewise.
1039 Wed Jun 28 17:40:25 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1041 * PlotFile.h, SFile.h, builtinbuf.h, editbuf.h, fstream.h,
1042 indstream.h, iomanip.h, iostream.h, parsestream.h, pfstream.h,
1043 procbuf.h, stdiostream.h, stream.h, streambuf.h, strstream.h: Wrap
1046 Thu Jun 22 04:34:01 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1048 * gen-params: Surround attributes with __.
1050 Mon Jun 19 00:33:22 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1052 * config.shared (SUBDIRS): Massage broken shells that require
1055 Sat Jun 17 11:25:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1057 * streambuf.h: Declare inline members inline in class.
1059 Thu Jun 15 20:45:13 1995 Per Bothner <bothner@kalessin.cygnus.com>
1061 * Makefile.in (VERSION): Update to version 2.7.0.
1063 Wed Jun 14 21:41:11 1995 Jason Merrill <jason@python.cygnus.com>
1065 * Makefile.in (STDIO_WRAP_OBJECTS): Remove stdfiles.o.
1066 (LIBIO_OBJECTS): Add stdfiles.o.
1068 Wed Jun 7 16:11:36 1995 Jason Merrill <jason@python.cygnus.com>
1070 * config.shared (all): Appease bash.
1072 Wed Jun 7 11:16:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1074 * configure.in (MOSTLYCLEAN): Remove stamp-picdir.
1076 * config.shared (MOSTLYCLEAN): Ditto.
1079 Mon Jun 5 18:29:39 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1081 * config/mh-*pic: Removed.
1083 * configure.in (MOSTLYCLEAN): Remove pic objects.
1084 (frags): Use toplevel pic fragments.
1086 * config.shared (CXXFLAGS): Use -O3.
1087 (PICFLAG, PICDIR): New macros.
1088 (all): Depend on $(PICDIR).
1089 (FLAGS_TO_PASS): Pass PICFLAG.
1090 (.x.o): Also build pic object.
1091 (stamp-picdir): Create directory for pic objects.
1092 (MOSTLYCLEAN): Remove pic objects.
1093 (CLEAN): Remove stamp-picdir.
1095 * Makefile.in (iostream.list): Depend on stamp-picdir.
1096 (c++clean): Don't remove _G_config.h.
1098 Mon Jun 5 15:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
1100 * strstream.h, strstream.cc (strstream::strstream()): Re-implement to
1101 be like ostrstream::ostrestream(), and not leak memory.
1103 * streambuf.h: Use #if !_IO_UNIFIED_JUMPTABLES instead of #ifndef.
1105 * iolibio.h (_IO_rewind): Add missing flags when calling _IO_seekoff.
1107 Thu May 25 22:30:21 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1109 * config/netbsd.mt (G_CONFIG_ARGS): Add defn for off_t. Another
1110 layer of typedefs has been added and the gen-params script can
1113 Wed May 10 03:02:58 1995 Jason Merrill <jason@python.cygnus.com>
1115 * iolibio.h (_IO_rewind): Add new argument to _IO_seekoff.
1117 * config/linux.mt (LIBIOSTREAM_OBJECTS): Include $(STDIO_WRAP_OBJECTS).
1118 (LIBIOSTREAM_DEP): Include stdio.list.
1119 (LIBIOSTREAM_USE): Include `cat stdio.list`.
1121 * Makefile.in (LIBIOSTREAM_DEP): New variable.
1122 (LIBIOSTREAM_USE): Ditto.
1123 (libiostream.a): Use them.
1124 (iostream.list): Ditto.
1125 (stdio.list): New rule.
1126 (stdio/stdio.list): Ditto.
1128 Tue May 9 18:29:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1130 * libioP.h (_IO_jump_t): Change TYPE for __dummy from int to
1133 Sat May 6 13:50:37 1995 Per Bothner <bothner@kalessin.cygnus.com>
1135 * libio.h (_IO_UNIFIED_JUMPTABLES): #define as true.
1136 (_IO_FILE): Remove _jumps field (#if _IO_UNIFIED_JUMPTABLES).
1138 * libioP.h (enum _IO_seekflags_): Removed.
1140 * libioP.h (_IO_setbuf_t): Change return value of setpos jumptable
1141 function to match C++ streambuf::setpos. (Return NULL on failure.)
1142 * fileops.c (_IO_file_setbuf), genops.c (_IO_default_setbuf),
1143 filebuf.cc, iosetvbuf.c: Update to use new setbuf conventions.
1145 * streambuf.h (streambuf): Re-order virtual functions more logically.
1146 * streambuf.cc (streambuf::uflow), streambuf.h: New virtual.
1147 * libioP.h (struct _IO_jump_t): Define using new JUMP_FIELD macro.
1148 And re-order in more logical order consistent with streambuf vtable.
1149 * fileops.c (_IO_file_jumps), iopopen.c (_IO_proc_jumps), iovfprintf.c
1150 (_IO_helper_jumps), streambuf.cc (_IO_streambuf_jumps), strops.c
1151 (_IO_str_jumps): Update accordingly, using JUMP_INIT macro.
1152 * stdfiles.c: Set vtable to point to _IO_file_jumps.
1153 * filebuf.cc, iopopen.c, iovfprintf.c (helper_vfprintf), iovsprintf.c,
1154 iovsscanf.c: Use macros and #if to set jumptables.
1156 * streambuf.c: _IO_streambuf_jumps and the _IO_sb_* methods are not
1157 needed #if _IO_UNIFIED_JUMPTABLES.
1158 * filebuf.cc (filebuf::__new): Also no longer needed.
1159 * fstream.cc (fstreambase::__fb_init, fstreambase::fstreambase): Fix.
1160 * stdstrbufs.c: Use filebuf vtable instead of builtinbuf's.
1161 * builtinbuf.h, builtinbuf.cc (builtinbuf): Commented out #if
1162 _IO_UNIFIED_JUMPTABLES - no longer needed.
1163 * strstream.cc (SET_STR_JUMPS): Does nothing now.
1165 * builtinbuf.cc, fileops.c, genops.c, iofgetpos.c, iofsetpos.c,
1166 ioftell.c, iopopen.c, ioseekoff.c, ioseekpos.c, iosetvbuf.c,
1167 iovfprintf.c, iovfscanf.c, strops.c: Use DEFUN and DEFUN_VOID.
1168 * filebuf.cc, fileops.c, genops.c, iopopen.c, ioseekoff.c, ioseekpos.c,
1169 iosetvbuf.c, iovfscanf.c: Use new JUMP_* and IO_OVERFLOW/... macros.
1171 * libioP.h (_IO_seekpos_t): Third arg is now an int (using _IOS_INPUT
1172 and _IOS_OUTPUT), not an enum _IO_seekflags_. Flags values are
1173 changed, and their sense inverted (to match streambuf::seekpos).
1174 * libioP.h (_IO_seekoff_t): Similarly match streambuf::seekoff.
1175 * filebuf.cc, fileops.c (_IO_file_fopen, _IO_file_seekoff), genops.c
1176 (_IO_default_seekpos, _IO_default_seekpos), iofgetpos.c, iofsetpos.c,
1177 iolibio.h (_IO_fseek), ioftell.c, ioseekoff.c, ioseekpos.c,
1178 iostream.cc, streambuf.cc, strops.c (_IO_str_seekoff), strstream.cc:
1179 New seekpos/seekoff conventions.
1180 * iostreamP.h (convert_to_seekflags): Removed - no longer needed.
1182 * iolibio.h (_IO_fread): New declaration.
1184 * dbz/Makefile.in: Re-arrange for cleaner dependencies.
1186 Fri May 5 15:55:22 1995 Per Bothner <bothner@kalessin.cygnus.com>
1188 * libioP.h (_IO_JUMPS. JUMP_FIELD, JUMP0, JUMP1, JUMP2, JUMP3,
1189 JUMP_INIT, _IO_FINISH, _IO_OVERFLOW, ... _IO_SYSSTAT): New macros
1190 in preparation for new unified jumptable/vtable implementation.
1191 * cleanup.c, filedoalloc.c, iofclose.c, iofflush.c, iofiledoalloc.c,
1192 ioprims.c, iosetbuffer.c, iostrerror.c, ioungetc.c: Use DEFUN.
1193 * filedoalloc.c, iofclose, iofflush, iosetbuffer.c: Use new macros.
1195 * iofopen.c, iofdopen.c: Use macros and #if for new jumptables.
1197 * gen-params: Do not #include <sys/types.h>.
1198 Add missing quote in 'eval'.
1199 Do add #include <sys/types.h> in test for <sys/resource.h>.
1200 * config/netbsd.mt: New file, defining _G_CONFIG_ARGS (for fpos_t).
1201 * configure.in: Use netbsd.mt for NetBSD.
1203 Wed May 3 15:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
1205 * libioP.h (DEFUN, DEFUN_VOID, AND): New macros, from ansidecl.h.
1206 * iofdopen.c, iofgets.c, iofopen.c, iofputs.c, iofread.c, iofwrite.c,
1207 iogetdelim.c, iogetline.c, iogets.c, ioignore.c, iopadn.c, ioperror.c,
1208 ioputs.c, iovsprintf.c, iovsscanf.c, outfloat.c: Use DEFUN.
1210 Mon May 1 16:22:30 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1212 * gen-params: #include <sys/types.h>. Don't use __WCHAR_TYPE__ in
1213 definition of _G_wchar_t. Use __attribute__ ((mode)) to get
1214 specific-sized ints under gcc, don't worry about int8 or int64
1215 otherwise. Provide defaults if deduction fails.
1217 Thu Apr 27 18:27:53 1995 Per Bothner <bothner@kalessin.cygnus.com>
1219 * streambuf.h (ios::~ios): Delete _arrays.
1220 (_IO_NEW_STREAMS): Turn on.
1221 * libio.h (__adjust_column): Remove bogus declaration.
1222 * genops.c (_IO_set_column): Fix typo (in commented-out code).
1224 Tue Apr 25 17:14:29 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1226 * config.shared (CXXINCLUDES): Use a shell variable with a
1227 different name from the make variable.
1228 * configure.in: Update accordingly.
1230 Mon Apr 17 17:19:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1232 * streambuf.h (__adjust_column): Remove redundant declaration.
1234 Sat Apr 15 11:39:25 1995 Per Bothner <bothner@kalessin.cygnus.com>
1236 * config.shared (do-clean-dvi): Also remove *.cps.
1238 * gen-params: Use ${SED} instead of sed.
1240 * libio.h: Remove #if'd out stuff (confuses makedepend).
1242 * stdstreams.cc (STD_STR): Standard streams start with ios::dec set.
1244 Fri Apr 14 23:46:31 1995 Per Bothner <bothner@kalessin.cygnus.com>
1246 * iostream.h, iostream.cc (istream::read, ostream::write):
1247 Use streamsize for the length parameter.
1249 * streambuf.h: Removed redundant __overflow and __underflow.
1251 * fstream.h, fstream.cc: Add void fstreambase::attach(int).
1253 * iosscanf.c (_IO_sscanf): Fix non-__STDC__ missing declaration.
1255 Mon Apr 3 15:40:55 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1257 * indstream.*: Fix prototypes of xsputn and xsgetn.
1259 * fileops.c: Avoid ??? trigraph.
1261 Mon Mar 27 16:16:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1263 * iomanip.h (operator<< (ostream&, const omanip<TP>&): Define
1265 (operator>> (istream&, const imanip<TP>&): Ditto.
1267 Mon Mar 27 08:56:00 1995 Brendan Kehoe (brendan@lisa.cygnus.com)
1269 * builtinbuf.cc (builtinbuf::setbuf): Cast NULL to streambuf*, to
1270 avoid warning/error about conversion from void*.
1271 * indstream.cc (indirectbuf::seekoff): Likewise.
1272 (indirectbuf::seekpos): Likewise.
1273 * filebuf.cc (filebuf::setbuf): Likewise.
1274 (filebuf::close): Cast NULL to filebuf*.
1276 Wed Mar 1 14:23:18 1995 Per Bothner <bothner@kalessin.cygnus.com>
1278 * configure.in (DISTCLEAN): Add, with target-mkfrag.
1280 Fri Feb 24 01:01:08 1995 Jason Merrill <jason@python.cygnus.com>
1282 * configure.in (frags): Don't require so many dashes in the
1283 canonical target name.
1285 Sat Feb 18 13:18:30 1995 Per Bothner <bothner@kalessin.cygnus.com>
1287 * streambuf.cc (streambuf::sync): Always return 0, even for
1288 non-flushed output. This is required by the ANSI/ISO draft.
1289 * genops.c (_IO_sync): Likewise always return 0.
1291 Fri Feb 17 16:33:28 1995 Per Bothner <bothner@kalessin.cygnus.com>
1293 * fileops.c (_IO_file_close_it): Call _IO_file_sync, rather
1294 than _IO_do_flush, because we want to adjust the file pointer
1295 if reading and not at end (as in SVR4, and as in fflush).
1296 Also, make sure to return error indication if sync fails.
1297 (_IO_file_sync): Ignore seek error if it is ESPIPE.
1298 (_IO_file_seekoff): If not readable, do dumb lseek.
1299 * iofclose.c (_IO_fclose): If closing a non-filebuf, return -1
1302 Fri Feb 17 19:31:00 1995 Ian Lance Taylor <ian@cygnus.com>
1304 * gen-params: Check for struct tms in <sys/times.h>, defining
1305 HAVE_SYS_TIMES accordingly.
1307 Wed Feb 15 21:05:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
1309 * strops.c (_IO_str_count): Use LEN macro.
1310 (_IO_str_seekoff): Update _len field.
1312 Mon Feb 6 19:29:00 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1314 * gen-params: Default to short, long and long long for 16, 32 and
1315 64 bit types, in case detection fails.
1317 Wed Jan 25 18:07:30 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1319 * gen-params (_G_wint_t): Allow for broken promotions.
1321 Tue Jan 24 16:15:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1323 * stdstrbufs.cc (_IO_fake_stdiobufs): Add an extra layer of struct,
1324 to force correct alignment on i960s.
1325 (DEF_STDIOBUF, _IO_{stdin,stdout,stderr}_buf): Update accordingly.
1327 Thu Jan 19 18:30:53 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1329 * config.shared (CXXINCLUDES): Add libstdc++ to includes for
1331 (LIBS): Also link with libstdc++ when building libg++ toys.
1332 Don't set EXPORT_ALL_VARIABLES; users will have to set
1333 LD_LIBRARY_PATH themselves.
1335 Fri Dec 30 16:38:13 1994 Mike Stump <mrs@cygnus.com>
1337 * config/linux.mt: Fix build problem on linux 1.0.8.
1339 Thu Dec 22 11:49:45 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1341 * config/netware.mt: Use gcc to pre-link iostream.nlm's objects
1342 instead of using nlmconv, so that references to functions in
1343 libgcc.a are resolved.
1345 * configure.in: Append .mt to target makefile fragment file names.
1347 * floatconv.c (tens, tinytens, bigtens): Added const qualifier.
1349 Tue Dec 20 09:59:50 1994 Mike Stump <mrs@cygnus.com>
1351 * gen-params (VTABLE_LABEL_PREFIX): Since some systems have GNU nm
1352 as nm, and they demangle by default, we have to notice this, and
1353 try --no-cplus (linux) or --no-demangle when running nm.
1355 Wed Dec 14 18:13:58 1994 Per Bothner <bothner@kalessin.cygnus.com>
1357 * gen-params: To determine vt-name-mangling using dummy.C add
1358 #include and #prama interface/implementation to avoid problem with
1359 assemblers that don't emit local symbols. Reported under HPUX 8
1360 by Thomas Arend <arend@blasius.Chemietechnik.Uni-Dortmund.DE>.
1362 * streambuf.h (ios::ios): Move inline definition after
1363 that of ios::init (which ios::ios calls).
1365 Sun Dec 4 19:50:32 1994 Per Bothner <bothner@kalessin.cygnus.com>
1367 * fileops.c (_IO_file_init, _IO_file_close_it, _IO_file_sync):
1368 Set _offset to _IO_pos_BAD, to support applications that follow
1369 POSIX.1 rules on mixing file handles.
1371 * fileops.c (_IO_file_overflow): Handle case that buffer was
1372 allocated (perhaps by setvbuf) but _IO_write_base is still 0.
1374 * iostdio.h (setbuffer): #define as _IO_setbuffer.
1375 * streambuf.h, filebuf.cc: Removed filebuf::do_write.
1377 Tue Nov 29 23:38:57 1994 Per Bothner (bothner@rtl.cygnus.com)
1379 * floatconv.c (setword0, setword1): Fix typo.
1381 Tue Nov 29 15:37:29 1994 Per Bothner <bothner@kalessin.cygnus.com>
1383 * config.shared: Move -fno-implicit-template from CXXFLAGS
1384 to LIBCXXFLAGS. Tests are better run without it.
1386 * floatconv.c (word0, word1): Re-place/re-implement using unions
1387 instead of casts to avoid optimizer problems.
1389 * dbz/dbzmain.c: Renamed dirname -> dir_name to avoid OSF
1390 header file braindamage.
1392 Sat Nov 5 19:44:00 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1394 * config.shared (LIBCFLAGS): Define.
1395 (LIBCXXFLAGS): Define.
1396 (DOING_LIBGXX): Define TOLIBGXX. Change LIBS to use -lg++. Add
1397 LD_LIBRARY_PATH and .EXPORT_ALL_VARIABLES:.
1398 (FLAGS_TO_PASS): Add LIBC{,XX}FLAGS.
1399 (XC{,XX}FLAGS): Set to LIBCFLAGS or CFLAGS depending on $LIBDIR.
1400 (COMPILE.c): Define, use in .c.o rule.
1401 (COMPILE.cc): Define, use in .cc.o rule.
1403 Sat Nov 5 15:12:12 1994 Per Bothner <bothner@kalessin.cygnus.com>
1405 * Makefile.in (VERSION): Update to 0.67.
1407 * streambuf.h (ios::dont_close): Is now set by default.
1408 * fstream.h, fstream.cc (__fb_init): New function. Clears
1409 ios::dont_close. Change fstreambase constructors to call it.
1410 * strstream.cc: *strstream constructors must clear ios::dont_close.
1411 * iostream.cc: Simplify - don't need to set ios::dont_close.
1412 * ioassign.cc: Simplify - assume ios::dont_close is always set.
1414 * fstream.h, fstream.cc: If _IO_NEW_STREAMS, put the
1415 filebuf as a member __my_fb.
1416 * strstream.{h,cc}: Likewile use a strstreambuf member __my_sb.
1417 * streambuf.h, stdstreams.cc, ioextend.cc:
1418 Fix if _IO_NEW_STREAMS to not use ios::dont_close.
1420 * streambuf.h (class ios): Move rdbuf later, to avoid
1421 inability of g++ to inline.
1422 * filebuf.cc (filebuf::~filebuf): Call _IO_do_flush.
1424 * config.shared: Emit rules to make depend.
1427 Fri Nov 4 17:19:11 1994 Per Bothner <bothner@kalessin.cygnus.com>
1429 * README: Fix typos.
1430 * libio.h: Add comment. Update Copyright notice.
1432 Fri Nov 4 21:46:30 1994 Paul Eggert <eggert@twinsun.com>
1434 * libio.h (__P): Change argument name spelling from
1435 `paramlist' to `protos' for compatibility with BSDI 1.1.
1437 Thu Nov 3 00:45:16 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1439 * config.shared (CXXFLAGS): Add -fno-implicit-templates.
1441 Mon Oct 24 15:57:35 1994 Per Bothner <bothner@kalessin.cygnus.com>
1443 * config.shared: Define NOSTDIC and use it for libio too.
1445 Thu Oct 20 19:45:35 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1447 * iogetdelim.c: #include <stdlib.h>.
1449 Thu Oct 20 17:09:52 1994 Per Bothner <bothner@kalessin.cygnus.com>
1451 * iostream.h: Add classes _IO_istream_withassign and
1452 _IO_ostream_withassign. Re-type cin, cout, cerr, clog.
1453 (class iostream): Don't add extra _gcount field.
1454 * ioassign.cc: New file. Implement operator= for cin etc.
1455 * streambuf.h (class ios): Change return type of operator=.
1456 * Makefile.in (IOSTREAM_OBJECTS): Add ioassign.o.
1458 * Makefile.in: Re-arrange, so linux.mt overrides can work.
1460 * fileops.c (_IO_file_seekoff): Optimize seeks within buffer.
1462 Wed Oct 19 14:25:47 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1464 * gen-params (wint_t): Return to using __WCHAR_TYPE__ for
1465 compatibility with gcc versions prior to 2.6.1.
1467 Tue Oct 18 17:08:18 1994 Per Bothner <bothner@kalessin.cygnus.com>
1469 * Makefile.in: Define _G_CONFOG_H as _G_config.h for Linux. Use it.
1470 (IO_OBJECTS): Add iogetdelim.o.
1471 * config/linux.mt: New file.
1472 * configure.in: Select config/linux.mt if Linux.
1473 * iogetdelim.c: Verious cleanups, many from
1474 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>.
1475 * libioP.h: Add _IO_getdelim. Use (void) for no-parameter functions.
1477 Thu Oct 13 16:30:56 1994 Per Bothner (bothner@kalessin.cygnus.com)
1479 * libio.h: Rename USE_DTOA to _IO_USE_DTOA for namespace reasons.
1480 * iostream.cc, iovfscanf.c, iovfprintf, floatconv.c:
1481 Update USE_DTOA -> _IO_USE_DTOA.
1483 * libio.h (_IO_feof, _IO_ferror): Move to here ...
1484 * iolibio: ... from here
1486 * iostream.cc (istream::get, istream::ignore, istream::read):
1487 Set _gcount to 0 if ipfx0 failed.
1489 * iostream.cc (flush): Do virtual function call, rather than
1490 going through jumptable. (To get correct method in derived class.)
1491 Bug and fix from John Wiegley <jw@cis.ohio-state.edu>.
1493 * iofdopen.c (O_ACCMODE): Define using O_RDWR, not O_RDWRITE.
1495 * streambuf.h (ios::rdbuf(streambuf*)): New.
1496 * streambuf.h (ios::operator=): Make private (i.e. dis-allow).
1498 Wed Oct 12 19:09:20 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1500 * gen-params: Define _G_NO_NRV and _G_NO_EXTERN_TEMPLATES if not
1503 Thu Oct 6 16:03:43 1994 Per Bothner (bothner@kalessin.cygnus.com)
1505 * iostream.texi (ostrstream::str): Note that NUL is not written
1508 Wed Oct 5 17:28:29 1994 Per Bothner (bothner@kalessin.cygnus.com)
1510 * iogetdelim.c (_IO_getdelim): New function.
1512 Wed Oct 5 15:40:22 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1514 * config/netware.mt: New file, first cut at Netware NLM support.
1515 * configure.in (*-*-netware*): Use config/netware.mt.
1517 * config.shared (NLMCONV, LD): New definition.
1519 * gen-params: check for nm in ${binutils}/nm.new.
1520 * config.shared: Likewise.
1522 Tue Oct 4 12:20:01 1994 Per Bothner (bothner@kalessin.cygnus.com)
1524 * iomanip.h (omanip::operator<<): Make 2nd arg be const.
1525 Bug and fix reported by Greg McGary <gkm@magilla.cichlid.com>.
1527 * strstream.cc (strstreambuf::pcount): Simplify, to match
1528 ANSI/ISO specification.
1530 Mon Sep 26 15:19:52 1994 Jason Merrill (jason@deneb.cygnus.com)
1532 * gen-params: Include <wchar.h> and <wctype.h> if they exist.
1534 Thu Sep 8 14:41:41 1994 Jason Merrill (jason@deneb.cygnus.com)
1536 * iostream.h (class istream): Declare operator>>(long double&).
1537 (class ostream): Define operator<<(long double).
1539 * iostream.cc (istream::operator>>(long double&)): Define.
1541 Wed Sep 7 14:42:29 1994 Per Bothner (bothner@kalessin.cygnus.com)
1543 * iostream.texi (Overflow): Fix bugs in example.
1545 Fri Sep 2 17:45:57 1994 Per Bothner (bothner@kalessin.cygnus.com)
1547 * iostream.tex: Document a little on how to write your
1548 own streambuf-derived class, with an example.
1550 Tue Aug 30 13:03:57 1994 Brendan Kehoe (brendan@lisa.cygnus.com)
1552 * floatconv.c (s2b): Declare X and Y to be _G_int32_t.
1553 (diff, quorem): Declare BORROW, Y, and Z likewise.
1554 (ulp): Declare L likewise.
1555 (_IO_strtod): Declare L and AADJ likewise.
1556 (_IO_dtoa): Declare L and D likewise. Cast division of D by DS to
1559 Mon Aug 29 16:01:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
1561 * iosetvbuf.c (_IO_setvbuf): If setting _IOFBF and no
1562 buffer was specified, call __doallocate.
1564 * fileops.c, floatconv.c: Add a bunch of parentheses to
1565 shut up gcc warnings. Patch from H.J.Lu.
1567 * stdiostream.cc (stdiobuf::sys_read): Inline call to getc
1568 for the normal case (size==1).
1570 Sat Aug 20 12:14:52 1994 Per Bothner (bothner@kalessin.cygnus.com)
1572 * Makefile.in (VERSION): Increase to 0.66.
1574 Fri Aug 19 17:28:41 1994 Per Bothner (bothner@kalessin.cygnus.com)
1576 * iolibio.h: Added _IO_printf prototype.
1577 Added extern "C" { ... } wrappers #ifdef __cplusplus.
1578 Bugs reported by Neal Becker <neal@ctd.comsat.com>.
1580 Wed Aug 17 18:17:15 1994 Per Bothner (bothner@kalessin.cygnus.com)
1582 * fileops.c (_IO_file_seekoff): For _IO_seek_cur, adjust for
1583 read-ahead before jumping to label dumb.
1585 Wed Aug 3 13:15:01 1994 H.J. Lu (hjl@nynexst.com)
1587 * libioP.h (CHECK_FILE(FILE,RET)): new, which checks for
1588 FILE == NULL and _IO_MAGIC_MASK.
1589 (COERCE_FILE(FILE)): merged into CHECK_FILE(FILE,RET)
1592 * iofread.c, iofwrite.c: add CHECK_FILE(fp, 0);
1593 * iofclose.c: add CHECK_FILE(fp, EOF); remove _IO_MAGIC_MASK check.
1595 * iofflush.c, iofgetpos.c, iofputs.c, iofscanf.c,
1596 iofsetpos.c, iofvbuf.c, ioungetc.c:
1597 Add CHECK_FILE(fp, EOF) and remove COERCE_FILE(fp).
1599 * iofgets.c: add CHECK_FILE(fp, NULL) and remove COERCE_FILE(fp).
1600 * iofprintf.c: add CHECK_FILE(fp, -1) and remove COERCE_FILE(fp).
1601 * ioftell.c: add CHECK_FILE(fp, -1L) and remove COERCE_FILE(fp).
1602 * iosetbuffer.c: add CHECK_FILE(fp, ) and remove COERCE_FILE(fp).
1604 Fri Aug 12 15:35:39 1994 Per Bothner (bothner@kalessin.cygnus.com)
1606 * iofdopen.c (_IO_fdopen): #define O_ACCMODE if it isn't.
1607 Still set O_APPEND if "a" is given, but don't unset it
1608 if it isn't. Added comment.
1610 Mon Aug 8 13:11:00 1994 Per Bothner (bothner@kalessin.cygnus.com)
1612 * gen-params (VTABLE_LABEL_PREFIX): Changes in the implementation.
1613 For look for _*vt[$_.]7*filebuf in the nm output, because that
1614 matches what g++ produces and has produced. Thus it should be
1615 somewhat more robust.
1617 Sun Aug 7 22:52:49 1994 Per Bothner (bothner@kalessin.cygnus.com)
1619 * gen-params (CC): Remove no-longer-needed -I options
1620 passed to xgcc (now they are implied by the -B options).
1622 Wed Jul 20 16:41:13 1994 Per Bothner (bothner@kalessin.cygnus.com)
1624 * Makefile.in (tooldir): Added definition, so we can do
1625 'make install' in this directory.
1626 Bug reported by Klamer Schutte <schutte@tpd.tno.nl>.
1628 Mon Jul 18 18:02:34 1994 Per Bothner (bothner@kalessin.cygnus.com)
1630 * gen-params (VTABLE_LABEL_PREFIX): Remove filename sppearing
1631 by itself. Add comment explaining what is going on.
1633 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@jalod)
1635 * libio.h: define _IO_uid_t and _IO_HAVE_ST_BLKSIZE
1638 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@jalod)
1640 * iopopen.c: Don't include <errno.h>. It is included in "libioP.h".
1642 * iopopen.c (_IO_proc_close) : check if fp is on the list
1645 Thu Jul 14 16:38:47 1994 Per Bothner (bothner@kalessin.cygnus.com)
1647 * gen-params (CONFIG_NM): Make sed scripts to find vtable name
1648 mangling more robost for different forms of nm output.
1650 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@jalod)
1652 * iofopen.c (_IO_fopen): don't check [redundantly] fp == NULL after
1653 IO_file_init(&fp->_file).
1655 * iomanip.h (template<class TP> class iapp):
1656 change ostream to istream.
1658 Tue Jul 12 14:09:02 1994 Per Bothner (bothner@kalessin.cygnus.com)
1660 * Makefile.in (VERSION): Increase to 0.65.
1661 * libioP.h (builtinbuf_vtable): Only define #ifdef __cplusplus.
1663 * gen-params (_G_int8_t): Only define if defined(__STDC__),
1664 because K&R C compilers don't have signed char.
1665 (_G_int64_t, _G_uint64_t): Only define if defined(__GNUC__)
1666 because other compilers may not have long long.
1668 Sun Mar 06 13:10:21 1994 H.J. Lu (hjl@nynexst.com)
1670 * floatconv.c (_IO_dtoa ()): fix a small memory leak, set the
1671 "on_stack" field to be 0 if "result" is not NULL.
1673 Sat Mar 05 13:18:20 1994 H.J. Lu (hjl@nynexst.com)
1675 * floatconv.c (_IO_dtoa ()): if the number of digits of the
1676 floating point number is more than the previous one, free the
1677 old string and allocate a new one.
1678 [Minor optimization to avoid Bcopy. -PB]
1680 Mon Jul 11 10:53:41 1994 Per Bothner (bothner@kalessin.cygnus.com)
1682 * fileops.c (_IO_file_underflow): 'count' should be unsigned,
1683 since it contains the return value of read. Reported by
1684 Teemu Torma <tot@trema.fi>.
1686 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@nynexst.com)
1688 * floatconv.c (_IO_strtod ()): make "+" and "-" as error.
1690 Sat Jul 9 15:09:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
1692 Make sure _IO_FILE::_flags is always initialized correctly, for the
1693 C functions (fopen, fdopen, popen), and not just the C++ functions.
1694 * fileops.c (_IO_file_init): Set _flags to CLOSED_FILEBUF_FLAGS.
1695 * fileops.c (_IO_file_fopen): Remove bogus assignment.
1696 * filebuf.cc (filebuf constructors): Don't pass CLOSED_FILEBUF_FLAGS
1697 to streambuf constructor - _IO_file_init does it instead.
1698 * filebuf.cc (CLOSED_FILEBUF_FLAGS): Removed.
1699 * iopopen.c (_IO_proc_open): Use _IO_mask_flags.
1701 Thu Jun 30 08:49:53 1994 Jason Merrill (jason@deneb.cygnus.com)
1703 * dbz/Makefile.in (mostlyclean): Add target.
1705 Wed Jun 29 09:30:12 1994 Jason Merrill (jason@deneb.cygnus.com)
1707 * gen-params: Woops, can't run a C program to determine target
1708 characteristics. Sigh.
1710 Tue Jun 28 03:11:33 1994 Jason Merrill (jason@deneb.cygnus.com)
1712 * gen-params: Add _G_{,u}int{8,16,64}_t, use a short C program to
1713 determine what all these should be rather than trying to compare
1714 the MAX numbers in the shell.
1716 Sun Jun 26 21:04:24 1994 Per Bothner (bothner@kalessin.cygnus.com)
1718 * stdiostream.h, stdiostream.cc (stdiobuf::xsgetn): Removed.
1719 Too hairy. If we want to optimize it, we should do so in
1720 filebuf::xsgetn (or rather _IO_file_xsgetn).
1722 * stdiostream.h (class stdiobuf), stdiostream.cc: Fix parameter
1723 and return types of virtual function to matcher base types (Oops!).
1724 * streamstream.cc (stdiobuf::xsgetn, stdiobuf::xsputn):
1725 Optimize to call fread.fwrite directly if !buffered.
1726 * fileops.c: Fix comment.
1728 Fri Jun 24 11:28:18 1994 Per Bothner (bothner@kalessin.cygnus.com)
1730 * stdiostream.h (istdiostream, ostdiostream): New classes.
1732 More robust final cleanup.
1733 * cleanup.c (_IO_register_cleanup): Register _IO_cleanup,
1734 rather than _IO_flush_all.
1735 * filedoalloc.c: Update comment.
1736 * genops.c (_IO_unbuffer_all): New. Makes all files unbuffered.
1737 * genops.c (_IO_cleanup), libioP.h: New function. Call
1738 _IO_flush_all, and then _IO_unbuffer_all. This is in case C++
1739 destructors try to do output *after* _IO_cleanup is called.
1741 Construct standard stdiobufs statically (using type punning).
1742 * stdstrbufs.c; Unless _STDIO_USES_IOSTREAM declare standard
1743 stdiobufs (for stdin, stdout, and stderr), using type punning
1744 (struct _IO_fake_stdiobuf). This avoids constructor-time problems.
1745 * stdstreams.cc: Remove the declarations of the stdiobufs.
1746 Instead use the new (fake) ones in stdstrbufs.cc. We no longer
1747 have to call ios::sync_with_stdio at constructor time.
1749 Preliminary support for new ANSI streambuf::uflow virtual.
1750 * libioP.h (struct _IO_jump_t): Add __uflow field.
1751 * genops.c (_IO_default_uflow), libioP.h: New function.
1752 * fileops.c (_IO_file_jumps), iopopen.c (IO_proc_jumps),
1753 iovfprintf.c (_IO_helper_jumps), strops.c (_IO_str_jumps),
1754 streambuf.cc (_IO_streambuf_jumps): Add _IO_default_uflow.
1755 * genops.c (__uflow): New function.
1756 (save_for_backup): New function. Some code shared by
1757 __underflow and __uflow, moved out from the former.
1758 (_IO_default_uflow): New function.
1759 * libio.h (_IO_getc): Call __uflow, not __underflow.
1761 Wed Jun 22 20:22:49 1994 Per Bothner (bothner@kalessin.cygnus.com)
1763 Make sure that the vtable of a streambuf is always valid,
1764 which makes ios::rdbuf simpler and faster.
1765 * gen-params: Add code to determine _G_VTABLE_LABEL_HAS_LENGTH,
1766 _G_VTABLE_LABEL_PREFIX, _G_VTABLE_LABEL_PREFIX_ID, and
1767 _G_USING_THUNKS, which describe how virtual function tables are named.
1768 * stdfiles.c (FILEBUF_LITERAL): Moved to libioP.h.
1769 * libioP.h (builtinbuf_vtable): New (complicated) declaration.
1770 * filebuf.cc (filebuf::__new), strstream.cc (SET_STR_JUMPS):
1771 Initialize vtable to builtinbuf_vtable, not NULL.
1772 * stdstrbufs.cc: New file. Same as stdfiles.c, except that
1773 vtable is initialized to builtinbuf_vtable, not NULL.
1774 * streambuf.h (ios::rdbuf): Can now simplify/optimize, due to
1775 above changes. Always, just return _strbuf.
1776 * builtinbuf.h, builtinbuf.cc (builtinbuf::vtable,
1777 builtinbuf::get_builtin_vtable): Removed. No longer needed.
1778 * streambuf.h, builtinbuf.cc (ios::_IO_fix_vtable): No longer needed.
1779 Only defined #ifdef _STREAM_COMPAT, for binary compatibility.
1780 * Makefile.in: Move stdfiles.o from IO_OBJECTS to STDIO_WRAP_OBJECTS.
1781 (IOSTREAM_OBJECT): Add stdstrbufs.o.
1782 * Makefile.in (_G_config.h): Pass $(CXXFLAGS) as part of $(CXX).
1784 Fri Feb 11 11:08:01 1994 SBPM Marc GINGOLD (marc@david.saclay.cea.fr)
1786 * iovfprintf.c (helper_vfprintf): add
1787 hp->_IO_file_flags = _IO_MAGIC|(_IO_IS_FILEBUF+_IO_NO_READS);
1788 [This is needed because _IO_vfprintf checks for _IO_UNBUFFERED. -PB]
1789 [Actually: don't set _IO_IS_FILEBUF. -PB]
1791 Wed Jun 22 13:49:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
1793 * stdiostream.cc, stdiostream.h (stdiobuf::buffered): New methods.
1795 * iofdopen.c (_IO_fdopen): Various minor improvements.
1797 * iovfscanf.c: Don't return EOF on control_failure.
1799 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@nynexst.com)
1801 * iovfscanf.c: Enforce the sequence of the conversion specifications.
1803 Fri Jun 17 20:57:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
1805 * iofdopen.c: Use fcntl to check that requested access mode is
1806 compatible with existing access mode, and to change the
1807 O_APPEND file status flag if need be.
1809 Thu Jun 16 17:33:50 1994 Per Bothner (bothner@kalessin.cygnus.com)
1811 * streambuf.h (ios::init): Initialize all the fields.
1812 This may be overkill, but the current ANSI working paper requires it.
1813 * streambuf.h (ios::ios): Reimplement in terms of ios::init.
1814 * iostream.cc (Non-default constructors istream::istream,
1815 ostream::ostream, iostream::iostream): Cannot use a mem-initializer,
1816 because it is ignored if initializing a derived class. Instead,
1819 Wed Jun 15 13:35:37 1994 Per Bothner (bothner@kalessin.cygnus.com)
1821 * stdstreams.cc (ISTREAM_DEF): Fix typo (it's a _fake_istream, not
1822 a _fake_ostream). Reported by Jason Shirk <jshirk@gomez.intel.com>.
1824 * stdiostream.h, stdiostream.cc (stdiobuf::~stdiobuf): New.
1826 * stdiostream.cc (stdiobuf::sync): Call _IO_do_flush rather
1827 than filebuf::sync (to avoid bad seeks).
1829 * libioP.h (_IO_do_flush): Add missing parentheses.
1831 Fri Jun 3 19:16:57 1994 Jason Merrill (jason@deneb.cygnus.com)
1833 * config.shared (CXXFLAGS): Remove -fno-implicit-templates.
1835 * iomanip.h: Add explicit external instantiations.
1837 Wed Jun 1 14:14:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
1839 * libio.h (struct _IO_FILE_plus): Move definition from here ...
1840 * libioP.h (struct _IO_FILE_plus): ... to here. Since this
1841 file is private to the implementation, we can rename the fields
1842 from the implementor's to the user's name anme space.
1843 (This avoids a lossage on SCO, whose stdio.h has a #define _file.)
1844 * iofdopen.c, iofopen.c, stdfiles.c: Fix field references accordingly.
1845 * iopopen.c (struct_IO_proc_file): Rename fields from
1846 implementor's name space to user's, and update usages.
1847 * streambuf.h (streambuf::_vtable): Re-implement to not need
1848 struct _IO_FILE_plus.
1849 * strfile.h (struct _IO_strfile_): Likewise.
1851 Wed Jun 1 13:57:48 1994 Jason Merrill (jason@deneb.cygnus.com)
1853 * config.shared (CXXFLAGS): Use -fno-implicit-templates instead of
1854 -fexternal-templates.
1856 Tue May 31 08:49:28 1994 Mike Stump (mrs@cygnus.com)
1858 * genops.c, iofclose.c, iofdopen.c, iofopen.c, iopopen.c: Be
1859 consistent about protecting #include <stdlib.h>.
1861 * ioputs.c: Add #include <string.h>, to avoid warning on alpha.
1863 * iofdopen.c: Add #include <stdlib.h>, so that malloc works on
1864 machines where sizeof(int) != sizeof(void *).
1866 Mon May 30 17:26:49 1994 Per Bothner (bothner@kalessin.cygnus.com)
1868 * pfstream.cc (ipfstream::ipfstream, opfstream::opfstream):
1869 Reverse sense of test of return value of procbuf::open.
1870 (It returns NULL on failure.)
1872 * filedoalloc.c (_IO_file_doallocate): Remove dead code for
1873 USE_MALLOC_BUF. Add code to return EOF if ALLOC_BUF fails.
1875 Sat May 28 13:47:47 1994 Jason Merrill (jason@deneb.cygnus.com)
1877 * iomanip.cc: Explicitly instantiate smanip<int> and
1878 smanip<ios::fmtflags>.
1880 Wed May 25 16:04:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
1882 * strfile.h: Use __P instead of _PARAMS.
1884 Fri May 20 11:42:17 1994 Per Bothner (bothner@kalessin.cygnus.com)
1886 * libio.h: Rename _PARAMS macro to __P for better glibc and BSD
1887 compatibility. (Also define _PARAMS for backwards compatibility.)
1888 * cleanup.c, iolibio.h, ioperror.c, iovfprintf.c, iovfscanf.c,
1889 libioP.h: Use __P instead of _PARAMS.
1890 * iostdio.h: Use __P instead of _ARGS.
1892 * fileops.c (_IO_file_read): Minor stylistic tweak. (It is
1893 preferable to test errno *after* the error return.)
1895 Fri May 13 15:25:36 1994 Jason Merrill (jason@deneb.cygnus.com)
1897 * iostream.*: Add insertor and extractor for bool (just pretend
1900 Fri May 13 14:12:03 1994 Mike Stump (mrs@cygnus.com)
1902 * gen-params: Check for builtin bool support.
1904 Wed May 11 00:48:35 1994 Jason Merrill (jason@deneb.cygnus.com)
1906 Make libg++ build with gcc -ansi -pedantic-errors
1907 * gen-params: #ifdef __STRICT_ANSI__, #define _G_NO_NRV.
1908 * pfstream.cc (ipfstream::ipfstream): Wrap use of variable-size
1909 array in #ifndef __STRICT_ANSI__.
1911 Fri May 6 12:42:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
1913 * Makefile.in (VERSION): Increase to 0.64.
1915 * isgetline.cc (istream::getline): The delimiter should *not*
1916 be included in the gcount().
1918 * filedoalloc.c: #include <stdlib.h> (If __STDC__) to get malloc.
1919 * iostream.h (ostream::put): Remove overloaded versions, to match
1920 new working paper. (Actually just put inside _STREAM_COMPAT, for now.)
1922 Tue May 3 14:14:57 1994 Per Bothner (bothner@kalessin.cygnus.com)
1924 * genops.c (_IO_default_finish): Make robust when called
1925 multiple times on the same _IO_FILE*. (One way this can
1926 happen is by the builtinbuf destructor being followed by the
1927 streambuf destructor.)
1929 Mon May 2 13:55:26 1994 Jason Merrill (jason@deneb.cygnus.com)
1931 * gen-params: Actually determine wint_t rather than depending on
1932 cpp to provide it or defaulting to the underlying type for
1935 Sat Apr 30 14:47:30 1994 Jason Merrill (jason@deneb.cygnus.com)
1937 * gen-params: Add _G_wint_t, allow __*_TYPE__ to override values
1938 at compile time, fix definition of _G_ARGS.
1940 Fri Apr 29 16:55:37 1994 Per Bothner (bothner@kalessin.cygnus.com)
1942 * libio.h: Remove #pragma interface. (There is no implementation.)
1944 Mon Mar 28 14:22:26 1994 Per Bothner (bothner@kalessin.cygnus.com)
1946 * iostream.cc (ostream::operator<<(double)): Add/fix support
1947 for printing '+' when ios::showpos is set.
1948 (Fixes bug reported by Doug Moore <dougm@cs.rice.edu>.)
1949 * iostream.cc (istream::read): Set eofbit as well as failbit on eof.
1950 * iostream.cc (ostream::operator<<(int)): Fix conversion
1951 to unsigned (used to lose on INT_MIN).
1952 * iostream.cc (ostream::operator<<(long)): Use (unsigned long),
1953 rather than (unsigned) for temporary.
1955 * config.shared, Makefile.in: Remove definitions and uses
1956 of XTRAFLAGS. It is no longer needed, since it is
1957 now implied by the -B flag.
1959 Fri Mar 25 00:31:22 1994 Jason Merrill (jason@deneb.cygnus.com)
1961 * builtinbuf.h: Add put /**/ around comment on trailing #endif.
1963 * Makefile.in (c++clean): Make clean in tests subdir, too.
1965 Wed Mar 23 16:42:09 1994 Doug Evans (dje@canuck.cygnus.com)
1967 * configure.in: Remove Makefile.tem before creating it.
1968 Needed when configuring from read-only source trees.
1970 Wed Mar 16 14:06:42 1994 Per Bothner (bothner@kalessin.cygnus.com)
1972 * stdstreams.cc: Fix so that stdiobuf are used for cin/cout/cerr,
1973 unless _STDIO_USES_IOSTREAM is defined.
1974 * filebuf.cc (filebuf::setbuf): Fix confusion about return
1975 value from _IO_file_setbuf.
1977 Sun Mar 13 00:54:12 1994 Paul Eggert (eggert@twinsun.com)
1979 * config.shared: Ensure that `all' precedes `.PHONY';
1980 BSDI 1.1 needs this.
1982 Sat Mar 12 03:58:00 1994 Paul Eggert (eggert@twinsun.com)
1984 * config.shared: Output a definition of INSTALL that uses
1985 $${rootme}, not ${rootme}. Most `make's don't care, but BSDI
1988 Fri Mar 4 17:33:01 1994 Per Bothner (bothner@kalessin.cygnus.com)
1990 * iopopen.c: #define _POSIX_SOURCE.
1991 * isgetline.c (istream::getline): Various fixes.
1993 Thu Mar 3 17:58:20 1994 Per Bothner (bothner@kalessin.cygnus.com)
1995 * iostream.cc (write_int): Fix test for when to add initial '0'
1996 when ios::oct and ios::showbase are set.
1997 For hex, showbase adds initial 0x (or 0X) regardless of val==0.
1998 Bugs reported by Phil Roth <proth@cs.uiuc.edu>.
2000 Mon Feb 21 13:18:20 1994 H.J. Lu (hjl@nynexst.com)
2002 * libio.h (_IO_PENDING_OUTPUT_COUNT(_fp)): return the
2003 pending output count in _fp.
2005 Fri Feb 25 09:26:57 1994 Ian Lance Taylor (ian@cygnus.com)
2007 * gen-params: For HAVE_SYS_WAIT, compile dummy.c, not dummy.C.
2009 Tue Feb 22 11:19:09 1994 Per Bothner (bothner@kalessin.cygnus.com)
2011 * streambuf.h, genops.c, libioP.h: Rename references to
2012 _IO_FILE fields other_gbase => _IO_save_base,
2013 _aux_limit => _IO_backup_base, and _other_egptr => _IO_save_end.
2014 * libio.h: Remove no-longer needed macros _other_gbase,
2015 _aux_limit, and _other_egptr.
2016 * genops.c (__underflow, _IO_default_finishh, _IO_unsave_markers):
2017 Check _IO_save_base for NULL before FREEing it or calling
2018 _IO_free_backup_area.
2020 Thu Feb 17 15:26:59 1994 Per Bothner (bothner@kalessin.cygnus.com)
2022 * gen-params: Improve deduction of _G_uint32 and _G_int32.
2023 Should now work for 16-bit, 32-bit, or 64-bit targets.
2024 * gen-params: Check for sys/wait.h using ${CC}, since it's
2025 now used in a C file, not a C++ file.
2026 * floatconv.c: Typedef _G_uint32_t as unsigned32, and use
2027 unsigned32 in place of unsigned long. (Needed for Alpha.)
2029 Tue Feb 8 13:40:15 1994 Per Bothner (bothner@kalessin.cygnus.com)
2031 * fileops.c (_IO_file_close_it): Simplify by using _IO_do_flush.
2032 * fileops.c (_IO_file_finish): Don't call _IO_file_close_it -
2033 do it inline. Call _IO_do_flush even if _IO_DELETE_DONT_CLOSE.
2034 * fileops.c (_IO_file_attach): Set _IO_DELETE_DONT_CLOSE.
2035 * genops.c (_IO_flush_all): Only call overflow if there is
2037 * iofclose.c (_IO_fclose): Check that magic number is correct,
2038 and clear it when done. Avoids crashing some buggy applications.
2039 * iogetline.c (_IO_getline): Don't gratuitously increment old_len.
2040 * iogets.c (_IO_gets): Take care to get required ANSi semantics.
2042 Sun Feb 6 19:50:39 1994 Jason Merrill (jason@deneb.cygnus.com)
2044 * iomanip.cc: Explicitly instantiate operator<< and >>.
2046 Fri Feb 4 12:28:22 1994 Jason Merrill (jason@deneb.cygnus.com)
2048 * config.shared (CXXFLAGS): Use -fexternal-templates.
2050 * iomanip.h: Uncomment #pragma interface.
2052 Thu Jan 20 13:48:40 1994 Per Bothner (bothner@kalessin.cygnus.com)
2054 If no characters are read by fgets, ANSI C doesn't allow '\0' to
2055 be written to the buffer, but it is required by ANSI C++
2056 for istream::get and istream::getline. Both use _IO_getline ...
2057 * iogetline.c (_IO_getline): Don't write a '\0' at the end
2058 of the read data. The input buffer length does not include
2060 * iofgets.c, iogets.c: Change appropriately.
2061 Also check for _IO_ERR_SEEN, as required by ANSI.
2062 * isgetline.cc: Update accordingly.
2064 Mon Jan 17 13:24:26 1994 Jason Merrill (jason@deneb.cygnus.com)
2066 * Makefile.in (c++clean): Added target for compiler testing
2067 (i.e. make c++clean all).
2069 Mon Jan 10 11:20:42 1994 Per Bothner (bothner@kalessin.cygnus.com)
2071 * libio.h (_IO_putc): Add parentheses.
2072 Patch from Rik Faith <faith@cs.unc.edu>.
2074 Tue Jan 4 01:32:28 1993 Hongjiu Lu (hjl@nynexst.com)
2076 * genops.c (_IO_default_xsputn):
2077 (_IO_default_xsgetn):
2078 * ioignore.c: change "_IO_size_t count" to
2079 "_IO_ssize_t count".
2080 * iogetline.c: change "_IO_size_t len" to
2083 Mon Dec 20 00:31:21 1993 Per Bothner (bothner@kalessin.cygnus.com)
2085 * config.shared (CXXINCLUDES): Fix quoting of $(NOSTDINC).
2087 Sun Dec 19 21:03:45 1993 Per Bothner (bothner@kalessin.cygnus.com)
2089 * Makefile.in (VERSION): Increase to 0.63.
2091 Fri Dec 17 13:02:44 1993 Per Bothner (bothner@kalessin.cygnus.com)
2093 * iofread.c (_IO_fread): Return 0 if either size or count is 0.
2094 * iofwrite.c (_IO_fwrite): Return 0 if either size or count is 0.
2095 (This is consistent with fread, and most implementations, but not
2096 with a literal reading of the ANSI spec.)
2097 * iovfscanf.c (_IO_vfscanf): If got EOF while skipping spaces,
2098 set seen_eof and break (instead of returning).
2099 * sbscan.cc (streambuf::vscan): Set error state before returning.
2100 * streambuf.h: Add a forward declarations for class istream
2101 to work around a g++ vtable name mangling bug. (Patch from
2102 harry@pdsrc.hilco.com via Jeffrey A Law <law@snake.cs.utah.edu>.)
2105 Sat Dec 11 16:21:08 1993 Per Bothner (bothner@kalessin.cygnus.com)
2107 * iovfprintf.c (struct helper_file, _IO_helper_overflow,
2108 helper_vfprintf, _IO_helper_jumps): New structs and functions.
2109 (_IO_vfprintf): Use helper_vfprintf to make printing to
2110 unbuffered files more efficient.
2111 * genops.c (_IO_default_underflow), libioP.h: New function.
2113 * iovsscanf.c (_IO_vsscanf): The input string's length marks
2114 its logical end-of-file.
2116 Wed Dec 8 13:20:46 1993 Per Bothner (bothner@kalessin.cygnus.com)
2118 * indstream.cc (indirectbuf::sync()): Don't crash if get_stream()
2119 or put_stream() are NULL; sync() both streams even if error.
2121 Sun Dec 5 19:24:29 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
2123 * iostreamP.h (convert_to_seekflags): Use _IO_seek_set instead of
2124 0 inside the conditial expressions.
2126 * iofsetpos.c (_IO_fsetpos): Delete unused var `pos'.
2128 Sat Dec 4 15:57:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
2130 * filedoalloc.c (_IO_file_doallocate): Change type of couldbetty
2131 to int, and type of size to _IO_size_t, instead of size_t.
2132 (Change needed for Ultrix, which incorrectly deliberately doesn't
2133 define size_t in <sys/types.h> if _POSIX_SOURCE is defined.)
2135 Thu Dec 2 22:43:03 1993 Per Bothner (bothner@kalessin.cygnus.com)
2137 * fileops.c (_IO_file_finish): Remove redundant call to _IO_un_link.
2138 * iofclose.c (_IO_fclose): Don't call fp->_jumps->__close; it's
2139 too low-level. Instead call _IO_file_close_it.
2140 * dbz/Makefile.in (rclean, distclean): Add some missing files.
2142 Wed Dec 1 13:19:14 1993 Per Bothner (bothner@kalessin.cygnus.com)
2144 * config/hpux.mt (MATH_H_INLINES): No longer define.
2145 Patch from Jeffrey A Law <law@snake.cs.utah.edu>.
2147 Fri Nov 26 13:28:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
2149 * config.shared (CINCLUDES): Define default if libg++.
2150 * iofread.c: Use _IO_sgetn.c.
2151 * iolibio.h (_IO_clearerr): Fix typo.
2152 * genops.c (_IO_seekmark): Return 0 on success.
2153 * floactconv.c (Binit): Change to static.
2154 * iofclose.c (_IO_fclose): Check if file is _IO_stdin, _IO_stdout,
2155 or _IO_stderr; if so don't try to free it. Fix from hjl@nynexst.com.
2157 * genops.c (_IO_default_sync), libioP.h: New function.
2158 * libioP.h (_IO_default_close): Use _IO_default_sync -same interface.
2160 * Makefile.in: Increase version to 0.62.
2161 * iopopen.c (_IO_proc_close): Use waitpid (available in libibarty,
2162 if needed), rather than wait. Don't block/ignore SIGINT etc,
2163 as this is counter to Posix.2.
2164 * iopopen.c: Chain open proc_files, and have the child close
2165 the ones that are open (as required by Posix.2).
2167 * fstream.h (fstreambase::rdbuf), strstream.h (strstreambase
2168 ::rdbuf): Call ios::rdbuf() instead of getting _strbuf directly.
2170 * sbscan.cc (streambuf::vscan): Comment out duplicate default arg.
2171 * floatconv.c: Recognize Alpha and i860 as little-endian.
2172 * streambuf.cc: Return two bogus value returns from void functions.
2173 * iolibio.h, iofwrite.c: Fix buffer type to (const void*).
2174 * libio.h: Predefine of struct _IO_FILE to help non-g++-compilers.
2175 * libioP.h, pfstream.cc, stdfiles.c, iovfscanf.c: Cleanup syntax junk.
2176 * stdstreams.cc: Minor simplification.
2177 * streambuf.h, builtinbuf.cc: Add non-const ios::_IO_fix_vtable()
2178 for temporary binary compatibility.
2180 * filedoalloc.c, fileops.c: Add _POSIX_SOURCE.
2181 * fileops.c, iofopen.c, iofputs.c, iostream.cc, strops.c,
2182 strstream.cc, genops.c: Add some missing #includes.
2183 * iofopen.c, iofdopen.c: Return NULL if malloc fails.
2184 * iovfscanf.c: Fix return type in strtol prototype.
2185 * fwrite.c: Remove bogus file.
2187 Wed Nov 17 14:09:42 1993 Per Bothner (bothner@cygnus.com)
2189 * builtinbuf.cc (ios::_IO_fix_vtable), streambuf.h: Make method
2190 const, to reduce problems with -Wcast-qual.
2192 Tue Nov 16 19:30:42 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2194 * config.shared (CXXINCLUDE): use ${} instead of $() for NOSTDINC
2196 Tue Nov 16 14:15:45 1993 Per Bothner (bothner@kalessin.cygnus.com)
2198 * iopopen.c (_IO_proc_close): Re-structure to avoid
2199 declarations after statements.
2200 * floatconv.c: If not __STDC__, #define DBL_MANT_DIG.
2201 * config/isc.mt (G_CONFIG_ARGS): Remove bogus spaces.
2202 Patch from David A. Avery <daa@nic.cerf.net>.
2204 Tue Nov 16 15:58:31 1993 Mark Eichin (eichin@cygnus.com)
2206 * Makefile.in (_G_config.h): explicitly use $(SHELL) to run
2207 gen-params, since we know it is a script (we're explicitly looking
2208 in ${srcdir} for it) and /bin/sh might not be good enough.
2210 Mon Nov 15 13:26:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
2212 * builtinbuf.cc: Don't depend on initialization of static
2213 variable builtinbuf::vtable, since that might happen after
2214 we need it (for a static constructor). Instead, initialize
2215 it when needed by inlining the code from get_builtin_vtable
2216 into ios::_IO_fix_vtable().
2218 * floatconv.c: Avoid using #elif, which some C compilers lack.
2219 * iogetline.c, libioP.h: Make char parameter be int, to avoid
2220 some default promotion anomalies.
2222 Fri Nov 5 11:49:46 1993 Per Bothner (bothner@kalessin.cygnus.com)
2224 * config.shared (do-clean-dvi): Remove TeX work files.
2225 * iopopen.c (extern _IO_fork): Don't use parameter type void.
2226 * strops.c (_IO_str_init_static): Clear the allocate_buffer
2227 function pointer, to mark the strfile as being static.
2228 Bug fix from Mike Raisbeck <mike@pudding.rtr.COM>.
2230 Thu Nov 4 10:44:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
2232 * filebuf.cc (filebuf:): Use sseekoff rather than seekoff
2233 (which loses if vtable pointer is NULL).
2235 * iostream.cc (ostream::operator<<(long long n)): Fix thinko.
2237 * Makefile.in (VERSION): Increase to 0.60.
2238 * Makefile.in (IO_OBJECTS): Added iopopen.o.
2239 * config.shared (DISTCLEAN): Also remove Make.pack.
2240 * config.shared (CXXINCLUDES): Add $(NOSTDINC).
2242 * config.shared (INSTALL): Fix so it ues the correct install.sh
2243 whether $srcdir is absolute or relative.
2245 * floatconv.c (DBL_MAX_10_EXP): Fix default value.
2247 Wed Nov 3 10:20:49 1993 Per Bothner (bothner@kalessin.cygnus.com)
2249 * gen-params: Make more robust to allow random junk (NeXT
2250 has spaces) before typedefs.
2252 * fileops.c (_IO_file_overflow): Reduce code duplication.
2253 * Makefile.in (IO_OBJECTS): Remove ioputs.o.
2255 * iovfscanf.c, libio.h: Extra parameter to _IO_vfscanf,
2256 for optionally setting an error indication..
2257 * iofscanf.c, ioscanf.c, iofscanf.c, iovsscanf.c: Fix calls to
2258 _IO_vfscanf to pass an extra NULL.
2259 * sbscan.cc (streambuf::vscan): If passed an extra stream,
2260 set its error state (using new _IO_vfscanf parameter.
2262 * filedoalloc.c, fileops.c, genops.c, iogetline.c, ioignore.c,
2263 libio.h, libioP.h, streambuf.cc streambuf.h, strfile.h, strops.c,
2264 strstream.cc: Replace macros (_base, _ebuf, _eback, _gptr, _egptr,
2265 _pbase, _pptr, _epptr) by field names (_IO_buf_base, _IO_buf_end,
2266 _IO_read_base, _IO_read_pre, IO_read_end, _IO_write_base,
2267 _IO_write_ptr, _IO_write_end).
2268 * libio.h: Remove the old macros (which fixes a conflict.
2270 Mon Nov 1 15:22:12 1993 Per Bothner (bothner@kalessin.cygnus.com)
2272 * iostream.cc: Use _IO_sputn instead of sputn. _IO_sputn does
2273 not require a vtable pointer, and is also slightly faster.
2275 * builtinbuf.{h,cc} (builtinbuf::setbuf): Fix return and
2278 Mon Oct 25 12:56:33 1993 Per Bothner (bothner@kalessin.cygnus.com)
2280 Kludge to make sure _IO_FILE buffers get flushed before exit.
2281 * dbz/dbzmain.c, dbz/fake.c, dbz/byteflip.c:
2282 Invoke DBZ_FINISH macro (if defined) before (normal) exits.
2283 * dbz/Makefile.in (CFLAGS): Define DBZ_FINISH to call _IO_flush_all.
2285 Sat Oct 23 22:10:53 1993 Per Bothner (bothner@kalessin.cygnus.com)
2287 * Makefile.in (VERSION): Set to 0.60 for libg++ release.
2288 * fileops.c (_IO_file_attach): Set _offset to _IO_pos_BAD.
2289 * iostream.cc (ostream::flush): Fix thinkp.
2290 * editbuf.cc, isgetsb.cc, isscan.cc, osform.cc, parsestream.cc,
2291 pfstream.cc, sbform.cc, sbscan.cc, stdstreams.cc, stream.cc:
2292 Replace #include "ioprivate.h" by #include "libioP.h" (and
2293 sometimes stdarg.h, stdlib.h and/or string.h).
2294 * ioprivate.h: Removed.
2297 Thu Oct 21 19:24:02 1993 Per Bothner (bothner@kalessin.cygnus.com)
2299 * PlotFile.h, SFile.h, editbuf.cc, editbuf.h, filebuf.cc,
2300 fstream.cc, fstream.h, indstream.cc, indstream.h, iomanip.cc,
2301 iomanip.h, ioprivate.h, iostream.cc, iostream.h, isgetline.cc,
2302 isgetsb.cc, parsestream.cc, parsestream.h, pfstream.cc,
2303 pfstream.h, procbuf.cc, procbuf.h, stdiostream.cc, stdiostream.h,
2304 stdstreams.cc, streambuf.cc, streambuf.h, strstream.cc,
2305 strstream.h: Remove old (duplicate) copyright notices.
2307 * iostream.cc: Fix calls to sync() to be safe in the presence
2308 of vtable-less streambufs.
2310 Wed Oct 20 15:22:04 1993 Per Bothner (bothner@kalessin.cygnus.com)
2312 * streambuf.h (streambuf::underflow, streambuf::overflow):
2313 Don't make virtual functions pure.
2314 * streambuf.cc (streambuf::underflow, streambuf::overflow):
2315 Default definitions (return EOF).
2316 * fstream.h: Add new (int fd, char* buf, int len) constructors.
2317 These are deprecated, but added for AT&T compatibility.
2318 * fstream.cc fstreambase::fstreambase(int fd, char *p, int l): New.
2320 Thu Oct 14 14:57:01 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2322 * configure.in: use 'mv -f' instead of 'mv'
2324 Tue Oct 12 05:01:44 1993 Mike Stump (mrs@cygnus.com)
2326 * floatconv.c: Fix typo, change __STDC to __STDC__.
2328 Mon Oct 11 17:03:12 1993 Per Bothner (bothner@kalessin.cygnus.com)
2330 * cleanup.c: It should be #if _G_HAVE_ATEXIT, not #ifdef.
2332 * floatconv.c, iostrerror.c, iovfprintf.c, iovfscanf.c, libioP.h:
2333 Bunch of fixes to allow use of non-ANSI (K&R) C compilers.
2335 * Makefile.in (iostream.list): Use CC=$(CXX) to force use of gcc.
2338 Fri Oct 8 16:19:58 1993 Per Bothner (bothner@kalessin.cygnus.com)
2340 * Makefile.in: Move ioungetc.o from STDIO_WRAP_OBJECTS to
2341 IO_OBJECTS (since it is needed for iovfscanf.c).
2342 * iostrerror.c: Add declaration of strerror.
2344 Thu Oct 7 12:02:28 1993 Per Bothner (bothner@kalessin.cygnus.com)
2346 * cleanup.c: New file, to cause flushing at exit.
2347 * filedoalloc.c: Cause flushing on exit.
2348 * Makefile.in (OSPRIM_OBJECTS): Add cleanup.o.
2349 * gen-params: Check for atexit.
2351 Tue Oct 5 19:11:14 1993 Mike Stump (mrs@cygnus.com)
2353 * ioperror.c (_IO_strerror): Add missing ()s in _PARAMS usage.
2355 Tue Oct 5 10:33:37 1993 Per Bothner (bothner@kalessin.cygnus.com)
2357 * iofprintf.c, iofscanf.c, ioprintf.c, ioscanf.c, iosprintf.c,
2358 iosscanf.c: Remove bogus semi-colon after va_dcl.
2359 * ioperror.c: Fix typos in declaration.
2361 Mon Oct 4 17:12:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
2363 * configure.in (CLEAN): Define (as _G_config.h *.a).
2365 * fileops.c (_IO_file_read): Don't assume EINTR is defined.
2366 * iosetbuf.c: Replace by generalized ...
2367 * iosetbuffer.c: ... variant, derived from BSD.
2368 * Makefile.in (STDIO_WRAP_OBJECTS): Change correspondingly.
2369 * iosetvbuf.c (iosetvbuf): Minor ANSI tweak.
2370 * iostdio.h (setbuf, setlinebuf): New #defines.
2371 * iolibio.h (_IO_setbuf, _IO_setlinebuf): (Re-)define as macros.
2372 * Makefile.in (LIBIO_OBJECTS): New macro.
2374 Tue Sep 28 14:15:52 1993 Per Bothner (bothner@kalessin.cygnus.com)
2376 * libioP.h (_IO_proc_open, _IO_proc_close): Add missing return types.
2377 * procbuf.cc: Belated fixes.
2379 Mon Sep 27 14:04:47 1993 Per Bothner (bothner@kalessin.cygnus.com)
2381 * Makefile.in: List new files. Add STDIO_WRAP_OBJECTS macro.
2382 * floatconv.c (d2b): Use Exp_msk11 instead of Exp_msk1.
2383 * iofgetpos.c (_IO_fgetpos), iofsetpos.c (_IO_fsetpos): Clean up.
2384 * iolibio.h: New file. Declarations of _IO_foo, for most foo
2385 where foo is a stdio function. (Remove these from libio.h.)
2386 * iostream.h (istream::istreambuf, ostream::ostreambuf): Move
2387 obsolete functions inside #ifdef _STREAM_COMPAT.
2388 * libio.h, libioP.h, streambuf.h, parsestream.h, stdiostream.h:
2389 Use _IO_fpos_t rather than _IO_pos_t.
2390 * iopopen.c: New file type, for pipe (popen-like) streams.
2391 * procbuf.cc: Now just a C++ wrapper for the files in iopopen.c.
2392 * streambuf.h (ios::unsetf): Return complete old value of flags.
2393 * iogets.c (_IO_gets(), ioungetc.c (_IO_ungetc), ioperror.c
2394 (_IO_perror), iostrerror.c (_IO_strerror): New files and
2395 functions, for stdio implementation.
2396 * iostdio.h: Add declarations for various recently-added functions.
2398 Sun Sep 12 14:24:55 1993 Per Bothner (bothner@kalessin.cygnus.com)
2400 * streambuf.h (ios::showpos):: Fix typo.
2402 Fri Aug 27 12:05:47 1993 Per Bothner (bothner@kalessin.cygnus.com)
2404 * iopadn.c (_IO_padn): Change to return count of chars written.
2405 * outfloat.c, iovfprintf.c: Change for new _IO_padn interface.
2406 * iostream.cc (ostream::operator<<): Make sure to set badbit
2407 on a failure (many places). Use _IO_padn more.
2408 * iostream.cc (ostream& ostream::operator<<(const void *p): Move to
2409 * osform.cc: ... here, to reduce linking-in-the-world syndrome.
2410 * osform.cc: Use rdbuf(), instead of _strbuf directly.
2412 * genops.c (_IO_sgetn), libio.h: New function.
2413 * streambuf.h (streambuf.h::sgetn): Use _IO_sgetn.
2414 * SFile.cc (SFile::operator[]): Use sseekoff, not seekoff.
2416 Thu Aug 26 10:16:31 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2418 * config.shared (SUBDIRS): only recurse if the directory is configured
2420 Wed Aug 25 12:56:12 1993 Per Bothner (bothner@kalessin.cygnus.com)
2422 * config/{hpux.mt, isc.mt, sco4.mt}:
2423 Moved from ../libg++/config (since they affect _G_config.h).
2424 * configure.in: Set target_make_frag to one of the above files.
2426 Fri Aug 20 00:53:14 1993 Per Bothner (bothner@kalessin.cygnus.com)
2428 * iofopen.c (iofopen): Fix type passed to _IO_un_link().
2429 * Makefile.in (_G_config.h): Pass $CC (not $CXX) as CC.
2431 * configure.in (configdirs): Add dbz and stdio.
2432 * fileops.c (_IO_file_seekoff): Convert more old functionality.
2433 * iofdopen.c: Use mode parameter to set _flags.
2434 * iofscanf.c, ioputs.c, ioscanf.c, iosprintf.c: New files.
2435 * Makefile.in (IO_OBJECTS): Added new objects.
2436 * iostdio.h: Add feof. fscanf, puts, sprintf, vsprintf.
2437 * libio.h: Add _IO_vprintf macro.
2438 * iofopen.c: Invoke _IO_un_link if failure.
2439 * iovsprintf.c: Write terminating NUL.
2441 * libioP.h: Add COERCE_FILE macro (by default does nothing).
2442 * iofclose.c, iofflush.c, iofgets.c, iofprintf.c, iofputs.c,
2443 iofread.c, ioftell.c, iofwrite.c, iosetbuf.c, iosetvbuf.c:
2444 Invoke COERCE_FILE macro.
2445 * ioftell.c: Use _IO_seekoff.
2447 Wed Aug 18 22:49:56 1993 Per Bothner (bothner@kalessin.cygnus.com)
2449 * sbform.cc (streambuf::form), sbscan.cc (streambuf::scan):
2450 Remove cast to _IO_va_list. (Loses if array type.)
2452 * libio.h: Handle _IO_va_list for systems that need <stdarg.h>.
2453 * floatconv.h: Fix typo (reported by H.J.Lu).
2455 Wed Aug 18 19:34:04 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2457 * configure.in (INSTALLDIR): handle native vs. cross case
2459 * Makefile.in (install): don't use $TARGETLIB, set INSTALLDIR to
2462 Wed Aug 18 12:10:03 1993 Per Bothner (bothner@kalessin.cygnus.com)
2464 * Makefile.in: Rename iostream-files to iostream.list.
2465 * configure.in: Add iostream.list to MOSTLYCLEAN.
2467 Tue Aug 17 18:56:59 1993 Per Bothner (bothner@kalessin.cygnus.com)
2469 * Makefile.in: Depend on _G_config.h where appropriate.
2470 * config.shared (CXXINCLUDES): If doing libg++, search ../libio.
2472 Tue Aug 17 17:34:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
2474 New directory. Based on old libg++/iostream code,
2475 but extensively re-written.