1 2000-08-18 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
3 * editbuf.h (edit_streambuf): Fix syntax error in
6 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
8 * configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
9 Honor --disable-threads.
11 Sun Jul 23 15:16:23 2000 Krister Walfridsson <cato@df.lth.se>
13 * gen-params: Added trailing space for 'long long int' regexp.
15 2000-06-28 Alex Samuel <samuel@codesourcery.com>
17 * libioP.h (VTABLE_LABEL): Update for new vtable mangling.
18 * stdstrbufs.cc (filebuf_vtable): Likewise.
19 (stdiobuf_vtable): Likewise.
21 2000-06-04 Mark Mitchell <mark@codesourcery.com>
23 * libioP.h: Handle new ABI mangling.
24 * stdstrbufs.cc: Likewise.
26 2000-05-24 Ulrich Drepper <drepper@redhat.com>
28 * iostream.cc (endl): Fix bug in last change.
29 (ends): Make same change as for endl.
31 Tue May 23 22:56:56 2000 Jerry Quinn
33 * iostream.cc (endl): Verify stream can accept characters
34 before writing its eol.
36 2000-05-15 David Edelsohn <edelsohn@gnu.org>
38 * config.shared: Change "pic" to depend on $(PICFLAG), not
41 2000-05-11 Robert Lipe <robertlipe@usa.net>
43 * configure.in: Remove special casing for sco3.2v[45].
44 * config/sco4.mt: Deleted.
46 2000-05-10 Jakub Jelinek <jakub@redhat.com>
48 * configure.in: Use mh-sparcpic for sparc*-*-*.
50 2000-04-02 Zack Weinberg <zack@wolery.cumb.org>
52 * configure.in: Indent the # of #include_next one space.
54 2000-03-29 Jason Merrill <jason@casey.cygnus.com>
56 * configure.in: -linux-gnu*, not -linux-gnu.
58 2000-01-28 Martin v. Löwis <loewis@informatik.hu-berlin.de>
60 * fstream.h (ifstream::ifstream): Add ios::in to mode.
61 (ifstream::open): Likewise.
62 (ofstream::ofstream): Add ios::out to mode.
63 (ofstream::open): Likewise.
65 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
67 * dbz/dbz.c, dbz/dbzmain.c: Include stdlib.h. Don't declare
68 malloc, calloc, free, atol, atoi, or errno. (errno.h was
69 already being included.)
71 2000-01-12 Fred Fish <fnf@be.com>
73 * configure.in (*-*-beos*): Recognize.
74 * config/beos.mt: New file.
76 1999-12-22 Jakub Jelinek <jakub@redhat.com>
78 * libio.h (_IO_cookie_io_functions_t): Use _IO_off_t instead of
80 (_IO_seekoff, _IO_seekpos): Likewise. Use _IO_off64_t instead of
82 * libioP.h (_IO_seekoff_t, _IO_seekpos_t, _IO_seek_t): Likewise.
83 (_IO_seekoff, _IO_seekpos): Likewise.
84 (_IO_default_seekoff, _IO_default_seekpos): Likewise.
85 (_IO_default_seek): Likewise.
86 (_IO_file_seekoff, _IO_file_seek, _IO_str_seekoff): Likewise.
87 * streambuf.h (streampos): Typedef to _IO_off_t resp. _IO_off64_t.
88 * parsestream.h (class parsebuf::pos_at_line_start): Change type
91 1999-12-21 Martin v. Löwis <loewis@informatik.hu-berlin.de>
93 * filebuf.cc (open): Support ios::ate if _G_HAVE_IO_FILE_OPEN.
94 Remove seek for ios::app if not.
96 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
98 * filedoalloc.c, floatio.h, iovfprintf.c, iovfscanf.c: Remove
99 advertising clause from BSD license, pursuant with
101 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
103 1999-12-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
105 * strstream.h (strstreambuf::streambuf): Rename parameters to
106 avoid shadow warning.
107 * stream.h (WS): Likewise.
109 Thu Sep 30 01:08:04 1999 Jeffrey A Law (law@cygnus.com)
111 * editbuf.cc, parsestream.cc, pfstream.cc: Include string.h.
113 Mon Sep 13 06:30:14 1999 Mark Klein <mklein@dis.com>
115 * config/mpeix.mt: New for MPEiX port.
117 Sat Sep 4 18:00:00 PDT 1999 Mark Klein (mklein@dis.com)
119 * configure.in: Add mpeix.mt make fragment.
121 1999-08-08 Alexandre Oliva <oliva@dcc.unicamp.br>
123 * streambuf.h (ios::streamsize): Declare as _IO_ssize_t, as in the
126 1999-08-07 Andreas Schwab <schwab@suse.de>
128 * iostream.cc: Add missing calls to isfx and setup a cleanup
129 region for the locked stream.
130 * iostream.h: Likewise.
131 * isgetline.cc: Likewise.
132 * isgetsb.cc: Likewise.
133 * isscan.cc: Likewise.
135 Mon Jun 28 09:25:23 1999 Hans-Peter Nilsson <hp@bitrange.com>
137 * configure.in (post-target): Use "$(topsrcdir)", not "$(srcdir)/..".
139 Wed Jun 2 00:19:53 1999 Eric Raskin (ehr@listworks.com)
141 * configure.in: Added DG/UX target fragment
143 Sun May 30 14:25:02 1999 Eric Raskin (ehr@listworks.com)
145 * config/dgux.mt: New file for DG/UX configuration of libio
147 1999-05-20 Angela Marie Thomas <angela@cygnus.com>
149 * configure.in: Test for ${compiler_name}.exe as well.
151 1999-05-17 Mark Kettenis <kettenis@gnu.org>
153 * libioP.h: Only include libc-lock.h if _IO_MTSAFE_IO is defined.
155 1999-05-14 Ulrich Drepper <drepper@cygnus.com>
157 * configure.in: Recognize target *vxworks* and add fragment vxworks.mt.
158 * config/vxworks.mt: New file.
159 * gen-params: Let configure override HAVE_PRINTF_FP.
161 1999-05-12 Jason Merrill <jason@yorick.cygnus.com>
163 * configure.in (compiler_name): Don't do the skip-this-dir thing
164 if we're reconfiguring.
166 1999-04-29 Nathan Sidwell <nathan@acm.org>
168 * streambuf.h (ios::~ios): Use operator delete[] to remove _arrays.
170 Mon Apr 12 19:22:44 1999 Mumit Khan <khan@xraylith.wisc.edu>
172 * filedoalloc.c (_POSIX_SOURCE): Remove definition.
173 * fileops.c (_POSIX_SOURCE): Likewise.
174 * iopopen.c (_POSIX_SOURCE): Likewise.
175 * procbuf.cc (_POSIX_SOURCE): Likewise.
176 * libioP.h (_POSIX_SOURCE): And define it here.
177 * stdiostream.cc: Include libioP.h before others.
179 Fri Apr 2 15:11:58 1999 H.J. Lu (hjl@gnu.org)
181 * libio/configure.in (gxx_include_dir): Handle it.
182 * libio/Makefile.in: Likewise.
184 Wed Mar 24 22:36:45 1999 Mumit Khan <khan@xraylith.wisc.edu>
186 * configure.in (EXEEXT): Define.
187 (compiler_name): Use.
189 1999-03-24 Alexandre Oliva <oliva@dcc.unicamp.br>
191 * gen-params (CONFIG_NM): `test ... -o ...' is not portable.
193 Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
195 * configure.in: Cleanup and add mh-*pic handling for arm, powerpc
197 Fri Mar 5 01:15:15 1999 H.J. Lu (hjl@gnu.org)
199 * config/linuxlibc1.mt (MT_CFLAGS): Add -D_G_STDIO_USES_LIBIO
200 -D_G_HAVE_WEAK_SYMBOL.
202 * genops.c: Add the proper weak alias if _G_STDIO_USES_LIBIO
203 and _G_HAVE_WEAK_SYMBOL are defined.
204 * iofclose.c: Likewise.
205 * iofeof.c: Likewise.
206 * ioferror.c: Likewise.
207 * iogetc.c: Likewise.
208 * ioputc.c: Likewise.
209 * iovsprintf.c: Likewise.
210 * iovsscanf.c: Likewise.
212 Sun Feb 28 22:39:17 1999 Geoffrey Noer <noer@cygnus.com>
214 * configure.in: Check cygwin*, not cygwin32*.
216 Wed Feb 10 09:25:48 1999 Mumit Khan <khan@xraylith.wisc.edu>
218 * gen-params (VTABLE_LABEL_PREFIX): Handle windows32.
220 Wed Feb 3 22:05:41 1999 H.J. Lu (hjl@gnu.org)
221 Jeffrey A Law (law@cygnus.com)
223 * Makefile.in (iostream.list): Remove dependency on
225 ($(LIBIOSTREAM_DEP)): Depend on stamp-picdir.
226 ($(LIBIO_FILES)): Similarly.
228 * config.shared (all): Make $(PICDIR) concurrent.
230 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
232 * configure.in (compiler_name): Add check to detect if this
233 language's compiler has been built.
235 1998-10-12 Alexandre Oliva <oliva@dcc.unicamp.br>
237 * config.shared (depend.new): Delete libc-lock.h from
238 dependencies, and fix _G_config.h -> $(_G_CONFIG_H) rule.
241 Sun Oct 11 01:51:42 1998 Jeffrey A Law (law@cygnus.com)
243 * config.shared (depend.new): Fix typo.
246 1998-09-09 Manfred Hollstein <manfred@s-direktnet.de>
248 * configure.in (INSTALLDIR): Fix comment about changing INSTALLDIR's
249 value; don't change its value if --enable-version-specific-runtime-libs
252 Wed Sep 2 21:05:39 1998 H.J. Lu (hjl@gnu.org)
254 * configure.in: Fix INSTALLDIR replacement for cross-compile.
256 Sun Aug 30 22:27:02 1998 Lutz Wohlrab <lutz.wohlrab@informatik.tu-chemnitz.de>
258 * dbz/Makefile.in: Avoid assumptions about "tr" behaves when
259 LANG is set to something other than English.
261 Sun Aug 30 22:17:00 1998 H.J. Lu (hjl@gnu.org)
263 * config.shared: Set libsubdir.
265 1998-08-25 14:34 Ulrich Drepper <drepper@cygnus.com>
267 * libio/iogetline.c (_IO_getline_info): Don't read anything for
268 N == 0. Patch by HJ Lu.
270 1998-08-23 Mark Mitchell <mark@markmitchell.com>
272 * iomanip.h: Use __extension__ for `extern' explicit template
275 1998-08-17 Ulrich Drepper <drepper@cygnus.com>
277 * strfile.h: Define __PMT if not already defined.
279 1998-08-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
281 * libioP.h: Use __PMT in typedefs.
282 * strfile.h: Likewise.
284 1998-06-29 Ulrich Drepper <drepper@cygnus.com>
286 * libio.h: Rewrite __PMT change so that it works with platforms
287 defining __P but not __PMT.
289 * libio.h (__PMT): New macro. Defined like __P. Use is for
292 1998-06-27 Manfred Hollstein <manfred@s-direktnet.de>
294 * Makefile.in (install): Remove superfluous /include.
296 1998-06-26 Manfred Hollstein <manfred@s-direktnet.de>
298 * config.shared (FLAGS_TO_PASS): Add gcc_version_trigger.
299 (Makefile): Add dependency upon $(gcc_version_trigger).
301 1998-06-24 Manfred Hollstein <manfred@s-direktnet.de>
303 * Makefile.in (install): Install _G_config.h depending on new flag
304 --enable-version-specific-runtime-libs.
305 * config/linux.mt (gxx_include_dir): Remove definition here as we use
306 gcc's default anyway.
308 1998-06-24 Manfred Hollstein <manfred@s-direktnet.de>
310 * config.shared (FLAGS_TO_PASS): Add gcc_version.
312 1998-06-19 Manfred Hollstein <manfred@s-direktnet.de>
314 * config.shared (FLAGS_TO_PASS): Add libsubdir.
316 1998-06-07 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
318 * genops.c (__underflow): Read character from read pointer as unsigned.
321 1998-05-22 Ulrich Drepper <drepper@cygnus.com>
323 * strops.c (_IO_str_underflow): Read newly available character
324 from buffer as unsigned.
326 Sun Apr 19 22:13:36 1998 H.J. Lu (hjl@gnu.org)
328 * isgetline.cc (istream::get): Fix a typo.
330 Thu Mar 5 09:23:28 1998 Manfred Hollstein <manfred@s-direktnet.de>
332 * configure.in: Make locating frag files failsafe even for the
333 special case if configuring and building in srcdir.
335 1998-02-24 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
337 Changes for _G_IO_IO_FILE_VERSION == 0x20001:
338 * libioP.h (_IO_showmanyc_t, _IO_SHOWMANYC, _IO_imbue_t,
339 _IO_IMBUE): New definitions.
340 (struct _IO_jump_t): Add __showmanyc and __imbue fields.
341 (_IO_file_fopen): Add new fourth argument.
342 * filebuf.cc (filebuf::open): Pass new fourth argument to
344 * iolibio.h (_IO_freopen): Likewise.
345 * streambuf.cc (streambuf::showmanyc, streambuf::imbue): New
347 * streambuf.h (_IO_wchar_t): Define to _G_wchar_t.
348 (ios::fill): Remove casts.
349 (struct streambuf): Add showmanyc and imbue members.
351 * iostream.cc (ostream::operator<<(double n)) [__GLIBC_MINOR__ >=
352 1]: Initialize new fields is_char of struct printf_info.
353 (ostream::operator<<(long double n)) [__GLIBC_MINOR__ >= 1]:
356 Sun Feb 22 17:24:53 1998 Jeffrey A Law (law@cygnus.com)
358 * config.shared: Bring back changes from Ian and Fred that were
359 accidentally clobbered. Should eliminate the need for Dave's
362 Tue Feb 17 21:56:25 1998 H.J. Lu (hjl@gnu.org)
364 * config/linux.mt (IO_OBJECTS): Add iogetline.o.
365 * config/linuxlibc1.mt: Ditto.
367 * iogetline.c (_IO_getline_info): Renamed from _IO_getline.
368 (_IO_getline): Just call _IO_getline_info.
370 * isgetline.cc (istream::getline, istream::get, _sb_readline):
371 Call _IO_getline_info instead of _IO_getline and get the EOF
373 * sbgetline.cc (streambuf::sgetline): Ditto.
375 * libioP.h (_IO_getline_info): New declaration.
377 * iogetline.c (_IO_getline): Handle the case when there is no
380 Fri Feb 13 00:57:20 1998 Krister Walfridsson (cato@df.lth.se)
382 * fileops.c: #include <unistd.h>.
383 * ioprims.c: Likewise.
385 1998-02-10 Mark Mitchell <mmitchell@usa.net>
387 * iostream.cc (ostream::operator<<(long double)): Don't use
388 labeled initializers.
390 Fri Feb 6 01:35:56 1998 Manfred Hollstein <manfred@s-direktnet.de>
392 * config.shared (FLAGS_TO_PASS): Don't emit PICFLAG.
393 (.c.o): Check value of enable_shared, not PICFLAG.
396 (stamp-picdir): Dito.
398 Thu Feb 5 17:41:26 1998 Dave Brolley <brolley@cygnus.com>
400 * config.shared (LIBS): Change to -L../../libstdc++ (was -L../libstdc++)
401 if ${DOING_GPERF} is true.
403 1998-01-20 Andreas Schwab (schwab@issan.informatik.uni-dortmund.de)
405 * iostream.cc (istream::operator>>(long double&))
406 [!_G_HAVE_LONG_DOUBLE_IO]: Scan value into separate variable, in
407 case long double is bigger than double.
408 (ostream::operator<<(double)) [_G_HAVE_PRINTF_FP]: Fix order of
409 initializers of struct printf_info to match declaration order,
410 to work around g++ bug.
411 (ostream::operator<<(long double)) [_G_HAVE_PRINTF_FP]: Likewise.
413 * gen-params: Add missing quotes. Avoid useless use of command
416 Sun Feb 1 13:29:47 1998 H.J. Lu (hjl@gnu.org)
418 * filebuf.cc (filebuf::open): Call _IO_file_open if
419 _G_HAVE_IO_FILE_OPEN is 1.
421 * libio.h (_IO_fpos64_t, _IO_off64_t): Defined if
422 _G_IO_IO_FILE_VERSION == 0x20001.
424 * libioP.h (_IO_file_open): New declaration.
426 * libio.h (_IO_FILE, _IO_stdin_, _IO_stdout_, _IO_stderr_,
427 _IO_seekoff, _IO_seekpos): Add support for libio in glibc 2.1.
428 * libioP.h (_IO_seekoff_t, _IO_seekpos_t, _IO_seek_t,
429 _IO_seekoff, _IO_seekpos, _IO_default_seekoff,
430 _IO_default_seekpos, _IO_default_seek, _IO_file_seekoff,
431 _IO_file_seek, _IO_str_seekoff, _IO_pos_BAD, _IO_pos_as_off,
433 * streambuf.h (streamoff, streampos): Ditto.
435 * gen-params (__extension__): Use only if gcc version >= 2.8.
437 Sun Feb 1 13:08:18 1998 Krister Walfridsson (cato@df.lth.se)
439 * dbz/dbz.c (putconf): Handle systems which use "long long" as type
441 * dbz/dbzmain.c (mkfiles): Likewise.
443 Wed Jan 28 10:27:11 1998 Manfred Hollstein <manfred@s-direktnet.de>
445 * config.shared (FLAGS_TO_PASS): Add gxx_include_dir.
447 * stdio/configure.in, tests/configure.in: Update with yesterday's
448 toplevel configure.in changes.
449 * testsuite/configure.in: Likewise.
451 * config.shared: Fix typo in yesterday's changes.
453 Tue Jan 27 23:26:07 1998 Manfred Hollstein <manfred@s-direktnet.de>
455 * config.shared: Emit everything which needs to be re-definable
456 via file descriptor 1; the generic stuff is emitted using redirection
459 * configure.in (package_makefile_rules_frag): New variable
460 which is used in the call to config.shared; redirect file descriptor 2
461 to ${package_makefile_rules_frag}.
463 Tue Jan 27 10:35:22 1998 H.J. Lu (hjl@gnu.org)
465 * configure.in (topsrcdir): New.
466 (CHECK_SUBDIRS, configdirs): Check ${topsrcdir}/gcc instead.
467 (config-ml.in): Use ${topsrcdir}/config-ml.in.
469 * tests/configure.in (topsrcdir): New.
470 (CHECK): Check ${topsrcdir}/gcc instead.
472 Fri Jan 16 00:48:03 1998 Manfred Hollstein <manfred@lts.sel.alcatel.de>
474 * config.shared (FLAGS_TO_PASS): Add SHELL.
476 Thu Jan 15 00:21:58 1998 Ian Lance Taylor <ian@cygnus.com>
478 * configure.in: For *-*-cygwin32*, add a -I for winsup to both
479 XCINCLUDES and XCXXINCLUDES.
480 * config.shared: Use ${host_includes} when setting CXXINCLUDES in
481 the DOING_LIBGXX case.
482 * Makefile.in (_G_config.h): Pass $(CINCLUDES) in CC and
483 $(CXXINCLUDES) in CXX when running gen-params.
485 Tue Jan 13 21:32:08 1998 H.J. Lu (hjl@gnu.org)
487 * configure.in (CHECK_SUBDIRS): Set to testsuite only if
488 ${srcdir}/../gcc exists.
489 (configdirs): Include testsuite only if ${srcdir}/../gcc exists.
491 * tests/Makefile.in (check): Depend on $(CHECK).
493 * tests/configure.in (CHECK): Set to "check-iostream
494 check-stdio" if ${srcdir}/../../gcc doesn't exists.
496 Thu Jan 8 18:09:03 1998 Fred Fish <fnf@cygnus.com>
498 * config.shared (THIS_FILE): Really found via TOLIBIO instead
499 of TOLIBCXX, which is empty when configuring gperf.
500 (LIBS): When linking gperf, find libstdc++ relative to TO_TOPDIR
501 instead of hardcoded "../".
503 1997-12-12 Brendan Kehoe <brendan@lisa.cygnus.com>
505 Don't make gperf depend upon libg++.
506 * config.shared (TOLIBGCXX) [DOING_GPERF]: Delete.
507 (LIBS) [DOING_GPERF]: Make it just `-L../libstdc++ -lstdc++'.
509 Thu Dec 11 11:20:59 1997 H.J. Lu (hjl@gnu.org)
511 * configure.in (target frags): Add *-linux-gnu.
513 Fri Dec 5 16:22:15 1997 H.J. Lu (hjl@gnu.org)
515 * streambuf.cc (streambuf::~streambuf): Don't delete _lock
516 for _IO_stdin/_IO_stdout/_IO_stderr.
518 Thu Nov 27 01:32:43 1997 Jeffrey A Law (law@cygnus.com)
520 * Makefile.in (install): Change gxx_includedir to gcc_include_dir.
521 * config.shared (gxx_includedir): Remove default definition.
522 * config/linux.mt: Change gxx_includedir to gxx_include_dir.
523 * config/linuxaxp1.mt: Likewise.
525 Wed Nov 26 16:08:50 1997 Richard Henderson (rth@cygnus.com)
527 * configure.in (target frags): Add powerpc*-linux-gnulibc1.
528 (stdio-lock): Similarly.
530 * configure.in (target frags): Add alpha*-linux-gnulibc1.
531 (pic frags): Its alpha*- not alpha-.
532 (stdio-lock): Kill everything. Add alpha*-linux-gnulibc1.
533 * libio.h: Check __GLIBC_MINOR__ to find stdio-lock.h. If not
534 _IO_MTSAFE_IO & GLIBC, make sure the lock pointer is still there.
535 * libioP.h: Check __GLIBC_MINOR__ to find libc-lock.h.
537 * config/linuxaxp1-libc-lock.h: New file.
538 * config/linuxaxp1-stdio-lock.h: New file.
539 * config/linuxaxp1.mt: New file.
541 * gen-params (va_list): Check for and use __gnuc_va_list.
542 (NULL): Work around some linux kernel headers and redefine NULL.
544 Mon Nov 24 17:04:18 1997 Michael Meissner <meissner@cygnus.com>
546 * stdiostream.cc (sys_read): Declare ch with int type, rather than
549 Tue Nov 18 09:53:58 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
551 * stdstrbufs.cc (DEF_STDFILE): Use STD_VTABLE.
553 Tue Nov 11 01:40:17 1997 Oleg Krivosheev <kriol@fnal.gov>
555 * iomanip.h: Fix guiding decls.
557 1997-11-05 Brendan Kehoe <brendan@lisa.cygnus.com>
559 * libio.h (__P): Name its arg `p' instead of `params'.
560 Avoids problems with an unchanged Solaris math.h header.
562 Wed Oct 29 23:01:47 1997 Jason Merrill <jason@yorick.cygnus.com>
564 * gen-params: Override NULL.
566 1997-10-27 03:53 Ulrich Drepper <drepper@cygnus.com>
568 * stdio-lock.h: Removed. Was never needed.
570 Wed Oct 22 19:19:32 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
572 * libio.h (_IO_LOCK_T): Handle glibc 2 when _IO_MTSAFE_IO is
575 * iovsscanf.c (vsscanf): Make it weak alias of _IO_vsscanf if
576 __linux__ is defined instead of __ELF__
578 * config/linuxlibc1.mt (USER_INCLUDES): Add libio.h.
580 1997-10-15 Ulrich Drepper <drepper@cygnus.com>
582 * configure.in: Create compatibility code in bits/libc-lock.h file.
584 Thu Oct 9 07:08:41 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
586 * libio.h (_IO_LOCK_T): Handle glibc 2 when _IO_MTSAFE_IO is
589 * filedoalloc.c (_IO_file_doallocate): Don't call
590 _IO_cleanup_registration_needed if __linux__ is defined.
592 * iofclose.c (fclose): Make it weak alias of _IO_fclose if
595 * iovsprintf.c (vsprintf): Make it weak alias of _IO_vsprintf
596 if __ELF__ is defined.
598 * iovsscanf.c (vsscanf): Make it weak alias of _IO_vsscanf if
601 * config/linuxlibc1.mt (MT_CFLAGS): Defined as -D_G_HAVE_MMAP.
602 (IO_OBJECTS): Add filedoalloc.o fileops.o genops.o iofclose.o
603 iovsprintf.o iovsscanf.o strops.o.
605 Fri Oct 3 10:13:13 1997 Jason Merrill <jason@yorick.cygnus.com>
607 * iostream.cc, libio.h: Convert other uses of #ifdef
608 _G_HAVE_PRINTF_FP to #if.
610 1997-10-02 Brendan Kehoe <brendan@lisa.cygnus.com>
612 * iostream.cc (operator<<): Use `#if _G_HAVE_PRINTF_FP', not ifdef.
614 Thu Oct 2 10:36:49 1997 Jason Merrill <jason@yorick.cygnus.com>
616 * gen-params: Fix __printf_fp test.
617 * config/linuxlibc1.mt (gxx_includedir): Don't define.
619 Thu Oct 2 10:36:26 1997 Ulrich Drepper <drepper@rtl.cygnus.com>
621 * config/linuxlibc1.mt (_G_CONFIG_H): Don't define.
622 * gen-params: Add test for __printf_fp.
624 Sun Sep 28 12:09:04 1997 Mark Mitchell <mmitchell@usa.net>
626 * iomanip.h: Use new friend <> syntax.
628 Sun Sep 28 12:04:21 1997 Jason Merrill <jason@yorick.cygnus.com>
630 * libio.h: Don't use _IO_LOCK_T if it's not defined.
632 Fri Sep 26 20:56:41 1997
634 Based on a patch by H.J. Lu (hjl@gnu.ai.mit.edu).
636 * Makefile.in (STDIO_OBJECTS): New. Defined as stdfiles.o.
637 (LIBIO_OBJECTS): Add $(STDIO_OBJECTS).
638 (PICFLAG): New, empty. moved to here from config.shared.
640 * config.shared (DISTCLEAN): Add target-mkfrag.
643 * configure.in (*-linux-gnulibc1): Remove warning.
644 (*-linux-gnu): Use linux.mt mtsafe.mt.
645 (alpha-*-linux*): Use mh-elfalphapic.
647 * gen-params (_G_ullong): Also check unsigned long long int.
648 (_G_llong): Also check long long int.
650 * libio.h (_IO_lock_t): Add support for the Linux libc 5.
651 (_IO_peekc): Defined as _IO_peekc_unlocked if _IO_MTSAFE_IO
654 * iostream.cc (__cvt_double): Fix a typo in declaration.
655 (info): Use expr != 0 to initialize the bit fields. Don't
656 initialize "extra" for the Linux libc 5.
658 * streambuf.h (_G_NEED_STDARG_H): Changed from _IO_NEED_STDARG_H.
660 * config/linux.mt (STDIO_OBJECTS): New, empty.
661 (MT_CFLAGS): Removed.
663 * config/linuxlibc1.mt: Rewrite. it's identical to linux.mt but
664 IO_OBJECTS mentions files not in early libc5 versions.
666 * config/mtsafe.mt: New.
668 * dbz/Makefile.in (check): Support make -j.
670 * tests/tFile.cc (tempfile): Fix a typo.
672 1997-09-19 11:52 Jim Wilson <wilson@cygnus.com>
674 * Makefile.in (LIBIO_OBJECTS): Depend on _G_CONFIG_H.
676 1997-09-17 04:08 Ulrich Drepper <drepper@cygnus.com>
678 * iostream.cc: Add forward declaration for __cvt_double.
679 * libio.h: Define _IO_USE_DTOA is _G_HAVE_PRINTF_FP is not defined.
680 * strops.c (_IO_str_count): Correct last change.
682 1997-09-17 02:50 Ulrich Drepper <drepper@cygnus.com>
684 * libioP.h: Define __set_errno if not already defined.
686 1997-09-15 02:37 Ulrich Drepper <drepper@cygnus.com>
688 * config/linux.mt: Rewrite for use with glibc 2.
689 * config/linuxlibc1.mt: Old content of linux.mt, fir libc4 and
692 * config.shared (COMPILE.c): Allow new flags in MT_CFLAGS be
694 (COMPILE.cc): Likewise.
696 * configure.in (*-linux*): Remove goal. We now have...
697 (*-linux-gnulibc1): For libc4 and libc5. Emit warning.
698 (*-linux-gnu)): For glibc 2.
699 Create links to find headers for multi-threading if necessary.
701 * fileops.c: Make thread-safe by using _IO_cleanup_region_start
702 etc to handle cancelation. Acquire locks in functions which are
704 (_IO_file_read, _IO_file_write): Remove dead code.
706 * include/empty.h: Define stub macros for locking.
708 * iolibio.h: Add prototypes for obstack printing functions.
710 * ioseekoff.c (_IO_seekoff): Lock stream before working.
711 * ioseekpos.c (_IO_seekpos): Likewise.
713 * iostream.cc: Add support for long double I/O.
714 Use __printf_fp from glibc is available.
715 Use _IO_cleanup_region_start to handle cancelation correctly.
716 * iostream.h (class ostream): Change opfx and osfx to lock/unlock
718 (class istream): Likewise for ipfx, ipfx0, ipfx1, and isfx.
719 Declare new function lock and unlock for ostream and istream.
720 * osform.cc: Use _IO_cleanup_region_start to handle cancelation
723 * libio.h: Update from glibc version. Pretty printing.
724 * libioP.h: Likewise.
726 * outfloat.c: Only compile if _IO_USE_DTOA is defined.
728 * stdio/feof.c: Make thread safe.
729 * stdio/ferror.c: Likewise.
730 * stdio/getc.c : Likewise.
731 * stdio/putc.c : Likewise.
732 * stdio/stdio.h: Declare function of thread-safe API.
734 * stdio/obprintf.c: New file.
735 * stdio/vasprintf.c: New file.
737 * stdio-lock.h: Removed.
739 * stdstrbufs.c: Add definitions for thread-safe streams.
741 * streambuf.cc: Initialize lock.
743 * strops.c (_IO_str_count): Undo last change.
745 * tests/tFile.cc: Support parallel builds by avoiding fixed
748 Thu Sep 11 18:43:56 1997 Jason Merrill <jason@yorick.cygnus.com>
750 * Makefile.in (iostream.list): Remove STDIO_WRAP_OBJECTS.
752 Mon Sep 8 01:30:27 1997 Weiwen Liu <liu@hepunix.physics.yale.edu>
756 Sun Sep 7 23:00:18 1997 Jim Wilson (wilson@cygnus.com)
758 * linux.mt (LIBIOSTREAM_DEP): Change stdio.list to stmp-stdio.
760 Fri Sep 5 09:58:43 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
762 * Makefile.in (iostream.list): Instead of adding stdio.list, add
764 (iostream.list): Lose dependency on stmp-stdio, not necessary for
765 our stuff. The stdio stuff is present here just for uniformity
768 Thu Sep 4 17:26:22 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
770 * parsestream.cc (general_parsebuf): Cast return of malloc to char*.
772 1997-09-04 16:11 Ulrich Drepper <drepper@cygnus.com>
774 Change compared to version initially intended to in:
775 * strops.c (_IO_str_count): Still use _IO_write_ptr, not
776 _IO_write_end, for now.
778 * iofeof.c, ioferror.c, iofflush_u.c, iogetc.c, ioputc.c, peekc.c,
779 stdio-lock.h: New files.
782 * include/empty.h: New header.
784 * filedoalloc.c: Update and reformat copyright.
786 Use __set_errno throughout the code to support multi-threaded
788 Correct layout to follow the Coding Standard.
789 Add casts to prevent warnings.
790 * fileops.c: Likewise.
791 * genops.c: Likewise.
792 * iofclose.c: Likewise.
793 * iofdopen.c: Likewise.
794 * iofflush.c: Likewise.
795 * iofgetpos.c: Likewise.
796 * iofgets.c: Likewise.
797 * iofopen.c: Likewise.
798 * iofprintf.c: Likewise.
799 * iofputs.c: Likewise.
800 * iofread.c: Likewise.
801 * iofsetpos.c: Likewise.
802 * ioftell.c: Likewise.
803 * iofwrite.c: Likewise.
804 * iogetdelim.c: Likewise.
805 * iogetline.c: Likewise.
806 * iogets.c: Likewise.
807 * iopadn.c: Likewise.
808 * iopopen.c: Likewise.
809 * ioputs.c: Likewise.
810 * ioseekoff.c: Likewise.
811 * iosetbuffer.c: Likewise.
812 * iosetvbuf.c: Likewise.
813 * iosprintf.c: Likewise.
814 * ioungetc.c: Likewise.
815 * iovsprintf.c: Likewise.
816 * iovsscanf.c: Likewise.
818 * libioP.h: Likewise.
819 * stdfiles.c: Likewise.
820 * strfile.h: Likewise.
821 * strops.c: Likewise.
823 * Makefile.in (IO_OBJECTS): Add peekc.o, iogetc.o, ioputc.o,
824 iofeof.o, and ioferror.o.
825 (iostream.list): Depend upon stmp-stdio. Add the entries
826 from stdio.list to iostream.list.
827 (stmp-stdio): New name for what was the stdio/stdio.list rule.
828 All it now does is cd down into stdio and build stdio.list.
830 * configure.in (ALL): Add libiostream.a.
832 * libio.h [_IO_MTSFE_IO]: Include header declaring locking code.
833 Otherwise define opaque _IO_lock_t.
834 Define _IO_cookie_file.
835 Rename _IO_getc to _IO_getc_unlocked, _IO_peekc to _IO_peekc_unlocked,
836 _IO_putc to _IO_putc_unlocked, _IO_feof to _IO_feof_unclocked, and
837 _IO_ferror to _IO_ferror_unlocked.
838 Add prototypes for _IO_getc, _IO_putc, _IO_feof, _IO_ferror,
839 and _IO_peekc_locked.
840 Add declarations for _IO_flockfile, _IO_funlockfile, and
841 _IO_ftrylockfile. If !_IO_MTSAFE_IO define _IO_flockfile,
842 _IO_funlockfile, _IO_ftrylockfile, _IO_cleanup_region_start, and
843 _IO_cleanup_region_end as empty macros.
845 * libioP.h: Change type of finish function to take an additional int
846 argument and change declaration of finish functions.
847 Add prototypes for _IO_seekoff and _IO_seekpos.
848 If _G_HAVE_MMAP is defined use stream buffers allocated with mmap.
849 Redefine FREE_BUF and ALLOC_BUF macros to help in both situations.
850 (FILEBUF_LITERAL): If we compile for a thread-safe library also
851 initialize lock member.
853 * filedoalloc.c: Take care for systems already defining _POSIX_SOURCE.
854 Keep name space clean on systems which require this.
855 (_IO_file_doallocate): Adopt ALLOC_BUF call for changed semantic.
857 * fileops.c: Keep name space clean on systems which require this.
858 (_IO_file_attach): Don't fail if seek failed because it's used on a
860 (_IO_file_underflow): Update buffer pointers before calling `read'
861 since the `read' might not return anymore.
862 (_IO_file_overflow): If stream allows no writes set error flag.
863 (_IO_seekoff): Make sure that after flushing the file pointer in
864 the underlying file is exact.
865 (_IO_file_read): Don't restart `read' syscall if it return EINTR.
867 (_IO_file_write): Likewise for `write'.
868 (_IO_cleanup): Install as exit handler in glibc.
870 * genops.c (_IO_setb): Correctly use FREE_BUF.
871 (_IO_default_doallocate): Correctly use ALLOC_BUF.
872 (_IO_init): Initialize lock in stream structure.
873 (_IO_default_finish): Destroy lock.
874 (_IO_get_column): Don't compile since it's not needed.
875 (_IO_nobackup_default): Likewise.
877 * iopopen.c: Take care for systems already defining _POSIX_SOURCE.
878 Correct _IO_fork and _IO_dup2 prototypes.
880 * iofclose.c: Acquire lock before starting the work.
881 * iofflush.c: Likewise.
882 * iofgetpos.c: Likewise.
883 * iofgets.c: Likewise.
884 * iofputs.c: Likewise.
885 * iofread.c: Likewise.
886 * iofsetpos.c: Likewise.
887 * ioftell.c: Likewise.
888 * iofwrite.c: Likewise.
889 * iogetdelim.c: Likewise.
890 * iogets.c: Likewise.
891 * ioputs.c: Likewise.
892 * iosetbuffer.c: Likewise.
893 * iosetvbuf.c: Likewise.
894 * ioungetc.c: Likewise.
896 * iofdopen.c: Create and initialize lock for new stream.
897 * iofopen.c: Likewise.
898 * iopopen.c (_IO_popen): Likewise.
899 * iovsprintf.c: Likewise.
900 * iovsscanf.c: Likewise.
902 * genops.c: Make weak aliases for various functions.
903 * iofclose.c: Likewise.
904 * iofdopen.c: Likewise.
905 * iofflush.c: Likewise.
906 * iofgetpos.c: Likewise.
907 * iofgets.c: Likewise.
908 * iofopen.c: Likewise.
909 * iofputs.c: Likewise.
910 * iofread.c: Likewise.
911 * iofsetpos.c: Likewise.
912 * ioftell.c: Likewise.
913 * iofwrite.c: Likewise.
914 * iogetdelim.c: Likewise.
915 * iogets.c: Likewise.
916 * ioputs.c: Likewise.
917 * iosetbuffer.c: Likewise.
918 * iosetvbuf.c: Likewise.
919 * ioungetc.c: Likewise.
920 * iovsprintf.c: Likewise.
921 * iovsscanf.c: Likewise.
923 * iofflush_u.c: New file. fflush_unlocked implementation.
925 * iostream.h [_G_HAVE_LONG_DOUBLE_IO]: Declare real long double
928 * peekc.c: New file. Implement _IO_peekc_locked function.
930 * stdfiles.c: If we compile for a thread-safe library also define
933 Tue Aug 26 12:24:01 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
935 * testsuite/Makefile.in (check): Don't depend on site.exp.
936 (just-check): Depend on site.exp.
938 Wed Aug 20 02:01:34 1997 Jason Merrill <jason@yorick.cygnus.com>
940 * iostream.h: Add copy assignment ops for _IO_?stream_withassign.
942 Tue Jul 22 10:31:41 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
944 * config.shared (CHECK_SUBDIRS): Use install-sh, not install.sh.
946 Wed Jun 25 12:20:55 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
948 * config.shared (DOING_GPERF): Look for this, defining TOLIBGXX
951 Wed Jun 18 11:03:34 1997 Bob Manson <manson@charmed.cygnus.com>
953 * config.shared (FLAGS_TO_PASS): Don't include RUNTEST.
955 Tue Jun 17 22:23:48 1997 Bob Manson <manson@charmed.cygnus.com>
957 * config.shared (FLAGS_TO_PASS): Pass RUNTEST and RUNTESTFLAGS.
959 Fri May 16 21:08:53 1997 Bob Manson <manson@charmed.cygnus.com>
961 * iovfprintf.c: Declare __cvt_double before use.
963 * floatconv.c (d2b): Use _G_int32_t instead of int for the
964 e and bits parameters.
965 (_IO_strtod): Use _G_int32_t.
967 * gen-params: Look for NO_USE_DTOA and USE_INT32_FLAGS.
969 * strops.c (_IO_str_init_static): use _G_int32_t appropriately.
971 * libio.h: If _G_NO_USE_DTOA is set, then don't define
974 * config/mn10200.mt: Don't use dtoa, it only works
977 Thu May 15 17:44:12 1997 Bob Manson <manson@charmed.cygnus.com>
979 * configure.in: Set CHECK_SUBDIRS to testsuite if we're doing
982 * config.shared(check): Only run make check in the directories
983 specified by CHECK_SUBDIRS. Set CHECK_SUBDIRS to SUBDIRS
984 if it has no previous value.
986 Thu May 1 17:35:19 1997 Jason Merrill <jason@yorick.cygnus.com>
988 * Makefile.in (test, tpipe): Add $(CFLAGS).
990 Wed Apr 30 12:16:29 1997 Jason Merrill <jason@yorick.cygnus.com>
992 * configure.in: Don't turn on multilib here.
994 Sat Apr 26 13:38:21 1997 Bob Manson <manson@charmed.cygnus.com>
996 * configure.in (configdirs): Add testsuite directory.
998 * testsuite/ChangeLog:
999 * testsuite/Makefile.in:
1000 * testsuite/libio.tests/tiomanip.exp:
1001 * testsuite/libio.tests/tstdiomisc.exp:
1002 * testsuite/libio.tests/tiomisc.exp:
1003 * testsuite/libio.tests/tFile.exp:
1004 * testsuite/libio.tests/tfformat.exp:
1005 * testsuite/libio.tests/tiformat.exp:
1006 * testsuite/libio.tests/hounddog.exp:
1007 * testsuite/libio.tests/putbackdog.exp:
1008 * testsuite/configure.in:
1009 * testsuite/lib/libio.exp:
1010 * testsuite/config/default.exp:
1011 New files for DejaGnu-style testsuite.
1013 Fri Apr 4 03:16:44 1997 Ulrich Drepper <drepepr@cygnus.com>
1015 * configure.in: Enable multilibing by default.
1016 Update multilib template to read config-ml.in.
1018 * floatconv.c: Enable use in cross targets which use the
1019 newlib ieeefp.h header.
1021 Thu Jan 23 09:16:16 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
1023 * libioP.h (_IO_file_attach): Delete redundant decl.
1025 Tue Jan 21 22:13:45 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
1027 * streambuf.h (class ios): Take out STREAMSIZE member, since we
1028 only need (and should only have) the global one.
1030 Tue Jan 7 14:02:40 1997 Jason Merrill <jason@yorick.cygnus.com>
1032 * iostream.h (long long fns): Use __extension__.
1034 * gen-params: Use _G_llong and _G_ullong instead of long long for
1037 Fri Dec 6 13:13:30 1996 Jason Merrill <jason@yorick.cygnus.com>
1039 * dbz/dbz.c: Use off_t.
1041 Sat Nov 23 15:44:37 1996 Jason Merrill <jason@yorick.cygnus.com>
1043 * Makefile.in (install): Don't install _G_config.h with other headers.
1045 Mon Nov 18 17:12:41 1996 Jason Merrill <jason@yorick.cygnus.com>
1047 * config.shared (SUBDIRS): Use -O instead of -O3 for debugging.
1049 Sun Nov 3 12:43:34 1996 Jason Merrill <jason@yorick.cygnus.com>
1051 * iostream.cc (write_int): Treat string literals as const.
1053 Thu Sep 26 10:09:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1055 * depend: Regenerate.
1057 Wed Sep 25 22:54:45 1996 Jason Merrill <jason@yorick.cygnus.com>
1059 * config.shared (depend.new): Deal with headers that don't end in .h.
1061 Thu Aug 29 17:05:53 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1063 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
1065 Mon Aug 5 01:26:32 1996 Jason Merrill <jason@yorick.cygnus.com>
1067 * config{ure.in,.shared} (DISTCLEAN): Add multilib.out.
1069 Fri Aug 2 17:39:35 1996 Jason Merrill <jason@yorick.cygnus.com>
1071 * libio.h (NULL): Use __null.
1072 * libioP.h (NULL): Ditto.
1073 * streambuf.h (NULL): Ditto.
1074 * ioextend.cc (get_array_element): Use NULL instead of (void*)0.
1076 Fri Jul 5 18:26:41 1996 Jim Wilson <wilson@cygnus.com>
1078 * strfile.h (struct _IO_streambuf): New struct type.
1079 (struct _IO_strfile): Use it.
1081 Tue Jun 18 18:24:21 1996 Jason Merrill <jason@yorick.cygnus.com>
1083 * fstream.h (fstreambase): Make __my_fb mutable.
1086 Tue Jun 18 11:03:53 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
1088 * dbz/fake.c (main): Set return type to int.
1089 * dbz/dbzmain.c (main): Likewise.
1090 * dbz/byteflip.c (main): Likewise.
1092 Mon Jun 17 14:05:36 1996 Jason Merrill <jason@yorick.cygnus.com>
1094 * gen-params: Check if clog conflicts with system libraries.
1095 * stdstreams.cc: If it does, use __IO_clog.
1096 * iostream.h: Likewise.
1098 Tue Jun 11 13:39:31 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
1100 * stdiostream.h (istdiostream (FILE*)): Put istream base
1101 initializer before init for __f.
1102 (ostdiostream (FILE*)): Likewise for ostream base init.
1104 Tue May 14 11:47:21 1996 Per Bothner <bothner@andros.cygnus.com>
1106 * strfile.h (_IO_str_fields): Removed _len field.
1107 (_IO_STR_DYNAMIC, _IO_STR_FROZEN): new macros.
1108 * strstream.h (strstreambuf::is_static): Removed.
1109 (strstreambuf::frozen): Use _IO_STR_DYNAMIC instead of is_static.
1110 * strstream.h, strstream.cc: Remove support for !_IO_NEW_STREAMS.
1111 * strstream.cc (strstreambuf::init_dynamic): Don't set _s._len.
1112 * strops.c (_IO_str_init_static): Better handling of the
1113 negative (== unbounded) size case.
1114 (_IO_str_overflow, _IO_str_underflow, _IO_str_count): Re-write
1115 to not use _s._len, and otherwise cleanup/fix.
1116 * strstream.h, strstream.cc (strstreambase::strstreambase()): Call
1118 (other constructors): Simplify - init already called.
1120 Tue May 14 10:55:21 1996 Per Bothner <bothner@deneb.cygnus.com>
1122 Change so that strstreambuf default constructor does no allocation.
1123 * strstream.h (strstreambuf::init_dynamic): Default initial size = 0.
1124 * strstream.cc (strstreambuf::init_dynamic): Don't allocate a
1125 buffer (yet) if initial_size is 0.
1126 * strops.c (_IO_str_overflow): Add 100 to size of re-allocated
1127 buffer, to handle case when initial size is 0.
1129 * iostdio.h (remove, rename, tmpfile, tempnam): Comment out.
1131 Mon May 13 23:19:39 1996 Per Bothner <bothner@deneb.cygnus.com>
1133 * fileops.c (_IO_file_close_it): Just call _IO_do_flush rather
1134 than _IO_file_sync, to avoid useless lseek.
1136 Tue May 14 10:48:48 1996 Jason Merrill <jason@yorick.cygnus.com>
1138 * floatconv.c (_IO_strtod): Force rv into the stack.
1140 * config.shared (gxx_includedir): Now $(includedir)/g++.
1142 Sat Apr 27 02:37:49 1996 Jason Merrill <jason@yorick.cygnus.com>
1144 * libioP.h (JUMP*): Implement for thunks.
1145 (_IO_jump_t): Add second dummy field for thunks.
1147 Thu Apr 25 13:20:00 1996 Jason Merrill <jason@yorick.cygnus.com>
1149 * config.shared (CXX): Use gcc, not g++.
1151 Wed Apr 24 10:29:50 1996 Doug Evans <dje@blues.cygnus.com>
1153 * config.shared (depend.new): Delete $(srcdir)/ from foo.{c,cc}
1155 * depend: Regenerated.
1157 Fri Apr 19 17:24:51 1996 Jason Merrill <jason@yorick.cygnus.com>
1161 Wed Apr 10 17:16:01 1996 Jason Merrill <jason@yorick.cygnus.com>
1163 * configure.in (ALL): Don't build iostream.a.
1165 Mon Apr 8 14:44:11 1996 Per Bothner <bothner@kalessin.cygnus.com>
1167 * iosetvbuf.c (_IO_setvbuf): Clear _IO_UNBUFFERED unless _IONBF.
1169 Mon Apr 8 15:08:23 1996 Ian Lance Taylor <ian@cygnus.com>
1171 * configure.in: Permit --enable-shared to specify a list of
1174 Fri Apr 5 17:48:56 1996 Per Bothner <bothner@kalessin.cygnus.com>
1176 * config.shared (MOSTLYCLEAN): Also remove ${EXTRA_MOSTLYCLEAN}.
1178 Fri Mar 22 23:25:00 1996 Ulrich Drepper <drepepr@gnu.ai.mit.edu>
1180 * genops.c (_IO_sputbackc, _IO_sungetc): Clear EOF flag if putsh
1181 back was successful.
1183 Wed Mar 27 11:54:08 1996 Jason Merrill <jason@yorick.cygnus.com>
1187 Fri Mar 22 15:39:36 1996 Per Bothner <bothner@kalessin.cygnus.com>
1189 * fileops.c (_IO_do_write): Revert previous fix. (It fails to
1190 handle the case that fp->_IO_read_end != fp->_IO_write_base.)
1191 (_IO_file_overflow): Instead, if _IO_read_ptr is at the end of
1192 the buffer, reset all the read pointers to _IO_buf_base.
1194 Tue Mar 12 12:03:17 1996 Per Bothner <bothner@kalessin.cygnus.com>
1196 * fileops.c (_IO_do_write): Even if to_do==0, must re-set buffer
1197 pointers. Bug and solution from Luke Blanshard <luke@cs.wisc.edu>.
1199 Wed Feb 28 10:00:24 1996 Jason Merrill <jason@yorick.cygnus.com>
1203 Tue Feb 27 18:08:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
1205 * iopopen.c (_IO_proc_open): Use (char*)0 rather than imprecise NULL.
1207 * streambuf.h (ios): Add ios::binary; deprecate ios::bin.
1208 * filebuf.cc (filebuf::open): Handle ios::binary.
1210 Fri Feb 9 12:40:19 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
1212 * cleanup.c (_IO_cleanup_registration_needed) [!_G_HAVE_ATEXIT]: Init
1214 * filedoalloc.c (_IO_cleanup_registration_needed): Remove decl.
1216 Thu Feb 8 08:12:50 1996 Brendan Kehoe <brendan@cygnus.com>
1218 * filedoalloc.c (_IO_cleanup_registration_needed): Revert previous
1219 change, since cleanup.c only defines it if _G_HAVE_ATEXIT.
1221 Wed Feb 7 15:10:17 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
1223 * filedoalloc.c (_IO_cleanup_registration_needed): Declare as extern.
1225 Tue Dec 12 17:21:13 1995 Per Bothner <bothner@kalessin.cygnus.com>
1227 * indstream.h, instream.cc (indirectbuf::uflow): New method.
1228 * indstream.cc (indirectbuf::underflow): Fix to use sgetc, not sbumpc.
1229 Fixes bug reported by Kevin Beyer <beyer@cs.wisc.edu>.
1231 * indstream.cc (indirectbuf::seekpos): Add paranoia test.
1233 Fri Dec 8 14:55:34 1995 Per Bothner <bothner@kalessin.cygnus.com>
1235 * stream.h: Add warning to not use these functions.
1236 * stream.cc (str, chr): Re-implement here (from libg++).
1238 Tue Nov 28 15:07:01 1995 Per Bothner <bothner@kalessin.cygnus.com>
1240 * config.shared: Use test instead of [ to avoid DEC Unix lossage.
1242 Thu Nov 23 14:51:43 1995 Per Bothner <bothner@kalessin.cygnus.com>
1244 * iopopen.c: Move #include <sys/types.h> ahead of #include <signal.h>
1245 to deal with BSDI's literal implementation of Posix.
1247 Sat Nov 25 11:21:55 1995 Doug Evans <dje@canuck.cygnus.com>
1249 * Makefile.in (install): Set rootme.
1250 * config.shared (TOPDIR): Set with ${foo-...} rather than ${foo=...}.
1251 (INSTALL): Handle absolute, dot, relative-not-dot values of srcdir.
1252 (TEXIDIR): Likewise.
1254 Tue Nov 21 14:12:05 1995 Ian Lance Taylor <ian@cygnus.com>
1256 * configure.in: Check ${with_cross_host} rather than comparing
1257 ${host} and ${target}.
1259 Mon Nov 20 13:55:29 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1261 * configure.in: Match *-sco3.2v[45]*.
1263 Wed Nov 15 20:19:31 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1265 * config.shared (FLAGS_TO_PASS): Also pass SHLIB and SHCURSES.
1267 Tue Nov 14 01:41:08 1995 Doug Evans <dje@canuck.cygnus.com>
1269 * config.shared (TO_REAL_TOPDIR): Define.
1270 (MULTITOP): Deleted.
1271 (MULTISRCTOP, MULTIBUILDTOP): New.
1272 (TOPDIR): Change MULTITOP to MULTIBUILDTOP, and use TO_REAL_TOPDIR.
1273 (INSTALL): Add with_multisrctop, TO_REAL_TOPDIR.
1274 (TEXIDIR): Use TO_REAL_TOPDIR.
1275 (LIBS): Delete MULTITOP.
1276 (FLAGS_TO_PASS): Add NM.
1277 (CXXINCLUDES): Delete MULTITOP.
1278 (depend.new): Delete adding MULTITOP to ../ build tree references.
1279 Add MULTISRCTOP to ../ source tree references.
1280 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in
1281 instead of cfg-ml-pos.in.
1283 Sun Nov 12 16:30:48 1995 Per Bothner <bothner@kalessin.cygnus.com>
1285 * Makefile.in (VERSION): Set to 2.7.1.
1286 * configure.in: Add warning for Linux.
1287 * config.shared (DISTCLEAN): Add EXTRA_DISTCLEAN.
1289 * editbuf.h (edit_mark::index_in_buffer): Avoid unused param warning.
1291 * iostream.cc (istream::operator>> (char*)): Improve ANSI compliance.
1293 Fri Nov 10 08:41:37 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1295 * config.shared (check): Add missing semicolon.
1297 Thu Nov 9 17:27:22 1995 Jason Merrill <jason@yorick.cygnus.com>
1299 * configure.in (ALL): Remove $(OSPRIM_OBJECTS).
1300 * config.shared (check): Set LD_LIBRARY_PATH.
1302 * iogetdelim.c (_IO_getdelim): Index *lineptr, rather than lineptr.
1303 From alan@spri.levels.unisa.edu.au (Alan Modra).
1305 Mon Nov 6 15:03:33 1995 Per Bothner <bothner@kalessin.cygnus.com>
1307 * streambuf.cc, editbuf.cc, isgetline.cc, parsestream.cc:
1308 Fixes to avoid -Wall warnings.
1310 Fri Nov 3 16:41:41 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1312 * gen-params [!__STDC__]: Include varargs.h instead of stdarg.h.
1314 Thu Nov 2 15:04:03 1995 Per Bothner <bothner@kalessin.cygnus.com>
1316 * config.shared: Re-write if X then Y else true fi to (not X) || Y.
1318 Wed Nov 1 13:26:44 1995 Per Bothner <bothner@kalessin.cygnus.com>
1320 * iostream.h (istream::ipfx): Add default argument value.
1321 Reported by Yotam Medini <yotam_medini@tmai.com>.
1323 * libioP.h (_IO_blen): Fix typo.
1324 Reported by Bryan T. Vold <btv@ldl.healthpartners.com>.
1326 Fri Oct 27 19:26:20 1995 Per Bothner <bothner@kalessin.cygnus.com>
1328 * Makefile.in (_G_config.h): Set CC to $(CC) rather than to $(CXX),
1329 now that CXX defaults to g++ and CC default to gcc (when found).
1330 * config.shared: Simplify CXX and CC, since they get overridden
1331 by ../configure anyway.
1333 Wed Oct 25 19:45:50 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1335 * iostdio.h: Wrap including the file with #ifndef _IOSTDIO_H.
1337 Wed Oct 25 11:14:25 1995 Per Bothner <bothner@kalessin.cygnus.com>
1339 * libio.h (_IO_seekoff, _IO_seekpos): New declarations.
1340 * libioP.h (_IO_seekoff, _IO_seekpos): Remove declarations.
1341 * libioP.h: Cleanup; remove old !_IO_UNIFIED_JUMPTABLES stuff.
1343 * filebuf.cc (filebuf::~filebuf): Only call SYSYCLOSE if currently
1344 open. Bug found by Martin Gerbershagen <ger@ezis-ulm.de>.
1346 * streambuf.h (streambuf::pubseekoff, streambuf::pubseekpos):
1347 Added, from ANSI draft.
1348 * filebuf.cc (filebuf::open), iostream.cc (variables places), SFile.cc:
1349 Use pubseekoff/pubseekpos rather than sseekoff/sseekpos.
1351 * Makefile.in (install): Don't install libiostream.a.
1353 * filedoalloc.c: Also #include <unistd.h>.
1355 Mon Oct 9 18:09:54 1995 Jason Molenda <crash@phydeaux.cygnus.com>
1357 * config.shared (SUFFIXES): add .c.
1359 Tue Sep 26 16:08:01 1995 Per Bothner <bothner@kalessin.cygnus.com>
1361 * procbuf.cc: Move #pragma implementation to beginning.
1363 Wed Sep 20 17:53:33 1995 Per Bothner <bothner@kalessin.cygnus.com>
1365 * procbuf.h, procbuf.cc: Add #pragma interface/implementation stuff.
1367 Wed Sep 20 18:59:00 1995 John Eaton <jwe@bevo.che.wisc.edu>
1369 * procbuf.h: Protect from being included multiple times.
1371 Wed Sep 20 15:47:14 1995 John Eaton <jwe@bevo.che.wisc.edu>
1373 * procbuf.h (procbuf): Add '_next' pointer field for compatibility
1376 Wed Sep 20 13:54:02 1995 Ian Lance Taylor <ian@cygnus.com>
1378 * config.shared: Add support for maintainer-clean target as a
1379 synonym for realclean.
1380 * dbz/Makefile.in: Likewise.
1382 Mon Sep 11 12:11:19 1995 Per Bothner <bothner@kalessin.cygnus.com>
1384 * iopopen.c: #include <sys/types.h> before <sys/wait.h>.
1385 This is in accordance with Posix, and needed for ISC.
1387 Fri Sep 8 00:11:55 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1389 * gen-params: Use double quotes in the eval setting $TYPE to
1390 $VALUE, to preserve any single quotes in $VALUE.
1392 Mon Aug 21 11:39:09 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1394 * gen-params: Test for an appropriate version of gcc before using
1397 * config.shared: Add $(PICDIR) to $ALL.
1399 Mon Aug 7 17:51:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1401 * gen-params: Generate new macro _G_HAVE_SYS_CDEFS.
1402 * libio.h: If _G_HAVE_SYS_CDEFS, get __P from <sys/cdefs.h>.
1404 Fri Aug 4 23:21:17 1995 Paul Eggert <eggert@twinsun.com>
1406 * gen-params: When following typedef changes, allow typedefs
1407 that do not have a space before the defined type name,
1408 e.g. `typedef void *__gnuc_va_list;' as in Linux. Also,
1409 not require a space in the definiens, e.g. `typedef void*foo;'.
1411 Thu Aug 3 17:54:15 1995 Per Bothner <bothner@kalessin.cygnus.com>
1413 * iostream.h, iostream.cc (istream::sync): Added missing method.
1415 Thu Aug 3 17:49:34 1995 Per Bothner <bothner@kalessin.cygnus.com>
1417 * configure.in: Remove netbsd special case.
1418 * config/netbsd.mt: Removed; no longer used.
1420 Tue Jun 20 16:07:12 1995 Paul Eggert <eggert@twinsun.com>
1422 * gen-params: Take transitive closure of `typedef' relation.
1423 This is needed for BSD/OS 2.0, which has
1424 fpos_t -> off_t -> quad_t -> long long.
1426 Mon Jul 24 18:28:10 1995 Doug Evans <dje@canuck.cygnus.com>
1428 * config.shared (TOPDIR): Delete extra '/', $rootme may be empty.
1430 Sat Jul 22 13:27:45 1995 Doug Evans <dje@canuck.cygnus.com>
1432 * config.shared (depend.new): Fix quoting in DO NOT EDIT line.
1434 * Makefile.in (_G_config.h): Add multilib support.
1435 (install): Likewise.
1436 * config.shared: Likewise.
1437 * configure.in: Likewise.
1439 Wed Jun 28 17:40:25 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1441 * PlotFile.h, SFile.h, builtinbuf.h, editbuf.h, fstream.h,
1442 indstream.h, iomanip.h, iostream.h, parsestream.h, pfstream.h,
1443 procbuf.h, stdiostream.h, stream.h, streambuf.h, strstream.h: Wrap
1446 Thu Jun 22 04:34:01 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1448 * gen-params: Surround attributes with __.
1450 Mon Jun 19 00:33:22 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1452 * config.shared (SUBDIRS): Massage broken shells that require
1455 Sat Jun 17 11:25:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1457 * streambuf.h: Declare inline members inline in class.
1459 Thu Jun 15 20:45:13 1995 Per Bothner <bothner@kalessin.cygnus.com>
1461 * Makefile.in (VERSION): Update to version 2.7.0.
1463 Wed Jun 14 21:41:11 1995 Jason Merrill <jason@python.cygnus.com>
1465 * Makefile.in (STDIO_WRAP_OBJECTS): Remove stdfiles.o.
1466 (LIBIO_OBJECTS): Add stdfiles.o.
1468 Wed Jun 7 16:11:36 1995 Jason Merrill <jason@python.cygnus.com>
1470 * config.shared (all): Appease bash.
1472 Wed Jun 7 11:16:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1474 * configure.in (MOSTLYCLEAN): Remove stamp-picdir.
1476 * config.shared (MOSTLYCLEAN): Ditto.
1479 Mon Jun 5 18:29:39 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1481 * config/mh-*pic: Removed.
1483 * configure.in (MOSTLYCLEAN): Remove pic objects.
1484 (frags): Use toplevel pic fragments.
1486 * config.shared (CXXFLAGS): Use -O3.
1487 (PICFLAG, PICDIR): New macros.
1488 (all): Depend on $(PICDIR).
1489 (FLAGS_TO_PASS): Pass PICFLAG.
1490 (.x.o): Also build pic object.
1491 (stamp-picdir): Create directory for pic objects.
1492 (MOSTLYCLEAN): Remove pic objects.
1493 (CLEAN): Remove stamp-picdir.
1495 * Makefile.in (iostream.list): Depend on stamp-picdir.
1496 (c++clean): Don't remove _G_config.h.
1498 Mon Jun 5 15:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
1500 * strstream.h, strstream.cc (strstream::strstream()): Re-implement to
1501 be like ostrstream::ostrestream(), and not leak memory.
1503 * streambuf.h: Use #if !_IO_UNIFIED_JUMPTABLES instead of #ifndef.
1505 * iolibio.h (_IO_rewind): Add missing flags when calling _IO_seekoff.
1507 Thu May 25 22:30:21 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1509 * config/netbsd.mt (G_CONFIG_ARGS): Add defn for off_t. Another
1510 layer of typedefs has been added and the gen-params script can
1513 Wed May 10 03:02:58 1995 Jason Merrill <jason@python.cygnus.com>
1515 * iolibio.h (_IO_rewind): Add new argument to _IO_seekoff.
1517 * config/linux.mt (LIBIOSTREAM_OBJECTS): Include $(STDIO_WRAP_OBJECTS).
1518 (LIBIOSTREAM_DEP): Include stdio.list.
1519 (LIBIOSTREAM_USE): Include `cat stdio.list`.
1521 * Makefile.in (LIBIOSTREAM_DEP): New variable.
1522 (LIBIOSTREAM_USE): Ditto.
1523 (libiostream.a): Use them.
1524 (iostream.list): Ditto.
1525 (stdio.list): New rule.
1526 (stdio/stdio.list): Ditto.
1528 Tue May 9 18:29:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1530 * libioP.h (_IO_jump_t): Change TYPE for __dummy from int to
1533 Sat May 6 13:50:37 1995 Per Bothner <bothner@kalessin.cygnus.com>
1535 * libio.h (_IO_UNIFIED_JUMPTABLES): #define as true.
1536 (_IO_FILE): Remove _jumps field (#if _IO_UNIFIED_JUMPTABLES).
1538 * libioP.h (enum _IO_seekflags_): Removed.
1540 * libioP.h (_IO_setbuf_t): Change return value of setpos jumptable
1541 function to match C++ streambuf::setpos. (Return NULL on failure.)
1542 * fileops.c (_IO_file_setbuf), genops.c (_IO_default_setbuf),
1543 filebuf.cc, iosetvbuf.c: Update to use new setbuf conventions.
1545 * streambuf.h (streambuf): Re-order virtual functions more logically.
1546 * streambuf.cc (streambuf::uflow), streambuf.h: New virtual.
1547 * libioP.h (struct _IO_jump_t): Define using new JUMP_FIELD macro.
1548 And re-order in more logical order consistent with streambuf vtable.
1549 * fileops.c (_IO_file_jumps), iopopen.c (_IO_proc_jumps), iovfprintf.c
1550 (_IO_helper_jumps), streambuf.cc (_IO_streambuf_jumps), strops.c
1551 (_IO_str_jumps): Update accordingly, using JUMP_INIT macro.
1552 * stdfiles.c: Set vtable to point to _IO_file_jumps.
1553 * filebuf.cc, iopopen.c, iovfprintf.c (helper_vfprintf), iovsprintf.c,
1554 iovsscanf.c: Use macros and #if to set jumptables.
1556 * streambuf.c: _IO_streambuf_jumps and the _IO_sb_* methods are not
1557 needed #if _IO_UNIFIED_JUMPTABLES.
1558 * filebuf.cc (filebuf::__new): Also no longer needed.
1559 * fstream.cc (fstreambase::__fb_init, fstreambase::fstreambase): Fix.
1560 * stdstrbufs.c: Use filebuf vtable instead of builtinbuf's.
1561 * builtinbuf.h, builtinbuf.cc (builtinbuf): Commented out #if
1562 _IO_UNIFIED_JUMPTABLES - no longer needed.
1563 * strstream.cc (SET_STR_JUMPS): Does nothing now.
1565 * builtinbuf.cc, fileops.c, genops.c, iofgetpos.c, iofsetpos.c,
1566 ioftell.c, iopopen.c, ioseekoff.c, ioseekpos.c, iosetvbuf.c,
1567 iovfprintf.c, iovfscanf.c, strops.c: Use DEFUN and DEFUN_VOID.
1568 * filebuf.cc, fileops.c, genops.c, iopopen.c, ioseekoff.c, ioseekpos.c,
1569 iosetvbuf.c, iovfscanf.c: Use new JUMP_* and IO_OVERFLOW/... macros.
1571 * libioP.h (_IO_seekpos_t): Third arg is now an int (using _IOS_INPUT
1572 and _IOS_OUTPUT), not an enum _IO_seekflags_. Flags values are
1573 changed, and their sense inverted (to match streambuf::seekpos).
1574 * libioP.h (_IO_seekoff_t): Similarly match streambuf::seekoff.
1575 * filebuf.cc, fileops.c (_IO_file_fopen, _IO_file_seekoff), genops.c
1576 (_IO_default_seekpos, _IO_default_seekpos), iofgetpos.c, iofsetpos.c,
1577 iolibio.h (_IO_fseek), ioftell.c, ioseekoff.c, ioseekpos.c,
1578 iostream.cc, streambuf.cc, strops.c (_IO_str_seekoff), strstream.cc:
1579 New seekpos/seekoff conventions.
1580 * iostreamP.h (convert_to_seekflags): Removed - no longer needed.
1582 * iolibio.h (_IO_fread): New declaration.
1584 * dbz/Makefile.in: Re-arrange for cleaner dependencies.
1586 Fri May 5 15:55:22 1995 Per Bothner <bothner@kalessin.cygnus.com>
1588 * libioP.h (_IO_JUMPS. JUMP_FIELD, JUMP0, JUMP1, JUMP2, JUMP3,
1589 JUMP_INIT, _IO_FINISH, _IO_OVERFLOW, ... _IO_SYSSTAT): New macros
1590 in preparation for new unified jumptable/vtable implementation.
1591 * cleanup.c, filedoalloc.c, iofclose.c, iofflush.c, iofiledoalloc.c,
1592 ioprims.c, iosetbuffer.c, iostrerror.c, ioungetc.c: Use DEFUN.
1593 * filedoalloc.c, iofclose, iofflush, iosetbuffer.c: Use new macros.
1595 * iofopen.c, iofdopen.c: Use macros and #if for new jumptables.
1597 * gen-params: Do not #include <sys/types.h>.
1598 Add missing quote in 'eval'.
1599 Do add #include <sys/types.h> in test for <sys/resource.h>.
1600 * config/netbsd.mt: New file, defining _G_CONFIG_ARGS (for fpos_t).
1601 * configure.in: Use netbsd.mt for NetBSD.
1603 Wed May 3 15:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
1605 * libioP.h (DEFUN, DEFUN_VOID, AND): New macros, from ansidecl.h.
1606 * iofdopen.c, iofgets.c, iofopen.c, iofputs.c, iofread.c, iofwrite.c,
1607 iogetdelim.c, iogetline.c, iogets.c, ioignore.c, iopadn.c, ioperror.c,
1608 ioputs.c, iovsprintf.c, iovsscanf.c, outfloat.c: Use DEFUN.
1610 Mon May 1 16:22:30 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1612 * gen-params: #include <sys/types.h>. Don't use __WCHAR_TYPE__ in
1613 definition of _G_wchar_t. Use __attribute__ ((mode)) to get
1614 specific-sized ints under gcc, don't worry about int8 or int64
1615 otherwise. Provide defaults if deduction fails.
1617 Thu Apr 27 18:27:53 1995 Per Bothner <bothner@kalessin.cygnus.com>
1619 * streambuf.h (ios::~ios): Delete _arrays.
1620 (_IO_NEW_STREAMS): Turn on.
1621 * libio.h (__adjust_column): Remove bogus declaration.
1622 * genops.c (_IO_set_column): Fix typo (in commented-out code).
1624 Tue Apr 25 17:14:29 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1626 * config.shared (CXXINCLUDES): Use a shell variable with a
1627 different name from the make variable.
1628 * configure.in: Update accordingly.
1630 Mon Apr 17 17:19:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1632 * streambuf.h (__adjust_column): Remove redundant declaration.
1634 Sat Apr 15 11:39:25 1995 Per Bothner <bothner@kalessin.cygnus.com>
1636 * config.shared (do-clean-dvi): Also remove *.cps.
1638 * gen-params: Use ${SED} instead of sed.
1640 * libio.h: Remove #if'd out stuff (confuses makedepend).
1642 * stdstreams.cc (STD_STR): Standard streams start with ios::dec set.
1644 Fri Apr 14 23:46:31 1995 Per Bothner <bothner@kalessin.cygnus.com>
1646 * iostream.h, iostream.cc (istream::read, ostream::write):
1647 Use streamsize for the length parameter.
1649 * streambuf.h: Removed redundant __overflow and __underflow.
1651 * fstream.h, fstream.cc: Add void fstreambase::attach(int).
1653 * iosscanf.c (_IO_sscanf): Fix non-__STDC__ missing declaration.
1655 Mon Apr 3 15:40:55 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1657 * indstream.*: Fix prototypes of xsputn and xsgetn.
1659 * fileops.c: Avoid ??? trigraph.
1661 Mon Mar 27 16:16:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1663 * iomanip.h (operator<< (ostream&, const omanip<TP>&): Define
1665 (operator>> (istream&, const imanip<TP>&): Ditto.
1667 Mon Mar 27 08:56:00 1995 Brendan Kehoe (brendan@lisa.cygnus.com)
1669 * builtinbuf.cc (builtinbuf::setbuf): Cast NULL to streambuf*, to
1670 avoid warning/error about conversion from void*.
1671 * indstream.cc (indirectbuf::seekoff): Likewise.
1672 (indirectbuf::seekpos): Likewise.
1673 * filebuf.cc (filebuf::setbuf): Likewise.
1674 (filebuf::close): Cast NULL to filebuf*.
1676 Wed Mar 1 14:23:18 1995 Per Bothner <bothner@kalessin.cygnus.com>
1678 * configure.in (DISTCLEAN): Add, with target-mkfrag.
1680 Fri Feb 24 01:01:08 1995 Jason Merrill <jason@python.cygnus.com>
1682 * configure.in (frags): Don't require so many dashes in the
1683 canonical target name.
1685 Sat Feb 18 13:18:30 1995 Per Bothner <bothner@kalessin.cygnus.com>
1687 * streambuf.cc (streambuf::sync): Always return 0, even for
1688 non-flushed output. This is required by the ANSI/ISO draft.
1689 * genops.c (_IO_sync): Likewise always return 0.
1691 Fri Feb 17 16:33:28 1995 Per Bothner <bothner@kalessin.cygnus.com>
1693 * fileops.c (_IO_file_close_it): Call _IO_file_sync, rather
1694 than _IO_do_flush, because we want to adjust the file pointer
1695 if reading and not at end (as in SVR4, and as in fflush).
1696 Also, make sure to return error indication if sync fails.
1697 (_IO_file_sync): Ignore seek error if it is ESPIPE.
1698 (_IO_file_seekoff): If not readable, do dumb lseek.
1699 * iofclose.c (_IO_fclose): If closing a non-filebuf, return -1
1702 Fri Feb 17 19:31:00 1995 Ian Lance Taylor <ian@cygnus.com>
1704 * gen-params: Check for struct tms in <sys/times.h>, defining
1705 HAVE_SYS_TIMES accordingly.
1707 Wed Feb 15 21:05:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
1709 * strops.c (_IO_str_count): Use LEN macro.
1710 (_IO_str_seekoff): Update _len field.
1712 Mon Feb 6 19:29:00 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1714 * gen-params: Default to short, long and long long for 16, 32 and
1715 64 bit types, in case detection fails.
1717 Wed Jan 25 18:07:30 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1719 * gen-params (_G_wint_t): Allow for broken promotions.
1721 Tue Jan 24 16:15:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1723 * stdstrbufs.cc (_IO_fake_stdiobufs): Add an extra layer of struct,
1724 to force correct alignment on i960s.
1725 (DEF_STDIOBUF, _IO_{stdin,stdout,stderr}_buf): Update accordingly.
1727 Thu Jan 19 18:30:53 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1729 * config.shared (CXXINCLUDES): Add libstdc++ to includes for
1731 (LIBS): Also link with libstdc++ when building libg++ toys.
1732 Don't set EXPORT_ALL_VARIABLES; users will have to set
1733 LD_LIBRARY_PATH themselves.
1735 Fri Dec 30 16:38:13 1994 Mike Stump <mrs@cygnus.com>
1737 * config/linux.mt: Fix build problem on linux 1.0.8.
1739 Thu Dec 22 11:49:45 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1741 * config/netware.mt: Use gcc to pre-link iostream.nlm's objects
1742 instead of using nlmconv, so that references to functions in
1743 libgcc.a are resolved.
1745 * configure.in: Append .mt to target makefile fragment file names.
1747 * floatconv.c (tens, tinytens, bigtens): Added const qualifier.
1749 Tue Dec 20 09:59:50 1994 Mike Stump <mrs@cygnus.com>
1751 * gen-params (VTABLE_LABEL_PREFIX): Since some systems have GNU nm
1752 as nm, and they demangle by default, we have to notice this, and
1753 try --no-cplus (linux) or --no-demangle when running nm.
1755 Wed Dec 14 18:13:58 1994 Per Bothner <bothner@kalessin.cygnus.com>
1757 * gen-params: To determine vt-name-mangling using dummy.C add
1758 #include and #prama interface/implementation to avoid problem with
1759 assemblers that don't emit local symbols. Reported under HPUX 8
1760 by Thomas Arend <arend@blasius.Chemietechnik.Uni-Dortmund.DE>.
1762 * streambuf.h (ios::ios): Move inline definition after
1763 that of ios::init (which ios::ios calls).
1765 Sun Dec 4 19:50:32 1994 Per Bothner <bothner@kalessin.cygnus.com>
1767 * fileops.c (_IO_file_init, _IO_file_close_it, _IO_file_sync):
1768 Set _offset to _IO_pos_BAD, to support applications that follow
1769 POSIX.1 rules on mixing file handles.
1771 * fileops.c (_IO_file_overflow): Handle case that buffer was
1772 allocated (perhaps by setvbuf) but _IO_write_base is still 0.
1774 * iostdio.h (setbuffer): #define as _IO_setbuffer.
1775 * streambuf.h, filebuf.cc: Removed filebuf::do_write.
1777 Tue Nov 29 23:38:57 1994 Per Bothner (bothner@rtl.cygnus.com)
1779 * floatconv.c (setword0, setword1): Fix typo.
1781 Tue Nov 29 15:37:29 1994 Per Bothner <bothner@kalessin.cygnus.com>
1783 * config.shared: Move -fno-implicit-template from CXXFLAGS
1784 to LIBCXXFLAGS. Tests are better run without it.
1786 * floatconv.c (word0, word1): Re-place/re-implement using unions
1787 instead of casts to avoid optimizer problems.
1789 * dbz/dbzmain.c: Renamed dirname -> dir_name to avoid OSF
1790 header file braindamage.
1792 Sat Nov 5 19:44:00 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1794 * config.shared (LIBCFLAGS): Define.
1795 (LIBCXXFLAGS): Define.
1796 (DOING_LIBGXX): Define TOLIBGXX. Change LIBS to use -lg++. Add
1797 LD_LIBRARY_PATH and .EXPORT_ALL_VARIABLES:.
1798 (FLAGS_TO_PASS): Add LIBC{,XX}FLAGS.
1799 (XC{,XX}FLAGS): Set to LIBCFLAGS or CFLAGS depending on $LIBDIR.
1800 (COMPILE.c): Define, use in .c.o rule.
1801 (COMPILE.cc): Define, use in .cc.o rule.
1803 Sat Nov 5 15:12:12 1994 Per Bothner <bothner@kalessin.cygnus.com>
1805 * Makefile.in (VERSION): Update to 0.67.
1807 * streambuf.h (ios::dont_close): Is now set by default.
1808 * fstream.h, fstream.cc (__fb_init): New function. Clears
1809 ios::dont_close. Change fstreambase constructors to call it.
1810 * strstream.cc: *strstream constructors must clear ios::dont_close.
1811 * iostream.cc: Simplify - don't need to set ios::dont_close.
1812 * ioassign.cc: Simplify - assume ios::dont_close is always set.
1814 * fstream.h, fstream.cc: If _IO_NEW_STREAMS, put the
1815 filebuf as a member __my_fb.
1816 * strstream.{h,cc}: Likewile use a strstreambuf member __my_sb.
1817 * streambuf.h, stdstreams.cc, ioextend.cc:
1818 Fix if _IO_NEW_STREAMS to not use ios::dont_close.
1820 * streambuf.h (class ios): Move rdbuf later, to avoid
1821 inability of g++ to inline.
1822 * filebuf.cc (filebuf::~filebuf): Call _IO_do_flush.
1824 * config.shared: Emit rules to make depend.
1827 Fri Nov 4 17:19:11 1994 Per Bothner <bothner@kalessin.cygnus.com>
1829 * README: Fix typos.
1830 * libio.h: Add comment. Update Copyright notice.
1832 Fri Nov 4 21:46:30 1994 Paul Eggert <eggert@twinsun.com>
1834 * libio.h (__P): Change argument name spelling from
1835 `paramlist' to `protos' for compatibility with BSDI 1.1.
1837 Thu Nov 3 00:45:16 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1839 * config.shared (CXXFLAGS): Add -fno-implicit-templates.
1841 Mon Oct 24 15:57:35 1994 Per Bothner <bothner@kalessin.cygnus.com>
1843 * config.shared: Define NOSTDIC and use it for libio too.
1845 Thu Oct 20 19:45:35 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1847 * iogetdelim.c: #include <stdlib.h>.
1849 Thu Oct 20 17:09:52 1994 Per Bothner <bothner@kalessin.cygnus.com>
1851 * iostream.h: Add classes _IO_istream_withassign and
1852 _IO_ostream_withassign. Re-type cin, cout, cerr, clog.
1853 (class iostream): Don't add extra _gcount field.
1854 * ioassign.cc: New file. Implement operator= for cin etc.
1855 * streambuf.h (class ios): Change return type of operator=.
1856 * Makefile.in (IOSTREAM_OBJECTS): Add ioassign.o.
1858 * Makefile.in: Re-arrange, so linux.mt overrides can work.
1860 * fileops.c (_IO_file_seekoff): Optimize seeks within buffer.
1862 Wed Oct 19 14:25:47 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1864 * gen-params (wint_t): Return to using __WCHAR_TYPE__ for
1865 compatibility with gcc versions prior to 2.6.1.
1867 Tue Oct 18 17:08:18 1994 Per Bothner <bothner@kalessin.cygnus.com>
1869 * Makefile.in: Define _G_CONFOG_H as _G_config.h for Linux. Use it.
1870 (IO_OBJECTS): Add iogetdelim.o.
1871 * config/linux.mt: New file.
1872 * configure.in: Select config/linux.mt if Linux.
1873 * iogetdelim.c: Verious cleanups, many from
1874 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>.
1875 * libioP.h: Add _IO_getdelim. Use (void) for no-parameter functions.
1877 Thu Oct 13 16:30:56 1994 Per Bothner (bothner@kalessin.cygnus.com)
1879 * libio.h: Rename USE_DTOA to _IO_USE_DTOA for namespace reasons.
1880 * iostream.cc, iovfscanf.c, iovfprintf, floatconv.c:
1881 Update USE_DTOA -> _IO_USE_DTOA.
1883 * libio.h (_IO_feof, _IO_ferror): Move to here ...
1884 * iolibio: ... from here
1886 * iostream.cc (istream::get, istream::ignore, istream::read):
1887 Set _gcount to 0 if ipfx0 failed.
1889 * iostream.cc (flush): Do virtual function call, rather than
1890 going through jumptable. (To get correct method in derived class.)
1891 Bug and fix from John Wiegley <jw@cis.ohio-state.edu>.
1893 * iofdopen.c (O_ACCMODE): Define using O_RDWR, not O_RDWRITE.
1895 * streambuf.h (ios::rdbuf(streambuf*)): New.
1896 * streambuf.h (ios::operator=): Make private (i.e. dis-allow).
1898 Wed Oct 12 19:09:20 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1900 * gen-params: Define _G_NO_NRV and _G_NO_EXTERN_TEMPLATES if not
1903 Thu Oct 6 16:03:43 1994 Per Bothner (bothner@kalessin.cygnus.com)
1905 * iostream.texi (ostrstream::str): Note that NUL is not written
1908 Wed Oct 5 17:28:29 1994 Per Bothner (bothner@kalessin.cygnus.com)
1910 * iogetdelim.c (_IO_getdelim): New function.
1912 Wed Oct 5 15:40:22 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1914 * config/netware.mt: New file, first cut at Netware NLM support.
1915 * configure.in (*-*-netware*): Use config/netware.mt.
1917 * config.shared (NLMCONV, LD): New definition.
1919 * gen-params: check for nm in ${binutils}/nm.new.
1920 * config.shared: Likewise.
1922 Tue Oct 4 12:20:01 1994 Per Bothner (bothner@kalessin.cygnus.com)
1924 * iomanip.h (omanip::operator<<): Make 2nd arg be const.
1925 Bug and fix reported by Greg McGary <gkm@magilla.cichlid.com>.
1927 * strstream.cc (strstreambuf::pcount): Simplify, to match
1928 ANSI/ISO specification.
1930 Mon Sep 26 15:19:52 1994 Jason Merrill (jason@deneb.cygnus.com)
1932 * gen-params: Include <wchar.h> and <wctype.h> if they exist.
1934 Thu Sep 8 14:41:41 1994 Jason Merrill (jason@deneb.cygnus.com)
1936 * iostream.h (class istream): Declare operator>>(long double&).
1937 (class ostream): Define operator<<(long double).
1939 * iostream.cc (istream::operator>>(long double&)): Define.
1941 Wed Sep 7 14:42:29 1994 Per Bothner (bothner@kalessin.cygnus.com)
1943 * iostream.texi (Overflow): Fix bugs in example.
1945 Fri Sep 2 17:45:57 1994 Per Bothner (bothner@kalessin.cygnus.com)
1947 * iostream.tex: Document a little on how to write your
1948 own streambuf-derived class, with an example.
1950 Tue Aug 30 13:03:57 1994 Brendan Kehoe (brendan@lisa.cygnus.com)
1952 * floatconv.c (s2b): Declare X and Y to be _G_int32_t.
1953 (diff, quorem): Declare BORROW, Y, and Z likewise.
1954 (ulp): Declare L likewise.
1955 (_IO_strtod): Declare L and AADJ likewise.
1956 (_IO_dtoa): Declare L and D likewise. Cast division of D by DS to
1959 Mon Aug 29 16:01:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
1961 * iosetvbuf.c (_IO_setvbuf): If setting _IOFBF and no
1962 buffer was specified, call __doallocate.
1964 * fileops.c, floatconv.c: Add a bunch of parentheses to
1965 shut up gcc warnings. Patch from H.J.Lu.
1967 * stdiostream.cc (stdiobuf::sys_read): Inline call to getc
1968 for the normal case (size==1).
1970 Sat Aug 20 12:14:52 1994 Per Bothner (bothner@kalessin.cygnus.com)
1972 * Makefile.in (VERSION): Increase to 0.66.
1974 Fri Aug 19 17:28:41 1994 Per Bothner (bothner@kalessin.cygnus.com)
1976 * iolibio.h: Added _IO_printf prototype.
1977 Added extern "C" { ... } wrappers #ifdef __cplusplus.
1978 Bugs reported by Neal Becker <neal@ctd.comsat.com>.
1980 Wed Aug 17 18:17:15 1994 Per Bothner (bothner@kalessin.cygnus.com)
1982 * fileops.c (_IO_file_seekoff): For _IO_seek_cur, adjust for
1983 read-ahead before jumping to label dumb.
1985 Wed Aug 3 13:15:01 1994 H.J. Lu (hjl@nynexst.com)
1987 * libioP.h (CHECK_FILE(FILE,RET)): new, which checks for
1988 FILE == NULL and _IO_MAGIC_MASK.
1989 (COERCE_FILE(FILE)): merged into CHECK_FILE(FILE,RET)
1992 * iofread.c, iofwrite.c: add CHECK_FILE(fp, 0);
1993 * iofclose.c: add CHECK_FILE(fp, EOF); remove _IO_MAGIC_MASK check.
1995 * iofflush.c, iofgetpos.c, iofputs.c, iofscanf.c,
1996 iofsetpos.c, iofvbuf.c, ioungetc.c:
1997 Add CHECK_FILE(fp, EOF) and remove COERCE_FILE(fp).
1999 * iofgets.c: add CHECK_FILE(fp, NULL) and remove COERCE_FILE(fp).
2000 * iofprintf.c: add CHECK_FILE(fp, -1) and remove COERCE_FILE(fp).
2001 * ioftell.c: add CHECK_FILE(fp, -1L) and remove COERCE_FILE(fp).
2002 * iosetbuffer.c: add CHECK_FILE(fp, ) and remove COERCE_FILE(fp).
2004 Fri Aug 12 15:35:39 1994 Per Bothner (bothner@kalessin.cygnus.com)
2006 * iofdopen.c (_IO_fdopen): #define O_ACCMODE if it isn't.
2007 Still set O_APPEND if "a" is given, but don't unset it
2008 if it isn't. Added comment.
2010 Mon Aug 8 13:11:00 1994 Per Bothner (bothner@kalessin.cygnus.com)
2012 * gen-params (VTABLE_LABEL_PREFIX): Changes in the implementation.
2013 For look for _*vt[$_.]7*filebuf in the nm output, because that
2014 matches what g++ produces and has produced. Thus it should be
2015 somewhat more robust.
2017 Sun Aug 7 22:52:49 1994 Per Bothner (bothner@kalessin.cygnus.com)
2019 * gen-params (CC): Remove no-longer-needed -I options
2020 passed to xgcc (now they are implied by the -B options).
2022 Wed Jul 20 16:41:13 1994 Per Bothner (bothner@kalessin.cygnus.com)
2024 * Makefile.in (tooldir): Added definition, so we can do
2025 'make install' in this directory.
2026 Bug reported by Klamer Schutte <schutte@tpd.tno.nl>.
2028 Mon Jul 18 18:02:34 1994 Per Bothner (bothner@kalessin.cygnus.com)
2030 * gen-params (VTABLE_LABEL_PREFIX): Remove filename sppearing
2031 by itself. Add comment explaining what is going on.
2033 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@jalod)
2035 * libio.h: define _IO_uid_t and _IO_HAVE_ST_BLKSIZE
2038 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@jalod)
2040 * iopopen.c: Don't include <errno.h>. It is included in "libioP.h".
2042 * iopopen.c (_IO_proc_close) : check if fp is on the list
2045 Thu Jul 14 16:38:47 1994 Per Bothner (bothner@kalessin.cygnus.com)
2047 * gen-params (CONFIG_NM): Make sed scripts to find vtable name
2048 mangling more robost for different forms of nm output.
2050 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@jalod)
2052 * iofopen.c (_IO_fopen): don't check [redundantly] fp == NULL after
2053 IO_file_init(&fp->_file).
2055 * iomanip.h (template<class TP> class iapp):
2056 change ostream to istream.
2058 Tue Jul 12 14:09:02 1994 Per Bothner (bothner@kalessin.cygnus.com)
2060 * Makefile.in (VERSION): Increase to 0.65.
2061 * libioP.h (builtinbuf_vtable): Only define #ifdef __cplusplus.
2063 * gen-params (_G_int8_t): Only define if defined(__STDC__),
2064 because K&R C compilers don't have signed char.
2065 (_G_int64_t, _G_uint64_t): Only define if defined(__GNUC__)
2066 because other compilers may not have long long.
2068 Sun Mar 06 13:10:21 1994 H.J. Lu (hjl@nynexst.com)
2070 * floatconv.c (_IO_dtoa ()): fix a small memory leak, set the
2071 "on_stack" field to be 0 if "result" is not NULL.
2073 Sat Mar 05 13:18:20 1994 H.J. Lu (hjl@nynexst.com)
2075 * floatconv.c (_IO_dtoa ()): if the number of digits of the
2076 floating point number is more than the previous one, free the
2077 old string and allocate a new one.
2078 [Minor optimization to avoid Bcopy. -PB]
2080 Mon Jul 11 10:53:41 1994 Per Bothner (bothner@kalessin.cygnus.com)
2082 * fileops.c (_IO_file_underflow): 'count' should be unsigned,
2083 since it contains the return value of read. Reported by
2084 Teemu Torma <tot@trema.fi>.
2086 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@nynexst.com)
2088 * floatconv.c (_IO_strtod ()): make "+" and "-" as error.
2090 Sat Jul 9 15:09:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
2092 Make sure _IO_FILE::_flags is always initialized correctly, for the
2093 C functions (fopen, fdopen, popen), and not just the C++ functions.
2094 * fileops.c (_IO_file_init): Set _flags to CLOSED_FILEBUF_FLAGS.
2095 * fileops.c (_IO_file_fopen): Remove bogus assignment.
2096 * filebuf.cc (filebuf constructors): Don't pass CLOSED_FILEBUF_FLAGS
2097 to streambuf constructor - _IO_file_init does it instead.
2098 * filebuf.cc (CLOSED_FILEBUF_FLAGS): Removed.
2099 * iopopen.c (_IO_proc_open): Use _IO_mask_flags.
2101 Thu Jun 30 08:49:53 1994 Jason Merrill (jason@deneb.cygnus.com)
2103 * dbz/Makefile.in (mostlyclean): Add target.
2105 Wed Jun 29 09:30:12 1994 Jason Merrill (jason@deneb.cygnus.com)
2107 * gen-params: Woops, can't run a C program to determine target
2108 characteristics. Sigh.
2110 Tue Jun 28 03:11:33 1994 Jason Merrill (jason@deneb.cygnus.com)
2112 * gen-params: Add _G_{,u}int{8,16,64}_t, use a short C program to
2113 determine what all these should be rather than trying to compare
2114 the MAX numbers in the shell.
2116 Sun Jun 26 21:04:24 1994 Per Bothner (bothner@kalessin.cygnus.com)
2118 * stdiostream.h, stdiostream.cc (stdiobuf::xsgetn): Removed.
2119 Too hairy. If we want to optimize it, we should do so in
2120 filebuf::xsgetn (or rather _IO_file_xsgetn).
2122 * stdiostream.h (class stdiobuf), stdiostream.cc: Fix parameter
2123 and return types of virtual function to matcher base types (Oops!).
2124 * streamstream.cc (stdiobuf::xsgetn, stdiobuf::xsputn):
2125 Optimize to call fread.fwrite directly if !buffered.
2126 * fileops.c: Fix comment.
2128 Fri Jun 24 11:28:18 1994 Per Bothner (bothner@kalessin.cygnus.com)
2130 * stdiostream.h (istdiostream, ostdiostream): New classes.
2132 More robust final cleanup.
2133 * cleanup.c (_IO_register_cleanup): Register _IO_cleanup,
2134 rather than _IO_flush_all.
2135 * filedoalloc.c: Update comment.
2136 * genops.c (_IO_unbuffer_all): New. Makes all files unbuffered.
2137 * genops.c (_IO_cleanup), libioP.h: New function. Call
2138 _IO_flush_all, and then _IO_unbuffer_all. This is in case C++
2139 destructors try to do output *after* _IO_cleanup is called.
2141 Construct standard stdiobufs statically (using type punning).
2142 * stdstrbufs.c; Unless _STDIO_USES_IOSTREAM declare standard
2143 stdiobufs (for stdin, stdout, and stderr), using type punning
2144 (struct _IO_fake_stdiobuf). This avoids constructor-time problems.
2145 * stdstreams.cc: Remove the declarations of the stdiobufs.
2146 Instead use the new (fake) ones in stdstrbufs.cc. We no longer
2147 have to call ios::sync_with_stdio at constructor time.
2149 Preliminary support for new ANSI streambuf::uflow virtual.
2150 * libioP.h (struct _IO_jump_t): Add __uflow field.
2151 * genops.c (_IO_default_uflow), libioP.h: New function.
2152 * fileops.c (_IO_file_jumps), iopopen.c (IO_proc_jumps),
2153 iovfprintf.c (_IO_helper_jumps), strops.c (_IO_str_jumps),
2154 streambuf.cc (_IO_streambuf_jumps): Add _IO_default_uflow.
2155 * genops.c (__uflow): New function.
2156 (save_for_backup): New function. Some code shared by
2157 __underflow and __uflow, moved out from the former.
2158 (_IO_default_uflow): New function.
2159 * libio.h (_IO_getc): Call __uflow, not __underflow.
2161 Wed Jun 22 20:22:49 1994 Per Bothner (bothner@kalessin.cygnus.com)
2163 Make sure that the vtable of a streambuf is always valid,
2164 which makes ios::rdbuf simpler and faster.
2165 * gen-params: Add code to determine _G_VTABLE_LABEL_HAS_LENGTH,
2166 _G_VTABLE_LABEL_PREFIX, _G_VTABLE_LABEL_PREFIX_ID, and
2167 _G_USING_THUNKS, which describe how virtual function tables are named.
2168 * stdfiles.c (FILEBUF_LITERAL): Moved to libioP.h.
2169 * libioP.h (builtinbuf_vtable): New (complicated) declaration.
2170 * filebuf.cc (filebuf::__new), strstream.cc (SET_STR_JUMPS):
2171 Initialize vtable to builtinbuf_vtable, not NULL.
2172 * stdstrbufs.cc: New file. Same as stdfiles.c, except that
2173 vtable is initialized to builtinbuf_vtable, not NULL.
2174 * streambuf.h (ios::rdbuf): Can now simplify/optimize, due to
2175 above changes. Always, just return _strbuf.
2176 * builtinbuf.h, builtinbuf.cc (builtinbuf::vtable,
2177 builtinbuf::get_builtin_vtable): Removed. No longer needed.
2178 * streambuf.h, builtinbuf.cc (ios::_IO_fix_vtable): No longer needed.
2179 Only defined #ifdef _STREAM_COMPAT, for binary compatibility.
2180 * Makefile.in: Move stdfiles.o from IO_OBJECTS to STDIO_WRAP_OBJECTS.
2181 (IOSTREAM_OBJECT): Add stdstrbufs.o.
2182 * Makefile.in (_G_config.h): Pass $(CXXFLAGS) as part of $(CXX).
2184 Fri Feb 11 11:08:01 1994 SBPM Marc GINGOLD (marc@david.saclay.cea.fr)
2186 * iovfprintf.c (helper_vfprintf): add
2187 hp->_IO_file_flags = _IO_MAGIC|(_IO_IS_FILEBUF+_IO_NO_READS);
2188 [This is needed because _IO_vfprintf checks for _IO_UNBUFFERED. -PB]
2189 [Actually: don't set _IO_IS_FILEBUF. -PB]
2191 Wed Jun 22 13:49:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
2193 * stdiostream.cc, stdiostream.h (stdiobuf::buffered): New methods.
2195 * iofdopen.c (_IO_fdopen): Various minor improvements.
2197 * iovfscanf.c: Don't return EOF on control_failure.
2199 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@nynexst.com)
2201 * iovfscanf.c: Enforce the sequence of the conversion specifications.
2203 Fri Jun 17 20:57:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
2205 * iofdopen.c: Use fcntl to check that requested access mode is
2206 compatible with existing access mode, and to change the
2207 O_APPEND file status flag if need be.
2209 Thu Jun 16 17:33:50 1994 Per Bothner (bothner@kalessin.cygnus.com)
2211 * streambuf.h (ios::init): Initialize all the fields.
2212 This may be overkill, but the current ANSI working paper requires it.
2213 * streambuf.h (ios::ios): Reimplement in terms of ios::init.
2214 * iostream.cc (Non-default constructors istream::istream,
2215 ostream::ostream, iostream::iostream): Cannot use a mem-initializer,
2216 because it is ignored if initializing a derived class. Instead,
2219 Wed Jun 15 13:35:37 1994 Per Bothner (bothner@kalessin.cygnus.com)
2221 * stdstreams.cc (ISTREAM_DEF): Fix typo (it's a _fake_istream, not
2222 a _fake_ostream). Reported by Jason Shirk <jshirk@gomez.intel.com>.
2224 * stdiostream.h, stdiostream.cc (stdiobuf::~stdiobuf): New.
2226 * stdiostream.cc (stdiobuf::sync): Call _IO_do_flush rather
2227 than filebuf::sync (to avoid bad seeks).
2229 * libioP.h (_IO_do_flush): Add missing parentheses.
2231 Fri Jun 3 19:16:57 1994 Jason Merrill (jason@deneb.cygnus.com)
2233 * config.shared (CXXFLAGS): Remove -fno-implicit-templates.
2235 * iomanip.h: Add explicit external instantiations.
2237 Wed Jun 1 14:14:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
2239 * libio.h (struct _IO_FILE_plus): Move definition from here ...
2240 * libioP.h (struct _IO_FILE_plus): ... to here. Since this
2241 file is private to the implementation, we can rename the fields
2242 from the implementor's to the user's name anme space.
2243 (This avoids a lossage on SCO, whose stdio.h has a #define _file.)
2244 * iofdopen.c, iofopen.c, stdfiles.c: Fix field references accordingly.
2245 * iopopen.c (struct_IO_proc_file): Rename fields from
2246 implementor's name space to user's, and update usages.
2247 * streambuf.h (streambuf::_vtable): Re-implement to not need
2248 struct _IO_FILE_plus.
2249 * strfile.h (struct _IO_strfile_): Likewise.
2251 Wed Jun 1 13:57:48 1994 Jason Merrill (jason@deneb.cygnus.com)
2253 * config.shared (CXXFLAGS): Use -fno-implicit-templates instead of
2254 -fexternal-templates.
2256 Tue May 31 08:49:28 1994 Mike Stump (mrs@cygnus.com)
2258 * genops.c, iofclose.c, iofdopen.c, iofopen.c, iopopen.c: Be
2259 consistent about protecting #include <stdlib.h>.
2261 * ioputs.c: Add #include <string.h>, to avoid warning on alpha.
2263 * iofdopen.c: Add #include <stdlib.h>, so that malloc works on
2264 machines where sizeof(int) != sizeof(void *).
2266 Mon May 30 17:26:49 1994 Per Bothner (bothner@kalessin.cygnus.com)
2268 * pfstream.cc (ipfstream::ipfstream, opfstream::opfstream):
2269 Reverse sense of test of return value of procbuf::open.
2270 (It returns NULL on failure.)
2272 * filedoalloc.c (_IO_file_doallocate): Remove dead code for
2273 USE_MALLOC_BUF. Add code to return EOF if ALLOC_BUF fails.
2275 Sat May 28 13:47:47 1994 Jason Merrill (jason@deneb.cygnus.com)
2277 * iomanip.cc: Explicitly instantiate smanip<int> and
2278 smanip<ios::fmtflags>.
2280 Wed May 25 16:04:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
2282 * strfile.h: Use __P instead of _PARAMS.
2284 Fri May 20 11:42:17 1994 Per Bothner (bothner@kalessin.cygnus.com)
2286 * libio.h: Rename _PARAMS macro to __P for better glibc and BSD
2287 compatibility. (Also define _PARAMS for backwards compatibility.)
2288 * cleanup.c, iolibio.h, ioperror.c, iovfprintf.c, iovfscanf.c,
2289 libioP.h: Use __P instead of _PARAMS.
2290 * iostdio.h: Use __P instead of _ARGS.
2292 * fileops.c (_IO_file_read): Minor stylistic tweak. (It is
2293 preferable to test errno *after* the error return.)
2295 Fri May 13 15:25:36 1994 Jason Merrill (jason@deneb.cygnus.com)
2297 * iostream.*: Add insertor and extractor for bool (just pretend
2300 Fri May 13 14:12:03 1994 Mike Stump (mrs@cygnus.com)
2302 * gen-params: Check for builtin bool support.
2304 Wed May 11 00:48:35 1994 Jason Merrill (jason@deneb.cygnus.com)
2306 Make libg++ build with gcc -ansi -pedantic-errors
2307 * gen-params: #ifdef __STRICT_ANSI__, #define _G_NO_NRV.
2308 * pfstream.cc (ipfstream::ipfstream): Wrap use of variable-size
2309 array in #ifndef __STRICT_ANSI__.
2311 Fri May 6 12:42:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
2313 * Makefile.in (VERSION): Increase to 0.64.
2315 * isgetline.cc (istream::getline): The delimiter should *not*
2316 be included in the gcount().
2318 * filedoalloc.c: #include <stdlib.h> (If __STDC__) to get malloc.
2319 * iostream.h (ostream::put): Remove overloaded versions, to match
2320 new working paper. (Actually just put inside _STREAM_COMPAT, for now.)
2322 Tue May 3 14:14:57 1994 Per Bothner (bothner@kalessin.cygnus.com)
2324 * genops.c (_IO_default_finish): Make robust when called
2325 multiple times on the same _IO_FILE*. (One way this can
2326 happen is by the builtinbuf destructor being followed by the
2327 streambuf destructor.)
2329 Mon May 2 13:55:26 1994 Jason Merrill (jason@deneb.cygnus.com)
2331 * gen-params: Actually determine wint_t rather than depending on
2332 cpp to provide it or defaulting to the underlying type for
2335 Sat Apr 30 14:47:30 1994 Jason Merrill (jason@deneb.cygnus.com)
2337 * gen-params: Add _G_wint_t, allow __*_TYPE__ to override values
2338 at compile time, fix definition of _G_ARGS.
2340 Fri Apr 29 16:55:37 1994 Per Bothner (bothner@kalessin.cygnus.com)
2342 * libio.h: Remove #pragma interface. (There is no implementation.)
2344 Mon Mar 28 14:22:26 1994 Per Bothner (bothner@kalessin.cygnus.com)
2346 * iostream.cc (ostream::operator<<(double)): Add/fix support
2347 for printing '+' when ios::showpos is set.
2348 (Fixes bug reported by Doug Moore <dougm@cs.rice.edu>.)
2349 * iostream.cc (istream::read): Set eofbit as well as failbit on eof.
2350 * iostream.cc (ostream::operator<<(int)): Fix conversion
2351 to unsigned (used to lose on INT_MIN).
2352 * iostream.cc (ostream::operator<<(long)): Use (unsigned long),
2353 rather than (unsigned) for temporary.
2355 * config.shared, Makefile.in: Remove definitions and uses
2356 of XTRAFLAGS. It is no longer needed, since it is
2357 now implied by the -B flag.
2359 Fri Mar 25 00:31:22 1994 Jason Merrill (jason@deneb.cygnus.com)
2361 * builtinbuf.h: Add put /**/ around comment on trailing #endif.
2363 * Makefile.in (c++clean): Make clean in tests subdir, too.
2365 Wed Mar 23 16:42:09 1994 Doug Evans (dje@canuck.cygnus.com)
2367 * configure.in: Remove Makefile.tem before creating it.
2368 Needed when configuring from read-only source trees.
2370 Wed Mar 16 14:06:42 1994 Per Bothner (bothner@kalessin.cygnus.com)
2372 * stdstreams.cc: Fix so that stdiobuf are used for cin/cout/cerr,
2373 unless _STDIO_USES_IOSTREAM is defined.
2374 * filebuf.cc (filebuf::setbuf): Fix confusion about return
2375 value from _IO_file_setbuf.
2377 Sun Mar 13 00:54:12 1994 Paul Eggert (eggert@twinsun.com)
2379 * config.shared: Ensure that `all' precedes `.PHONY';
2380 BSDI 1.1 needs this.
2382 Sat Mar 12 03:58:00 1994 Paul Eggert (eggert@twinsun.com)
2384 * config.shared: Output a definition of INSTALL that uses
2385 $${rootme}, not ${rootme}. Most `make's don't care, but BSDI
2388 Fri Mar 4 17:33:01 1994 Per Bothner (bothner@kalessin.cygnus.com)
2390 * iopopen.c: #define _POSIX_SOURCE.
2391 * isgetline.c (istream::getline): Various fixes.
2393 Thu Mar 3 17:58:20 1994 Per Bothner (bothner@kalessin.cygnus.com)
2395 * iostream.cc (write_int): Fix test for when to add initial '0'
2396 when ios::oct and ios::showbase are set.
2397 For hex, showbase adds initial 0x (or 0X) regardless of val==0.
2398 Bugs reported by Phil Roth <proth@cs.uiuc.edu>.
2400 Mon Feb 21 13:18:20 1994 H.J. Lu (hjl@nynexst.com)
2402 * libio.h (_IO_PENDING_OUTPUT_COUNT(_fp)): return the
2403 pending output count in _fp.
2405 Fri Feb 25 09:26:57 1994 Ian Lance Taylor (ian@cygnus.com)
2407 * gen-params: For HAVE_SYS_WAIT, compile dummy.c, not dummy.C.
2409 Tue Feb 22 11:19:09 1994 Per Bothner (bothner@kalessin.cygnus.com)
2411 * streambuf.h, genops.c, libioP.h: Rename references to
2412 _IO_FILE fields other_gbase => _IO_save_base,
2413 _aux_limit => _IO_backup_base, and _other_egptr => _IO_save_end.
2414 * libio.h: Remove no-longer needed macros _other_gbase,
2415 _aux_limit, and _other_egptr.
2416 * genops.c (__underflow, _IO_default_finishh, _IO_unsave_markers):
2417 Check _IO_save_base for NULL before FREEing it or calling
2418 _IO_free_backup_area.
2420 Thu Feb 17 15:26:59 1994 Per Bothner (bothner@kalessin.cygnus.com)
2422 * gen-params: Improve deduction of _G_uint32 and _G_int32.
2423 Should now work for 16-bit, 32-bit, or 64-bit targets.
2424 * gen-params: Check for sys/wait.h using ${CC}, since it's
2425 now used in a C file, not a C++ file.
2426 * floatconv.c: Typedef _G_uint32_t as unsigned32, and use
2427 unsigned32 in place of unsigned long. (Needed for Alpha.)
2429 Tue Feb 8 13:40:15 1994 Per Bothner (bothner@kalessin.cygnus.com)
2431 * fileops.c (_IO_file_close_it): Simplify by using _IO_do_flush.
2432 * fileops.c (_IO_file_finish): Don't call _IO_file_close_it -
2433 do it inline. Call _IO_do_flush even if _IO_DELETE_DONT_CLOSE.
2434 * fileops.c (_IO_file_attach): Set _IO_DELETE_DONT_CLOSE.
2435 * genops.c (_IO_flush_all): Only call overflow if there is
2437 * iofclose.c (_IO_fclose): Check that magic number is correct,
2438 and clear it when done. Avoids crashing some buggy applications.
2439 * iogetline.c (_IO_getline): Don't gratuitously increment old_len.
2440 * iogets.c (_IO_gets): Take care to get required ANSi semantics.
2442 Sun Feb 6 19:50:39 1994 Jason Merrill (jason@deneb.cygnus.com)
2444 * iomanip.cc: Explicitly instantiate operator<< and >>.
2446 Fri Feb 4 12:28:22 1994 Jason Merrill (jason@deneb.cygnus.com)
2448 * config.shared (CXXFLAGS): Use -fexternal-templates.
2450 * iomanip.h: Uncomment #pragma interface.
2452 Thu Jan 20 13:48:40 1994 Per Bothner (bothner@kalessin.cygnus.com)
2454 If no characters are read by fgets, ANSI C doesn't allow '\0' to
2455 be written to the buffer, but it is required by ANSI C++
2456 for istream::get and istream::getline. Both use _IO_getline ...
2457 * iogetline.c (_IO_getline): Don't write a '\0' at the end
2458 of the read data. The input buffer length does not include
2460 * iofgets.c, iogets.c: Change appropriately.
2461 Also check for _IO_ERR_SEEN, as required by ANSI.
2462 * isgetline.cc: Update accordingly.
2464 Mon Jan 17 13:24:26 1994 Jason Merrill (jason@deneb.cygnus.com)
2466 * Makefile.in (c++clean): Added target for compiler testing
2467 (i.e. make c++clean all).
2469 Mon Jan 10 11:20:42 1994 Per Bothner (bothner@kalessin.cygnus.com)
2471 * libio.h (_IO_putc): Add parentheses.
2472 Patch from Rik Faith <faith@cs.unc.edu>.
2474 Tue Jan 4 01:32:28 1993 Hongjiu Lu (hjl@nynexst.com)
2476 * genops.c (_IO_default_xsputn):
2477 (_IO_default_xsgetn):
2478 * ioignore.c: change "_IO_size_t count" to
2479 "_IO_ssize_t count".
2480 * iogetline.c: change "_IO_size_t len" to
2483 Mon Dec 20 00:31:21 1993 Per Bothner (bothner@kalessin.cygnus.com)
2485 * config.shared (CXXINCLUDES): Fix quoting of $(NOSTDINC).
2487 Sun Dec 19 21:03:45 1993 Per Bothner (bothner@kalessin.cygnus.com)
2489 * Makefile.in (VERSION): Increase to 0.63.
2491 Fri Dec 17 13:02:44 1993 Per Bothner (bothner@kalessin.cygnus.com)
2493 * iofread.c (_IO_fread): Return 0 if either size or count is 0.
2494 * iofwrite.c (_IO_fwrite): Return 0 if either size or count is 0.
2495 (This is consistent with fread, and most implementations, but not
2496 with a literal reading of the ANSI spec.)
2497 * iovfscanf.c (_IO_vfscanf): If got EOF while skipping spaces,
2498 set seen_eof and break (instead of returning).
2499 * sbscan.cc (streambuf::vscan): Set error state before returning.
2500 * streambuf.h: Add a forward declarations for class istream
2501 to work around a g++ vtable name mangling bug. (Patch from
2502 harry@pdsrc.hilco.com via Jeffrey A Law <law@snake.cs.utah.edu>.)
2505 Sat Dec 11 16:21:08 1993 Per Bothner (bothner@kalessin.cygnus.com)
2507 * iovfprintf.c (struct helper_file, _IO_helper_overflow,
2508 helper_vfprintf, _IO_helper_jumps): New structs and functions.
2509 (_IO_vfprintf): Use helper_vfprintf to make printing to
2510 unbuffered files more efficient.
2511 * genops.c (_IO_default_underflow), libioP.h: New function.
2513 * iovsscanf.c (_IO_vsscanf): The input string's length marks
2514 its logical end-of-file.
2516 Wed Dec 8 13:20:46 1993 Per Bothner (bothner@kalessin.cygnus.com)
2518 * indstream.cc (indirectbuf::sync()): Don't crash if get_stream()
2519 or put_stream() are NULL; sync() both streams even if error.
2521 Sun Dec 5 19:24:29 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
2523 * iostreamP.h (convert_to_seekflags): Use _IO_seek_set instead of
2524 0 inside the conditial expressions.
2526 * iofsetpos.c (_IO_fsetpos): Delete unused var `pos'.
2528 Sat Dec 4 15:57:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
2530 * filedoalloc.c (_IO_file_doallocate): Change type of couldbetty
2531 to int, and type of size to _IO_size_t, instead of size_t.
2532 (Change needed for Ultrix, which incorrectly deliberately doesn't
2533 define size_t in <sys/types.h> if _POSIX_SOURCE is defined.)
2535 Thu Dec 2 22:43:03 1993 Per Bothner (bothner@kalessin.cygnus.com)
2537 * fileops.c (_IO_file_finish): Remove redundant call to _IO_un_link.
2538 * iofclose.c (_IO_fclose): Don't call fp->_jumps->__close; it's
2539 too low-level. Instead call _IO_file_close_it.
2540 * dbz/Makefile.in (rclean, distclean): Add some missing files.
2542 Wed Dec 1 13:19:14 1993 Per Bothner (bothner@kalessin.cygnus.com)
2544 * config/hpux.mt (MATH_H_INLINES): No longer define.
2545 Patch from Jeffrey A Law <law@snake.cs.utah.edu>.
2547 Fri Nov 26 13:28:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
2549 * config.shared (CINCLUDES): Define default if libg++.
2550 * iofread.c: Use _IO_sgetn.c.
2551 * iolibio.h (_IO_clearerr): Fix typo.
2552 * genops.c (_IO_seekmark): Return 0 on success.
2553 * floactconv.c (Binit): Change to static.
2554 * iofclose.c (_IO_fclose): Check if file is _IO_stdin, _IO_stdout,
2555 or _IO_stderr; if so don't try to free it. Fix from hjl@nynexst.com.
2557 * genops.c (_IO_default_sync), libioP.h: New function.
2558 * libioP.h (_IO_default_close): Use _IO_default_sync -same interface.
2560 * Makefile.in: Increase version to 0.62.
2561 * iopopen.c (_IO_proc_close): Use waitpid (available in libibarty,
2562 if needed), rather than wait. Don't block/ignore SIGINT etc,
2563 as this is counter to Posix.2.
2564 * iopopen.c: Chain open proc_files, and have the child close
2565 the ones that are open (as required by Posix.2).
2567 * fstream.h (fstreambase::rdbuf), strstream.h (strstreambase
2568 ::rdbuf): Call ios::rdbuf() instead of getting _strbuf directly.
2570 * sbscan.cc (streambuf::vscan): Comment out duplicate default arg.
2571 * floatconv.c: Recognize Alpha and i860 as little-endian.
2572 * streambuf.cc: Return two bogus value returns from void functions.
2573 * iolibio.h, iofwrite.c: Fix buffer type to (const void*).
2574 * libio.h: Predefine of struct _IO_FILE to help non-g++-compilers.
2575 * libioP.h, pfstream.cc, stdfiles.c, iovfscanf.c: Cleanup syntax junk.
2576 * stdstreams.cc: Minor simplification.
2577 * streambuf.h, builtinbuf.cc: Add non-const ios::_IO_fix_vtable()
2578 for temporary binary compatibility.
2580 * filedoalloc.c, fileops.c: Add _POSIX_SOURCE.
2581 * fileops.c, iofopen.c, iofputs.c, iostream.cc, strops.c,
2582 strstream.cc, genops.c: Add some missing #includes.
2583 * iofopen.c, iofdopen.c: Return NULL if malloc fails.
2584 * iovfscanf.c: Fix return type in strtol prototype.
2585 * fwrite.c: Remove bogus file.
2587 Wed Nov 17 14:09:42 1993 Per Bothner (bothner@cygnus.com)
2589 * builtinbuf.cc (ios::_IO_fix_vtable), streambuf.h: Make method
2590 const, to reduce problems with -Wcast-qual.
2592 Tue Nov 16 19:30:42 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2594 * config.shared (CXXINCLUDE): use ${} instead of $() for NOSTDINC
2596 Tue Nov 16 14:15:45 1993 Per Bothner (bothner@kalessin.cygnus.com)
2598 * iopopen.c (_IO_proc_close): Re-structure to avoid
2599 declarations after statements.
2600 * floatconv.c: If not __STDC__, #define DBL_MANT_DIG.
2601 * config/isc.mt (G_CONFIG_ARGS): Remove bogus spaces.
2602 Patch from David A. Avery <daa@nic.cerf.net>.
2604 Tue Nov 16 15:58:31 1993 Mark Eichin (eichin@cygnus.com)
2606 * Makefile.in (_G_config.h): explicitly use $(SHELL) to run
2607 gen-params, since we know it is a script (we're explicitly looking
2608 in ${srcdir} for it) and /bin/sh might not be good enough.
2610 Mon Nov 15 13:26:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
2612 * builtinbuf.cc: Don't depend on initialization of static
2613 variable builtinbuf::vtable, since that might happen after
2614 we need it (for a static constructor). Instead, initialize
2615 it when needed by inlining the code from get_builtin_vtable
2616 into ios::_IO_fix_vtable().
2618 * floatconv.c: Avoid using #elif, which some C compilers lack.
2619 * iogetline.c, libioP.h: Make char parameter be int, to avoid
2620 some default promotion anomalies.
2622 Fri Nov 5 11:49:46 1993 Per Bothner (bothner@kalessin.cygnus.com)
2624 * config.shared (do-clean-dvi): Remove TeX work files.
2625 * iopopen.c (extern _IO_fork): Don't use parameter type void.
2626 * strops.c (_IO_str_init_static): Clear the allocate_buffer
2627 function pointer, to mark the strfile as being static.
2628 Bug fix from Mike Raisbeck <mike@pudding.rtr.COM>.
2630 Thu Nov 4 10:44:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
2632 * filebuf.cc (filebuf:): Use sseekoff rather than seekoff
2633 (which loses if vtable pointer is NULL).
2635 * iostream.cc (ostream::operator<<(long long n)): Fix thinko.
2637 * Makefile.in (VERSION): Increase to 0.60.
2638 * Makefile.in (IO_OBJECTS): Added iopopen.o.
2639 * config.shared (DISTCLEAN): Also remove Make.pack.
2640 * config.shared (CXXINCLUDES): Add $(NOSTDINC).
2642 * config.shared (INSTALL): Fix so it ues the correct install.sh
2643 whether $srcdir is absolute or relative.
2645 * floatconv.c (DBL_MAX_10_EXP): Fix default value.
2647 Wed Nov 3 10:20:49 1993 Per Bothner (bothner@kalessin.cygnus.com)
2649 * gen-params: Make more robust to allow random junk (NeXT
2650 has spaces) before typedefs.
2652 * fileops.c (_IO_file_overflow): Reduce code duplication.
2653 * Makefile.in (IO_OBJECTS): Remove ioputs.o.
2655 * iovfscanf.c, libio.h: Extra parameter to _IO_vfscanf,
2656 for optionally setting an error indication..
2657 * iofscanf.c, ioscanf.c, iofscanf.c, iovsscanf.c: Fix calls to
2658 _IO_vfscanf to pass an extra NULL.
2659 * sbscan.cc (streambuf::vscan): If passed an extra stream,
2660 set its error state (using new _IO_vfscanf parameter.
2662 * filedoalloc.c, fileops.c, genops.c, iogetline.c, ioignore.c,
2663 libio.h, libioP.h, streambuf.cc streambuf.h, strfile.h, strops.c,
2664 strstream.cc: Replace macros (_base, _ebuf, _eback, _gptr, _egptr,
2665 _pbase, _pptr, _epptr) by field names (_IO_buf_base, _IO_buf_end,
2666 _IO_read_base, _IO_read_pre, IO_read_end, _IO_write_base,
2667 _IO_write_ptr, _IO_write_end).
2668 * libio.h: Remove the old macros (which fixes a conflict.
2670 Mon Nov 1 15:22:12 1993 Per Bothner (bothner@kalessin.cygnus.com)
2672 * iostream.cc: Use _IO_sputn instead of sputn. _IO_sputn does
2673 not require a vtable pointer, and is also slightly faster.
2675 * builtinbuf.{h,cc} (builtinbuf::setbuf): Fix return and
2678 Mon Oct 25 12:56:33 1993 Per Bothner (bothner@kalessin.cygnus.com)
2680 Kludge to make sure _IO_FILE buffers get flushed before exit.
2681 * dbz/dbzmain.c, dbz/fake.c, dbz/byteflip.c:
2682 Invoke DBZ_FINISH macro (if defined) before (normal) exits.
2683 * dbz/Makefile.in (CFLAGS): Define DBZ_FINISH to call _IO_flush_all.
2685 Sat Oct 23 22:10:53 1993 Per Bothner (bothner@kalessin.cygnus.com)
2687 * Makefile.in (VERSION): Set to 0.60 for libg++ release.
2688 * fileops.c (_IO_file_attach): Set _offset to _IO_pos_BAD.
2689 * iostream.cc (ostream::flush): Fix thinkp.
2690 * editbuf.cc, isgetsb.cc, isscan.cc, osform.cc, parsestream.cc,
2691 pfstream.cc, sbform.cc, sbscan.cc, stdstreams.cc, stream.cc:
2692 Replace #include "ioprivate.h" by #include "libioP.h" (and
2693 sometimes stdarg.h, stdlib.h and/or string.h).
2694 * ioprivate.h: Removed.
2697 Thu Oct 21 19:24:02 1993 Per Bothner (bothner@kalessin.cygnus.com)
2699 * PlotFile.h, SFile.h, editbuf.cc, editbuf.h, filebuf.cc,
2700 fstream.cc, fstream.h, indstream.cc, indstream.h, iomanip.cc,
2701 iomanip.h, ioprivate.h, iostream.cc, iostream.h, isgetline.cc,
2702 isgetsb.cc, parsestream.cc, parsestream.h, pfstream.cc,
2703 pfstream.h, procbuf.cc, procbuf.h, stdiostream.cc, stdiostream.h,
2704 stdstreams.cc, streambuf.cc, streambuf.h, strstream.cc,
2705 strstream.h: Remove old (duplicate) copyright notices.
2707 * iostream.cc: Fix calls to sync() to be safe in the presence
2708 of vtable-less streambufs.
2710 Wed Oct 20 15:22:04 1993 Per Bothner (bothner@kalessin.cygnus.com)
2712 * streambuf.h (streambuf::underflow, streambuf::overflow):
2713 Don't make virtual functions pure.
2714 * streambuf.cc (streambuf::underflow, streambuf::overflow):
2715 Default definitions (return EOF).
2716 * fstream.h: Add new (int fd, char* buf, int len) constructors.
2717 These are deprecated, but added for AT&T compatibility.
2718 * fstream.cc fstreambase::fstreambase(int fd, char *p, int l): New.
2720 Thu Oct 14 14:57:01 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2722 * configure.in: use 'mv -f' instead of 'mv'
2724 Tue Oct 12 05:01:44 1993 Mike Stump (mrs@cygnus.com)
2726 * floatconv.c: Fix typo, change __STDC to __STDC__.
2728 Mon Oct 11 17:03:12 1993 Per Bothner (bothner@kalessin.cygnus.com)
2730 * cleanup.c: It should be #if _G_HAVE_ATEXIT, not #ifdef.
2732 * floatconv.c, iostrerror.c, iovfprintf.c, iovfscanf.c, libioP.h:
2733 Bunch of fixes to allow use of non-ANSI (K&R) C compilers.
2735 * Makefile.in (iostream.list): Use CC=$(CXX) to force use of gcc.
2738 Fri Oct 8 16:19:58 1993 Per Bothner (bothner@kalessin.cygnus.com)
2740 * Makefile.in: Move ioungetc.o from STDIO_WRAP_OBJECTS to
2741 IO_OBJECTS (since it is needed for iovfscanf.c).
2742 * iostrerror.c: Add declaration of strerror.
2744 Thu Oct 7 12:02:28 1993 Per Bothner (bothner@kalessin.cygnus.com)
2746 * cleanup.c: New file, to cause flushing at exit.
2747 * filedoalloc.c: Cause flushing on exit.
2748 * Makefile.in (OSPRIM_OBJECTS): Add cleanup.o.
2749 * gen-params: Check for atexit.
2751 Tue Oct 5 19:11:14 1993 Mike Stump (mrs@cygnus.com)
2753 * ioperror.c (_IO_strerror): Add missing ()s in _PARAMS usage.
2755 Tue Oct 5 10:33:37 1993 Per Bothner (bothner@kalessin.cygnus.com)
2757 * iofprintf.c, iofscanf.c, ioprintf.c, ioscanf.c, iosprintf.c,
2758 iosscanf.c: Remove bogus semi-colon after va_dcl.
2759 * ioperror.c: Fix typos in declaration.
2761 Mon Oct 4 17:12:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
2763 * configure.in (CLEAN): Define (as _G_config.h *.a).
2765 * fileops.c (_IO_file_read): Don't assume EINTR is defined.
2766 * iosetbuf.c: Replace by generalized ...
2767 * iosetbuffer.c: ... variant, derived from BSD.
2768 * Makefile.in (STDIO_WRAP_OBJECTS): Change correspondingly.
2769 * iosetvbuf.c (iosetvbuf): Minor ANSI tweak.
2770 * iostdio.h (setbuf, setlinebuf): New #defines.
2771 * iolibio.h (_IO_setbuf, _IO_setlinebuf): (Re-)define as macros.
2772 * Makefile.in (LIBIO_OBJECTS): New macro.
2774 Tue Sep 28 14:15:52 1993 Per Bothner (bothner@kalessin.cygnus.com)
2776 * libioP.h (_IO_proc_open, _IO_proc_close): Add missing return types.
2777 * procbuf.cc: Belated fixes.
2779 Mon Sep 27 14:04:47 1993 Per Bothner (bothner@kalessin.cygnus.com)
2781 * Makefile.in: List new files. Add STDIO_WRAP_OBJECTS macro.
2782 * floatconv.c (d2b): Use Exp_msk11 instead of Exp_msk1.
2783 * iofgetpos.c (_IO_fgetpos), iofsetpos.c (_IO_fsetpos): Clean up.
2784 * iolibio.h: New file. Declarations of _IO_foo, for most foo
2785 where foo is a stdio function. (Remove these from libio.h.)
2786 * iostream.h (istream::istreambuf, ostream::ostreambuf): Move
2787 obsolete functions inside #ifdef _STREAM_COMPAT.
2788 * libio.h, libioP.h, streambuf.h, parsestream.h, stdiostream.h:
2789 Use _IO_fpos_t rather than _IO_pos_t.
2790 * iopopen.c: New file type, for pipe (popen-like) streams.
2791 * procbuf.cc: Now just a C++ wrapper for the files in iopopen.c.
2792 * streambuf.h (ios::unsetf): Return complete old value of flags.
2793 * iogets.c (_IO_gets(), ioungetc.c (_IO_ungetc), ioperror.c
2794 (_IO_perror), iostrerror.c (_IO_strerror): New files and
2795 functions, for stdio implementation.
2796 * iostdio.h: Add declarations for various recently-added functions.
2798 Sun Sep 12 14:24:55 1993 Per Bothner (bothner@kalessin.cygnus.com)
2800 * streambuf.h (ios::showpos):: Fix typo.
2802 Fri Aug 27 12:05:47 1993 Per Bothner (bothner@kalessin.cygnus.com)
2804 * iopadn.c (_IO_padn): Change to return count of chars written.
2805 * outfloat.c, iovfprintf.c: Change for new _IO_padn interface.
2806 * iostream.cc (ostream::operator<<): Make sure to set badbit
2807 on a failure (many places). Use _IO_padn more.
2808 * iostream.cc (ostream& ostream::operator<<(const void *p): Move to
2809 * osform.cc: ... here, to reduce linking-in-the-world syndrome.
2810 * osform.cc: Use rdbuf(), instead of _strbuf directly.
2812 * genops.c (_IO_sgetn), libio.h: New function.
2813 * streambuf.h (streambuf.h::sgetn): Use _IO_sgetn.
2814 * SFile.cc (SFile::operator[]): Use sseekoff, not seekoff.
2816 Thu Aug 26 10:16:31 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2818 * config.shared (SUBDIRS): only recurse if the directory is configured
2820 Wed Aug 25 12:56:12 1993 Per Bothner (bothner@kalessin.cygnus.com)
2822 * config/{hpux.mt, isc.mt, sco4.mt}:
2823 Moved from ../libg++/config (since they affect _G_config.h).
2824 * configure.in: Set target_make_frag to one of the above files.
2826 Fri Aug 20 00:53:14 1993 Per Bothner (bothner@kalessin.cygnus.com)
2828 * iofopen.c (iofopen): Fix type passed to _IO_un_link().
2829 * Makefile.in (_G_config.h): Pass $CC (not $CXX) as CC.
2831 * configure.in (configdirs): Add dbz and stdio.
2832 * fileops.c (_IO_file_seekoff): Convert more old functionality.
2833 * iofdopen.c: Use mode parameter to set _flags.
2834 * iofscanf.c, ioputs.c, ioscanf.c, iosprintf.c: New files.
2835 * Makefile.in (IO_OBJECTS): Added new objects.
2836 * iostdio.h: Add feof. fscanf, puts, sprintf, vsprintf.
2837 * libio.h: Add _IO_vprintf macro.
2838 * iofopen.c: Invoke _IO_un_link if failure.
2839 * iovsprintf.c: Write terminating NUL.
2841 * libioP.h: Add COERCE_FILE macro (by default does nothing).
2842 * iofclose.c, iofflush.c, iofgets.c, iofprintf.c, iofputs.c,
2843 iofread.c, ioftell.c, iofwrite.c, iosetbuf.c, iosetvbuf.c:
2844 Invoke COERCE_FILE macro.
2845 * ioftell.c: Use _IO_seekoff.
2847 Wed Aug 18 22:49:56 1993 Per Bothner (bothner@kalessin.cygnus.com)
2849 * sbform.cc (streambuf::form), sbscan.cc (streambuf::scan):
2850 Remove cast to _IO_va_list. (Loses if array type.)
2852 * libio.h: Handle _IO_va_list for systems that need <stdarg.h>.
2853 * floatconv.h: Fix typo (reported by H.J.Lu).
2855 Wed Aug 18 19:34:04 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2857 * configure.in (INSTALLDIR): handle native vs. cross case
2859 * Makefile.in (install): don't use $TARGETLIB, set INSTALLDIR to
2862 Wed Aug 18 12:10:03 1993 Per Bothner (bothner@kalessin.cygnus.com)
2864 * Makefile.in: Rename iostream-files to iostream.list.
2865 * configure.in: Add iostream.list to MOSTLYCLEAN.
2867 Tue Aug 17 18:56:59 1993 Per Bothner (bothner@kalessin.cygnus.com)
2869 * Makefile.in: Depend on _G_config.h where appropriate.
2870 * config.shared (CXXINCLUDES): If doing libg++, search ../libio.
2872 Tue Aug 17 17:34:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
2874 New directory. Based on old libg++/iostream code,
2875 but extensively re-written.