1 2000-06-08 Mark Mitchell <mark@codesourcery.com>
3 * libioP.h: Remove old ABI mangling code.
4 * stdstrbufs.cc: Likewise.
6 2000-06-04 Mark Mitchell <mark@codesourcery.com>
8 * libioP.h: Handle new ABI mangling.
9 * stdstrbufs.cc: Likewise.
11 2000-05-24 Ulrich Drepper <drepper@redhat.com>
13 * iostream.cc (endl): Fix bug in last change.
14 (ends): Make same change as for endl.
16 Tue May 23 22:56:56 2000 Jerry Quinn
18 * iostream.cc (endl): Verify stream can accept characters
19 before writing its eol.
21 2000-05-15 David Edelsohn <edelsohn@gnu.org>
23 * config.shared: Change "pic" to depend on $(PICFLAG), not
26 2000-05-11 Robert Lipe <robertlipe@usa.net>
28 * configure.in: Remove special casing for sco3.2v[45].
29 * config/sco4.mt: Deleted.
31 2000-05-10 Jakub Jelinek <jakub@redhat.com>
33 * configure.in: Use mh-sparcpic for sparc*-*-*.
35 2000-04-02 Zack Weinberg <zack@wolery.cumb.org>
37 * configure.in: Indent the # of #include_next one space.
39 2000-03-29 Jason Merrill <jason@casey.cygnus.com>
41 * configure.in: -linux-gnu*, not -linux-gnu.
43 2000-01-28 Martin v. Löwis <loewis@informatik.hu-berlin.de>
45 * fstream.h (ifstream::ifstream): Add ios::in to mode.
46 (ifstream::open): Likewise.
47 (ofstream::ofstream): Add ios::out to mode.
48 (ofstream::open): Likewise.
50 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
52 * dbz/dbz.c, dbz/dbzmain.c: Include stdlib.h. Don't declare
53 malloc, calloc, free, atol, atoi, or errno. (errno.h was
54 already being included.)
56 2000-01-12 Fred Fish <fnf@be.com>
58 * configure.in (*-*-beos*): Recognize.
59 * config/beos.mt: New file.
61 1999-12-22 Jakub Jelinek <jakub@redhat.com>
63 * libio.h (_IO_cookie_io_functions_t): Use _IO_off_t instead of
65 (_IO_seekoff, _IO_seekpos): Likewise. Use _IO_off64_t instead of
67 * libioP.h (_IO_seekoff_t, _IO_seekpos_t, _IO_seek_t): Likewise.
68 (_IO_seekoff, _IO_seekpos): Likewise.
69 (_IO_default_seekoff, _IO_default_seekpos): Likewise.
70 (_IO_default_seek): Likewise.
71 (_IO_file_seekoff, _IO_file_seek, _IO_str_seekoff): Likewise.
72 * streambuf.h (streampos): Typedef to _IO_off_t resp. _IO_off64_t.
73 * parsestream.h (class parsebuf::pos_at_line_start): Change type
76 1999-12-21 Martin v. Löwis <loewis@informatik.hu-berlin.de>
78 * filebuf.cc (open): Support ios::ate if _G_HAVE_IO_FILE_OPEN.
79 Remove seek for ios::app if not.
81 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
83 * filedoalloc.c, floatio.h, iovfprintf.c, iovfscanf.c: Remove
84 advertising clause from BSD license, pursuant with
86 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
88 1999-12-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
90 * strstream.h (strstreambuf::streambuf): Rename parameters to
92 * stream.h (WS): Likewise.
94 Thu Sep 30 01:08:04 1999 Jeffrey A Law (law@cygnus.com)
96 * editbuf.cc, parsestream.cc, pfstream.cc: Include string.h.
98 Mon Sep 13 06:30:14 1999 Mark Klein <mklein@dis.com>
100 * config/mpeix.mt: New for MPEiX port.
102 Sat Sep 4 18:00:00 PDT 1999 Mark Klein (mklein@dis.com)
104 * configure.in: Add mpeix.mt make fragment.
106 1999-08-08 Alexandre Oliva <oliva@dcc.unicamp.br>
108 * streambuf.h (ios::streamsize): Declare as _IO_ssize_t, as in the
111 1999-08-07 Andreas Schwab <schwab@suse.de>
113 * iostream.cc: Add missing calls to isfx and setup a cleanup
114 region for the locked stream.
115 * iostream.h: Likewise.
116 * isgetline.cc: Likewise.
117 * isgetsb.cc: Likewise.
118 * isscan.cc: Likewise.
120 Mon Jun 28 09:25:23 1999 Hans-Peter Nilsson <hp@bitrange.com>
122 * configure.in (post-target): Use "$(topsrcdir)", not "$(srcdir)/..".
124 Wed Jun 2 00:19:53 1999 Eric Raskin (ehr@listworks.com)
126 * configure.in: Added DG/UX target fragment
128 Sun May 30 14:25:02 1999 Eric Raskin (ehr@listworks.com)
130 * config/dgux.mt: New file for DG/UX configuration of libio
132 1999-05-20 Angela Marie Thomas <angela@cygnus.com>
134 * configure.in: Test for ${compiler_name}.exe as well.
136 1999-05-17 Mark Kettenis <kettenis@gnu.org>
138 * libioP.h: Only include libc-lock.h if _IO_MTSAFE_IO is defined.
140 1999-05-14 Ulrich Drepper <drepper@cygnus.com>
142 * configure.in: Recognize target *vxworks* and add fragment vxworks.mt.
143 * config/vxworks.mt: New file.
144 * gen-params: Let configure override HAVE_PRINTF_FP.
146 1999-05-12 Jason Merrill <jason@yorick.cygnus.com>
148 * configure.in (compiler_name): Don't do the skip-this-dir thing
149 if we're reconfiguring.
151 1999-04-29 Nathan Sidwell <nathan@acm.org>
153 * streambuf.h (ios::~ios): Use operator delete[] to remove _arrays.
155 Mon Apr 12 19:22:44 1999 Mumit Khan <khan@xraylith.wisc.edu>
157 * filedoalloc.c (_POSIX_SOURCE): Remove definition.
158 * fileops.c (_POSIX_SOURCE): Likewise.
159 * iopopen.c (_POSIX_SOURCE): Likewise.
160 * procbuf.cc (_POSIX_SOURCE): Likewise.
161 * libioP.h (_POSIX_SOURCE): And define it here.
162 * stdiostream.cc: Include libioP.h before others.
164 Fri Apr 2 15:11:58 1999 H.J. Lu (hjl@gnu.org)
166 * libio/configure.in (gxx_include_dir): Handle it.
167 * libio/Makefile.in: Likewise.
169 Wed Mar 24 22:36:45 1999 Mumit Khan <khan@xraylith.wisc.edu>
171 * configure.in (EXEEXT): Define.
172 (compiler_name): Use.
174 1999-03-24 Alexandre Oliva <oliva@dcc.unicamp.br>
176 * gen-params (CONFIG_NM): `test ... -o ...' is not portable.
178 Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
180 * configure.in: Cleanup and add mh-*pic handling for arm, powerpc
182 Fri Mar 5 01:15:15 1999 H.J. Lu (hjl@gnu.org)
184 * config/linuxlibc1.mt (MT_CFLAGS): Add -D_G_STDIO_USES_LIBIO
185 -D_G_HAVE_WEAK_SYMBOL.
187 * genops.c: Add the proper weak alias if _G_STDIO_USES_LIBIO
188 and _G_HAVE_WEAK_SYMBOL are defined.
189 * iofclose.c: Likewise.
190 * iofeof.c: Likewise.
191 * ioferror.c: Likewise.
192 * iogetc.c: Likewise.
193 * ioputc.c: Likewise.
194 * iovsprintf.c: Likewise.
195 * iovsscanf.c: Likewise.
197 Sun Feb 28 22:39:17 1999 Geoffrey Noer <noer@cygnus.com>
199 * configure.in: Check cygwin*, not cygwin32*.
201 Wed Feb 10 09:25:48 1999 Mumit Khan <khan@xraylith.wisc.edu>
203 * gen-params (VTABLE_LABEL_PREFIX): Handle windows32.
205 Wed Feb 3 22:05:41 1999 H.J. Lu (hjl@gnu.org)
206 Jeffrey A Law (law@cygnus.com)
208 * Makefile.in (iostream.list): Remove dependency on
210 ($(LIBIOSTREAM_DEP)): Depend on stamp-picdir.
211 ($(LIBIO_FILES)): Similarly.
213 * config.shared (all): Make $(PICDIR) concurrent.
215 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
217 * configure.in (compiler_name): Add check to detect if this
218 language's compiler has been built.
220 1998-10-12 Alexandre Oliva <oliva@dcc.unicamp.br>
222 * config.shared (depend.new): Delete libc-lock.h from
223 dependencies, and fix _G_config.h -> $(_G_CONFIG_H) rule.
226 Sun Oct 11 01:51:42 1998 Jeffrey A Law (law@cygnus.com)
228 * config.shared (depend.new): Fix typo.
231 1998-09-09 Manfred Hollstein <manfred@s-direktnet.de>
233 * configure.in (INSTALLDIR): Fix comment about changing INSTALLDIR's
234 value; don't change its value if --enable-version-specific-runtime-libs
237 Wed Sep 2 21:05:39 1998 H.J. Lu (hjl@gnu.org)
239 * configure.in: Fix INSTALLDIR replacement for cross-compile.
241 Sun Aug 30 22:27:02 1998 Lutz Wohlrab <lutz.wohlrab@informatik.tu-chemnitz.de>
243 * dbz/Makefile.in: Avoid assumptions about "tr" behaves when
244 LANG is set to something other than English.
246 Sun Aug 30 22:17:00 1998 H.J. Lu (hjl@gnu.org)
248 * config.shared: Set libsubdir.
250 1998-08-25 14:34 Ulrich Drepper <drepper@cygnus.com>
252 * libio/iogetline.c (_IO_getline_info): Don't read anything for
253 N == 0. Patch by HJ Lu.
255 1998-08-23 Mark Mitchell <mark@markmitchell.com>
257 * iomanip.h: Use __extension__ for `extern' explicit template
260 1998-08-17 Ulrich Drepper <drepper@cygnus.com>
262 * strfile.h: Define __PMT if not already defined.
264 1998-08-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
266 * libioP.h: Use __PMT in typedefs.
267 * strfile.h: Likewise.
269 1998-06-29 Ulrich Drepper <drepper@cygnus.com>
271 * libio.h: Rewrite __PMT change so that it works with platforms
272 defining __P but not __PMT.
274 * libio.h (__PMT): New macro. Defined like __P. Use is for
277 1998-06-27 Manfred Hollstein <manfred@s-direktnet.de>
279 * Makefile.in (install): Remove superfluous /include.
281 1998-06-26 Manfred Hollstein <manfred@s-direktnet.de>
283 * config.shared (FLAGS_TO_PASS): Add gcc_version_trigger.
284 (Makefile): Add dependency upon $(gcc_version_trigger).
286 1998-06-24 Manfred Hollstein <manfred@s-direktnet.de>
288 * Makefile.in (install): Install _G_config.h depending on new flag
289 --enable-version-specific-runtime-libs.
290 * config/linux.mt (gxx_include_dir): Remove definition here as we use
291 gcc's default anyway.
293 1998-06-24 Manfred Hollstein <manfred@s-direktnet.de>
295 * config.shared (FLAGS_TO_PASS): Add gcc_version.
297 1998-06-19 Manfred Hollstein <manfred@s-direktnet.de>
299 * config.shared (FLAGS_TO_PASS): Add libsubdir.
301 1998-06-07 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
303 * genops.c (__underflow): Read character from read pointer as unsigned.
306 1998-05-22 Ulrich Drepper <drepper@cygnus.com>
308 * strops.c (_IO_str_underflow): Read newly available character
309 from buffer as unsigned.
311 Sun Apr 19 22:13:36 1998 H.J. Lu (hjl@gnu.org)
313 * isgetline.cc (istream::get): Fix a typo.
315 Thu Mar 5 09:23:28 1998 Manfred Hollstein <manfred@s-direktnet.de>
317 * configure.in: Make locating frag files failsafe even for the
318 special case if configuring and building in srcdir.
320 1998-02-24 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
322 Changes for _G_IO_IO_FILE_VERSION == 0x20001:
323 * libioP.h (_IO_showmanyc_t, _IO_SHOWMANYC, _IO_imbue_t,
324 _IO_IMBUE): New definitions.
325 (struct _IO_jump_t): Add __showmanyc and __imbue fields.
326 (_IO_file_fopen): Add new fourth argument.
327 * filebuf.cc (filebuf::open): Pass new fourth argument to
329 * iolibio.h (_IO_freopen): Likewise.
330 * streambuf.cc (streambuf::showmanyc, streambuf::imbue): New
332 * streambuf.h (_IO_wchar_t): Define to _G_wchar_t.
333 (ios::fill): Remove casts.
334 (struct streambuf): Add showmanyc and imbue members.
336 * iostream.cc (ostream::operator<<(double n)) [__GLIBC_MINOR__ >=
337 1]: Initialize new fields is_char of struct printf_info.
338 (ostream::operator<<(long double n)) [__GLIBC_MINOR__ >= 1]:
341 Sun Feb 22 17:24:53 1998 Jeffrey A Law (law@cygnus.com)
343 * config.shared: Bring back changes from Ian and Fred that were
344 accidentally clobbered. Should eliminate the need for Dave's
347 Tue Feb 17 21:56:25 1998 H.J. Lu (hjl@gnu.org)
349 * config/linux.mt (IO_OBJECTS): Add iogetline.o.
350 * config/linuxlibc1.mt: Ditto.
352 * iogetline.c (_IO_getline_info): Renamed from _IO_getline.
353 (_IO_getline): Just call _IO_getline_info.
355 * isgetline.cc (istream::getline, istream::get, _sb_readline):
356 Call _IO_getline_info instead of _IO_getline and get the EOF
358 * sbgetline.cc (streambuf::sgetline): Ditto.
360 * libioP.h (_IO_getline_info): New declaration.
362 * iogetline.c (_IO_getline): Handle the case when there is no
365 Fri Feb 13 00:57:20 1998 Krister Walfridsson (cato@df.lth.se)
367 * fileops.c: #include <unistd.h>.
368 * ioprims.c: Likewise.
370 1998-02-10 Mark Mitchell <mmitchell@usa.net>
372 * iostream.cc (ostream::operator<<(long double)): Don't use
373 labeled initializers.
375 Fri Feb 6 01:35:56 1998 Manfred Hollstein <manfred@s-direktnet.de>
377 * config.shared (FLAGS_TO_PASS): Don't emit PICFLAG.
378 (.c.o): Check value of enable_shared, not PICFLAG.
381 (stamp-picdir): Dito.
383 Thu Feb 5 17:41:26 1998 Dave Brolley <brolley@cygnus.com>
385 * config.shared (LIBS): Change to -L../../libstdc++ (was -L../libstdc++)
386 if ${DOING_GPERF} is true.
388 1998-01-20 Andreas Schwab (schwab@issan.informatik.uni-dortmund.de)
390 * iostream.cc (istream::operator>>(long double&))
391 [!_G_HAVE_LONG_DOUBLE_IO]: Scan value into separate variable, in
392 case long double is bigger than double.
393 (ostream::operator<<(double)) [_G_HAVE_PRINTF_FP]: Fix order of
394 initializers of struct printf_info to match declaration order,
395 to work around g++ bug.
396 (ostream::operator<<(long double)) [_G_HAVE_PRINTF_FP]: Likewise.
398 * gen-params: Add missing quotes. Avoid useless use of command
401 Sun Feb 1 13:29:47 1998 H.J. Lu (hjl@gnu.org)
403 * filebuf.cc (filebuf::open): Call _IO_file_open if
404 _G_HAVE_IO_FILE_OPEN is 1.
406 * libio.h (_IO_fpos64_t, _IO_off64_t): Defined if
407 _G_IO_IO_FILE_VERSION == 0x20001.
409 * libioP.h (_IO_file_open): New declaration.
411 * libio.h (_IO_FILE, _IO_stdin_, _IO_stdout_, _IO_stderr_,
412 _IO_seekoff, _IO_seekpos): Add support for libio in glibc 2.1.
413 * libioP.h (_IO_seekoff_t, _IO_seekpos_t, _IO_seek_t,
414 _IO_seekoff, _IO_seekpos, _IO_default_seekoff,
415 _IO_default_seekpos, _IO_default_seek, _IO_file_seekoff,
416 _IO_file_seek, _IO_str_seekoff, _IO_pos_BAD, _IO_pos_as_off,
418 * streambuf.h (streamoff, streampos): Ditto.
420 * gen-params (__extension__): Use only if gcc version >= 2.8.
422 Sun Feb 1 13:08:18 1998 Krister Walfridsson (cato@df.lth.se)
424 * dbz/dbz.c (putconf): Handle systems which use "long long" as type
426 * dbz/dbzmain.c (mkfiles): Likewise.
428 Wed Jan 28 10:27:11 1998 Manfred Hollstein <manfred@s-direktnet.de>
430 * config.shared (FLAGS_TO_PASS): Add gxx_include_dir.
432 * stdio/configure.in, tests/configure.in: Update with yesterday's
433 toplevel configure.in changes.
434 * testsuite/configure.in: Likewise.
436 * config.shared: Fix typo in yesterday's changes.
438 Tue Jan 27 23:26:07 1998 Manfred Hollstein <manfred@s-direktnet.de>
440 * config.shared: Emit everything which needs to be re-definable
441 via file descriptor 1; the generic stuff is emitted using redirection
444 * configure.in (package_makefile_rules_frag): New variable
445 which is used in the call to config.shared; redirect file descriptor 2
446 to ${package_makefile_rules_frag}.
448 Tue Jan 27 10:35:22 1998 H.J. Lu (hjl@gnu.org)
450 * configure.in (topsrcdir): New.
451 (CHECK_SUBDIRS, configdirs): Check ${topsrcdir}/gcc instead.
452 (config-ml.in): Use ${topsrcdir}/config-ml.in.
454 * tests/configure.in (topsrcdir): New.
455 (CHECK): Check ${topsrcdir}/gcc instead.
457 Fri Jan 16 00:48:03 1998 Manfred Hollstein <manfred@lts.sel.alcatel.de>
459 * config.shared (FLAGS_TO_PASS): Add SHELL.
461 Thu Jan 15 00:21:58 1998 Ian Lance Taylor <ian@cygnus.com>
463 * configure.in: For *-*-cygwin32*, add a -I for winsup to both
464 XCINCLUDES and XCXXINCLUDES.
465 * config.shared: Use ${host_includes} when setting CXXINCLUDES in
466 the DOING_LIBGXX case.
467 * Makefile.in (_G_config.h): Pass $(CINCLUDES) in CC and
468 $(CXXINCLUDES) in CXX when running gen-params.
470 Tue Jan 13 21:32:08 1998 H.J. Lu (hjl@gnu.org)
472 * configure.in (CHECK_SUBDIRS): Set to testsuite only if
473 ${srcdir}/../gcc exists.
474 (configdirs): Include testsuite only if ${srcdir}/../gcc exists.
476 * tests/Makefile.in (check): Depend on $(CHECK).
478 * tests/configure.in (CHECK): Set to "check-iostream
479 check-stdio" if ${srcdir}/../../gcc doesn't exists.
481 Thu Jan 8 18:09:03 1998 Fred Fish <fnf@cygnus.com>
483 * config.shared (THIS_FILE): Really found via TOLIBIO instead
484 of TOLIBCXX, which is empty when configuring gperf.
485 (LIBS): When linking gperf, find libstdc++ relative to TO_TOPDIR
486 instead of hardcoded "../".
488 1997-12-12 Brendan Kehoe <brendan@lisa.cygnus.com>
490 Don't make gperf depend upon libg++.
491 * config.shared (TOLIBGCXX) [DOING_GPERF]: Delete.
492 (LIBS) [DOING_GPERF]: Make it just `-L../libstdc++ -lstdc++'.
494 Thu Dec 11 11:20:59 1997 H.J. Lu (hjl@gnu.org)
496 * configure.in (target frags): Add *-linux-gnu.
498 Fri Dec 5 16:22:15 1997 H.J. Lu (hjl@gnu.org)
500 * streambuf.cc (streambuf::~streambuf): Don't delete _lock
501 for _IO_stdin/_IO_stdout/_IO_stderr.
503 Thu Nov 27 01:32:43 1997 Jeffrey A Law (law@cygnus.com)
505 * Makefile.in (install): Change gxx_includedir to gcc_include_dir.
506 * config.shared (gxx_includedir): Remove default definition.
507 * config/linux.mt: Change gxx_includedir to gxx_include_dir.
508 * config/linuxaxp1.mt: Likewise.
510 Wed Nov 26 16:08:50 1997 Richard Henderson (rth@cygnus.com)
512 * configure.in (target frags): Add powerpc*-linux-gnulibc1.
513 (stdio-lock): Similarly.
515 * configure.in (target frags): Add alpha*-linux-gnulibc1.
516 (pic frags): Its alpha*- not alpha-.
517 (stdio-lock): Kill everything. Add alpha*-linux-gnulibc1.
518 * libio.h: Check __GLIBC_MINOR__ to find stdio-lock.h. If not
519 _IO_MTSAFE_IO & GLIBC, make sure the lock pointer is still there.
520 * libioP.h: Check __GLIBC_MINOR__ to find libc-lock.h.
522 * config/linuxaxp1-libc-lock.h: New file.
523 * config/linuxaxp1-stdio-lock.h: New file.
524 * config/linuxaxp1.mt: New file.
526 * gen-params (va_list): Check for and use __gnuc_va_list.
527 (NULL): Work around some linux kernel headers and redefine NULL.
529 Mon Nov 24 17:04:18 1997 Michael Meissner <meissner@cygnus.com>
531 * stdiostream.cc (sys_read): Declare ch with int type, rather than
534 Tue Nov 18 09:53:58 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
536 * stdstrbufs.cc (DEF_STDFILE): Use STD_VTABLE.
538 Tue Nov 11 01:40:17 1997 Oleg Krivosheev <kriol@fnal.gov>
540 * iomanip.h: Fix guiding decls.
542 1997-11-05 Brendan Kehoe <brendan@lisa.cygnus.com>
544 * libio.h (__P): Name its arg `p' instead of `params'.
545 Avoids problems with an unchanged Solaris math.h header.
547 Wed Oct 29 23:01:47 1997 Jason Merrill <jason@yorick.cygnus.com>
549 * gen-params: Override NULL.
551 1997-10-27 03:53 Ulrich Drepper <drepper@cygnus.com>
553 * stdio-lock.h: Removed. Was never needed.
555 Wed Oct 22 19:19:32 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
557 * libio.h (_IO_LOCK_T): Handle glibc 2 when _IO_MTSAFE_IO is
560 * iovsscanf.c (vsscanf): Make it weak alias of _IO_vsscanf if
561 __linux__ is defined instead of __ELF__
563 * config/linuxlibc1.mt (USER_INCLUDES): Add libio.h.
565 1997-10-15 Ulrich Drepper <drepper@cygnus.com>
567 * configure.in: Create compatibility code in bits/libc-lock.h file.
569 Thu Oct 9 07:08:41 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
571 * libio.h (_IO_LOCK_T): Handle glibc 2 when _IO_MTSAFE_IO is
574 * filedoalloc.c (_IO_file_doallocate): Don't call
575 _IO_cleanup_registration_needed if __linux__ is defined.
577 * iofclose.c (fclose): Make it weak alias of _IO_fclose if
580 * iovsprintf.c (vsprintf): Make it weak alias of _IO_vsprintf
581 if __ELF__ is defined.
583 * iovsscanf.c (vsscanf): Make it weak alias of _IO_vsscanf if
586 * config/linuxlibc1.mt (MT_CFLAGS): Defined as -D_G_HAVE_MMAP.
587 (IO_OBJECTS): Add filedoalloc.o fileops.o genops.o iofclose.o
588 iovsprintf.o iovsscanf.o strops.o.
590 Fri Oct 3 10:13:13 1997 Jason Merrill <jason@yorick.cygnus.com>
592 * iostream.cc, libio.h: Convert other uses of #ifdef
593 _G_HAVE_PRINTF_FP to #if.
595 1997-10-02 Brendan Kehoe <brendan@lisa.cygnus.com>
597 * iostream.cc (operator<<): Use `#if _G_HAVE_PRINTF_FP', not ifdef.
599 Thu Oct 2 10:36:49 1997 Jason Merrill <jason@yorick.cygnus.com>
601 * gen-params: Fix __printf_fp test.
602 * config/linuxlibc1.mt (gxx_includedir): Don't define.
604 Thu Oct 2 10:36:26 1997 Ulrich Drepper <drepper@rtl.cygnus.com>
606 * config/linuxlibc1.mt (_G_CONFIG_H): Don't define.
607 * gen-params: Add test for __printf_fp.
609 Sun Sep 28 12:09:04 1997 Mark Mitchell <mmitchell@usa.net>
611 * iomanip.h: Use new friend <> syntax.
613 Sun Sep 28 12:04:21 1997 Jason Merrill <jason@yorick.cygnus.com>
615 * libio.h: Don't use _IO_LOCK_T if it's not defined.
617 Fri Sep 26 20:56:41 1997
619 Based on a patch by H.J. Lu (hjl@gnu.ai.mit.edu).
621 * Makefile.in (STDIO_OBJECTS): New. Defined as stdfiles.o.
622 (LIBIO_OBJECTS): Add $(STDIO_OBJECTS).
623 (PICFLAG): New, empty. moved to here from config.shared.
625 * config.shared (DISTCLEAN): Add target-mkfrag.
628 * configure.in (*-linux-gnulibc1): Remove warning.
629 (*-linux-gnu): Use linux.mt mtsafe.mt.
630 (alpha-*-linux*): Use mh-elfalphapic.
632 * gen-params (_G_ullong): Also check unsigned long long int.
633 (_G_llong): Also check long long int.
635 * libio.h (_IO_lock_t): Add support for the Linux libc 5.
636 (_IO_peekc): Defined as _IO_peekc_unlocked if _IO_MTSAFE_IO
639 * iostream.cc (__cvt_double): Fix a typo in declaration.
640 (info): Use expr != 0 to initialize the bit fields. Don't
641 initialize "extra" for the Linux libc 5.
643 * streambuf.h (_G_NEED_STDARG_H): Changed from _IO_NEED_STDARG_H.
645 * config/linux.mt (STDIO_OBJECTS): New, empty.
646 (MT_CFLAGS): Removed.
648 * config/linuxlibc1.mt: Rewrite. it's identical to linux.mt but
649 IO_OBJECTS mentions files not in early libc5 versions.
651 * config/mtsafe.mt: New.
653 * dbz/Makefile.in (check): Support make -j.
655 * tests/tFile.cc (tempfile): Fix a typo.
657 1997-09-19 11:52 Jim Wilson <wilson@cygnus.com>
659 * Makefile.in (LIBIO_OBJECTS): Depend on _G_CONFIG_H.
661 1997-09-17 04:08 Ulrich Drepper <drepper@cygnus.com>
663 * iostream.cc: Add forward declaration for __cvt_double.
664 * libio.h: Define _IO_USE_DTOA is _G_HAVE_PRINTF_FP is not defined.
665 * strops.c (_IO_str_count): Correct last change.
667 1997-09-17 02:50 Ulrich Drepper <drepper@cygnus.com>
669 * libioP.h: Define __set_errno if not already defined.
671 1997-09-15 02:37 Ulrich Drepper <drepper@cygnus.com>
673 * config/linux.mt: Rewrite for use with glibc 2.
674 * config/linuxlibc1.mt: Old content of linux.mt, fir libc4 and
677 * config.shared (COMPILE.c): Allow new flags in MT_CFLAGS be
679 (COMPILE.cc): Likewise.
681 * configure.in (*-linux*): Remove goal. We now have...
682 (*-linux-gnulibc1): For libc4 and libc5. Emit warning.
683 (*-linux-gnu)): For glibc 2.
684 Create links to find headers for multi-threading if necessary.
686 * fileops.c: Make thread-safe by using _IO_cleanup_region_start
687 etc to handle cancelation. Acquire locks in functions which are
689 (_IO_file_read, _IO_file_write): Remove dead code.
691 * include/empty.h: Define stub macros for locking.
693 * iolibio.h: Add prototypes for obstack printing functions.
695 * ioseekoff.c (_IO_seekoff): Lock stream before working.
696 * ioseekpos.c (_IO_seekpos): Likewise.
698 * iostream.cc: Add support for long double I/O.
699 Use __printf_fp from glibc is available.
700 Use _IO_cleanup_region_start to handle cancelation correctly.
701 * iostream.h (class ostream): Change opfx and osfx to lock/unlock
703 (class istream): Likewise for ipfx, ipfx0, ipfx1, and isfx.
704 Declare new function lock and unlock for ostream and istream.
705 * osform.cc: Use _IO_cleanup_region_start to handle cancelation
708 * libio.h: Update from glibc version. Pretty printing.
709 * libioP.h: Likewise.
711 * outfloat.c: Only compile if _IO_USE_DTOA is defined.
713 * stdio/feof.c: Make thread safe.
714 * stdio/ferror.c: Likewise.
715 * stdio/getc.c : Likewise.
716 * stdio/putc.c : Likewise.
717 * stdio/stdio.h: Declare function of thread-safe API.
719 * stdio/obprintf.c: New file.
720 * stdio/vasprintf.c: New file.
722 * stdio-lock.h: Removed.
724 * stdstrbufs.c: Add definitions for thread-safe streams.
726 * streambuf.cc: Initialize lock.
728 * strops.c (_IO_str_count): Undo last change.
730 * tests/tFile.cc: Support parallel builds by avoiding fixed
733 Thu Sep 11 18:43:56 1997 Jason Merrill <jason@yorick.cygnus.com>
735 * Makefile.in (iostream.list): Remove STDIO_WRAP_OBJECTS.
737 Mon Sep 8 01:30:27 1997 Weiwen Liu <liu@hepunix.physics.yale.edu>
741 Sun Sep 7 23:00:18 1997 Jim Wilson (wilson@cygnus.com)
743 * linux.mt (LIBIOSTREAM_DEP): Change stdio.list to stmp-stdio.
745 Fri Sep 5 09:58:43 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
747 * Makefile.in (iostream.list): Instead of adding stdio.list, add
749 (iostream.list): Lose dependency on stmp-stdio, not necessary for
750 our stuff. The stdio stuff is present here just for uniformity
753 Thu Sep 4 17:26:22 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
755 * parsestream.cc (general_parsebuf): Cast return of malloc to char*.
757 1997-09-04 16:11 Ulrich Drepper <drepper@cygnus.com>
759 Change compared to version initially intended to in:
760 * strops.c (_IO_str_count): Still use _IO_write_ptr, not
761 _IO_write_end, for now.
763 * iofeof.c, ioferror.c, iofflush_u.c, iogetc.c, ioputc.c, peekc.c,
764 stdio-lock.h: New files.
767 * include/empty.h: New header.
769 * filedoalloc.c: Update and reformat copyright.
771 Use __set_errno throughout the code to support multi-threaded
773 Correct layout to follow the Coding Standard.
774 Add casts to prevent warnings.
775 * fileops.c: Likewise.
776 * genops.c: Likewise.
777 * iofclose.c: Likewise.
778 * iofdopen.c: Likewise.
779 * iofflush.c: Likewise.
780 * iofgetpos.c: Likewise.
781 * iofgets.c: Likewise.
782 * iofopen.c: Likewise.
783 * iofprintf.c: Likewise.
784 * iofputs.c: Likewise.
785 * iofread.c: Likewise.
786 * iofsetpos.c: Likewise.
787 * ioftell.c: Likewise.
788 * iofwrite.c: Likewise.
789 * iogetdelim.c: Likewise.
790 * iogetline.c: Likewise.
791 * iogets.c: Likewise.
792 * iopadn.c: Likewise.
793 * iopopen.c: Likewise.
794 * ioputs.c: Likewise.
795 * ioseekoff.c: Likewise.
796 * iosetbuffer.c: Likewise.
797 * iosetvbuf.c: Likewise.
798 * iosprintf.c: Likewise.
799 * ioungetc.c: Likewise.
800 * iovsprintf.c: Likewise.
801 * iovsscanf.c: Likewise.
803 * libioP.h: Likewise.
804 * stdfiles.c: Likewise.
805 * strfile.h: Likewise.
806 * strops.c: Likewise.
808 * Makefile.in (IO_OBJECTS): Add peekc.o, iogetc.o, ioputc.o,
809 iofeof.o, and ioferror.o.
810 (iostream.list): Depend upon stmp-stdio. Add the entries
811 from stdio.list to iostream.list.
812 (stmp-stdio): New name for what was the stdio/stdio.list rule.
813 All it now does is cd down into stdio and build stdio.list.
815 * configure.in (ALL): Add libiostream.a.
817 * libio.h [_IO_MTSFE_IO]: Include header declaring locking code.
818 Otherwise define opaque _IO_lock_t.
819 Define _IO_cookie_file.
820 Rename _IO_getc to _IO_getc_unlocked, _IO_peekc to _IO_peekc_unlocked,
821 _IO_putc to _IO_putc_unlocked, _IO_feof to _IO_feof_unclocked, and
822 _IO_ferror to _IO_ferror_unlocked.
823 Add prototypes for _IO_getc, _IO_putc, _IO_feof, _IO_ferror,
824 and _IO_peekc_locked.
825 Add declarations for _IO_flockfile, _IO_funlockfile, and
826 _IO_ftrylockfile. If !_IO_MTSAFE_IO define _IO_flockfile,
827 _IO_funlockfile, _IO_ftrylockfile, _IO_cleanup_region_start, and
828 _IO_cleanup_region_end as empty macros.
830 * libioP.h: Change type of finish function to take an additional int
831 argument and change declaration of finish functions.
832 Add prototypes for _IO_seekoff and _IO_seekpos.
833 If _G_HAVE_MMAP is defined use stream buffers allocated with mmap.
834 Redefine FREE_BUF and ALLOC_BUF macros to help in both situations.
835 (FILEBUF_LITERAL): If we compile for a thread-safe library also
836 initialize lock member.
838 * filedoalloc.c: Take care for systems already defining _POSIX_SOURCE.
839 Keep name space clean on systems which require this.
840 (_IO_file_doallocate): Adopt ALLOC_BUF call for changed semantic.
842 * fileops.c: Keep name space clean on systems which require this.
843 (_IO_file_attach): Don't fail if seek failed because it's used on a
845 (_IO_file_underflow): Update buffer pointers before calling `read'
846 since the `read' might not return anymore.
847 (_IO_file_overflow): If stream allows no writes set error flag.
848 (_IO_seekoff): Make sure that after flushing the file pointer in
849 the underlying file is exact.
850 (_IO_file_read): Don't restart `read' syscall if it return EINTR.
852 (_IO_file_write): Likewise for `write'.
853 (_IO_cleanup): Install as exit handler in glibc.
855 * genops.c (_IO_setb): Correctly use FREE_BUF.
856 (_IO_default_doallocate): Correctly use ALLOC_BUF.
857 (_IO_init): Initialize lock in stream structure.
858 (_IO_default_finish): Destroy lock.
859 (_IO_get_column): Don't compile since it's not needed.
860 (_IO_nobackup_default): Likewise.
862 * iopopen.c: Take care for systems already defining _POSIX_SOURCE.
863 Correct _IO_fork and _IO_dup2 prototypes.
865 * iofclose.c: Acquire lock before starting the work.
866 * iofflush.c: Likewise.
867 * iofgetpos.c: Likewise.
868 * iofgets.c: Likewise.
869 * iofputs.c: Likewise.
870 * iofread.c: Likewise.
871 * iofsetpos.c: Likewise.
872 * ioftell.c: Likewise.
873 * iofwrite.c: Likewise.
874 * iogetdelim.c: Likewise.
875 * iogets.c: Likewise.
876 * ioputs.c: Likewise.
877 * iosetbuffer.c: Likewise.
878 * iosetvbuf.c: Likewise.
879 * ioungetc.c: Likewise.
881 * iofdopen.c: Create and initialize lock for new stream.
882 * iofopen.c: Likewise.
883 * iopopen.c (_IO_popen): Likewise.
884 * iovsprintf.c: Likewise.
885 * iovsscanf.c: Likewise.
887 * genops.c: Make weak aliases for various functions.
888 * iofclose.c: Likewise.
889 * iofdopen.c: Likewise.
890 * iofflush.c: Likewise.
891 * iofgetpos.c: Likewise.
892 * iofgets.c: Likewise.
893 * iofopen.c: Likewise.
894 * iofputs.c: Likewise.
895 * iofread.c: Likewise.
896 * iofsetpos.c: Likewise.
897 * ioftell.c: Likewise.
898 * iofwrite.c: Likewise.
899 * iogetdelim.c: Likewise.
900 * iogets.c: Likewise.
901 * ioputs.c: Likewise.
902 * iosetbuffer.c: Likewise.
903 * iosetvbuf.c: Likewise.
904 * ioungetc.c: Likewise.
905 * iovsprintf.c: Likewise.
906 * iovsscanf.c: Likewise.
908 * iofflush_u.c: New file. fflush_unlocked implementation.
910 * iostream.h [_G_HAVE_LONG_DOUBLE_IO]: Declare real long double
913 * peekc.c: New file. Implement _IO_peekc_locked function.
915 * stdfiles.c: If we compile for a thread-safe library also define
918 Tue Aug 26 12:24:01 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
920 * testsuite/Makefile.in (check): Don't depend on site.exp.
921 (just-check): Depend on site.exp.
923 Wed Aug 20 02:01:34 1997 Jason Merrill <jason@yorick.cygnus.com>
925 * iostream.h: Add copy assignment ops for _IO_?stream_withassign.
927 Tue Jul 22 10:31:41 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
929 * config.shared (CHECK_SUBDIRS): Use install-sh, not install.sh.
931 Wed Jun 25 12:20:55 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
933 * config.shared (DOING_GPERF): Look for this, defining TOLIBGXX
936 Wed Jun 18 11:03:34 1997 Bob Manson <manson@charmed.cygnus.com>
938 * config.shared (FLAGS_TO_PASS): Don't include RUNTEST.
940 Tue Jun 17 22:23:48 1997 Bob Manson <manson@charmed.cygnus.com>
942 * config.shared (FLAGS_TO_PASS): Pass RUNTEST and RUNTESTFLAGS.
944 Fri May 16 21:08:53 1997 Bob Manson <manson@charmed.cygnus.com>
946 * iovfprintf.c: Declare __cvt_double before use.
948 * floatconv.c (d2b): Use _G_int32_t instead of int for the
949 e and bits parameters.
950 (_IO_strtod): Use _G_int32_t.
952 * gen-params: Look for NO_USE_DTOA and USE_INT32_FLAGS.
954 * strops.c (_IO_str_init_static): use _G_int32_t appropriately.
956 * libio.h: If _G_NO_USE_DTOA is set, then don't define
959 * config/mn10200.mt: Don't use dtoa, it only works
962 Thu May 15 17:44:12 1997 Bob Manson <manson@charmed.cygnus.com>
964 * configure.in: Set CHECK_SUBDIRS to testsuite if we're doing
967 * config.shared(check): Only run make check in the directories
968 specified by CHECK_SUBDIRS. Set CHECK_SUBDIRS to SUBDIRS
969 if it has no previous value.
971 Thu May 1 17:35:19 1997 Jason Merrill <jason@yorick.cygnus.com>
973 * Makefile.in (test, tpipe): Add $(CFLAGS).
975 Wed Apr 30 12:16:29 1997 Jason Merrill <jason@yorick.cygnus.com>
977 * configure.in: Don't turn on multilib here.
979 Sat Apr 26 13:38:21 1997 Bob Manson <manson@charmed.cygnus.com>
981 * configure.in (configdirs): Add testsuite directory.
983 * testsuite/ChangeLog:
984 * testsuite/Makefile.in:
985 * testsuite/libio.tests/tiomanip.exp:
986 * testsuite/libio.tests/tstdiomisc.exp:
987 * testsuite/libio.tests/tiomisc.exp:
988 * testsuite/libio.tests/tFile.exp:
989 * testsuite/libio.tests/tfformat.exp:
990 * testsuite/libio.tests/tiformat.exp:
991 * testsuite/libio.tests/hounddog.exp:
992 * testsuite/libio.tests/putbackdog.exp:
993 * testsuite/configure.in:
994 * testsuite/lib/libio.exp:
995 * testsuite/config/default.exp:
996 New files for DejaGnu-style testsuite.
998 Fri Apr 4 03:16:44 1997 Ulrich Drepper <drepepr@cygnus.com>
1000 * configure.in: Enable multilibing by default.
1001 Update multilib template to read config-ml.in.
1003 * floatconv.c: Enable use in cross targets which use the
1004 newlib ieeefp.h header.
1006 Thu Jan 23 09:16:16 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
1008 * libioP.h (_IO_file_attach): Delete redundant decl.
1010 Tue Jan 21 22:13:45 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
1012 * streambuf.h (class ios): Take out STREAMSIZE member, since we
1013 only need (and should only have) the global one.
1015 Tue Jan 7 14:02:40 1997 Jason Merrill <jason@yorick.cygnus.com>
1017 * iostream.h (long long fns): Use __extension__.
1019 * gen-params: Use _G_llong and _G_ullong instead of long long for
1022 Fri Dec 6 13:13:30 1996 Jason Merrill <jason@yorick.cygnus.com>
1024 * dbz/dbz.c: Use off_t.
1026 Sat Nov 23 15:44:37 1996 Jason Merrill <jason@yorick.cygnus.com>
1028 * Makefile.in (install): Don't install _G_config.h with other headers.
1030 Mon Nov 18 17:12:41 1996 Jason Merrill <jason@yorick.cygnus.com>
1032 * config.shared (SUBDIRS): Use -O instead of -O3 for debugging.
1034 Sun Nov 3 12:43:34 1996 Jason Merrill <jason@yorick.cygnus.com>
1036 * iostream.cc (write_int): Treat string literals as const.
1038 Thu Sep 26 10:09:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1040 * depend: Regenerate.
1042 Wed Sep 25 22:54:45 1996 Jason Merrill <jason@yorick.cygnus.com>
1044 * config.shared (depend.new): Deal with headers that don't end in .h.
1046 Thu Aug 29 17:05:53 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1048 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
1050 Mon Aug 5 01:26:32 1996 Jason Merrill <jason@yorick.cygnus.com>
1052 * config{ure.in,.shared} (DISTCLEAN): Add multilib.out.
1054 Fri Aug 2 17:39:35 1996 Jason Merrill <jason@yorick.cygnus.com>
1056 * libio.h (NULL): Use __null.
1057 * libioP.h (NULL): Ditto.
1058 * streambuf.h (NULL): Ditto.
1059 * ioextend.cc (get_array_element): Use NULL instead of (void*)0.
1061 Fri Jul 5 18:26:41 1996 Jim Wilson <wilson@cygnus.com>
1063 * strfile.h (struct _IO_streambuf): New struct type.
1064 (struct _IO_strfile): Use it.
1066 Tue Jun 18 18:24:21 1996 Jason Merrill <jason@yorick.cygnus.com>
1068 * fstream.h (fstreambase): Make __my_fb mutable.
1071 Tue Jun 18 11:03:53 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
1073 * dbz/fake.c (main): Set return type to int.
1074 * dbz/dbzmain.c (main): Likewise.
1075 * dbz/byteflip.c (main): Likewise.
1077 Mon Jun 17 14:05:36 1996 Jason Merrill <jason@yorick.cygnus.com>
1079 * gen-params: Check if clog conflicts with system libraries.
1080 * stdstreams.cc: If it does, use __IO_clog.
1081 * iostream.h: Likewise.
1083 Tue Jun 11 13:39:31 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
1085 * stdiostream.h (istdiostream (FILE*)): Put istream base
1086 initializer before init for __f.
1087 (ostdiostream (FILE*)): Likewise for ostream base init.
1089 Tue May 14 11:47:21 1996 Per Bothner <bothner@andros.cygnus.com>
1091 * strfile.h (_IO_str_fields): Removed _len field.
1092 (_IO_STR_DYNAMIC, _IO_STR_FROZEN): new macros.
1093 * strstream.h (strstreambuf::is_static): Removed.
1094 (strstreambuf::frozen): Use _IO_STR_DYNAMIC instead of is_static.
1095 * strstream.h, strstream.cc: Remove support for !_IO_NEW_STREAMS.
1096 * strstream.cc (strstreambuf::init_dynamic): Don't set _s._len.
1097 * strops.c (_IO_str_init_static): Better handling of the
1098 negative (== unbounded) size case.
1099 (_IO_str_overflow, _IO_str_underflow, _IO_str_count): Re-write
1100 to not use _s._len, and otherwise cleanup/fix.
1101 * strstream.h, strstream.cc (strstreambase::strstreambase()): Call
1103 (other constructors): Simplify - init already called.
1105 Tue May 14 10:55:21 1996 Per Bothner <bothner@deneb.cygnus.com>
1107 Change so that strstreambuf default constructor does no allocation.
1108 * strstream.h (strstreambuf::init_dynamic): Default initial size = 0.
1109 * strstream.cc (strstreambuf::init_dynamic): Don't allocate a
1110 buffer (yet) if initial_size is 0.
1111 * strops.c (_IO_str_overflow): Add 100 to size of re-allocated
1112 buffer, to handle case when initial size is 0.
1114 * iostdio.h (remove, rename, tmpfile, tempnam): Comment out.
1116 Mon May 13 23:19:39 1996 Per Bothner <bothner@deneb.cygnus.com>
1118 * fileops.c (_IO_file_close_it): Just call _IO_do_flush rather
1119 than _IO_file_sync, to avoid useless lseek.
1121 Tue May 14 10:48:48 1996 Jason Merrill <jason@yorick.cygnus.com>
1123 * floatconv.c (_IO_strtod): Force rv into the stack.
1125 * config.shared (gxx_includedir): Now $(includedir)/g++.
1127 Sat Apr 27 02:37:49 1996 Jason Merrill <jason@yorick.cygnus.com>
1129 * libioP.h (JUMP*): Implement for thunks.
1130 (_IO_jump_t): Add second dummy field for thunks.
1132 Thu Apr 25 13:20:00 1996 Jason Merrill <jason@yorick.cygnus.com>
1134 * config.shared (CXX): Use gcc, not g++.
1136 Wed Apr 24 10:29:50 1996 Doug Evans <dje@blues.cygnus.com>
1138 * config.shared (depend.new): Delete $(srcdir)/ from foo.{c,cc}
1140 * depend: Regenerated.
1142 Fri Apr 19 17:24:51 1996 Jason Merrill <jason@yorick.cygnus.com>
1146 Wed Apr 10 17:16:01 1996 Jason Merrill <jason@yorick.cygnus.com>
1148 * configure.in (ALL): Don't build iostream.a.
1150 Mon Apr 8 14:44:11 1996 Per Bothner <bothner@kalessin.cygnus.com>
1152 * iosetvbuf.c (_IO_setvbuf): Clear _IO_UNBUFFERED unless _IONBF.
1154 Mon Apr 8 15:08:23 1996 Ian Lance Taylor <ian@cygnus.com>
1156 * configure.in: Permit --enable-shared to specify a list of
1159 Fri Apr 5 17:48:56 1996 Per Bothner <bothner@kalessin.cygnus.com>
1161 * config.shared (MOSTLYCLEAN): Also remove ${EXTRA_MOSTLYCLEAN}.
1163 Fri Mar 22 23:25:00 1996 Ulrich Drepper <drepepr@gnu.ai.mit.edu>
1165 * genops.c (_IO_sputbackc, _IO_sungetc): Clear EOF flag if putsh
1166 back was successful.
1168 Wed Mar 27 11:54:08 1996 Jason Merrill <jason@yorick.cygnus.com>
1172 Fri Mar 22 15:39:36 1996 Per Bothner <bothner@kalessin.cygnus.com>
1174 * fileops.c (_IO_do_write): Revert previous fix. (It fails to
1175 handle the case that fp->_IO_read_end != fp->_IO_write_base.)
1176 (_IO_file_overflow): Instead, if _IO_read_ptr is at the end of
1177 the buffer, reset all the read pointers to _IO_buf_base.
1179 Tue Mar 12 12:03:17 1996 Per Bothner <bothner@kalessin.cygnus.com>
1181 * fileops.c (_IO_do_write): Even if to_do==0, must re-set buffer
1182 pointers. Bug and solution from Luke Blanshard <luke@cs.wisc.edu>.
1184 Wed Feb 28 10:00:24 1996 Jason Merrill <jason@yorick.cygnus.com>
1188 Tue Feb 27 18:08:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
1190 * iopopen.c (_IO_proc_open): Use (char*)0 rather than imprecise NULL.
1192 * streambuf.h (ios): Add ios::binary; deprecate ios::bin.
1193 * filebuf.cc (filebuf::open): Handle ios::binary.
1195 Fri Feb 9 12:40:19 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
1197 * cleanup.c (_IO_cleanup_registration_needed) [!_G_HAVE_ATEXIT]: Init
1199 * filedoalloc.c (_IO_cleanup_registration_needed): Remove decl.
1201 Thu Feb 8 08:12:50 1996 Brendan Kehoe <brendan@cygnus.com>
1203 * filedoalloc.c (_IO_cleanup_registration_needed): Revert previous
1204 change, since cleanup.c only defines it if _G_HAVE_ATEXIT.
1206 Wed Feb 7 15:10:17 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
1208 * filedoalloc.c (_IO_cleanup_registration_needed): Declare as extern.
1210 Tue Dec 12 17:21:13 1995 Per Bothner <bothner@kalessin.cygnus.com>
1212 * indstream.h, instream.cc (indirectbuf::uflow): New method.
1213 * indstream.cc (indirectbuf::underflow): Fix to use sgetc, not sbumpc.
1214 Fixes bug reported by Kevin Beyer <beyer@cs.wisc.edu>.
1216 * indstream.cc (indirectbuf::seekpos): Add paranoia test.
1218 Fri Dec 8 14:55:34 1995 Per Bothner <bothner@kalessin.cygnus.com>
1220 * stream.h: Add warning to not use these functions.
1221 * stream.cc (str, chr): Re-implement here (from libg++).
1223 Tue Nov 28 15:07:01 1995 Per Bothner <bothner@kalessin.cygnus.com>
1225 * config.shared: Use test instead of [ to avoid DEC Unix lossage.
1227 Thu Nov 23 14:51:43 1995 Per Bothner <bothner@kalessin.cygnus.com>
1229 * iopopen.c: Move #include <sys/types.h> ahead of #include <signal.h>
1230 to deal with BSDI's literal implementation of Posix.
1232 Sat Nov 25 11:21:55 1995 Doug Evans <dje@canuck.cygnus.com>
1234 * Makefile.in (install): Set rootme.
1235 * config.shared (TOPDIR): Set with ${foo-...} rather than ${foo=...}.
1236 (INSTALL): Handle absolute, dot, relative-not-dot values of srcdir.
1237 (TEXIDIR): Likewise.
1239 Tue Nov 21 14:12:05 1995 Ian Lance Taylor <ian@cygnus.com>
1241 * configure.in: Check ${with_cross_host} rather than comparing
1242 ${host} and ${target}.
1244 Mon Nov 20 13:55:29 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1246 * configure.in: Match *-sco3.2v[45]*.
1248 Wed Nov 15 20:19:31 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1250 * config.shared (FLAGS_TO_PASS): Also pass SHLIB and SHCURSES.
1252 Tue Nov 14 01:41:08 1995 Doug Evans <dje@canuck.cygnus.com>
1254 * config.shared (TO_REAL_TOPDIR): Define.
1255 (MULTITOP): Deleted.
1256 (MULTISRCTOP, MULTIBUILDTOP): New.
1257 (TOPDIR): Change MULTITOP to MULTIBUILDTOP, and use TO_REAL_TOPDIR.
1258 (INSTALL): Add with_multisrctop, TO_REAL_TOPDIR.
1259 (TEXIDIR): Use TO_REAL_TOPDIR.
1260 (LIBS): Delete MULTITOP.
1261 (FLAGS_TO_PASS): Add NM.
1262 (CXXINCLUDES): Delete MULTITOP.
1263 (depend.new): Delete adding MULTITOP to ../ build tree references.
1264 Add MULTISRCTOP to ../ source tree references.
1265 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in
1266 instead of cfg-ml-pos.in.
1268 Sun Nov 12 16:30:48 1995 Per Bothner <bothner@kalessin.cygnus.com>
1270 * Makefile.in (VERSION): Set to 2.7.1.
1271 * configure.in: Add warning for Linux.
1272 * config.shared (DISTCLEAN): Add EXTRA_DISTCLEAN.
1274 * editbuf.h (edit_mark::index_in_buffer): Avoid unused param warning.
1276 * iostream.cc (istream::operator>> (char*)): Improve ANSI compliance.
1278 Fri Nov 10 08:41:37 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1280 * config.shared (check): Add missing semicolon.
1282 Thu Nov 9 17:27:22 1995 Jason Merrill <jason@yorick.cygnus.com>
1284 * configure.in (ALL): Remove $(OSPRIM_OBJECTS).
1285 * config.shared (check): Set LD_LIBRARY_PATH.
1287 * iogetdelim.c (_IO_getdelim): Index *lineptr, rather than lineptr.
1288 From alan@spri.levels.unisa.edu.au (Alan Modra).
1290 Mon Nov 6 15:03:33 1995 Per Bothner <bothner@kalessin.cygnus.com>
1292 * streambuf.cc, editbuf.cc, isgetline.cc, parsestream.cc:
1293 Fixes to avoid -Wall warnings.
1295 Fri Nov 3 16:41:41 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1297 * gen-params [!__STDC__]: Include varargs.h instead of stdarg.h.
1299 Thu Nov 2 15:04:03 1995 Per Bothner <bothner@kalessin.cygnus.com>
1301 * config.shared: Re-write if X then Y else true fi to (not X) || Y.
1303 Wed Nov 1 13:26:44 1995 Per Bothner <bothner@kalessin.cygnus.com>
1305 * iostream.h (istream::ipfx): Add default argument value.
1306 Reported by Yotam Medini <yotam_medini@tmai.com>.
1308 * libioP.h (_IO_blen): Fix typo.
1309 Reported by Bryan T. Vold <btv@ldl.healthpartners.com>.
1311 Fri Oct 27 19:26:20 1995 Per Bothner <bothner@kalessin.cygnus.com>
1313 * Makefile.in (_G_config.h): Set CC to $(CC) rather than to $(CXX),
1314 now that CXX defaults to g++ and CC default to gcc (when found).
1315 * config.shared: Simplify CXX and CC, since they get overridden
1316 by ../configure anyway.
1318 Wed Oct 25 19:45:50 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1320 * iostdio.h: Wrap including the file with #ifndef _IOSTDIO_H.
1322 Wed Oct 25 11:14:25 1995 Per Bothner <bothner@kalessin.cygnus.com>
1324 * libio.h (_IO_seekoff, _IO_seekpos): New declarations.
1325 * libioP.h (_IO_seekoff, _IO_seekpos): Remove declarations.
1326 * libioP.h: Cleanup; remove old !_IO_UNIFIED_JUMPTABLES stuff.
1328 * filebuf.cc (filebuf::~filebuf): Only call SYSYCLOSE if currently
1329 open. Bug found by Martin Gerbershagen <ger@ezis-ulm.de>.
1331 * streambuf.h (streambuf::pubseekoff, streambuf::pubseekpos):
1332 Added, from ANSI draft.
1333 * filebuf.cc (filebuf::open), iostream.cc (variables places), SFile.cc:
1334 Use pubseekoff/pubseekpos rather than sseekoff/sseekpos.
1336 * Makefile.in (install): Don't install libiostream.a.
1338 * filedoalloc.c: Also #include <unistd.h>.
1340 Mon Oct 9 18:09:54 1995 Jason Molenda <crash@phydeaux.cygnus.com>
1342 * config.shared (SUFFIXES): add .c.
1344 Tue Sep 26 16:08:01 1995 Per Bothner <bothner@kalessin.cygnus.com>
1346 * procbuf.cc: Move #pragma implementation to beginning.
1348 Wed Sep 20 17:53:33 1995 Per Bothner <bothner@kalessin.cygnus.com>
1350 * procbuf.h, procbuf.cc: Add #pragma interface/implementation stuff.
1352 Wed Sep 20 18:59:00 1995 John Eaton <jwe@bevo.che.wisc.edu>
1354 * procbuf.h: Protect from being included multiple times.
1356 Wed Sep 20 15:47:14 1995 John Eaton <jwe@bevo.che.wisc.edu>
1358 * procbuf.h (procbuf): Add '_next' pointer field for compatibility
1361 Wed Sep 20 13:54:02 1995 Ian Lance Taylor <ian@cygnus.com>
1363 * config.shared: Add support for maintainer-clean target as a
1364 synonym for realclean.
1365 * dbz/Makefile.in: Likewise.
1367 Mon Sep 11 12:11:19 1995 Per Bothner <bothner@kalessin.cygnus.com>
1369 * iopopen.c: #include <sys/types.h> before <sys/wait.h>.
1370 This is in accordance with Posix, and needed for ISC.
1372 Fri Sep 8 00:11:55 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1374 * gen-params: Use double quotes in the eval setting $TYPE to
1375 $VALUE, to preserve any single quotes in $VALUE.
1377 Mon Aug 21 11:39:09 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1379 * gen-params: Test for an appropriate version of gcc before using
1382 * config.shared: Add $(PICDIR) to $ALL.
1384 Mon Aug 7 17:51:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1386 * gen-params: Generate new macro _G_HAVE_SYS_CDEFS.
1387 * libio.h: If _G_HAVE_SYS_CDEFS, get __P from <sys/cdefs.h>.
1389 Fri Aug 4 23:21:17 1995 Paul Eggert <eggert@twinsun.com>
1391 * gen-params: When following typedef changes, allow typedefs
1392 that do not have a space before the defined type name,
1393 e.g. `typedef void *__gnuc_va_list;' as in Linux. Also,
1394 not require a space in the definiens, e.g. `typedef void*foo;'.
1396 Thu Aug 3 17:54:15 1995 Per Bothner <bothner@kalessin.cygnus.com>
1398 * iostream.h, iostream.cc (istream::sync): Added missing method.
1400 Thu Aug 3 17:49:34 1995 Per Bothner <bothner@kalessin.cygnus.com>
1402 * configure.in: Remove netbsd special case.
1403 * config/netbsd.mt: Removed; no longer used.
1405 Tue Jun 20 16:07:12 1995 Paul Eggert <eggert@twinsun.com>
1407 * gen-params: Take transitive closure of `typedef' relation.
1408 This is needed for BSD/OS 2.0, which has
1409 fpos_t -> off_t -> quad_t -> long long.
1411 Mon Jul 24 18:28:10 1995 Doug Evans <dje@canuck.cygnus.com>
1413 * config.shared (TOPDIR): Delete extra '/', $rootme may be empty.
1415 Sat Jul 22 13:27:45 1995 Doug Evans <dje@canuck.cygnus.com>
1417 * config.shared (depend.new): Fix quoting in DO NOT EDIT line.
1419 * Makefile.in (_G_config.h): Add multilib support.
1420 (install): Likewise.
1421 * config.shared: Likewise.
1422 * configure.in: Likewise.
1424 Wed Jun 28 17:40:25 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1426 * PlotFile.h, SFile.h, builtinbuf.h, editbuf.h, fstream.h,
1427 indstream.h, iomanip.h, iostream.h, parsestream.h, pfstream.h,
1428 procbuf.h, stdiostream.h, stream.h, streambuf.h, strstream.h: Wrap
1431 Thu Jun 22 04:34:01 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1433 * gen-params: Surround attributes with __.
1435 Mon Jun 19 00:33:22 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1437 * config.shared (SUBDIRS): Massage broken shells that require
1440 Sat Jun 17 11:25:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1442 * streambuf.h: Declare inline members inline in class.
1444 Thu Jun 15 20:45:13 1995 Per Bothner <bothner@kalessin.cygnus.com>
1446 * Makefile.in (VERSION): Update to version 2.7.0.
1448 Wed Jun 14 21:41:11 1995 Jason Merrill <jason@python.cygnus.com>
1450 * Makefile.in (STDIO_WRAP_OBJECTS): Remove stdfiles.o.
1451 (LIBIO_OBJECTS): Add stdfiles.o.
1453 Wed Jun 7 16:11:36 1995 Jason Merrill <jason@python.cygnus.com>
1455 * config.shared (all): Appease bash.
1457 Wed Jun 7 11:16:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1459 * configure.in (MOSTLYCLEAN): Remove stamp-picdir.
1461 * config.shared (MOSTLYCLEAN): Ditto.
1464 Mon Jun 5 18:29:39 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1466 * config/mh-*pic: Removed.
1468 * configure.in (MOSTLYCLEAN): Remove pic objects.
1469 (frags): Use toplevel pic fragments.
1471 * config.shared (CXXFLAGS): Use -O3.
1472 (PICFLAG, PICDIR): New macros.
1473 (all): Depend on $(PICDIR).
1474 (FLAGS_TO_PASS): Pass PICFLAG.
1475 (.x.o): Also build pic object.
1476 (stamp-picdir): Create directory for pic objects.
1477 (MOSTLYCLEAN): Remove pic objects.
1478 (CLEAN): Remove stamp-picdir.
1480 * Makefile.in (iostream.list): Depend on stamp-picdir.
1481 (c++clean): Don't remove _G_config.h.
1483 Mon Jun 5 15:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
1485 * strstream.h, strstream.cc (strstream::strstream()): Re-implement to
1486 be like ostrstream::ostrestream(), and not leak memory.
1488 * streambuf.h: Use #if !_IO_UNIFIED_JUMPTABLES instead of #ifndef.
1490 * iolibio.h (_IO_rewind): Add missing flags when calling _IO_seekoff.
1492 Thu May 25 22:30:21 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1494 * config/netbsd.mt (G_CONFIG_ARGS): Add defn for off_t. Another
1495 layer of typedefs has been added and the gen-params script can
1498 Wed May 10 03:02:58 1995 Jason Merrill <jason@python.cygnus.com>
1500 * iolibio.h (_IO_rewind): Add new argument to _IO_seekoff.
1502 * config/linux.mt (LIBIOSTREAM_OBJECTS): Include $(STDIO_WRAP_OBJECTS).
1503 (LIBIOSTREAM_DEP): Include stdio.list.
1504 (LIBIOSTREAM_USE): Include `cat stdio.list`.
1506 * Makefile.in (LIBIOSTREAM_DEP): New variable.
1507 (LIBIOSTREAM_USE): Ditto.
1508 (libiostream.a): Use them.
1509 (iostream.list): Ditto.
1510 (stdio.list): New rule.
1511 (stdio/stdio.list): Ditto.
1513 Tue May 9 18:29:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1515 * libioP.h (_IO_jump_t): Change TYPE for __dummy from int to
1518 Sat May 6 13:50:37 1995 Per Bothner <bothner@kalessin.cygnus.com>
1520 * libio.h (_IO_UNIFIED_JUMPTABLES): #define as true.
1521 (_IO_FILE): Remove _jumps field (#if _IO_UNIFIED_JUMPTABLES).
1523 * libioP.h (enum _IO_seekflags_): Removed.
1525 * libioP.h (_IO_setbuf_t): Change return value of setpos jumptable
1526 function to match C++ streambuf::setpos. (Return NULL on failure.)
1527 * fileops.c (_IO_file_setbuf), genops.c (_IO_default_setbuf),
1528 filebuf.cc, iosetvbuf.c: Update to use new setbuf conventions.
1530 * streambuf.h (streambuf): Re-order virtual functions more logically.
1531 * streambuf.cc (streambuf::uflow), streambuf.h: New virtual.
1532 * libioP.h (struct _IO_jump_t): Define using new JUMP_FIELD macro.
1533 And re-order in more logical order consistent with streambuf vtable.
1534 * fileops.c (_IO_file_jumps), iopopen.c (_IO_proc_jumps), iovfprintf.c
1535 (_IO_helper_jumps), streambuf.cc (_IO_streambuf_jumps), strops.c
1536 (_IO_str_jumps): Update accordingly, using JUMP_INIT macro.
1537 * stdfiles.c: Set vtable to point to _IO_file_jumps.
1538 * filebuf.cc, iopopen.c, iovfprintf.c (helper_vfprintf), iovsprintf.c,
1539 iovsscanf.c: Use macros and #if to set jumptables.
1541 * streambuf.c: _IO_streambuf_jumps and the _IO_sb_* methods are not
1542 needed #if _IO_UNIFIED_JUMPTABLES.
1543 * filebuf.cc (filebuf::__new): Also no longer needed.
1544 * fstream.cc (fstreambase::__fb_init, fstreambase::fstreambase): Fix.
1545 * stdstrbufs.c: Use filebuf vtable instead of builtinbuf's.
1546 * builtinbuf.h, builtinbuf.cc (builtinbuf): Commented out #if
1547 _IO_UNIFIED_JUMPTABLES - no longer needed.
1548 * strstream.cc (SET_STR_JUMPS): Does nothing now.
1550 * builtinbuf.cc, fileops.c, genops.c, iofgetpos.c, iofsetpos.c,
1551 ioftell.c, iopopen.c, ioseekoff.c, ioseekpos.c, iosetvbuf.c,
1552 iovfprintf.c, iovfscanf.c, strops.c: Use DEFUN and DEFUN_VOID.
1553 * filebuf.cc, fileops.c, genops.c, iopopen.c, ioseekoff.c, ioseekpos.c,
1554 iosetvbuf.c, iovfscanf.c: Use new JUMP_* and IO_OVERFLOW/... macros.
1556 * libioP.h (_IO_seekpos_t): Third arg is now an int (using _IOS_INPUT
1557 and _IOS_OUTPUT), not an enum _IO_seekflags_. Flags values are
1558 changed, and their sense inverted (to match streambuf::seekpos).
1559 * libioP.h (_IO_seekoff_t): Similarly match streambuf::seekoff.
1560 * filebuf.cc, fileops.c (_IO_file_fopen, _IO_file_seekoff), genops.c
1561 (_IO_default_seekpos, _IO_default_seekpos), iofgetpos.c, iofsetpos.c,
1562 iolibio.h (_IO_fseek), ioftell.c, ioseekoff.c, ioseekpos.c,
1563 iostream.cc, streambuf.cc, strops.c (_IO_str_seekoff), strstream.cc:
1564 New seekpos/seekoff conventions.
1565 * iostreamP.h (convert_to_seekflags): Removed - no longer needed.
1567 * iolibio.h (_IO_fread): New declaration.
1569 * dbz/Makefile.in: Re-arrange for cleaner dependencies.
1571 Fri May 5 15:55:22 1995 Per Bothner <bothner@kalessin.cygnus.com>
1573 * libioP.h (_IO_JUMPS. JUMP_FIELD, JUMP0, JUMP1, JUMP2, JUMP3,
1574 JUMP_INIT, _IO_FINISH, _IO_OVERFLOW, ... _IO_SYSSTAT): New macros
1575 in preparation for new unified jumptable/vtable implementation.
1576 * cleanup.c, filedoalloc.c, iofclose.c, iofflush.c, iofiledoalloc.c,
1577 ioprims.c, iosetbuffer.c, iostrerror.c, ioungetc.c: Use DEFUN.
1578 * filedoalloc.c, iofclose, iofflush, iosetbuffer.c: Use new macros.
1580 * iofopen.c, iofdopen.c: Use macros and #if for new jumptables.
1582 * gen-params: Do not #include <sys/types.h>.
1583 Add missing quote in 'eval'.
1584 Do add #include <sys/types.h> in test for <sys/resource.h>.
1585 * config/netbsd.mt: New file, defining _G_CONFIG_ARGS (for fpos_t).
1586 * configure.in: Use netbsd.mt for NetBSD.
1588 Wed May 3 15:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
1590 * libioP.h (DEFUN, DEFUN_VOID, AND): New macros, from ansidecl.h.
1591 * iofdopen.c, iofgets.c, iofopen.c, iofputs.c, iofread.c, iofwrite.c,
1592 iogetdelim.c, iogetline.c, iogets.c, ioignore.c, iopadn.c, ioperror.c,
1593 ioputs.c, iovsprintf.c, iovsscanf.c, outfloat.c: Use DEFUN.
1595 Mon May 1 16:22:30 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1597 * gen-params: #include <sys/types.h>. Don't use __WCHAR_TYPE__ in
1598 definition of _G_wchar_t. Use __attribute__ ((mode)) to get
1599 specific-sized ints under gcc, don't worry about int8 or int64
1600 otherwise. Provide defaults if deduction fails.
1602 Thu Apr 27 18:27:53 1995 Per Bothner <bothner@kalessin.cygnus.com>
1604 * streambuf.h (ios::~ios): Delete _arrays.
1605 (_IO_NEW_STREAMS): Turn on.
1606 * libio.h (__adjust_column): Remove bogus declaration.
1607 * genops.c (_IO_set_column): Fix typo (in commented-out code).
1609 Tue Apr 25 17:14:29 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1611 * config.shared (CXXINCLUDES): Use a shell variable with a
1612 different name from the make variable.
1613 * configure.in: Update accordingly.
1615 Mon Apr 17 17:19:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1617 * streambuf.h (__adjust_column): Remove redundant declaration.
1619 Sat Apr 15 11:39:25 1995 Per Bothner <bothner@kalessin.cygnus.com>
1621 * config.shared (do-clean-dvi): Also remove *.cps.
1623 * gen-params: Use ${SED} instead of sed.
1625 * libio.h: Remove #if'd out stuff (confuses makedepend).
1627 * stdstreams.cc (STD_STR): Standard streams start with ios::dec set.
1629 Fri Apr 14 23:46:31 1995 Per Bothner <bothner@kalessin.cygnus.com>
1631 * iostream.h, iostream.cc (istream::read, ostream::write):
1632 Use streamsize for the length parameter.
1634 * streambuf.h: Removed redundant __overflow and __underflow.
1636 * fstream.h, fstream.cc: Add void fstreambase::attach(int).
1638 * iosscanf.c (_IO_sscanf): Fix non-__STDC__ missing declaration.
1640 Mon Apr 3 15:40:55 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1642 * indstream.*: Fix prototypes of xsputn and xsgetn.
1644 * fileops.c: Avoid ??? trigraph.
1646 Mon Mar 27 16:16:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1648 * iomanip.h (operator<< (ostream&, const omanip<TP>&): Define
1650 (operator>> (istream&, const imanip<TP>&): Ditto.
1652 Mon Mar 27 08:56:00 1995 Brendan Kehoe (brendan@lisa.cygnus.com)
1654 * builtinbuf.cc (builtinbuf::setbuf): Cast NULL to streambuf*, to
1655 avoid warning/error about conversion from void*.
1656 * indstream.cc (indirectbuf::seekoff): Likewise.
1657 (indirectbuf::seekpos): Likewise.
1658 * filebuf.cc (filebuf::setbuf): Likewise.
1659 (filebuf::close): Cast NULL to filebuf*.
1661 Wed Mar 1 14:23:18 1995 Per Bothner <bothner@kalessin.cygnus.com>
1663 * configure.in (DISTCLEAN): Add, with target-mkfrag.
1665 Fri Feb 24 01:01:08 1995 Jason Merrill <jason@python.cygnus.com>
1667 * configure.in (frags): Don't require so many dashes in the
1668 canonical target name.
1670 Sat Feb 18 13:18:30 1995 Per Bothner <bothner@kalessin.cygnus.com>
1672 * streambuf.cc (streambuf::sync): Always return 0, even for
1673 non-flushed output. This is required by the ANSI/ISO draft.
1674 * genops.c (_IO_sync): Likewise always return 0.
1676 Fri Feb 17 16:33:28 1995 Per Bothner <bothner@kalessin.cygnus.com>
1678 * fileops.c (_IO_file_close_it): Call _IO_file_sync, rather
1679 than _IO_do_flush, because we want to adjust the file pointer
1680 if reading and not at end (as in SVR4, and as in fflush).
1681 Also, make sure to return error indication if sync fails.
1682 (_IO_file_sync): Ignore seek error if it is ESPIPE.
1683 (_IO_file_seekoff): If not readable, do dumb lseek.
1684 * iofclose.c (_IO_fclose): If closing a non-filebuf, return -1
1687 Fri Feb 17 19:31:00 1995 Ian Lance Taylor <ian@cygnus.com>
1689 * gen-params: Check for struct tms in <sys/times.h>, defining
1690 HAVE_SYS_TIMES accordingly.
1692 Wed Feb 15 21:05:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
1694 * strops.c (_IO_str_count): Use LEN macro.
1695 (_IO_str_seekoff): Update _len field.
1697 Mon Feb 6 19:29:00 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1699 * gen-params: Default to short, long and long long for 16, 32 and
1700 64 bit types, in case detection fails.
1702 Wed Jan 25 18:07:30 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1704 * gen-params (_G_wint_t): Allow for broken promotions.
1706 Tue Jan 24 16:15:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1708 * stdstrbufs.cc (_IO_fake_stdiobufs): Add an extra layer of struct,
1709 to force correct alignment on i960s.
1710 (DEF_STDIOBUF, _IO_{stdin,stdout,stderr}_buf): Update accordingly.
1712 Thu Jan 19 18:30:53 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1714 * config.shared (CXXINCLUDES): Add libstdc++ to includes for
1716 (LIBS): Also link with libstdc++ when building libg++ toys.
1717 Don't set EXPORT_ALL_VARIABLES; users will have to set
1718 LD_LIBRARY_PATH themselves.
1720 Fri Dec 30 16:38:13 1994 Mike Stump <mrs@cygnus.com>
1722 * config/linux.mt: Fix build problem on linux 1.0.8.
1724 Thu Dec 22 11:49:45 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1726 * config/netware.mt: Use gcc to pre-link iostream.nlm's objects
1727 instead of using nlmconv, so that references to functions in
1728 libgcc.a are resolved.
1730 * configure.in: Append .mt to target makefile fragment file names.
1732 * floatconv.c (tens, tinytens, bigtens): Added const qualifier.
1734 Tue Dec 20 09:59:50 1994 Mike Stump <mrs@cygnus.com>
1736 * gen-params (VTABLE_LABEL_PREFIX): Since some systems have GNU nm
1737 as nm, and they demangle by default, we have to notice this, and
1738 try --no-cplus (linux) or --no-demangle when running nm.
1740 Wed Dec 14 18:13:58 1994 Per Bothner <bothner@kalessin.cygnus.com>
1742 * gen-params: To determine vt-name-mangling using dummy.C add
1743 #include and #prama interface/implementation to avoid problem with
1744 assemblers that don't emit local symbols. Reported under HPUX 8
1745 by Thomas Arend <arend@blasius.Chemietechnik.Uni-Dortmund.DE>.
1747 * streambuf.h (ios::ios): Move inline definition after
1748 that of ios::init (which ios::ios calls).
1750 Sun Dec 4 19:50:32 1994 Per Bothner <bothner@kalessin.cygnus.com>
1752 * fileops.c (_IO_file_init, _IO_file_close_it, _IO_file_sync):
1753 Set _offset to _IO_pos_BAD, to support applications that follow
1754 POSIX.1 rules on mixing file handles.
1756 * fileops.c (_IO_file_overflow): Handle case that buffer was
1757 allocated (perhaps by setvbuf) but _IO_write_base is still 0.
1759 * iostdio.h (setbuffer): #define as _IO_setbuffer.
1760 * streambuf.h, filebuf.cc: Removed filebuf::do_write.
1762 Tue Nov 29 23:38:57 1994 Per Bothner (bothner@rtl.cygnus.com)
1764 * floatconv.c (setword0, setword1): Fix typo.
1766 Tue Nov 29 15:37:29 1994 Per Bothner <bothner@kalessin.cygnus.com>
1768 * config.shared: Move -fno-implicit-template from CXXFLAGS
1769 to LIBCXXFLAGS. Tests are better run without it.
1771 * floatconv.c (word0, word1): Re-place/re-implement using unions
1772 instead of casts to avoid optimizer problems.
1774 * dbz/dbzmain.c: Renamed dirname -> dir_name to avoid OSF
1775 header file braindamage.
1777 Sat Nov 5 19:44:00 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1779 * config.shared (LIBCFLAGS): Define.
1780 (LIBCXXFLAGS): Define.
1781 (DOING_LIBGXX): Define TOLIBGXX. Change LIBS to use -lg++. Add
1782 LD_LIBRARY_PATH and .EXPORT_ALL_VARIABLES:.
1783 (FLAGS_TO_PASS): Add LIBC{,XX}FLAGS.
1784 (XC{,XX}FLAGS): Set to LIBCFLAGS or CFLAGS depending on $LIBDIR.
1785 (COMPILE.c): Define, use in .c.o rule.
1786 (COMPILE.cc): Define, use in .cc.o rule.
1788 Sat Nov 5 15:12:12 1994 Per Bothner <bothner@kalessin.cygnus.com>
1790 * Makefile.in (VERSION): Update to 0.67.
1792 * streambuf.h (ios::dont_close): Is now set by default.
1793 * fstream.h, fstream.cc (__fb_init): New function. Clears
1794 ios::dont_close. Change fstreambase constructors to call it.
1795 * strstream.cc: *strstream constructors must clear ios::dont_close.
1796 * iostream.cc: Simplify - don't need to set ios::dont_close.
1797 * ioassign.cc: Simplify - assume ios::dont_close is always set.
1799 * fstream.h, fstream.cc: If _IO_NEW_STREAMS, put the
1800 filebuf as a member __my_fb.
1801 * strstream.{h,cc}: Likewile use a strstreambuf member __my_sb.
1802 * streambuf.h, stdstreams.cc, ioextend.cc:
1803 Fix if _IO_NEW_STREAMS to not use ios::dont_close.
1805 * streambuf.h (class ios): Move rdbuf later, to avoid
1806 inability of g++ to inline.
1807 * filebuf.cc (filebuf::~filebuf): Call _IO_do_flush.
1809 * config.shared: Emit rules to make depend.
1812 Fri Nov 4 17:19:11 1994 Per Bothner <bothner@kalessin.cygnus.com>
1814 * README: Fix typos.
1815 * libio.h: Add comment. Update Copyright notice.
1817 Fri Nov 4 21:46:30 1994 Paul Eggert <eggert@twinsun.com>
1819 * libio.h (__P): Change argument name spelling from
1820 `paramlist' to `protos' for compatibility with BSDI 1.1.
1822 Thu Nov 3 00:45:16 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1824 * config.shared (CXXFLAGS): Add -fno-implicit-templates.
1826 Mon Oct 24 15:57:35 1994 Per Bothner <bothner@kalessin.cygnus.com>
1828 * config.shared: Define NOSTDIC and use it for libio too.
1830 Thu Oct 20 19:45:35 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1832 * iogetdelim.c: #include <stdlib.h>.
1834 Thu Oct 20 17:09:52 1994 Per Bothner <bothner@kalessin.cygnus.com>
1836 * iostream.h: Add classes _IO_istream_withassign and
1837 _IO_ostream_withassign. Re-type cin, cout, cerr, clog.
1838 (class iostream): Don't add extra _gcount field.
1839 * ioassign.cc: New file. Implement operator= for cin etc.
1840 * streambuf.h (class ios): Change return type of operator=.
1841 * Makefile.in (IOSTREAM_OBJECTS): Add ioassign.o.
1843 * Makefile.in: Re-arrange, so linux.mt overrides can work.
1845 * fileops.c (_IO_file_seekoff): Optimize seeks within buffer.
1847 Wed Oct 19 14:25:47 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1849 * gen-params (wint_t): Return to using __WCHAR_TYPE__ for
1850 compatibility with gcc versions prior to 2.6.1.
1852 Tue Oct 18 17:08:18 1994 Per Bothner <bothner@kalessin.cygnus.com>
1854 * Makefile.in: Define _G_CONFOG_H as _G_config.h for Linux. Use it.
1855 (IO_OBJECTS): Add iogetdelim.o.
1856 * config/linux.mt: New file.
1857 * configure.in: Select config/linux.mt if Linux.
1858 * iogetdelim.c: Verious cleanups, many from
1859 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>.
1860 * libioP.h: Add _IO_getdelim. Use (void) for no-parameter functions.
1862 Thu Oct 13 16:30:56 1994 Per Bothner (bothner@kalessin.cygnus.com)
1864 * libio.h: Rename USE_DTOA to _IO_USE_DTOA for namespace reasons.
1865 * iostream.cc, iovfscanf.c, iovfprintf, floatconv.c:
1866 Update USE_DTOA -> _IO_USE_DTOA.
1868 * libio.h (_IO_feof, _IO_ferror): Move to here ...
1869 * iolibio: ... from here
1871 * iostream.cc (istream::get, istream::ignore, istream::read):
1872 Set _gcount to 0 if ipfx0 failed.
1874 * iostream.cc (flush): Do virtual function call, rather than
1875 going through jumptable. (To get correct method in derived class.)
1876 Bug and fix from John Wiegley <jw@cis.ohio-state.edu>.
1878 * iofdopen.c (O_ACCMODE): Define using O_RDWR, not O_RDWRITE.
1880 * streambuf.h (ios::rdbuf(streambuf*)): New.
1881 * streambuf.h (ios::operator=): Make private (i.e. dis-allow).
1883 Wed Oct 12 19:09:20 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1885 * gen-params: Define _G_NO_NRV and _G_NO_EXTERN_TEMPLATES if not
1888 Thu Oct 6 16:03:43 1994 Per Bothner (bothner@kalessin.cygnus.com)
1890 * iostream.texi (ostrstream::str): Note that NUL is not written
1893 Wed Oct 5 17:28:29 1994 Per Bothner (bothner@kalessin.cygnus.com)
1895 * iogetdelim.c (_IO_getdelim): New function.
1897 Wed Oct 5 15:40:22 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1899 * config/netware.mt: New file, first cut at Netware NLM support.
1900 * configure.in (*-*-netware*): Use config/netware.mt.
1902 * config.shared (NLMCONV, LD): New definition.
1904 * gen-params: check for nm in ${binutils}/nm.new.
1905 * config.shared: Likewise.
1907 Tue Oct 4 12:20:01 1994 Per Bothner (bothner@kalessin.cygnus.com)
1909 * iomanip.h (omanip::operator<<): Make 2nd arg be const.
1910 Bug and fix reported by Greg McGary <gkm@magilla.cichlid.com>.
1912 * strstream.cc (strstreambuf::pcount): Simplify, to match
1913 ANSI/ISO specification.
1915 Mon Sep 26 15:19:52 1994 Jason Merrill (jason@deneb.cygnus.com)
1917 * gen-params: Include <wchar.h> and <wctype.h> if they exist.
1919 Thu Sep 8 14:41:41 1994 Jason Merrill (jason@deneb.cygnus.com)
1921 * iostream.h (class istream): Declare operator>>(long double&).
1922 (class ostream): Define operator<<(long double).
1924 * iostream.cc (istream::operator>>(long double&)): Define.
1926 Wed Sep 7 14:42:29 1994 Per Bothner (bothner@kalessin.cygnus.com)
1928 * iostream.texi (Overflow): Fix bugs in example.
1930 Fri Sep 2 17:45:57 1994 Per Bothner (bothner@kalessin.cygnus.com)
1932 * iostream.tex: Document a little on how to write your
1933 own streambuf-derived class, with an example.
1935 Tue Aug 30 13:03:57 1994 Brendan Kehoe (brendan@lisa.cygnus.com)
1937 * floatconv.c (s2b): Declare X and Y to be _G_int32_t.
1938 (diff, quorem): Declare BORROW, Y, and Z likewise.
1939 (ulp): Declare L likewise.
1940 (_IO_strtod): Declare L and AADJ likewise.
1941 (_IO_dtoa): Declare L and D likewise. Cast division of D by DS to
1944 Mon Aug 29 16:01:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
1946 * iosetvbuf.c (_IO_setvbuf): If setting _IOFBF and no
1947 buffer was specified, call __doallocate.
1949 * fileops.c, floatconv.c: Add a bunch of parentheses to
1950 shut up gcc warnings. Patch from H.J.Lu.
1952 * stdiostream.cc (stdiobuf::sys_read): Inline call to getc
1953 for the normal case (size==1).
1955 Sat Aug 20 12:14:52 1994 Per Bothner (bothner@kalessin.cygnus.com)
1957 * Makefile.in (VERSION): Increase to 0.66.
1959 Fri Aug 19 17:28:41 1994 Per Bothner (bothner@kalessin.cygnus.com)
1961 * iolibio.h: Added _IO_printf prototype.
1962 Added extern "C" { ... } wrappers #ifdef __cplusplus.
1963 Bugs reported by Neal Becker <neal@ctd.comsat.com>.
1965 Wed Aug 17 18:17:15 1994 Per Bothner (bothner@kalessin.cygnus.com)
1967 * fileops.c (_IO_file_seekoff): For _IO_seek_cur, adjust for
1968 read-ahead before jumping to label dumb.
1970 Wed Aug 3 13:15:01 1994 H.J. Lu (hjl@nynexst.com)
1972 * libioP.h (CHECK_FILE(FILE,RET)): new, which checks for
1973 FILE == NULL and _IO_MAGIC_MASK.
1974 (COERCE_FILE(FILE)): merged into CHECK_FILE(FILE,RET)
1977 * iofread.c, iofwrite.c: add CHECK_FILE(fp, 0);
1978 * iofclose.c: add CHECK_FILE(fp, EOF); remove _IO_MAGIC_MASK check.
1980 * iofflush.c, iofgetpos.c, iofputs.c, iofscanf.c,
1981 iofsetpos.c, iofvbuf.c, ioungetc.c:
1982 Add CHECK_FILE(fp, EOF) and remove COERCE_FILE(fp).
1984 * iofgets.c: add CHECK_FILE(fp, NULL) and remove COERCE_FILE(fp).
1985 * iofprintf.c: add CHECK_FILE(fp, -1) and remove COERCE_FILE(fp).
1986 * ioftell.c: add CHECK_FILE(fp, -1L) and remove COERCE_FILE(fp).
1987 * iosetbuffer.c: add CHECK_FILE(fp, ) and remove COERCE_FILE(fp).
1989 Fri Aug 12 15:35:39 1994 Per Bothner (bothner@kalessin.cygnus.com)
1991 * iofdopen.c (_IO_fdopen): #define O_ACCMODE if it isn't.
1992 Still set O_APPEND if "a" is given, but don't unset it
1993 if it isn't. Added comment.
1995 Mon Aug 8 13:11:00 1994 Per Bothner (bothner@kalessin.cygnus.com)
1997 * gen-params (VTABLE_LABEL_PREFIX): Changes in the implementation.
1998 For look for _*vt[$_.]7*filebuf in the nm output, because that
1999 matches what g++ produces and has produced. Thus it should be
2000 somewhat more robust.
2002 Sun Aug 7 22:52:49 1994 Per Bothner (bothner@kalessin.cygnus.com)
2004 * gen-params (CC): Remove no-longer-needed -I options
2005 passed to xgcc (now they are implied by the -B options).
2007 Wed Jul 20 16:41:13 1994 Per Bothner (bothner@kalessin.cygnus.com)
2009 * Makefile.in (tooldir): Added definition, so we can do
2010 'make install' in this directory.
2011 Bug reported by Klamer Schutte <schutte@tpd.tno.nl>.
2013 Mon Jul 18 18:02:34 1994 Per Bothner (bothner@kalessin.cygnus.com)
2015 * gen-params (VTABLE_LABEL_PREFIX): Remove filename sppearing
2016 by itself. Add comment explaining what is going on.
2018 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@jalod)
2020 * libio.h: define _IO_uid_t and _IO_HAVE_ST_BLKSIZE
2023 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@jalod)
2025 * iopopen.c: Don't include <errno.h>. It is included in "libioP.h".
2027 * iopopen.c (_IO_proc_close) : check if fp is on the list
2030 Thu Jul 14 16:38:47 1994 Per Bothner (bothner@kalessin.cygnus.com)
2032 * gen-params (CONFIG_NM): Make sed scripts to find vtable name
2033 mangling more robost for different forms of nm output.
2035 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@jalod)
2037 * iofopen.c (_IO_fopen): don't check [redundantly] fp == NULL after
2038 IO_file_init(&fp->_file).
2040 * iomanip.h (template<class TP> class iapp):
2041 change ostream to istream.
2043 Tue Jul 12 14:09:02 1994 Per Bothner (bothner@kalessin.cygnus.com)
2045 * Makefile.in (VERSION): Increase to 0.65.
2046 * libioP.h (builtinbuf_vtable): Only define #ifdef __cplusplus.
2048 * gen-params (_G_int8_t): Only define if defined(__STDC__),
2049 because K&R C compilers don't have signed char.
2050 (_G_int64_t, _G_uint64_t): Only define if defined(__GNUC__)
2051 because other compilers may not have long long.
2053 Sun Mar 06 13:10:21 1994 H.J. Lu (hjl@nynexst.com)
2055 * floatconv.c (_IO_dtoa ()): fix a small memory leak, set the
2056 "on_stack" field to be 0 if "result" is not NULL.
2058 Sat Mar 05 13:18:20 1994 H.J. Lu (hjl@nynexst.com)
2060 * floatconv.c (_IO_dtoa ()): if the number of digits of the
2061 floating point number is more than the previous one, free the
2062 old string and allocate a new one.
2063 [Minor optimization to avoid Bcopy. -PB]
2065 Mon Jul 11 10:53:41 1994 Per Bothner (bothner@kalessin.cygnus.com)
2067 * fileops.c (_IO_file_underflow): 'count' should be unsigned,
2068 since it contains the return value of read. Reported by
2069 Teemu Torma <tot@trema.fi>.
2071 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@nynexst.com)
2073 * floatconv.c (_IO_strtod ()): make "+" and "-" as error.
2075 Sat Jul 9 15:09:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
2077 Make sure _IO_FILE::_flags is always initialized correctly, for the
2078 C functions (fopen, fdopen, popen), and not just the C++ functions.
2079 * fileops.c (_IO_file_init): Set _flags to CLOSED_FILEBUF_FLAGS.
2080 * fileops.c (_IO_file_fopen): Remove bogus assignment.
2081 * filebuf.cc (filebuf constructors): Don't pass CLOSED_FILEBUF_FLAGS
2082 to streambuf constructor - _IO_file_init does it instead.
2083 * filebuf.cc (CLOSED_FILEBUF_FLAGS): Removed.
2084 * iopopen.c (_IO_proc_open): Use _IO_mask_flags.
2086 Thu Jun 30 08:49:53 1994 Jason Merrill (jason@deneb.cygnus.com)
2088 * dbz/Makefile.in (mostlyclean): Add target.
2090 Wed Jun 29 09:30:12 1994 Jason Merrill (jason@deneb.cygnus.com)
2092 * gen-params: Woops, can't run a C program to determine target
2093 characteristics. Sigh.
2095 Tue Jun 28 03:11:33 1994 Jason Merrill (jason@deneb.cygnus.com)
2097 * gen-params: Add _G_{,u}int{8,16,64}_t, use a short C program to
2098 determine what all these should be rather than trying to compare
2099 the MAX numbers in the shell.
2101 Sun Jun 26 21:04:24 1994 Per Bothner (bothner@kalessin.cygnus.com)
2103 * stdiostream.h, stdiostream.cc (stdiobuf::xsgetn): Removed.
2104 Too hairy. If we want to optimize it, we should do so in
2105 filebuf::xsgetn (or rather _IO_file_xsgetn).
2107 * stdiostream.h (class stdiobuf), stdiostream.cc: Fix parameter
2108 and return types of virtual function to matcher base types (Oops!).
2109 * streamstream.cc (stdiobuf::xsgetn, stdiobuf::xsputn):
2110 Optimize to call fread.fwrite directly if !buffered.
2111 * fileops.c: Fix comment.
2113 Fri Jun 24 11:28:18 1994 Per Bothner (bothner@kalessin.cygnus.com)
2115 * stdiostream.h (istdiostream, ostdiostream): New classes.
2117 More robust final cleanup.
2118 * cleanup.c (_IO_register_cleanup): Register _IO_cleanup,
2119 rather than _IO_flush_all.
2120 * filedoalloc.c: Update comment.
2121 * genops.c (_IO_unbuffer_all): New. Makes all files unbuffered.
2122 * genops.c (_IO_cleanup), libioP.h: New function. Call
2123 _IO_flush_all, and then _IO_unbuffer_all. This is in case C++
2124 destructors try to do output *after* _IO_cleanup is called.
2126 Construct standard stdiobufs statically (using type punning).
2127 * stdstrbufs.c; Unless _STDIO_USES_IOSTREAM declare standard
2128 stdiobufs (for stdin, stdout, and stderr), using type punning
2129 (struct _IO_fake_stdiobuf). This avoids constructor-time problems.
2130 * stdstreams.cc: Remove the declarations of the stdiobufs.
2131 Instead use the new (fake) ones in stdstrbufs.cc. We no longer
2132 have to call ios::sync_with_stdio at constructor time.
2134 Preliminary support for new ANSI streambuf::uflow virtual.
2135 * libioP.h (struct _IO_jump_t): Add __uflow field.
2136 * genops.c (_IO_default_uflow), libioP.h: New function.
2137 * fileops.c (_IO_file_jumps), iopopen.c (IO_proc_jumps),
2138 iovfprintf.c (_IO_helper_jumps), strops.c (_IO_str_jumps),
2139 streambuf.cc (_IO_streambuf_jumps): Add _IO_default_uflow.
2140 * genops.c (__uflow): New function.
2141 (save_for_backup): New function. Some code shared by
2142 __underflow and __uflow, moved out from the former.
2143 (_IO_default_uflow): New function.
2144 * libio.h (_IO_getc): Call __uflow, not __underflow.
2146 Wed Jun 22 20:22:49 1994 Per Bothner (bothner@kalessin.cygnus.com)
2148 Make sure that the vtable of a streambuf is always valid,
2149 which makes ios::rdbuf simpler and faster.
2150 * gen-params: Add code to determine _G_VTABLE_LABEL_HAS_LENGTH,
2151 _G_VTABLE_LABEL_PREFIX, _G_VTABLE_LABEL_PREFIX_ID, and
2152 _G_USING_THUNKS, which describe how virtual function tables are named.
2153 * stdfiles.c (FILEBUF_LITERAL): Moved to libioP.h.
2154 * libioP.h (builtinbuf_vtable): New (complicated) declaration.
2155 * filebuf.cc (filebuf::__new), strstream.cc (SET_STR_JUMPS):
2156 Initialize vtable to builtinbuf_vtable, not NULL.
2157 * stdstrbufs.cc: New file. Same as stdfiles.c, except that
2158 vtable is initialized to builtinbuf_vtable, not NULL.
2159 * streambuf.h (ios::rdbuf): Can now simplify/optimize, due to
2160 above changes. Always, just return _strbuf.
2161 * builtinbuf.h, builtinbuf.cc (builtinbuf::vtable,
2162 builtinbuf::get_builtin_vtable): Removed. No longer needed.
2163 * streambuf.h, builtinbuf.cc (ios::_IO_fix_vtable): No longer needed.
2164 Only defined #ifdef _STREAM_COMPAT, for binary compatibility.
2165 * Makefile.in: Move stdfiles.o from IO_OBJECTS to STDIO_WRAP_OBJECTS.
2166 (IOSTREAM_OBJECT): Add stdstrbufs.o.
2167 * Makefile.in (_G_config.h): Pass $(CXXFLAGS) as part of $(CXX).
2169 Fri Feb 11 11:08:01 1994 SBPM Marc GINGOLD (marc@david.saclay.cea.fr)
2171 * iovfprintf.c (helper_vfprintf): add
2172 hp->_IO_file_flags = _IO_MAGIC|(_IO_IS_FILEBUF+_IO_NO_READS);
2173 [This is needed because _IO_vfprintf checks for _IO_UNBUFFERED. -PB]
2174 [Actually: don't set _IO_IS_FILEBUF. -PB]
2176 Wed Jun 22 13:49:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
2178 * stdiostream.cc, stdiostream.h (stdiobuf::buffered): New methods.
2180 * iofdopen.c (_IO_fdopen): Various minor improvements.
2182 * iovfscanf.c: Don't return EOF on control_failure.
2184 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@nynexst.com)
2186 * iovfscanf.c: Enforce the sequence of the conversion specifications.
2188 Fri Jun 17 20:57:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
2190 * iofdopen.c: Use fcntl to check that requested access mode is
2191 compatible with existing access mode, and to change the
2192 O_APPEND file status flag if need be.
2194 Thu Jun 16 17:33:50 1994 Per Bothner (bothner@kalessin.cygnus.com)
2196 * streambuf.h (ios::init): Initialize all the fields.
2197 This may be overkill, but the current ANSI working paper requires it.
2198 * streambuf.h (ios::ios): Reimplement in terms of ios::init.
2199 * iostream.cc (Non-default constructors istream::istream,
2200 ostream::ostream, iostream::iostream): Cannot use a mem-initializer,
2201 because it is ignored if initializing a derived class. Instead,
2204 Wed Jun 15 13:35:37 1994 Per Bothner (bothner@kalessin.cygnus.com)
2206 * stdstreams.cc (ISTREAM_DEF): Fix typo (it's a _fake_istream, not
2207 a _fake_ostream). Reported by Jason Shirk <jshirk@gomez.intel.com>.
2209 * stdiostream.h, stdiostream.cc (stdiobuf::~stdiobuf): New.
2211 * stdiostream.cc (stdiobuf::sync): Call _IO_do_flush rather
2212 than filebuf::sync (to avoid bad seeks).
2214 * libioP.h (_IO_do_flush): Add missing parentheses.
2216 Fri Jun 3 19:16:57 1994 Jason Merrill (jason@deneb.cygnus.com)
2218 * config.shared (CXXFLAGS): Remove -fno-implicit-templates.
2220 * iomanip.h: Add explicit external instantiations.
2222 Wed Jun 1 14:14:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
2224 * libio.h (struct _IO_FILE_plus): Move definition from here ...
2225 * libioP.h (struct _IO_FILE_plus): ... to here. Since this
2226 file is private to the implementation, we can rename the fields
2227 from the implementor's to the user's name anme space.
2228 (This avoids a lossage on SCO, whose stdio.h has a #define _file.)
2229 * iofdopen.c, iofopen.c, stdfiles.c: Fix field references accordingly.
2230 * iopopen.c (struct_IO_proc_file): Rename fields from
2231 implementor's name space to user's, and update usages.
2232 * streambuf.h (streambuf::_vtable): Re-implement to not need
2233 struct _IO_FILE_plus.
2234 * strfile.h (struct _IO_strfile_): Likewise.
2236 Wed Jun 1 13:57:48 1994 Jason Merrill (jason@deneb.cygnus.com)
2238 * config.shared (CXXFLAGS): Use -fno-implicit-templates instead of
2239 -fexternal-templates.
2241 Tue May 31 08:49:28 1994 Mike Stump (mrs@cygnus.com)
2243 * genops.c, iofclose.c, iofdopen.c, iofopen.c, iopopen.c: Be
2244 consistent about protecting #include <stdlib.h>.
2246 * ioputs.c: Add #include <string.h>, to avoid warning on alpha.
2248 * iofdopen.c: Add #include <stdlib.h>, so that malloc works on
2249 machines where sizeof(int) != sizeof(void *).
2251 Mon May 30 17:26:49 1994 Per Bothner (bothner@kalessin.cygnus.com)
2253 * pfstream.cc (ipfstream::ipfstream, opfstream::opfstream):
2254 Reverse sense of test of return value of procbuf::open.
2255 (It returns NULL on failure.)
2257 * filedoalloc.c (_IO_file_doallocate): Remove dead code for
2258 USE_MALLOC_BUF. Add code to return EOF if ALLOC_BUF fails.
2260 Sat May 28 13:47:47 1994 Jason Merrill (jason@deneb.cygnus.com)
2262 * iomanip.cc: Explicitly instantiate smanip<int> and
2263 smanip<ios::fmtflags>.
2265 Wed May 25 16:04:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
2267 * strfile.h: Use __P instead of _PARAMS.
2269 Fri May 20 11:42:17 1994 Per Bothner (bothner@kalessin.cygnus.com)
2271 * libio.h: Rename _PARAMS macro to __P for better glibc and BSD
2272 compatibility. (Also define _PARAMS for backwards compatibility.)
2273 * cleanup.c, iolibio.h, ioperror.c, iovfprintf.c, iovfscanf.c,
2274 libioP.h: Use __P instead of _PARAMS.
2275 * iostdio.h: Use __P instead of _ARGS.
2277 * fileops.c (_IO_file_read): Minor stylistic tweak. (It is
2278 preferable to test errno *after* the error return.)
2280 Fri May 13 15:25:36 1994 Jason Merrill (jason@deneb.cygnus.com)
2282 * iostream.*: Add insertor and extractor for bool (just pretend
2285 Fri May 13 14:12:03 1994 Mike Stump (mrs@cygnus.com)
2287 * gen-params: Check for builtin bool support.
2289 Wed May 11 00:48:35 1994 Jason Merrill (jason@deneb.cygnus.com)
2291 Make libg++ build with gcc -ansi -pedantic-errors
2292 * gen-params: #ifdef __STRICT_ANSI__, #define _G_NO_NRV.
2293 * pfstream.cc (ipfstream::ipfstream): Wrap use of variable-size
2294 array in #ifndef __STRICT_ANSI__.
2296 Fri May 6 12:42:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
2298 * Makefile.in (VERSION): Increase to 0.64.
2300 * isgetline.cc (istream::getline): The delimiter should *not*
2301 be included in the gcount().
2303 * filedoalloc.c: #include <stdlib.h> (If __STDC__) to get malloc.
2304 * iostream.h (ostream::put): Remove overloaded versions, to match
2305 new working paper. (Actually just put inside _STREAM_COMPAT, for now.)
2307 Tue May 3 14:14:57 1994 Per Bothner (bothner@kalessin.cygnus.com)
2309 * genops.c (_IO_default_finish): Make robust when called
2310 multiple times on the same _IO_FILE*. (One way this can
2311 happen is by the builtinbuf destructor being followed by the
2312 streambuf destructor.)
2314 Mon May 2 13:55:26 1994 Jason Merrill (jason@deneb.cygnus.com)
2316 * gen-params: Actually determine wint_t rather than depending on
2317 cpp to provide it or defaulting to the underlying type for
2320 Sat Apr 30 14:47:30 1994 Jason Merrill (jason@deneb.cygnus.com)
2322 * gen-params: Add _G_wint_t, allow __*_TYPE__ to override values
2323 at compile time, fix definition of _G_ARGS.
2325 Fri Apr 29 16:55:37 1994 Per Bothner (bothner@kalessin.cygnus.com)
2327 * libio.h: Remove #pragma interface. (There is no implementation.)
2329 Mon Mar 28 14:22:26 1994 Per Bothner (bothner@kalessin.cygnus.com)
2331 * iostream.cc (ostream::operator<<(double)): Add/fix support
2332 for printing '+' when ios::showpos is set.
2333 (Fixes bug reported by Doug Moore <dougm@cs.rice.edu>.)
2334 * iostream.cc (istream::read): Set eofbit as well as failbit on eof.
2335 * iostream.cc (ostream::operator<<(int)): Fix conversion
2336 to unsigned (used to lose on INT_MIN).
2337 * iostream.cc (ostream::operator<<(long)): Use (unsigned long),
2338 rather than (unsigned) for temporary.
2340 * config.shared, Makefile.in: Remove definitions and uses
2341 of XTRAFLAGS. It is no longer needed, since it is
2342 now implied by the -B flag.
2344 Fri Mar 25 00:31:22 1994 Jason Merrill (jason@deneb.cygnus.com)
2346 * builtinbuf.h: Add put /**/ around comment on trailing #endif.
2348 * Makefile.in (c++clean): Make clean in tests subdir, too.
2350 Wed Mar 23 16:42:09 1994 Doug Evans (dje@canuck.cygnus.com)
2352 * configure.in: Remove Makefile.tem before creating it.
2353 Needed when configuring from read-only source trees.
2355 Wed Mar 16 14:06:42 1994 Per Bothner (bothner@kalessin.cygnus.com)
2357 * stdstreams.cc: Fix so that stdiobuf are used for cin/cout/cerr,
2358 unless _STDIO_USES_IOSTREAM is defined.
2359 * filebuf.cc (filebuf::setbuf): Fix confusion about return
2360 value from _IO_file_setbuf.
2362 Sun Mar 13 00:54:12 1994 Paul Eggert (eggert@twinsun.com)
2364 * config.shared: Ensure that `all' precedes `.PHONY';
2365 BSDI 1.1 needs this.
2367 Sat Mar 12 03:58:00 1994 Paul Eggert (eggert@twinsun.com)
2369 * config.shared: Output a definition of INSTALL that uses
2370 $${rootme}, not ${rootme}. Most `make's don't care, but BSDI
2373 Fri Mar 4 17:33:01 1994 Per Bothner (bothner@kalessin.cygnus.com)
2375 * iopopen.c: #define _POSIX_SOURCE.
2376 * isgetline.c (istream::getline): Various fixes.
2378 Thu Mar 3 17:58:20 1994 Per Bothner (bothner@kalessin.cygnus.com)
2380 * iostream.cc (write_int): Fix test for when to add initial '0'
2381 when ios::oct and ios::showbase are set.
2382 For hex, showbase adds initial 0x (or 0X) regardless of val==0.
2383 Bugs reported by Phil Roth <proth@cs.uiuc.edu>.
2385 Mon Feb 21 13:18:20 1994 H.J. Lu (hjl@nynexst.com)
2387 * libio.h (_IO_PENDING_OUTPUT_COUNT(_fp)): return the
2388 pending output count in _fp.
2390 Fri Feb 25 09:26:57 1994 Ian Lance Taylor (ian@cygnus.com)
2392 * gen-params: For HAVE_SYS_WAIT, compile dummy.c, not dummy.C.
2394 Tue Feb 22 11:19:09 1994 Per Bothner (bothner@kalessin.cygnus.com)
2396 * streambuf.h, genops.c, libioP.h: Rename references to
2397 _IO_FILE fields other_gbase => _IO_save_base,
2398 _aux_limit => _IO_backup_base, and _other_egptr => _IO_save_end.
2399 * libio.h: Remove no-longer needed macros _other_gbase,
2400 _aux_limit, and _other_egptr.
2401 * genops.c (__underflow, _IO_default_finishh, _IO_unsave_markers):
2402 Check _IO_save_base for NULL before FREEing it or calling
2403 _IO_free_backup_area.
2405 Thu Feb 17 15:26:59 1994 Per Bothner (bothner@kalessin.cygnus.com)
2407 * gen-params: Improve deduction of _G_uint32 and _G_int32.
2408 Should now work for 16-bit, 32-bit, or 64-bit targets.
2409 * gen-params: Check for sys/wait.h using ${CC}, since it's
2410 now used in a C file, not a C++ file.
2411 * floatconv.c: Typedef _G_uint32_t as unsigned32, and use
2412 unsigned32 in place of unsigned long. (Needed for Alpha.)
2414 Tue Feb 8 13:40:15 1994 Per Bothner (bothner@kalessin.cygnus.com)
2416 * fileops.c (_IO_file_close_it): Simplify by using _IO_do_flush.
2417 * fileops.c (_IO_file_finish): Don't call _IO_file_close_it -
2418 do it inline. Call _IO_do_flush even if _IO_DELETE_DONT_CLOSE.
2419 * fileops.c (_IO_file_attach): Set _IO_DELETE_DONT_CLOSE.
2420 * genops.c (_IO_flush_all): Only call overflow if there is
2422 * iofclose.c (_IO_fclose): Check that magic number is correct,
2423 and clear it when done. Avoids crashing some buggy applications.
2424 * iogetline.c (_IO_getline): Don't gratuitously increment old_len.
2425 * iogets.c (_IO_gets): Take care to get required ANSi semantics.
2427 Sun Feb 6 19:50:39 1994 Jason Merrill (jason@deneb.cygnus.com)
2429 * iomanip.cc: Explicitly instantiate operator<< and >>.
2431 Fri Feb 4 12:28:22 1994 Jason Merrill (jason@deneb.cygnus.com)
2433 * config.shared (CXXFLAGS): Use -fexternal-templates.
2435 * iomanip.h: Uncomment #pragma interface.
2437 Thu Jan 20 13:48:40 1994 Per Bothner (bothner@kalessin.cygnus.com)
2439 If no characters are read by fgets, ANSI C doesn't allow '\0' to
2440 be written to the buffer, but it is required by ANSI C++
2441 for istream::get and istream::getline. Both use _IO_getline ...
2442 * iogetline.c (_IO_getline): Don't write a '\0' at the end
2443 of the read data. The input buffer length does not include
2445 * iofgets.c, iogets.c: Change appropriately.
2446 Also check for _IO_ERR_SEEN, as required by ANSI.
2447 * isgetline.cc: Update accordingly.
2449 Mon Jan 17 13:24:26 1994 Jason Merrill (jason@deneb.cygnus.com)
2451 * Makefile.in (c++clean): Added target for compiler testing
2452 (i.e. make c++clean all).
2454 Mon Jan 10 11:20:42 1994 Per Bothner (bothner@kalessin.cygnus.com)
2456 * libio.h (_IO_putc): Add parentheses.
2457 Patch from Rik Faith <faith@cs.unc.edu>.
2459 Tue Jan 4 01:32:28 1993 Hongjiu Lu (hjl@nynexst.com)
2461 * genops.c (_IO_default_xsputn):
2462 (_IO_default_xsgetn):
2463 * ioignore.c: change "_IO_size_t count" to
2464 "_IO_ssize_t count".
2465 * iogetline.c: change "_IO_size_t len" to
2468 Mon Dec 20 00:31:21 1993 Per Bothner (bothner@kalessin.cygnus.com)
2470 * config.shared (CXXINCLUDES): Fix quoting of $(NOSTDINC).
2472 Sun Dec 19 21:03:45 1993 Per Bothner (bothner@kalessin.cygnus.com)
2474 * Makefile.in (VERSION): Increase to 0.63.
2476 Fri Dec 17 13:02:44 1993 Per Bothner (bothner@kalessin.cygnus.com)
2478 * iofread.c (_IO_fread): Return 0 if either size or count is 0.
2479 * iofwrite.c (_IO_fwrite): Return 0 if either size or count is 0.
2480 (This is consistent with fread, and most implementations, but not
2481 with a literal reading of the ANSI spec.)
2482 * iovfscanf.c (_IO_vfscanf): If got EOF while skipping spaces,
2483 set seen_eof and break (instead of returning).
2484 * sbscan.cc (streambuf::vscan): Set error state before returning.
2485 * streambuf.h: Add a forward declarations for class istream
2486 to work around a g++ vtable name mangling bug. (Patch from
2487 harry@pdsrc.hilco.com via Jeffrey A Law <law@snake.cs.utah.edu>.)
2490 Sat Dec 11 16:21:08 1993 Per Bothner (bothner@kalessin.cygnus.com)
2492 * iovfprintf.c (struct helper_file, _IO_helper_overflow,
2493 helper_vfprintf, _IO_helper_jumps): New structs and functions.
2494 (_IO_vfprintf): Use helper_vfprintf to make printing to
2495 unbuffered files more efficient.
2496 * genops.c (_IO_default_underflow), libioP.h: New function.
2498 * iovsscanf.c (_IO_vsscanf): The input string's length marks
2499 its logical end-of-file.
2501 Wed Dec 8 13:20:46 1993 Per Bothner (bothner@kalessin.cygnus.com)
2503 * indstream.cc (indirectbuf::sync()): Don't crash if get_stream()
2504 or put_stream() are NULL; sync() both streams even if error.
2506 Sun Dec 5 19:24:29 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
2508 * iostreamP.h (convert_to_seekflags): Use _IO_seek_set instead of
2509 0 inside the conditial expressions.
2511 * iofsetpos.c (_IO_fsetpos): Delete unused var `pos'.
2513 Sat Dec 4 15:57:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
2515 * filedoalloc.c (_IO_file_doallocate): Change type of couldbetty
2516 to int, and type of size to _IO_size_t, instead of size_t.
2517 (Change needed for Ultrix, which incorrectly deliberately doesn't
2518 define size_t in <sys/types.h> if _POSIX_SOURCE is defined.)
2520 Thu Dec 2 22:43:03 1993 Per Bothner (bothner@kalessin.cygnus.com)
2522 * fileops.c (_IO_file_finish): Remove redundant call to _IO_un_link.
2523 * iofclose.c (_IO_fclose): Don't call fp->_jumps->__close; it's
2524 too low-level. Instead call _IO_file_close_it.
2525 * dbz/Makefile.in (rclean, distclean): Add some missing files.
2527 Wed Dec 1 13:19:14 1993 Per Bothner (bothner@kalessin.cygnus.com)
2529 * config/hpux.mt (MATH_H_INLINES): No longer define.
2530 Patch from Jeffrey A Law <law@snake.cs.utah.edu>.
2532 Fri Nov 26 13:28:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
2534 * config.shared (CINCLUDES): Define default if libg++.
2535 * iofread.c: Use _IO_sgetn.c.
2536 * iolibio.h (_IO_clearerr): Fix typo.
2537 * genops.c (_IO_seekmark): Return 0 on success.
2538 * floactconv.c (Binit): Change to static.
2539 * iofclose.c (_IO_fclose): Check if file is _IO_stdin, _IO_stdout,
2540 or _IO_stderr; if so don't try to free it. Fix from hjl@nynexst.com.
2542 * genops.c (_IO_default_sync), libioP.h: New function.
2543 * libioP.h (_IO_default_close): Use _IO_default_sync -same interface.
2545 * Makefile.in: Increase version to 0.62.
2546 * iopopen.c (_IO_proc_close): Use waitpid (available in libibarty,
2547 if needed), rather than wait. Don't block/ignore SIGINT etc,
2548 as this is counter to Posix.2.
2549 * iopopen.c: Chain open proc_files, and have the child close
2550 the ones that are open (as required by Posix.2).
2552 * fstream.h (fstreambase::rdbuf), strstream.h (strstreambase
2553 ::rdbuf): Call ios::rdbuf() instead of getting _strbuf directly.
2555 * sbscan.cc (streambuf::vscan): Comment out duplicate default arg.
2556 * floatconv.c: Recognize Alpha and i860 as little-endian.
2557 * streambuf.cc: Return two bogus value returns from void functions.
2558 * iolibio.h, iofwrite.c: Fix buffer type to (const void*).
2559 * libio.h: Predefine of struct _IO_FILE to help non-g++-compilers.
2560 * libioP.h, pfstream.cc, stdfiles.c, iovfscanf.c: Cleanup syntax junk.
2561 * stdstreams.cc: Minor simplification.
2562 * streambuf.h, builtinbuf.cc: Add non-const ios::_IO_fix_vtable()
2563 for temporary binary compatibility.
2565 * filedoalloc.c, fileops.c: Add _POSIX_SOURCE.
2566 * fileops.c, iofopen.c, iofputs.c, iostream.cc, strops.c,
2567 strstream.cc, genops.c: Add some missing #includes.
2568 * iofopen.c, iofdopen.c: Return NULL if malloc fails.
2569 * iovfscanf.c: Fix return type in strtol prototype.
2570 * fwrite.c: Remove bogus file.
2572 Wed Nov 17 14:09:42 1993 Per Bothner (bothner@cygnus.com)
2574 * builtinbuf.cc (ios::_IO_fix_vtable), streambuf.h: Make method
2575 const, to reduce problems with -Wcast-qual.
2577 Tue Nov 16 19:30:42 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2579 * config.shared (CXXINCLUDE): use ${} instead of $() for NOSTDINC
2581 Tue Nov 16 14:15:45 1993 Per Bothner (bothner@kalessin.cygnus.com)
2583 * iopopen.c (_IO_proc_close): Re-structure to avoid
2584 declarations after statements.
2585 * floatconv.c: If not __STDC__, #define DBL_MANT_DIG.
2586 * config/isc.mt (G_CONFIG_ARGS): Remove bogus spaces.
2587 Patch from David A. Avery <daa@nic.cerf.net>.
2589 Tue Nov 16 15:58:31 1993 Mark Eichin (eichin@cygnus.com)
2591 * Makefile.in (_G_config.h): explicitly use $(SHELL) to run
2592 gen-params, since we know it is a script (we're explicitly looking
2593 in ${srcdir} for it) and /bin/sh might not be good enough.
2595 Mon Nov 15 13:26:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
2597 * builtinbuf.cc: Don't depend on initialization of static
2598 variable builtinbuf::vtable, since that might happen after
2599 we need it (for a static constructor). Instead, initialize
2600 it when needed by inlining the code from get_builtin_vtable
2601 into ios::_IO_fix_vtable().
2603 * floatconv.c: Avoid using #elif, which some C compilers lack.
2604 * iogetline.c, libioP.h: Make char parameter be int, to avoid
2605 some default promotion anomalies.
2607 Fri Nov 5 11:49:46 1993 Per Bothner (bothner@kalessin.cygnus.com)
2609 * config.shared (do-clean-dvi): Remove TeX work files.
2610 * iopopen.c (extern _IO_fork): Don't use parameter type void.
2611 * strops.c (_IO_str_init_static): Clear the allocate_buffer
2612 function pointer, to mark the strfile as being static.
2613 Bug fix from Mike Raisbeck <mike@pudding.rtr.COM>.
2615 Thu Nov 4 10:44:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
2617 * filebuf.cc (filebuf:): Use sseekoff rather than seekoff
2618 (which loses if vtable pointer is NULL).
2620 * iostream.cc (ostream::operator<<(long long n)): Fix thinko.
2622 * Makefile.in (VERSION): Increase to 0.60.
2623 * Makefile.in (IO_OBJECTS): Added iopopen.o.
2624 * config.shared (DISTCLEAN): Also remove Make.pack.
2625 * config.shared (CXXINCLUDES): Add $(NOSTDINC).
2627 * config.shared (INSTALL): Fix so it ues the correct install.sh
2628 whether $srcdir is absolute or relative.
2630 * floatconv.c (DBL_MAX_10_EXP): Fix default value.
2632 Wed Nov 3 10:20:49 1993 Per Bothner (bothner@kalessin.cygnus.com)
2634 * gen-params: Make more robust to allow random junk (NeXT
2635 has spaces) before typedefs.
2637 * fileops.c (_IO_file_overflow): Reduce code duplication.
2638 * Makefile.in (IO_OBJECTS): Remove ioputs.o.
2640 * iovfscanf.c, libio.h: Extra parameter to _IO_vfscanf,
2641 for optionally setting an error indication..
2642 * iofscanf.c, ioscanf.c, iofscanf.c, iovsscanf.c: Fix calls to
2643 _IO_vfscanf to pass an extra NULL.
2644 * sbscan.cc (streambuf::vscan): If passed an extra stream,
2645 set its error state (using new _IO_vfscanf parameter.
2647 * filedoalloc.c, fileops.c, genops.c, iogetline.c, ioignore.c,
2648 libio.h, libioP.h, streambuf.cc streambuf.h, strfile.h, strops.c,
2649 strstream.cc: Replace macros (_base, _ebuf, _eback, _gptr, _egptr,
2650 _pbase, _pptr, _epptr) by field names (_IO_buf_base, _IO_buf_end,
2651 _IO_read_base, _IO_read_pre, IO_read_end, _IO_write_base,
2652 _IO_write_ptr, _IO_write_end).
2653 * libio.h: Remove the old macros (which fixes a conflict.
2655 Mon Nov 1 15:22:12 1993 Per Bothner (bothner@kalessin.cygnus.com)
2657 * iostream.cc: Use _IO_sputn instead of sputn. _IO_sputn does
2658 not require a vtable pointer, and is also slightly faster.
2660 * builtinbuf.{h,cc} (builtinbuf::setbuf): Fix return and
2663 Mon Oct 25 12:56:33 1993 Per Bothner (bothner@kalessin.cygnus.com)
2665 Kludge to make sure _IO_FILE buffers get flushed before exit.
2666 * dbz/dbzmain.c, dbz/fake.c, dbz/byteflip.c:
2667 Invoke DBZ_FINISH macro (if defined) before (normal) exits.
2668 * dbz/Makefile.in (CFLAGS): Define DBZ_FINISH to call _IO_flush_all.
2670 Sat Oct 23 22:10:53 1993 Per Bothner (bothner@kalessin.cygnus.com)
2672 * Makefile.in (VERSION): Set to 0.60 for libg++ release.
2673 * fileops.c (_IO_file_attach): Set _offset to _IO_pos_BAD.
2674 * iostream.cc (ostream::flush): Fix thinkp.
2675 * editbuf.cc, isgetsb.cc, isscan.cc, osform.cc, parsestream.cc,
2676 pfstream.cc, sbform.cc, sbscan.cc, stdstreams.cc, stream.cc:
2677 Replace #include "ioprivate.h" by #include "libioP.h" (and
2678 sometimes stdarg.h, stdlib.h and/or string.h).
2679 * ioprivate.h: Removed.
2682 Thu Oct 21 19:24:02 1993 Per Bothner (bothner@kalessin.cygnus.com)
2684 * PlotFile.h, SFile.h, editbuf.cc, editbuf.h, filebuf.cc,
2685 fstream.cc, fstream.h, indstream.cc, indstream.h, iomanip.cc,
2686 iomanip.h, ioprivate.h, iostream.cc, iostream.h, isgetline.cc,
2687 isgetsb.cc, parsestream.cc, parsestream.h, pfstream.cc,
2688 pfstream.h, procbuf.cc, procbuf.h, stdiostream.cc, stdiostream.h,
2689 stdstreams.cc, streambuf.cc, streambuf.h, strstream.cc,
2690 strstream.h: Remove old (duplicate) copyright notices.
2692 * iostream.cc: Fix calls to sync() to be safe in the presence
2693 of vtable-less streambufs.
2695 Wed Oct 20 15:22:04 1993 Per Bothner (bothner@kalessin.cygnus.com)
2697 * streambuf.h (streambuf::underflow, streambuf::overflow):
2698 Don't make virtual functions pure.
2699 * streambuf.cc (streambuf::underflow, streambuf::overflow):
2700 Default definitions (return EOF).
2701 * fstream.h: Add new (int fd, char* buf, int len) constructors.
2702 These are deprecated, but added for AT&T compatibility.
2703 * fstream.cc fstreambase::fstreambase(int fd, char *p, int l): New.
2705 Thu Oct 14 14:57:01 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2707 * configure.in: use 'mv -f' instead of 'mv'
2709 Tue Oct 12 05:01:44 1993 Mike Stump (mrs@cygnus.com)
2711 * floatconv.c: Fix typo, change __STDC to __STDC__.
2713 Mon Oct 11 17:03:12 1993 Per Bothner (bothner@kalessin.cygnus.com)
2715 * cleanup.c: It should be #if _G_HAVE_ATEXIT, not #ifdef.
2717 * floatconv.c, iostrerror.c, iovfprintf.c, iovfscanf.c, libioP.h:
2718 Bunch of fixes to allow use of non-ANSI (K&R) C compilers.
2720 * Makefile.in (iostream.list): Use CC=$(CXX) to force use of gcc.
2723 Fri Oct 8 16:19:58 1993 Per Bothner (bothner@kalessin.cygnus.com)
2725 * Makefile.in: Move ioungetc.o from STDIO_WRAP_OBJECTS to
2726 IO_OBJECTS (since it is needed for iovfscanf.c).
2727 * iostrerror.c: Add declaration of strerror.
2729 Thu Oct 7 12:02:28 1993 Per Bothner (bothner@kalessin.cygnus.com)
2731 * cleanup.c: New file, to cause flushing at exit.
2732 * filedoalloc.c: Cause flushing on exit.
2733 * Makefile.in (OSPRIM_OBJECTS): Add cleanup.o.
2734 * gen-params: Check for atexit.
2736 Tue Oct 5 19:11:14 1993 Mike Stump (mrs@cygnus.com)
2738 * ioperror.c (_IO_strerror): Add missing ()s in _PARAMS usage.
2740 Tue Oct 5 10:33:37 1993 Per Bothner (bothner@kalessin.cygnus.com)
2742 * iofprintf.c, iofscanf.c, ioprintf.c, ioscanf.c, iosprintf.c,
2743 iosscanf.c: Remove bogus semi-colon after va_dcl.
2744 * ioperror.c: Fix typos in declaration.
2746 Mon Oct 4 17:12:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
2748 * configure.in (CLEAN): Define (as _G_config.h *.a).
2750 * fileops.c (_IO_file_read): Don't assume EINTR is defined.
2751 * iosetbuf.c: Replace by generalized ...
2752 * iosetbuffer.c: ... variant, derived from BSD.
2753 * Makefile.in (STDIO_WRAP_OBJECTS): Change correspondingly.
2754 * iosetvbuf.c (iosetvbuf): Minor ANSI tweak.
2755 * iostdio.h (setbuf, setlinebuf): New #defines.
2756 * iolibio.h (_IO_setbuf, _IO_setlinebuf): (Re-)define as macros.
2757 * Makefile.in (LIBIO_OBJECTS): New macro.
2759 Tue Sep 28 14:15:52 1993 Per Bothner (bothner@kalessin.cygnus.com)
2761 * libioP.h (_IO_proc_open, _IO_proc_close): Add missing return types.
2762 * procbuf.cc: Belated fixes.
2764 Mon Sep 27 14:04:47 1993 Per Bothner (bothner@kalessin.cygnus.com)
2766 * Makefile.in: List new files. Add STDIO_WRAP_OBJECTS macro.
2767 * floatconv.c (d2b): Use Exp_msk11 instead of Exp_msk1.
2768 * iofgetpos.c (_IO_fgetpos), iofsetpos.c (_IO_fsetpos): Clean up.
2769 * iolibio.h: New file. Declarations of _IO_foo, for most foo
2770 where foo is a stdio function. (Remove these from libio.h.)
2771 * iostream.h (istream::istreambuf, ostream::ostreambuf): Move
2772 obsolete functions inside #ifdef _STREAM_COMPAT.
2773 * libio.h, libioP.h, streambuf.h, parsestream.h, stdiostream.h:
2774 Use _IO_fpos_t rather than _IO_pos_t.
2775 * iopopen.c: New file type, for pipe (popen-like) streams.
2776 * procbuf.cc: Now just a C++ wrapper for the files in iopopen.c.
2777 * streambuf.h (ios::unsetf): Return complete old value of flags.
2778 * iogets.c (_IO_gets(), ioungetc.c (_IO_ungetc), ioperror.c
2779 (_IO_perror), iostrerror.c (_IO_strerror): New files and
2780 functions, for stdio implementation.
2781 * iostdio.h: Add declarations for various recently-added functions.
2783 Sun Sep 12 14:24:55 1993 Per Bothner (bothner@kalessin.cygnus.com)
2785 * streambuf.h (ios::showpos):: Fix typo.
2787 Fri Aug 27 12:05:47 1993 Per Bothner (bothner@kalessin.cygnus.com)
2789 * iopadn.c (_IO_padn): Change to return count of chars written.
2790 * outfloat.c, iovfprintf.c: Change for new _IO_padn interface.
2791 * iostream.cc (ostream::operator<<): Make sure to set badbit
2792 on a failure (many places). Use _IO_padn more.
2793 * iostream.cc (ostream& ostream::operator<<(const void *p): Move to
2794 * osform.cc: ... here, to reduce linking-in-the-world syndrome.
2795 * osform.cc: Use rdbuf(), instead of _strbuf directly.
2797 * genops.c (_IO_sgetn), libio.h: New function.
2798 * streambuf.h (streambuf.h::sgetn): Use _IO_sgetn.
2799 * SFile.cc (SFile::operator[]): Use sseekoff, not seekoff.
2801 Thu Aug 26 10:16:31 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2803 * config.shared (SUBDIRS): only recurse if the directory is configured
2805 Wed Aug 25 12:56:12 1993 Per Bothner (bothner@kalessin.cygnus.com)
2807 * config/{hpux.mt, isc.mt, sco4.mt}:
2808 Moved from ../libg++/config (since they affect _G_config.h).
2809 * configure.in: Set target_make_frag to one of the above files.
2811 Fri Aug 20 00:53:14 1993 Per Bothner (bothner@kalessin.cygnus.com)
2813 * iofopen.c (iofopen): Fix type passed to _IO_un_link().
2814 * Makefile.in (_G_config.h): Pass $CC (not $CXX) as CC.
2816 * configure.in (configdirs): Add dbz and stdio.
2817 * fileops.c (_IO_file_seekoff): Convert more old functionality.
2818 * iofdopen.c: Use mode parameter to set _flags.
2819 * iofscanf.c, ioputs.c, ioscanf.c, iosprintf.c: New files.
2820 * Makefile.in (IO_OBJECTS): Added new objects.
2821 * iostdio.h: Add feof. fscanf, puts, sprintf, vsprintf.
2822 * libio.h: Add _IO_vprintf macro.
2823 * iofopen.c: Invoke _IO_un_link if failure.
2824 * iovsprintf.c: Write terminating NUL.
2826 * libioP.h: Add COERCE_FILE macro (by default does nothing).
2827 * iofclose.c, iofflush.c, iofgets.c, iofprintf.c, iofputs.c,
2828 iofread.c, ioftell.c, iofwrite.c, iosetbuf.c, iosetvbuf.c:
2829 Invoke COERCE_FILE macro.
2830 * ioftell.c: Use _IO_seekoff.
2832 Wed Aug 18 22:49:56 1993 Per Bothner (bothner@kalessin.cygnus.com)
2834 * sbform.cc (streambuf::form), sbscan.cc (streambuf::scan):
2835 Remove cast to _IO_va_list. (Loses if array type.)
2837 * libio.h: Handle _IO_va_list for systems that need <stdarg.h>.
2838 * floatconv.h: Fix typo (reported by H.J.Lu).
2840 Wed Aug 18 19:34:04 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2842 * configure.in (INSTALLDIR): handle native vs. cross case
2844 * Makefile.in (install): don't use $TARGETLIB, set INSTALLDIR to
2847 Wed Aug 18 12:10:03 1993 Per Bothner (bothner@kalessin.cygnus.com)
2849 * Makefile.in: Rename iostream-files to iostream.list.
2850 * configure.in: Add iostream.list to MOSTLYCLEAN.
2852 Tue Aug 17 18:56:59 1993 Per Bothner (bothner@kalessin.cygnus.com)
2854 * Makefile.in: Depend on _G_config.h where appropriate.
2855 * config.shared (CXXINCLUDES): If doing libg++, search ../libio.
2857 Tue Aug 17 17:34:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
2859 New directory. Based on old libg++/iostream code,
2860 but extensively re-written.