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