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