1 2000-10-18 Jakub Jelinek <jakub@redhat.com>
3 * iostream.cc (ends): Release the acquired lock.
6 2000-10-16 Jakub Jelinek <jakub@redhat.com>
8 * iostream.cc (ostream::operator<<(double n)) [__GLIBC_MINOR__ >= 2]:
9 Initialize new fields wide and i18n of struct printf_info.
10 (ostream::operator<<(long double n)) [__GLIBC_MINOR__ >= 2]:
13 2000-09-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15 * stdstreams.cc: Include <libio.h>, not "libio.h".
16 * iolibio.h: Likewise.
17 (_IO_pos_BAD): Use _IO_off_t instead of _IO_fpos_t.
18 * libio.h (_IO_USER_LOCK): Define.
20 2000-08-18 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
22 * editbuf.h (edit_streambuf): Fix syntax error in
25 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
27 * configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
28 Honor --disable-threads.
30 Sun Jul 23 15:16:23 2000 Krister Walfridsson <cato@df.lth.se>
32 * gen-params: Added trailing space for 'long long int' regexp.
34 2000-06-28 Alex Samuel <samuel@codesourcery.com>
36 * libioP.h (VTABLE_LABEL): Update for new vtable mangling.
37 * stdstrbufs.cc (filebuf_vtable): Likewise.
38 (stdiobuf_vtable): Likewise.
40 2000-06-04 Mark Mitchell <mark@codesourcery.com>
42 * libioP.h: Handle new ABI mangling.
43 * stdstrbufs.cc: Likewise.
45 2000-05-24 Ulrich Drepper <drepper@redhat.com>
47 * iostream.cc (endl): Fix bug in last change.
48 (ends): Make same change as for endl.
50 Tue May 23 22:56:56 2000 Jerry Quinn
52 * iostream.cc (endl): Verify stream can accept characters
53 before writing its eol.
55 2000-05-15 David Edelsohn <edelsohn@gnu.org>
57 * config.shared: Change "pic" to depend on $(PICFLAG), not
60 2000-05-11 Robert Lipe <robertlipe@usa.net>
62 * configure.in: Remove special casing for sco3.2v[45].
63 * config/sco4.mt: Deleted.
65 2000-05-10 Jakub Jelinek <jakub@redhat.com>
67 * configure.in: Use mh-sparcpic for sparc*-*-*.
69 2000-04-02 Zack Weinberg <zack@wolery.cumb.org>
71 * configure.in: Indent the # of #include_next one space.
73 2000-03-29 Jason Merrill <jason@casey.cygnus.com>
75 * configure.in: -linux-gnu*, not -linux-gnu.
77 2000-01-28 Martin v. Löwis <loewis@informatik.hu-berlin.de>
79 * fstream.h (ifstream::ifstream): Add ios::in to mode.
80 (ifstream::open): Likewise.
81 (ofstream::ofstream): Add ios::out to mode.
82 (ofstream::open): Likewise.
84 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
86 * dbz/dbz.c, dbz/dbzmain.c: Include stdlib.h. Don't declare
87 malloc, calloc, free, atol, atoi, or errno. (errno.h was
88 already being included.)
90 2000-01-12 Fred Fish <fnf@be.com>
92 * configure.in (*-*-beos*): Recognize.
93 * config/beos.mt: New file.
95 1999-12-22 Jakub Jelinek <jakub@redhat.com>
97 * libio.h (_IO_cookie_io_functions_t): Use _IO_off_t instead of
99 (_IO_seekoff, _IO_seekpos): Likewise. Use _IO_off64_t instead of
101 * libioP.h (_IO_seekoff_t, _IO_seekpos_t, _IO_seek_t): Likewise.
102 (_IO_seekoff, _IO_seekpos): Likewise.
103 (_IO_default_seekoff, _IO_default_seekpos): Likewise.
104 (_IO_default_seek): Likewise.
105 (_IO_file_seekoff, _IO_file_seek, _IO_str_seekoff): Likewise.
106 * streambuf.h (streampos): Typedef to _IO_off_t resp. _IO_off64_t.
107 * parsestream.h (class parsebuf::pos_at_line_start): Change type
110 1999-12-21 Martin v. Löwis <loewis@informatik.hu-berlin.de>
112 * filebuf.cc (open): Support ios::ate if _G_HAVE_IO_FILE_OPEN.
113 Remove seek for ios::app if not.
115 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
117 * filedoalloc.c, floatio.h, iovfprintf.c, iovfscanf.c: Remove
118 advertising clause from BSD license, pursuant with
120 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
122 1999-12-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
124 * strstream.h (strstreambuf::streambuf): Rename parameters to
125 avoid shadow warning.
126 * stream.h (WS): Likewise.
128 Thu Sep 30 01:08:04 1999 Jeffrey A Law (law@cygnus.com)
130 * editbuf.cc, parsestream.cc, pfstream.cc: Include string.h.
132 Mon Sep 13 06:30:14 1999 Mark Klein <mklein@dis.com>
134 * config/mpeix.mt: New for MPEiX port.
136 Sat Sep 4 18:00:00 PDT 1999 Mark Klein (mklein@dis.com)
138 * configure.in: Add mpeix.mt make fragment.
140 1999-08-08 Alexandre Oliva <oliva@dcc.unicamp.br>
142 * streambuf.h (ios::streamsize): Declare as _IO_ssize_t, as in the
145 1999-08-07 Andreas Schwab <schwab@suse.de>
147 * iostream.cc: Add missing calls to isfx and setup a cleanup
148 region for the locked stream.
149 * iostream.h: Likewise.
150 * isgetline.cc: Likewise.
151 * isgetsb.cc: Likewise.
152 * isscan.cc: Likewise.
154 Mon Jun 28 09:25:23 1999 Hans-Peter Nilsson <hp@bitrange.com>
156 * configure.in (post-target): Use "$(topsrcdir)", not "$(srcdir)/..".
158 Wed Jun 2 00:19:53 1999 Eric Raskin (ehr@listworks.com)
160 * configure.in: Added DG/UX target fragment
162 Sun May 30 14:25:02 1999 Eric Raskin (ehr@listworks.com)
164 * config/dgux.mt: New file for DG/UX configuration of libio
166 1999-05-20 Angela Marie Thomas <angela@cygnus.com>
168 * configure.in: Test for ${compiler_name}.exe as well.
170 1999-05-17 Mark Kettenis <kettenis@gnu.org>
172 * libioP.h: Only include libc-lock.h if _IO_MTSAFE_IO is defined.
174 1999-05-14 Ulrich Drepper <drepper@cygnus.com>
176 * configure.in: Recognize target *vxworks* and add fragment vxworks.mt.
177 * config/vxworks.mt: New file.
178 * gen-params: Let configure override HAVE_PRINTF_FP.
180 1999-05-12 Jason Merrill <jason@yorick.cygnus.com>
182 * configure.in (compiler_name): Don't do the skip-this-dir thing
183 if we're reconfiguring.
185 1999-04-29 Nathan Sidwell <nathan@acm.org>
187 * streambuf.h (ios::~ios): Use operator delete[] to remove _arrays.
189 Mon Apr 12 19:22:44 1999 Mumit Khan <khan@xraylith.wisc.edu>
191 * filedoalloc.c (_POSIX_SOURCE): Remove definition.
192 * fileops.c (_POSIX_SOURCE): Likewise.
193 * iopopen.c (_POSIX_SOURCE): Likewise.
194 * procbuf.cc (_POSIX_SOURCE): Likewise.
195 * libioP.h (_POSIX_SOURCE): And define it here.
196 * stdiostream.cc: Include libioP.h before others.
198 Fri Apr 2 15:11:58 1999 H.J. Lu (hjl@gnu.org)
200 * libio/configure.in (gxx_include_dir): Handle it.
201 * libio/Makefile.in: Likewise.
203 Wed Mar 24 22:36:45 1999 Mumit Khan <khan@xraylith.wisc.edu>
205 * configure.in (EXEEXT): Define.
206 (compiler_name): Use.
208 1999-03-24 Alexandre Oliva <oliva@dcc.unicamp.br>
210 * gen-params (CONFIG_NM): `test ... -o ...' is not portable.
212 Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
214 * configure.in: Cleanup and add mh-*pic handling for arm, powerpc
216 Fri Mar 5 01:15:15 1999 H.J. Lu (hjl@gnu.org)
218 * config/linuxlibc1.mt (MT_CFLAGS): Add -D_G_STDIO_USES_LIBIO
219 -D_G_HAVE_WEAK_SYMBOL.
221 * genops.c: Add the proper weak alias if _G_STDIO_USES_LIBIO
222 and _G_HAVE_WEAK_SYMBOL are defined.
223 * iofclose.c: Likewise.
224 * iofeof.c: Likewise.
225 * ioferror.c: Likewise.
226 * iogetc.c: Likewise.
227 * ioputc.c: Likewise.
228 * iovsprintf.c: Likewise.
229 * iovsscanf.c: Likewise.
231 Sun Feb 28 22:39:17 1999 Geoffrey Noer <noer@cygnus.com>
233 * configure.in: Check cygwin*, not cygwin32*.
235 Wed Feb 10 09:25:48 1999 Mumit Khan <khan@xraylith.wisc.edu>
237 * gen-params (VTABLE_LABEL_PREFIX): Handle windows32.
239 Wed Feb 3 22:05:41 1999 H.J. Lu (hjl@gnu.org)
240 Jeffrey A Law (law@cygnus.com)
242 * Makefile.in (iostream.list): Remove dependency on
244 ($(LIBIOSTREAM_DEP)): Depend on stamp-picdir.
245 ($(LIBIO_FILES)): Similarly.
247 * config.shared (all): Make $(PICDIR) concurrent.
249 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
251 * configure.in (compiler_name): Add check to detect if this
252 language's compiler has been built.
254 1998-10-12 Alexandre Oliva <oliva@dcc.unicamp.br>
256 * config.shared (depend.new): Delete libc-lock.h from
257 dependencies, and fix _G_config.h -> $(_G_CONFIG_H) rule.
260 Sun Oct 11 01:51:42 1998 Jeffrey A Law (law@cygnus.com)
262 * config.shared (depend.new): Fix typo.
265 1998-09-09 Manfred Hollstein <manfred@s-direktnet.de>
267 * configure.in (INSTALLDIR): Fix comment about changing INSTALLDIR's
268 value; don't change its value if --enable-version-specific-runtime-libs
271 Wed Sep 2 21:05:39 1998 H.J. Lu (hjl@gnu.org)
273 * configure.in: Fix INSTALLDIR replacement for cross-compile.
275 Sun Aug 30 22:27:02 1998 Lutz Wohlrab <lutz.wohlrab@informatik.tu-chemnitz.de>
277 * dbz/Makefile.in: Avoid assumptions about "tr" behaves when
278 LANG is set to something other than English.
280 Sun Aug 30 22:17:00 1998 H.J. Lu (hjl@gnu.org)
282 * config.shared: Set libsubdir.
284 1998-08-25 14:34 Ulrich Drepper <drepper@cygnus.com>
286 * libio/iogetline.c (_IO_getline_info): Don't read anything for
287 N == 0. Patch by HJ Lu.
289 1998-08-23 Mark Mitchell <mark@markmitchell.com>
291 * iomanip.h: Use __extension__ for `extern' explicit template
294 1998-08-17 Ulrich Drepper <drepper@cygnus.com>
296 * strfile.h: Define __PMT if not already defined.
298 1998-08-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
300 * libioP.h: Use __PMT in typedefs.
301 * strfile.h: Likewise.
303 1998-06-29 Ulrich Drepper <drepper@cygnus.com>
305 * libio.h: Rewrite __PMT change so that it works with platforms
306 defining __P but not __PMT.
308 * libio.h (__PMT): New macro. Defined like __P. Use is for
311 1998-06-27 Manfred Hollstein <manfred@s-direktnet.de>
313 * Makefile.in (install): Remove superfluous /include.
315 1998-06-26 Manfred Hollstein <manfred@s-direktnet.de>
317 * config.shared (FLAGS_TO_PASS): Add gcc_version_trigger.
318 (Makefile): Add dependency upon $(gcc_version_trigger).
320 1998-06-24 Manfred Hollstein <manfred@s-direktnet.de>
322 * Makefile.in (install): Install _G_config.h depending on new flag
323 --enable-version-specific-runtime-libs.
324 * config/linux.mt (gxx_include_dir): Remove definition here as we use
325 gcc's default anyway.
327 1998-06-24 Manfred Hollstein <manfred@s-direktnet.de>
329 * config.shared (FLAGS_TO_PASS): Add gcc_version.
331 1998-06-19 Manfred Hollstein <manfred@s-direktnet.de>
333 * config.shared (FLAGS_TO_PASS): Add libsubdir.
335 1998-06-07 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
337 * genops.c (__underflow): Read character from read pointer as unsigned.
340 1998-05-22 Ulrich Drepper <drepper@cygnus.com>
342 * strops.c (_IO_str_underflow): Read newly available character
343 from buffer as unsigned.
345 Sun Apr 19 22:13:36 1998 H.J. Lu (hjl@gnu.org)
347 * isgetline.cc (istream::get): Fix a typo.
349 Thu Mar 5 09:23:28 1998 Manfred Hollstein <manfred@s-direktnet.de>
351 * configure.in: Make locating frag files failsafe even for the
352 special case if configuring and building in srcdir.
354 1998-02-24 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
356 Changes for _G_IO_IO_FILE_VERSION == 0x20001:
357 * libioP.h (_IO_showmanyc_t, _IO_SHOWMANYC, _IO_imbue_t,
358 _IO_IMBUE): New definitions.
359 (struct _IO_jump_t): Add __showmanyc and __imbue fields.
360 (_IO_file_fopen): Add new fourth argument.
361 * filebuf.cc (filebuf::open): Pass new fourth argument to
363 * iolibio.h (_IO_freopen): Likewise.
364 * streambuf.cc (streambuf::showmanyc, streambuf::imbue): New
366 * streambuf.h (_IO_wchar_t): Define to _G_wchar_t.
367 (ios::fill): Remove casts.
368 (struct streambuf): Add showmanyc and imbue members.
370 * iostream.cc (ostream::operator<<(double n)) [__GLIBC_MINOR__ >=
371 1]: Initialize new fields is_char of struct printf_info.
372 (ostream::operator<<(long double n)) [__GLIBC_MINOR__ >= 1]:
375 Sun Feb 22 17:24:53 1998 Jeffrey A Law (law@cygnus.com)
377 * config.shared: Bring back changes from Ian and Fred that were
378 accidentally clobbered. Should eliminate the need for Dave's
381 Tue Feb 17 21:56:25 1998 H.J. Lu (hjl@gnu.org)
383 * config/linux.mt (IO_OBJECTS): Add iogetline.o.
384 * config/linuxlibc1.mt: Ditto.
386 * iogetline.c (_IO_getline_info): Renamed from _IO_getline.
387 (_IO_getline): Just call _IO_getline_info.
389 * isgetline.cc (istream::getline, istream::get, _sb_readline):
390 Call _IO_getline_info instead of _IO_getline and get the EOF
392 * sbgetline.cc (streambuf::sgetline): Ditto.
394 * libioP.h (_IO_getline_info): New declaration.
396 * iogetline.c (_IO_getline): Handle the case when there is no
399 Fri Feb 13 00:57:20 1998 Krister Walfridsson (cato@df.lth.se)
401 * fileops.c: #include <unistd.h>.
402 * ioprims.c: Likewise.
404 1998-02-10 Mark Mitchell <mmitchell@usa.net>
406 * iostream.cc (ostream::operator<<(long double)): Don't use
407 labeled initializers.
409 Fri Feb 6 01:35:56 1998 Manfred Hollstein <manfred@s-direktnet.de>
411 * config.shared (FLAGS_TO_PASS): Don't emit PICFLAG.
412 (.c.o): Check value of enable_shared, not PICFLAG.
415 (stamp-picdir): Dito.
417 Thu Feb 5 17:41:26 1998 Dave Brolley <brolley@cygnus.com>
419 * config.shared (LIBS): Change to -L../../libstdc++ (was -L../libstdc++)
420 if ${DOING_GPERF} is true.
422 1998-01-20 Andreas Schwab (schwab@issan.informatik.uni-dortmund.de)
424 * iostream.cc (istream::operator>>(long double&))
425 [!_G_HAVE_LONG_DOUBLE_IO]: Scan value into separate variable, in
426 case long double is bigger than double.
427 (ostream::operator<<(double)) [_G_HAVE_PRINTF_FP]: Fix order of
428 initializers of struct printf_info to match declaration order,
429 to work around g++ bug.
430 (ostream::operator<<(long double)) [_G_HAVE_PRINTF_FP]: Likewise.
432 * gen-params: Add missing quotes. Avoid useless use of command
435 Sun Feb 1 13:29:47 1998 H.J. Lu (hjl@gnu.org)
437 * filebuf.cc (filebuf::open): Call _IO_file_open if
438 _G_HAVE_IO_FILE_OPEN is 1.
440 * libio.h (_IO_fpos64_t, _IO_off64_t): Defined if
441 _G_IO_IO_FILE_VERSION == 0x20001.
443 * libioP.h (_IO_file_open): New declaration.
445 * libio.h (_IO_FILE, _IO_stdin_, _IO_stdout_, _IO_stderr_,
446 _IO_seekoff, _IO_seekpos): Add support for libio in glibc 2.1.
447 * libioP.h (_IO_seekoff_t, _IO_seekpos_t, _IO_seek_t,
448 _IO_seekoff, _IO_seekpos, _IO_default_seekoff,
449 _IO_default_seekpos, _IO_default_seek, _IO_file_seekoff,
450 _IO_file_seek, _IO_str_seekoff, _IO_pos_BAD, _IO_pos_as_off,
452 * streambuf.h (streamoff, streampos): Ditto.
454 * gen-params (__extension__): Use only if gcc version >= 2.8.
456 Sun Feb 1 13:08:18 1998 Krister Walfridsson (cato@df.lth.se)
458 * dbz/dbz.c (putconf): Handle systems which use "long long" as type
460 * dbz/dbzmain.c (mkfiles): Likewise.
462 Wed Jan 28 10:27:11 1998 Manfred Hollstein <manfred@s-direktnet.de>
464 * config.shared (FLAGS_TO_PASS): Add gxx_include_dir.
466 * stdio/configure.in, tests/configure.in: Update with yesterday's
467 toplevel configure.in changes.
468 * testsuite/configure.in: Likewise.
470 * config.shared: Fix typo in yesterday's changes.
472 Tue Jan 27 23:26:07 1998 Manfred Hollstein <manfred@s-direktnet.de>
474 * config.shared: Emit everything which needs to be re-definable
475 via file descriptor 1; the generic stuff is emitted using redirection
478 * configure.in (package_makefile_rules_frag): New variable
479 which is used in the call to config.shared; redirect file descriptor 2
480 to ${package_makefile_rules_frag}.
482 Tue Jan 27 10:35:22 1998 H.J. Lu (hjl@gnu.org)
484 * configure.in (topsrcdir): New.
485 (CHECK_SUBDIRS, configdirs): Check ${topsrcdir}/gcc instead.
486 (config-ml.in): Use ${topsrcdir}/config-ml.in.
488 * tests/configure.in (topsrcdir): New.
489 (CHECK): Check ${topsrcdir}/gcc instead.
491 Fri Jan 16 00:48:03 1998 Manfred Hollstein <manfred@lts.sel.alcatel.de>
493 * config.shared (FLAGS_TO_PASS): Add SHELL.
495 Thu Jan 15 00:21:58 1998 Ian Lance Taylor <ian@cygnus.com>
497 * configure.in: For *-*-cygwin32*, add a -I for winsup to both
498 XCINCLUDES and XCXXINCLUDES.
499 * config.shared: Use ${host_includes} when setting CXXINCLUDES in
500 the DOING_LIBGXX case.
501 * Makefile.in (_G_config.h): Pass $(CINCLUDES) in CC and
502 $(CXXINCLUDES) in CXX when running gen-params.
504 Tue Jan 13 21:32:08 1998 H.J. Lu (hjl@gnu.org)
506 * configure.in (CHECK_SUBDIRS): Set to testsuite only if
507 ${srcdir}/../gcc exists.
508 (configdirs): Include testsuite only if ${srcdir}/../gcc exists.
510 * tests/Makefile.in (check): Depend on $(CHECK).
512 * tests/configure.in (CHECK): Set to "check-iostream
513 check-stdio" if ${srcdir}/../../gcc doesn't exists.
515 Thu Jan 8 18:09:03 1998 Fred Fish <fnf@cygnus.com>
517 * config.shared (THIS_FILE): Really found via TOLIBIO instead
518 of TOLIBCXX, which is empty when configuring gperf.
519 (LIBS): When linking gperf, find libstdc++ relative to TO_TOPDIR
520 instead of hardcoded "../".
522 1997-12-12 Brendan Kehoe <brendan@lisa.cygnus.com>
524 Don't make gperf depend upon libg++.
525 * config.shared (TOLIBGCXX) [DOING_GPERF]: Delete.
526 (LIBS) [DOING_GPERF]: Make it just `-L../libstdc++ -lstdc++'.
528 Thu Dec 11 11:20:59 1997 H.J. Lu (hjl@gnu.org)
530 * configure.in (target frags): Add *-linux-gnu.
532 Fri Dec 5 16:22:15 1997 H.J. Lu (hjl@gnu.org)
534 * streambuf.cc (streambuf::~streambuf): Don't delete _lock
535 for _IO_stdin/_IO_stdout/_IO_stderr.
537 Thu Nov 27 01:32:43 1997 Jeffrey A Law (law@cygnus.com)
539 * Makefile.in (install): Change gxx_includedir to gcc_include_dir.
540 * config.shared (gxx_includedir): Remove default definition.
541 * config/linux.mt: Change gxx_includedir to gxx_include_dir.
542 * config/linuxaxp1.mt: Likewise.
544 Wed Nov 26 16:08:50 1997 Richard Henderson (rth@cygnus.com)
546 * configure.in (target frags): Add powerpc*-linux-gnulibc1.
547 (stdio-lock): Similarly.
549 * configure.in (target frags): Add alpha*-linux-gnulibc1.
550 (pic frags): Its alpha*- not alpha-.
551 (stdio-lock): Kill everything. Add alpha*-linux-gnulibc1.
552 * libio.h: Check __GLIBC_MINOR__ to find stdio-lock.h. If not
553 _IO_MTSAFE_IO & GLIBC, make sure the lock pointer is still there.
554 * libioP.h: Check __GLIBC_MINOR__ to find libc-lock.h.
556 * config/linuxaxp1-libc-lock.h: New file.
557 * config/linuxaxp1-stdio-lock.h: New file.
558 * config/linuxaxp1.mt: New file.
560 * gen-params (va_list): Check for and use __gnuc_va_list.
561 (NULL): Work around some linux kernel headers and redefine NULL.
563 Mon Nov 24 17:04:18 1997 Michael Meissner <meissner@cygnus.com>
565 * stdiostream.cc (sys_read): Declare ch with int type, rather than
568 Tue Nov 18 09:53:58 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
570 * stdstrbufs.cc (DEF_STDFILE): Use STD_VTABLE.
572 Tue Nov 11 01:40:17 1997 Oleg Krivosheev <kriol@fnal.gov>
574 * iomanip.h: Fix guiding decls.
576 1997-11-05 Brendan Kehoe <brendan@lisa.cygnus.com>
578 * libio.h (__P): Name its arg `p' instead of `params'.
579 Avoids problems with an unchanged Solaris math.h header.
581 Wed Oct 29 23:01:47 1997 Jason Merrill <jason@yorick.cygnus.com>
583 * gen-params: Override NULL.
585 1997-10-27 03:53 Ulrich Drepper <drepper@cygnus.com>
587 * stdio-lock.h: Removed. Was never needed.
589 Wed Oct 22 19:19:32 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
591 * libio.h (_IO_LOCK_T): Handle glibc 2 when _IO_MTSAFE_IO is
594 * iovsscanf.c (vsscanf): Make it weak alias of _IO_vsscanf if
595 __linux__ is defined instead of __ELF__
597 * config/linuxlibc1.mt (USER_INCLUDES): Add libio.h.
599 1997-10-15 Ulrich Drepper <drepper@cygnus.com>
601 * configure.in: Create compatibility code in bits/libc-lock.h file.
603 Thu Oct 9 07:08:41 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
605 * libio.h (_IO_LOCK_T): Handle glibc 2 when _IO_MTSAFE_IO is
608 * filedoalloc.c (_IO_file_doallocate): Don't call
609 _IO_cleanup_registration_needed if __linux__ is defined.
611 * iofclose.c (fclose): Make it weak alias of _IO_fclose if
614 * iovsprintf.c (vsprintf): Make it weak alias of _IO_vsprintf
615 if __ELF__ is defined.
617 * iovsscanf.c (vsscanf): Make it weak alias of _IO_vsscanf if
620 * config/linuxlibc1.mt (MT_CFLAGS): Defined as -D_G_HAVE_MMAP.
621 (IO_OBJECTS): Add filedoalloc.o fileops.o genops.o iofclose.o
622 iovsprintf.o iovsscanf.o strops.o.
624 Fri Oct 3 10:13:13 1997 Jason Merrill <jason@yorick.cygnus.com>
626 * iostream.cc, libio.h: Convert other uses of #ifdef
627 _G_HAVE_PRINTF_FP to #if.
629 1997-10-02 Brendan Kehoe <brendan@lisa.cygnus.com>
631 * iostream.cc (operator<<): Use `#if _G_HAVE_PRINTF_FP', not ifdef.
633 Thu Oct 2 10:36:49 1997 Jason Merrill <jason@yorick.cygnus.com>
635 * gen-params: Fix __printf_fp test.
636 * config/linuxlibc1.mt (gxx_includedir): Don't define.
638 Thu Oct 2 10:36:26 1997 Ulrich Drepper <drepper@rtl.cygnus.com>
640 * config/linuxlibc1.mt (_G_CONFIG_H): Don't define.
641 * gen-params: Add test for __printf_fp.
643 Sun Sep 28 12:09:04 1997 Mark Mitchell <mmitchell@usa.net>
645 * iomanip.h: Use new friend <> syntax.
647 Sun Sep 28 12:04:21 1997 Jason Merrill <jason@yorick.cygnus.com>
649 * libio.h: Don't use _IO_LOCK_T if it's not defined.
651 Fri Sep 26 20:56:41 1997
653 Based on a patch by H.J. Lu (hjl@gnu.ai.mit.edu).
655 * Makefile.in (STDIO_OBJECTS): New. Defined as stdfiles.o.
656 (LIBIO_OBJECTS): Add $(STDIO_OBJECTS).
657 (PICFLAG): New, empty. moved to here from config.shared.
659 * config.shared (DISTCLEAN): Add target-mkfrag.
662 * configure.in (*-linux-gnulibc1): Remove warning.
663 (*-linux-gnu): Use linux.mt mtsafe.mt.
664 (alpha-*-linux*): Use mh-elfalphapic.
666 * gen-params (_G_ullong): Also check unsigned long long int.
667 (_G_llong): Also check long long int.
669 * libio.h (_IO_lock_t): Add support for the Linux libc 5.
670 (_IO_peekc): Defined as _IO_peekc_unlocked if _IO_MTSAFE_IO
673 * iostream.cc (__cvt_double): Fix a typo in declaration.
674 (info): Use expr != 0 to initialize the bit fields. Don't
675 initialize "extra" for the Linux libc 5.
677 * streambuf.h (_G_NEED_STDARG_H): Changed from _IO_NEED_STDARG_H.
679 * config/linux.mt (STDIO_OBJECTS): New, empty.
680 (MT_CFLAGS): Removed.
682 * config/linuxlibc1.mt: Rewrite. it's identical to linux.mt but
683 IO_OBJECTS mentions files not in early libc5 versions.
685 * config/mtsafe.mt: New.
687 * dbz/Makefile.in (check): Support make -j.
689 * tests/tFile.cc (tempfile): Fix a typo.
691 1997-09-19 11:52 Jim Wilson <wilson@cygnus.com>
693 * Makefile.in (LIBIO_OBJECTS): Depend on _G_CONFIG_H.
695 1997-09-17 04:08 Ulrich Drepper <drepper@cygnus.com>
697 * iostream.cc: Add forward declaration for __cvt_double.
698 * libio.h: Define _IO_USE_DTOA is _G_HAVE_PRINTF_FP is not defined.
699 * strops.c (_IO_str_count): Correct last change.
701 1997-09-17 02:50 Ulrich Drepper <drepper@cygnus.com>
703 * libioP.h: Define __set_errno if not already defined.
705 1997-09-15 02:37 Ulrich Drepper <drepper@cygnus.com>
707 * config/linux.mt: Rewrite for use with glibc 2.
708 * config/linuxlibc1.mt: Old content of linux.mt, fir libc4 and
711 * config.shared (COMPILE.c): Allow new flags in MT_CFLAGS be
713 (COMPILE.cc): Likewise.
715 * configure.in (*-linux*): Remove goal. We now have...
716 (*-linux-gnulibc1): For libc4 and libc5. Emit warning.
717 (*-linux-gnu)): For glibc 2.
718 Create links to find headers for multi-threading if necessary.
720 * fileops.c: Make thread-safe by using _IO_cleanup_region_start
721 etc to handle cancelation. Acquire locks in functions which are
723 (_IO_file_read, _IO_file_write): Remove dead code.
725 * include/empty.h: Define stub macros for locking.
727 * iolibio.h: Add prototypes for obstack printing functions.
729 * ioseekoff.c (_IO_seekoff): Lock stream before working.
730 * ioseekpos.c (_IO_seekpos): Likewise.
732 * iostream.cc: Add support for long double I/O.
733 Use __printf_fp from glibc is available.
734 Use _IO_cleanup_region_start to handle cancelation correctly.
735 * iostream.h (class ostream): Change opfx and osfx to lock/unlock
737 (class istream): Likewise for ipfx, ipfx0, ipfx1, and isfx.
738 Declare new function lock and unlock for ostream and istream.
739 * osform.cc: Use _IO_cleanup_region_start to handle cancelation
742 * libio.h: Update from glibc version. Pretty printing.
743 * libioP.h: Likewise.
745 * outfloat.c: Only compile if _IO_USE_DTOA is defined.
747 * stdio/feof.c: Make thread safe.
748 * stdio/ferror.c: Likewise.
749 * stdio/getc.c : Likewise.
750 * stdio/putc.c : Likewise.
751 * stdio/stdio.h: Declare function of thread-safe API.
753 * stdio/obprintf.c: New file.
754 * stdio/vasprintf.c: New file.
756 * stdio-lock.h: Removed.
758 * stdstrbufs.c: Add definitions for thread-safe streams.
760 * streambuf.cc: Initialize lock.
762 * strops.c (_IO_str_count): Undo last change.
764 * tests/tFile.cc: Support parallel builds by avoiding fixed
767 Thu Sep 11 18:43:56 1997 Jason Merrill <jason@yorick.cygnus.com>
769 * Makefile.in (iostream.list): Remove STDIO_WRAP_OBJECTS.
771 Mon Sep 8 01:30:27 1997 Weiwen Liu <liu@hepunix.physics.yale.edu>
775 Sun Sep 7 23:00:18 1997 Jim Wilson (wilson@cygnus.com)
777 * linux.mt (LIBIOSTREAM_DEP): Change stdio.list to stmp-stdio.
779 Fri Sep 5 09:58:43 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
781 * Makefile.in (iostream.list): Instead of adding stdio.list, add
783 (iostream.list): Lose dependency on stmp-stdio, not necessary for
784 our stuff. The stdio stuff is present here just for uniformity
787 Thu Sep 4 17:26:22 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
789 * parsestream.cc (general_parsebuf): Cast return of malloc to char*.
791 1997-09-04 16:11 Ulrich Drepper <drepper@cygnus.com>
793 Change compared to version initially intended to in:
794 * strops.c (_IO_str_count): Still use _IO_write_ptr, not
795 _IO_write_end, for now.
797 * iofeof.c, ioferror.c, iofflush_u.c, iogetc.c, ioputc.c, peekc.c,
798 stdio-lock.h: New files.
801 * include/empty.h: New header.
803 * filedoalloc.c: Update and reformat copyright.
805 Use __set_errno throughout the code to support multi-threaded
807 Correct layout to follow the Coding Standard.
808 Add casts to prevent warnings.
809 * fileops.c: Likewise.
810 * genops.c: Likewise.
811 * iofclose.c: Likewise.
812 * iofdopen.c: Likewise.
813 * iofflush.c: Likewise.
814 * iofgetpos.c: Likewise.
815 * iofgets.c: Likewise.
816 * iofopen.c: Likewise.
817 * iofprintf.c: Likewise.
818 * iofputs.c: Likewise.
819 * iofread.c: Likewise.
820 * iofsetpos.c: Likewise.
821 * ioftell.c: Likewise.
822 * iofwrite.c: Likewise.
823 * iogetdelim.c: Likewise.
824 * iogetline.c: Likewise.
825 * iogets.c: Likewise.
826 * iopadn.c: Likewise.
827 * iopopen.c: Likewise.
828 * ioputs.c: Likewise.
829 * ioseekoff.c: Likewise.
830 * iosetbuffer.c: Likewise.
831 * iosetvbuf.c: Likewise.
832 * iosprintf.c: Likewise.
833 * ioungetc.c: Likewise.
834 * iovsprintf.c: Likewise.
835 * iovsscanf.c: Likewise.
837 * libioP.h: Likewise.
838 * stdfiles.c: Likewise.
839 * strfile.h: Likewise.
840 * strops.c: Likewise.
842 * Makefile.in (IO_OBJECTS): Add peekc.o, iogetc.o, ioputc.o,
843 iofeof.o, and ioferror.o.
844 (iostream.list): Depend upon stmp-stdio. Add the entries
845 from stdio.list to iostream.list.
846 (stmp-stdio): New name for what was the stdio/stdio.list rule.
847 All it now does is cd down into stdio and build stdio.list.
849 * configure.in (ALL): Add libiostream.a.
851 * libio.h [_IO_MTSFE_IO]: Include header declaring locking code.
852 Otherwise define opaque _IO_lock_t.
853 Define _IO_cookie_file.
854 Rename _IO_getc to _IO_getc_unlocked, _IO_peekc to _IO_peekc_unlocked,
855 _IO_putc to _IO_putc_unlocked, _IO_feof to _IO_feof_unclocked, and
856 _IO_ferror to _IO_ferror_unlocked.
857 Add prototypes for _IO_getc, _IO_putc, _IO_feof, _IO_ferror,
858 and _IO_peekc_locked.
859 Add declarations for _IO_flockfile, _IO_funlockfile, and
860 _IO_ftrylockfile. If !_IO_MTSAFE_IO define _IO_flockfile,
861 _IO_funlockfile, _IO_ftrylockfile, _IO_cleanup_region_start, and
862 _IO_cleanup_region_end as empty macros.
864 * libioP.h: Change type of finish function to take an additional int
865 argument and change declaration of finish functions.
866 Add prototypes for _IO_seekoff and _IO_seekpos.
867 If _G_HAVE_MMAP is defined use stream buffers allocated with mmap.
868 Redefine FREE_BUF and ALLOC_BUF macros to help in both situations.
869 (FILEBUF_LITERAL): If we compile for a thread-safe library also
870 initialize lock member.
872 * filedoalloc.c: Take care for systems already defining _POSIX_SOURCE.
873 Keep name space clean on systems which require this.
874 (_IO_file_doallocate): Adopt ALLOC_BUF call for changed semantic.
876 * fileops.c: Keep name space clean on systems which require this.
877 (_IO_file_attach): Don't fail if seek failed because it's used on a
879 (_IO_file_underflow): Update buffer pointers before calling `read'
880 since the `read' might not return anymore.
881 (_IO_file_overflow): If stream allows no writes set error flag.
882 (_IO_seekoff): Make sure that after flushing the file pointer in
883 the underlying file is exact.
884 (_IO_file_read): Don't restart `read' syscall if it return EINTR.
886 (_IO_file_write): Likewise for `write'.
887 (_IO_cleanup): Install as exit handler in glibc.
889 * genops.c (_IO_setb): Correctly use FREE_BUF.
890 (_IO_default_doallocate): Correctly use ALLOC_BUF.
891 (_IO_init): Initialize lock in stream structure.
892 (_IO_default_finish): Destroy lock.
893 (_IO_get_column): Don't compile since it's not needed.
894 (_IO_nobackup_default): Likewise.
896 * iopopen.c: Take care for systems already defining _POSIX_SOURCE.
897 Correct _IO_fork and _IO_dup2 prototypes.
899 * iofclose.c: Acquire lock before starting the work.
900 * iofflush.c: Likewise.
901 * iofgetpos.c: Likewise.
902 * iofgets.c: Likewise.
903 * iofputs.c: Likewise.
904 * iofread.c: Likewise.
905 * iofsetpos.c: Likewise.
906 * ioftell.c: Likewise.
907 * iofwrite.c: Likewise.
908 * iogetdelim.c: Likewise.
909 * iogets.c: Likewise.
910 * ioputs.c: Likewise.
911 * iosetbuffer.c: Likewise.
912 * iosetvbuf.c: Likewise.
913 * ioungetc.c: Likewise.
915 * iofdopen.c: Create and initialize lock for new stream.
916 * iofopen.c: Likewise.
917 * iopopen.c (_IO_popen): Likewise.
918 * iovsprintf.c: Likewise.
919 * iovsscanf.c: Likewise.
921 * genops.c: Make weak aliases for various functions.
922 * iofclose.c: Likewise.
923 * iofdopen.c: Likewise.
924 * iofflush.c: Likewise.
925 * iofgetpos.c: Likewise.
926 * iofgets.c: Likewise.
927 * iofopen.c: Likewise.
928 * iofputs.c: Likewise.
929 * iofread.c: Likewise.
930 * iofsetpos.c: Likewise.
931 * ioftell.c: Likewise.
932 * iofwrite.c: Likewise.
933 * iogetdelim.c: Likewise.
934 * iogets.c: Likewise.
935 * ioputs.c: Likewise.
936 * iosetbuffer.c: Likewise.
937 * iosetvbuf.c: Likewise.
938 * ioungetc.c: Likewise.
939 * iovsprintf.c: Likewise.
940 * iovsscanf.c: Likewise.
942 * iofflush_u.c: New file. fflush_unlocked implementation.
944 * iostream.h [_G_HAVE_LONG_DOUBLE_IO]: Declare real long double
947 * peekc.c: New file. Implement _IO_peekc_locked function.
949 * stdfiles.c: If we compile for a thread-safe library also define
952 Tue Aug 26 12:24:01 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
954 * testsuite/Makefile.in (check): Don't depend on site.exp.
955 (just-check): Depend on site.exp.
957 Wed Aug 20 02:01:34 1997 Jason Merrill <jason@yorick.cygnus.com>
959 * iostream.h: Add copy assignment ops for _IO_?stream_withassign.
961 Tue Jul 22 10:31:41 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
963 * config.shared (CHECK_SUBDIRS): Use install-sh, not install.sh.
965 Wed Jun 25 12:20:55 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
967 * config.shared (DOING_GPERF): Look for this, defining TOLIBGXX
970 Wed Jun 18 11:03:34 1997 Bob Manson <manson@charmed.cygnus.com>
972 * config.shared (FLAGS_TO_PASS): Don't include RUNTEST.
974 Tue Jun 17 22:23:48 1997 Bob Manson <manson@charmed.cygnus.com>
976 * config.shared (FLAGS_TO_PASS): Pass RUNTEST and RUNTESTFLAGS.
978 Fri May 16 21:08:53 1997 Bob Manson <manson@charmed.cygnus.com>
980 * iovfprintf.c: Declare __cvt_double before use.
982 * floatconv.c (d2b): Use _G_int32_t instead of int for the
983 e and bits parameters.
984 (_IO_strtod): Use _G_int32_t.
986 * gen-params: Look for NO_USE_DTOA and USE_INT32_FLAGS.
988 * strops.c (_IO_str_init_static): use _G_int32_t appropriately.
990 * libio.h: If _G_NO_USE_DTOA is set, then don't define
993 * config/mn10200.mt: Don't use dtoa, it only works
996 Thu May 15 17:44:12 1997 Bob Manson <manson@charmed.cygnus.com>
998 * configure.in: Set CHECK_SUBDIRS to testsuite if we're doing
1001 * config.shared(check): Only run make check in the directories
1002 specified by CHECK_SUBDIRS. Set CHECK_SUBDIRS to SUBDIRS
1003 if it has no previous value.
1005 Thu May 1 17:35:19 1997 Jason Merrill <jason@yorick.cygnus.com>
1007 * Makefile.in (test, tpipe): Add $(CFLAGS).
1009 Wed Apr 30 12:16:29 1997 Jason Merrill <jason@yorick.cygnus.com>
1011 * configure.in: Don't turn on multilib here.
1013 Sat Apr 26 13:38:21 1997 Bob Manson <manson@charmed.cygnus.com>
1015 * configure.in (configdirs): Add testsuite directory.
1017 * testsuite/ChangeLog:
1018 * testsuite/Makefile.in:
1019 * testsuite/libio.tests/tiomanip.exp:
1020 * testsuite/libio.tests/tstdiomisc.exp:
1021 * testsuite/libio.tests/tiomisc.exp:
1022 * testsuite/libio.tests/tFile.exp:
1023 * testsuite/libio.tests/tfformat.exp:
1024 * testsuite/libio.tests/tiformat.exp:
1025 * testsuite/libio.tests/hounddog.exp:
1026 * testsuite/libio.tests/putbackdog.exp:
1027 * testsuite/configure.in:
1028 * testsuite/lib/libio.exp:
1029 * testsuite/config/default.exp:
1030 New files for DejaGnu-style testsuite.
1032 Fri Apr 4 03:16:44 1997 Ulrich Drepper <drepepr@cygnus.com>
1034 * configure.in: Enable multilibing by default.
1035 Update multilib template to read config-ml.in.
1037 * floatconv.c: Enable use in cross targets which use the
1038 newlib ieeefp.h header.
1040 Thu Jan 23 09:16:16 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
1042 * libioP.h (_IO_file_attach): Delete redundant decl.
1044 Tue Jan 21 22:13:45 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
1046 * streambuf.h (class ios): Take out STREAMSIZE member, since we
1047 only need (and should only have) the global one.
1049 Tue Jan 7 14:02:40 1997 Jason Merrill <jason@yorick.cygnus.com>
1051 * iostream.h (long long fns): Use __extension__.
1053 * gen-params: Use _G_llong and _G_ullong instead of long long for
1056 Fri Dec 6 13:13:30 1996 Jason Merrill <jason@yorick.cygnus.com>
1058 * dbz/dbz.c: Use off_t.
1060 Sat Nov 23 15:44:37 1996 Jason Merrill <jason@yorick.cygnus.com>
1062 * Makefile.in (install): Don't install _G_config.h with other headers.
1064 Mon Nov 18 17:12:41 1996 Jason Merrill <jason@yorick.cygnus.com>
1066 * config.shared (SUBDIRS): Use -O instead of -O3 for debugging.
1068 Sun Nov 3 12:43:34 1996 Jason Merrill <jason@yorick.cygnus.com>
1070 * iostream.cc (write_int): Treat string literals as const.
1072 Thu Sep 26 10:09:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1074 * depend: Regenerate.
1076 Wed Sep 25 22:54:45 1996 Jason Merrill <jason@yorick.cygnus.com>
1078 * config.shared (depend.new): Deal with headers that don't end in .h.
1080 Thu Aug 29 17:05:53 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1082 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
1084 Mon Aug 5 01:26:32 1996 Jason Merrill <jason@yorick.cygnus.com>
1086 * config{ure.in,.shared} (DISTCLEAN): Add multilib.out.
1088 Fri Aug 2 17:39:35 1996 Jason Merrill <jason@yorick.cygnus.com>
1090 * libio.h (NULL): Use __null.
1091 * libioP.h (NULL): Ditto.
1092 * streambuf.h (NULL): Ditto.
1093 * ioextend.cc (get_array_element): Use NULL instead of (void*)0.
1095 Fri Jul 5 18:26:41 1996 Jim Wilson <wilson@cygnus.com>
1097 * strfile.h (struct _IO_streambuf): New struct type.
1098 (struct _IO_strfile): Use it.
1100 Tue Jun 18 18:24:21 1996 Jason Merrill <jason@yorick.cygnus.com>
1102 * fstream.h (fstreambase): Make __my_fb mutable.
1105 Tue Jun 18 11:03:53 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
1107 * dbz/fake.c (main): Set return type to int.
1108 * dbz/dbzmain.c (main): Likewise.
1109 * dbz/byteflip.c (main): Likewise.
1111 Mon Jun 17 14:05:36 1996 Jason Merrill <jason@yorick.cygnus.com>
1113 * gen-params: Check if clog conflicts with system libraries.
1114 * stdstreams.cc: If it does, use __IO_clog.
1115 * iostream.h: Likewise.
1117 Tue Jun 11 13:39:31 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
1119 * stdiostream.h (istdiostream (FILE*)): Put istream base
1120 initializer before init for __f.
1121 (ostdiostream (FILE*)): Likewise for ostream base init.
1123 Tue May 14 11:47:21 1996 Per Bothner <bothner@andros.cygnus.com>
1125 * strfile.h (_IO_str_fields): Removed _len field.
1126 (_IO_STR_DYNAMIC, _IO_STR_FROZEN): new macros.
1127 * strstream.h (strstreambuf::is_static): Removed.
1128 (strstreambuf::frozen): Use _IO_STR_DYNAMIC instead of is_static.
1129 * strstream.h, strstream.cc: Remove support for !_IO_NEW_STREAMS.
1130 * strstream.cc (strstreambuf::init_dynamic): Don't set _s._len.
1131 * strops.c (_IO_str_init_static): Better handling of the
1132 negative (== unbounded) size case.
1133 (_IO_str_overflow, _IO_str_underflow, _IO_str_count): Re-write
1134 to not use _s._len, and otherwise cleanup/fix.
1135 * strstream.h, strstream.cc (strstreambase::strstreambase()): Call
1137 (other constructors): Simplify - init already called.
1139 Tue May 14 10:55:21 1996 Per Bothner <bothner@deneb.cygnus.com>
1141 Change so that strstreambuf default constructor does no allocation.
1142 * strstream.h (strstreambuf::init_dynamic): Default initial size = 0.
1143 * strstream.cc (strstreambuf::init_dynamic): Don't allocate a
1144 buffer (yet) if initial_size is 0.
1145 * strops.c (_IO_str_overflow): Add 100 to size of re-allocated
1146 buffer, to handle case when initial size is 0.
1148 * iostdio.h (remove, rename, tmpfile, tempnam): Comment out.
1150 Mon May 13 23:19:39 1996 Per Bothner <bothner@deneb.cygnus.com>
1152 * fileops.c (_IO_file_close_it): Just call _IO_do_flush rather
1153 than _IO_file_sync, to avoid useless lseek.
1155 Tue May 14 10:48:48 1996 Jason Merrill <jason@yorick.cygnus.com>
1157 * floatconv.c (_IO_strtod): Force rv into the stack.
1159 * config.shared (gxx_includedir): Now $(includedir)/g++.
1161 Sat Apr 27 02:37:49 1996 Jason Merrill <jason@yorick.cygnus.com>
1163 * libioP.h (JUMP*): Implement for thunks.
1164 (_IO_jump_t): Add second dummy field for thunks.
1166 Thu Apr 25 13:20:00 1996 Jason Merrill <jason@yorick.cygnus.com>
1168 * config.shared (CXX): Use gcc, not g++.
1170 Wed Apr 24 10:29:50 1996 Doug Evans <dje@blues.cygnus.com>
1172 * config.shared (depend.new): Delete $(srcdir)/ from foo.{c,cc}
1174 * depend: Regenerated.
1176 Fri Apr 19 17:24:51 1996 Jason Merrill <jason@yorick.cygnus.com>
1180 Wed Apr 10 17:16:01 1996 Jason Merrill <jason@yorick.cygnus.com>
1182 * configure.in (ALL): Don't build iostream.a.
1184 Mon Apr 8 14:44:11 1996 Per Bothner <bothner@kalessin.cygnus.com>
1186 * iosetvbuf.c (_IO_setvbuf): Clear _IO_UNBUFFERED unless _IONBF.
1188 Mon Apr 8 15:08:23 1996 Ian Lance Taylor <ian@cygnus.com>
1190 * configure.in: Permit --enable-shared to specify a list of
1193 Fri Apr 5 17:48:56 1996 Per Bothner <bothner@kalessin.cygnus.com>
1195 * config.shared (MOSTLYCLEAN): Also remove ${EXTRA_MOSTLYCLEAN}.
1197 Fri Mar 22 23:25:00 1996 Ulrich Drepper <drepepr@gnu.ai.mit.edu>
1199 * genops.c (_IO_sputbackc, _IO_sungetc): Clear EOF flag if putsh
1200 back was successful.
1202 Wed Mar 27 11:54:08 1996 Jason Merrill <jason@yorick.cygnus.com>
1206 Fri Mar 22 15:39:36 1996 Per Bothner <bothner@kalessin.cygnus.com>
1208 * fileops.c (_IO_do_write): Revert previous fix. (It fails to
1209 handle the case that fp->_IO_read_end != fp->_IO_write_base.)
1210 (_IO_file_overflow): Instead, if _IO_read_ptr is at the end of
1211 the buffer, reset all the read pointers to _IO_buf_base.
1213 Tue Mar 12 12:03:17 1996 Per Bothner <bothner@kalessin.cygnus.com>
1215 * fileops.c (_IO_do_write): Even if to_do==0, must re-set buffer
1216 pointers. Bug and solution from Luke Blanshard <luke@cs.wisc.edu>.
1218 Wed Feb 28 10:00:24 1996 Jason Merrill <jason@yorick.cygnus.com>
1222 Tue Feb 27 18:08:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
1224 * iopopen.c (_IO_proc_open): Use (char*)0 rather than imprecise NULL.
1226 * streambuf.h (ios): Add ios::binary; deprecate ios::bin.
1227 * filebuf.cc (filebuf::open): Handle ios::binary.
1229 Fri Feb 9 12:40:19 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
1231 * cleanup.c (_IO_cleanup_registration_needed) [!_G_HAVE_ATEXIT]: Init
1233 * filedoalloc.c (_IO_cleanup_registration_needed): Remove decl.
1235 Thu Feb 8 08:12:50 1996 Brendan Kehoe <brendan@cygnus.com>
1237 * filedoalloc.c (_IO_cleanup_registration_needed): Revert previous
1238 change, since cleanup.c only defines it if _G_HAVE_ATEXIT.
1240 Wed Feb 7 15:10:17 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
1242 * filedoalloc.c (_IO_cleanup_registration_needed): Declare as extern.
1244 Tue Dec 12 17:21:13 1995 Per Bothner <bothner@kalessin.cygnus.com>
1246 * indstream.h, instream.cc (indirectbuf::uflow): New method.
1247 * indstream.cc (indirectbuf::underflow): Fix to use sgetc, not sbumpc.
1248 Fixes bug reported by Kevin Beyer <beyer@cs.wisc.edu>.
1250 * indstream.cc (indirectbuf::seekpos): Add paranoia test.
1252 Fri Dec 8 14:55:34 1995 Per Bothner <bothner@kalessin.cygnus.com>
1254 * stream.h: Add warning to not use these functions.
1255 * stream.cc (str, chr): Re-implement here (from libg++).
1257 Tue Nov 28 15:07:01 1995 Per Bothner <bothner@kalessin.cygnus.com>
1259 * config.shared: Use test instead of [ to avoid DEC Unix lossage.
1261 Thu Nov 23 14:51:43 1995 Per Bothner <bothner@kalessin.cygnus.com>
1263 * iopopen.c: Move #include <sys/types.h> ahead of #include <signal.h>
1264 to deal with BSDI's literal implementation of Posix.
1266 Sat Nov 25 11:21:55 1995 Doug Evans <dje@canuck.cygnus.com>
1268 * Makefile.in (install): Set rootme.
1269 * config.shared (TOPDIR): Set with ${foo-...} rather than ${foo=...}.
1270 (INSTALL): Handle absolute, dot, relative-not-dot values of srcdir.
1271 (TEXIDIR): Likewise.
1273 Tue Nov 21 14:12:05 1995 Ian Lance Taylor <ian@cygnus.com>
1275 * configure.in: Check ${with_cross_host} rather than comparing
1276 ${host} and ${target}.
1278 Mon Nov 20 13:55:29 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1280 * configure.in: Match *-sco3.2v[45]*.
1282 Wed Nov 15 20:19:31 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1284 * config.shared (FLAGS_TO_PASS): Also pass SHLIB and SHCURSES.
1286 Tue Nov 14 01:41:08 1995 Doug Evans <dje@canuck.cygnus.com>
1288 * config.shared (TO_REAL_TOPDIR): Define.
1289 (MULTITOP): Deleted.
1290 (MULTISRCTOP, MULTIBUILDTOP): New.
1291 (TOPDIR): Change MULTITOP to MULTIBUILDTOP, and use TO_REAL_TOPDIR.
1292 (INSTALL): Add with_multisrctop, TO_REAL_TOPDIR.
1293 (TEXIDIR): Use TO_REAL_TOPDIR.
1294 (LIBS): Delete MULTITOP.
1295 (FLAGS_TO_PASS): Add NM.
1296 (CXXINCLUDES): Delete MULTITOP.
1297 (depend.new): Delete adding MULTITOP to ../ build tree references.
1298 Add MULTISRCTOP to ../ source tree references.
1299 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in
1300 instead of cfg-ml-pos.in.
1302 Sun Nov 12 16:30:48 1995 Per Bothner <bothner@kalessin.cygnus.com>
1304 * Makefile.in (VERSION): Set to 2.7.1.
1305 * configure.in: Add warning for Linux.
1306 * config.shared (DISTCLEAN): Add EXTRA_DISTCLEAN.
1308 * editbuf.h (edit_mark::index_in_buffer): Avoid unused param warning.
1310 * iostream.cc (istream::operator>> (char*)): Improve ANSI compliance.
1312 Fri Nov 10 08:41:37 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1314 * config.shared (check): Add missing semicolon.
1316 Thu Nov 9 17:27:22 1995 Jason Merrill <jason@yorick.cygnus.com>
1318 * configure.in (ALL): Remove $(OSPRIM_OBJECTS).
1319 * config.shared (check): Set LD_LIBRARY_PATH.
1321 * iogetdelim.c (_IO_getdelim): Index *lineptr, rather than lineptr.
1322 From alan@spri.levels.unisa.edu.au (Alan Modra).
1324 Mon Nov 6 15:03:33 1995 Per Bothner <bothner@kalessin.cygnus.com>
1326 * streambuf.cc, editbuf.cc, isgetline.cc, parsestream.cc:
1327 Fixes to avoid -Wall warnings.
1329 Fri Nov 3 16:41:41 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1331 * gen-params [!__STDC__]: Include varargs.h instead of stdarg.h.
1333 Thu Nov 2 15:04:03 1995 Per Bothner <bothner@kalessin.cygnus.com>
1335 * config.shared: Re-write if X then Y else true fi to (not X) || Y.
1337 Wed Nov 1 13:26:44 1995 Per Bothner <bothner@kalessin.cygnus.com>
1339 * iostream.h (istream::ipfx): Add default argument value.
1340 Reported by Yotam Medini <yotam_medini@tmai.com>.
1342 * libioP.h (_IO_blen): Fix typo.
1343 Reported by Bryan T. Vold <btv@ldl.healthpartners.com>.
1345 Fri Oct 27 19:26:20 1995 Per Bothner <bothner@kalessin.cygnus.com>
1347 * Makefile.in (_G_config.h): Set CC to $(CC) rather than to $(CXX),
1348 now that CXX defaults to g++ and CC default to gcc (when found).
1349 * config.shared: Simplify CXX and CC, since they get overridden
1350 by ../configure anyway.
1352 Wed Oct 25 19:45:50 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1354 * iostdio.h: Wrap including the file with #ifndef _IOSTDIO_H.
1356 Wed Oct 25 11:14:25 1995 Per Bothner <bothner@kalessin.cygnus.com>
1358 * libio.h (_IO_seekoff, _IO_seekpos): New declarations.
1359 * libioP.h (_IO_seekoff, _IO_seekpos): Remove declarations.
1360 * libioP.h: Cleanup; remove old !_IO_UNIFIED_JUMPTABLES stuff.
1362 * filebuf.cc (filebuf::~filebuf): Only call SYSYCLOSE if currently
1363 open. Bug found by Martin Gerbershagen <ger@ezis-ulm.de>.
1365 * streambuf.h (streambuf::pubseekoff, streambuf::pubseekpos):
1366 Added, from ANSI draft.
1367 * filebuf.cc (filebuf::open), iostream.cc (variables places), SFile.cc:
1368 Use pubseekoff/pubseekpos rather than sseekoff/sseekpos.
1370 * Makefile.in (install): Don't install libiostream.a.
1372 * filedoalloc.c: Also #include <unistd.h>.
1374 Mon Oct 9 18:09:54 1995 Jason Molenda <crash@phydeaux.cygnus.com>
1376 * config.shared (SUFFIXES): add .c.
1378 Tue Sep 26 16:08:01 1995 Per Bothner <bothner@kalessin.cygnus.com>
1380 * procbuf.cc: Move #pragma implementation to beginning.
1382 Wed Sep 20 17:53:33 1995 Per Bothner <bothner@kalessin.cygnus.com>
1384 * procbuf.h, procbuf.cc: Add #pragma interface/implementation stuff.
1386 Wed Sep 20 18:59:00 1995 John Eaton <jwe@bevo.che.wisc.edu>
1388 * procbuf.h: Protect from being included multiple times.
1390 Wed Sep 20 15:47:14 1995 John Eaton <jwe@bevo.che.wisc.edu>
1392 * procbuf.h (procbuf): Add '_next' pointer field for compatibility
1395 Wed Sep 20 13:54:02 1995 Ian Lance Taylor <ian@cygnus.com>
1397 * config.shared: Add support for maintainer-clean target as a
1398 synonym for realclean.
1399 * dbz/Makefile.in: Likewise.
1401 Mon Sep 11 12:11:19 1995 Per Bothner <bothner@kalessin.cygnus.com>
1403 * iopopen.c: #include <sys/types.h> before <sys/wait.h>.
1404 This is in accordance with Posix, and needed for ISC.
1406 Fri Sep 8 00:11:55 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1408 * gen-params: Use double quotes in the eval setting $TYPE to
1409 $VALUE, to preserve any single quotes in $VALUE.
1411 Mon Aug 21 11:39:09 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1413 * gen-params: Test for an appropriate version of gcc before using
1416 * config.shared: Add $(PICDIR) to $ALL.
1418 Mon Aug 7 17:51:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1420 * gen-params: Generate new macro _G_HAVE_SYS_CDEFS.
1421 * libio.h: If _G_HAVE_SYS_CDEFS, get __P from <sys/cdefs.h>.
1423 Fri Aug 4 23:21:17 1995 Paul Eggert <eggert@twinsun.com>
1425 * gen-params: When following typedef changes, allow typedefs
1426 that do not have a space before the defined type name,
1427 e.g. `typedef void *__gnuc_va_list;' as in Linux. Also,
1428 not require a space in the definiens, e.g. `typedef void*foo;'.
1430 Thu Aug 3 17:54:15 1995 Per Bothner <bothner@kalessin.cygnus.com>
1432 * iostream.h, iostream.cc (istream::sync): Added missing method.
1434 Thu Aug 3 17:49:34 1995 Per Bothner <bothner@kalessin.cygnus.com>
1436 * configure.in: Remove netbsd special case.
1437 * config/netbsd.mt: Removed; no longer used.
1439 Tue Jun 20 16:07:12 1995 Paul Eggert <eggert@twinsun.com>
1441 * gen-params: Take transitive closure of `typedef' relation.
1442 This is needed for BSD/OS 2.0, which has
1443 fpos_t -> off_t -> quad_t -> long long.
1445 Mon Jul 24 18:28:10 1995 Doug Evans <dje@canuck.cygnus.com>
1447 * config.shared (TOPDIR): Delete extra '/', $rootme may be empty.
1449 Sat Jul 22 13:27:45 1995 Doug Evans <dje@canuck.cygnus.com>
1451 * config.shared (depend.new): Fix quoting in DO NOT EDIT line.
1453 * Makefile.in (_G_config.h): Add multilib support.
1454 (install): Likewise.
1455 * config.shared: Likewise.
1456 * configure.in: Likewise.
1458 Wed Jun 28 17:40:25 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1460 * PlotFile.h, SFile.h, builtinbuf.h, editbuf.h, fstream.h,
1461 indstream.h, iomanip.h, iostream.h, parsestream.h, pfstream.h,
1462 procbuf.h, stdiostream.h, stream.h, streambuf.h, strstream.h: Wrap
1465 Thu Jun 22 04:34:01 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1467 * gen-params: Surround attributes with __.
1469 Mon Jun 19 00:33:22 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1471 * config.shared (SUBDIRS): Massage broken shells that require
1474 Sat Jun 17 11:25:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1476 * streambuf.h: Declare inline members inline in class.
1478 Thu Jun 15 20:45:13 1995 Per Bothner <bothner@kalessin.cygnus.com>
1480 * Makefile.in (VERSION): Update to version 2.7.0.
1482 Wed Jun 14 21:41:11 1995 Jason Merrill <jason@python.cygnus.com>
1484 * Makefile.in (STDIO_WRAP_OBJECTS): Remove stdfiles.o.
1485 (LIBIO_OBJECTS): Add stdfiles.o.
1487 Wed Jun 7 16:11:36 1995 Jason Merrill <jason@python.cygnus.com>
1489 * config.shared (all): Appease bash.
1491 Wed Jun 7 11:16:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1493 * configure.in (MOSTLYCLEAN): Remove stamp-picdir.
1495 * config.shared (MOSTLYCLEAN): Ditto.
1498 Mon Jun 5 18:29:39 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1500 * config/mh-*pic: Removed.
1502 * configure.in (MOSTLYCLEAN): Remove pic objects.
1503 (frags): Use toplevel pic fragments.
1505 * config.shared (CXXFLAGS): Use -O3.
1506 (PICFLAG, PICDIR): New macros.
1507 (all): Depend on $(PICDIR).
1508 (FLAGS_TO_PASS): Pass PICFLAG.
1509 (.x.o): Also build pic object.
1510 (stamp-picdir): Create directory for pic objects.
1511 (MOSTLYCLEAN): Remove pic objects.
1512 (CLEAN): Remove stamp-picdir.
1514 * Makefile.in (iostream.list): Depend on stamp-picdir.
1515 (c++clean): Don't remove _G_config.h.
1517 Mon Jun 5 15:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
1519 * strstream.h, strstream.cc (strstream::strstream()): Re-implement to
1520 be like ostrstream::ostrestream(), and not leak memory.
1522 * streambuf.h: Use #if !_IO_UNIFIED_JUMPTABLES instead of #ifndef.
1524 * iolibio.h (_IO_rewind): Add missing flags when calling _IO_seekoff.
1526 Thu May 25 22:30:21 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1528 * config/netbsd.mt (G_CONFIG_ARGS): Add defn for off_t. Another
1529 layer of typedefs has been added and the gen-params script can
1532 Wed May 10 03:02:58 1995 Jason Merrill <jason@python.cygnus.com>
1534 * iolibio.h (_IO_rewind): Add new argument to _IO_seekoff.
1536 * config/linux.mt (LIBIOSTREAM_OBJECTS): Include $(STDIO_WRAP_OBJECTS).
1537 (LIBIOSTREAM_DEP): Include stdio.list.
1538 (LIBIOSTREAM_USE): Include `cat stdio.list`.
1540 * Makefile.in (LIBIOSTREAM_DEP): New variable.
1541 (LIBIOSTREAM_USE): Ditto.
1542 (libiostream.a): Use them.
1543 (iostream.list): Ditto.
1544 (stdio.list): New rule.
1545 (stdio/stdio.list): Ditto.
1547 Tue May 9 18:29:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1549 * libioP.h (_IO_jump_t): Change TYPE for __dummy from int to
1552 Sat May 6 13:50:37 1995 Per Bothner <bothner@kalessin.cygnus.com>
1554 * libio.h (_IO_UNIFIED_JUMPTABLES): #define as true.
1555 (_IO_FILE): Remove _jumps field (#if _IO_UNIFIED_JUMPTABLES).
1557 * libioP.h (enum _IO_seekflags_): Removed.
1559 * libioP.h (_IO_setbuf_t): Change return value of setpos jumptable
1560 function to match C++ streambuf::setpos. (Return NULL on failure.)
1561 * fileops.c (_IO_file_setbuf), genops.c (_IO_default_setbuf),
1562 filebuf.cc, iosetvbuf.c: Update to use new setbuf conventions.
1564 * streambuf.h (streambuf): Re-order virtual functions more logically.
1565 * streambuf.cc (streambuf::uflow), streambuf.h: New virtual.
1566 * libioP.h (struct _IO_jump_t): Define using new JUMP_FIELD macro.
1567 And re-order in more logical order consistent with streambuf vtable.
1568 * fileops.c (_IO_file_jumps), iopopen.c (_IO_proc_jumps), iovfprintf.c
1569 (_IO_helper_jumps), streambuf.cc (_IO_streambuf_jumps), strops.c
1570 (_IO_str_jumps): Update accordingly, using JUMP_INIT macro.
1571 * stdfiles.c: Set vtable to point to _IO_file_jumps.
1572 * filebuf.cc, iopopen.c, iovfprintf.c (helper_vfprintf), iovsprintf.c,
1573 iovsscanf.c: Use macros and #if to set jumptables.
1575 * streambuf.c: _IO_streambuf_jumps and the _IO_sb_* methods are not
1576 needed #if _IO_UNIFIED_JUMPTABLES.
1577 * filebuf.cc (filebuf::__new): Also no longer needed.
1578 * fstream.cc (fstreambase::__fb_init, fstreambase::fstreambase): Fix.
1579 * stdstrbufs.c: Use filebuf vtable instead of builtinbuf's.
1580 * builtinbuf.h, builtinbuf.cc (builtinbuf): Commented out #if
1581 _IO_UNIFIED_JUMPTABLES - no longer needed.
1582 * strstream.cc (SET_STR_JUMPS): Does nothing now.
1584 * builtinbuf.cc, fileops.c, genops.c, iofgetpos.c, iofsetpos.c,
1585 ioftell.c, iopopen.c, ioseekoff.c, ioseekpos.c, iosetvbuf.c,
1586 iovfprintf.c, iovfscanf.c, strops.c: Use DEFUN and DEFUN_VOID.
1587 * filebuf.cc, fileops.c, genops.c, iopopen.c, ioseekoff.c, ioseekpos.c,
1588 iosetvbuf.c, iovfscanf.c: Use new JUMP_* and IO_OVERFLOW/... macros.
1590 * libioP.h (_IO_seekpos_t): Third arg is now an int (using _IOS_INPUT
1591 and _IOS_OUTPUT), not an enum _IO_seekflags_. Flags values are
1592 changed, and their sense inverted (to match streambuf::seekpos).
1593 * libioP.h (_IO_seekoff_t): Similarly match streambuf::seekoff.
1594 * filebuf.cc, fileops.c (_IO_file_fopen, _IO_file_seekoff), genops.c
1595 (_IO_default_seekpos, _IO_default_seekpos), iofgetpos.c, iofsetpos.c,
1596 iolibio.h (_IO_fseek), ioftell.c, ioseekoff.c, ioseekpos.c,
1597 iostream.cc, streambuf.cc, strops.c (_IO_str_seekoff), strstream.cc:
1598 New seekpos/seekoff conventions.
1599 * iostreamP.h (convert_to_seekflags): Removed - no longer needed.
1601 * iolibio.h (_IO_fread): New declaration.
1603 * dbz/Makefile.in: Re-arrange for cleaner dependencies.
1605 Fri May 5 15:55:22 1995 Per Bothner <bothner@kalessin.cygnus.com>
1607 * libioP.h (_IO_JUMPS. JUMP_FIELD, JUMP0, JUMP1, JUMP2, JUMP3,
1608 JUMP_INIT, _IO_FINISH, _IO_OVERFLOW, ... _IO_SYSSTAT): New macros
1609 in preparation for new unified jumptable/vtable implementation.
1610 * cleanup.c, filedoalloc.c, iofclose.c, iofflush.c, iofiledoalloc.c,
1611 ioprims.c, iosetbuffer.c, iostrerror.c, ioungetc.c: Use DEFUN.
1612 * filedoalloc.c, iofclose, iofflush, iosetbuffer.c: Use new macros.
1614 * iofopen.c, iofdopen.c: Use macros and #if for new jumptables.
1616 * gen-params: Do not #include <sys/types.h>.
1617 Add missing quote in 'eval'.
1618 Do add #include <sys/types.h> in test for <sys/resource.h>.
1619 * config/netbsd.mt: New file, defining _G_CONFIG_ARGS (for fpos_t).
1620 * configure.in: Use netbsd.mt for NetBSD.
1622 Wed May 3 15:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
1624 * libioP.h (DEFUN, DEFUN_VOID, AND): New macros, from ansidecl.h.
1625 * iofdopen.c, iofgets.c, iofopen.c, iofputs.c, iofread.c, iofwrite.c,
1626 iogetdelim.c, iogetline.c, iogets.c, ioignore.c, iopadn.c, ioperror.c,
1627 ioputs.c, iovsprintf.c, iovsscanf.c, outfloat.c: Use DEFUN.
1629 Mon May 1 16:22:30 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1631 * gen-params: #include <sys/types.h>. Don't use __WCHAR_TYPE__ in
1632 definition of _G_wchar_t. Use __attribute__ ((mode)) to get
1633 specific-sized ints under gcc, don't worry about int8 or int64
1634 otherwise. Provide defaults if deduction fails.
1636 Thu Apr 27 18:27:53 1995 Per Bothner <bothner@kalessin.cygnus.com>
1638 * streambuf.h (ios::~ios): Delete _arrays.
1639 (_IO_NEW_STREAMS): Turn on.
1640 * libio.h (__adjust_column): Remove bogus declaration.
1641 * genops.c (_IO_set_column): Fix typo (in commented-out code).
1643 Tue Apr 25 17:14:29 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1645 * config.shared (CXXINCLUDES): Use a shell variable with a
1646 different name from the make variable.
1647 * configure.in: Update accordingly.
1649 Mon Apr 17 17:19:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1651 * streambuf.h (__adjust_column): Remove redundant declaration.
1653 Sat Apr 15 11:39:25 1995 Per Bothner <bothner@kalessin.cygnus.com>
1655 * config.shared (do-clean-dvi): Also remove *.cps.
1657 * gen-params: Use ${SED} instead of sed.
1659 * libio.h: Remove #if'd out stuff (confuses makedepend).
1661 * stdstreams.cc (STD_STR): Standard streams start with ios::dec set.
1663 Fri Apr 14 23:46:31 1995 Per Bothner <bothner@kalessin.cygnus.com>
1665 * iostream.h, iostream.cc (istream::read, ostream::write):
1666 Use streamsize for the length parameter.
1668 * streambuf.h: Removed redundant __overflow and __underflow.
1670 * fstream.h, fstream.cc: Add void fstreambase::attach(int).
1672 * iosscanf.c (_IO_sscanf): Fix non-__STDC__ missing declaration.
1674 Mon Apr 3 15:40:55 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1676 * indstream.*: Fix prototypes of xsputn and xsgetn.
1678 * fileops.c: Avoid ??? trigraph.
1680 Mon Mar 27 16:16:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1682 * iomanip.h (operator<< (ostream&, const omanip<TP>&): Define
1684 (operator>> (istream&, const imanip<TP>&): Ditto.
1686 Mon Mar 27 08:56:00 1995 Brendan Kehoe (brendan@lisa.cygnus.com)
1688 * builtinbuf.cc (builtinbuf::setbuf): Cast NULL to streambuf*, to
1689 avoid warning/error about conversion from void*.
1690 * indstream.cc (indirectbuf::seekoff): Likewise.
1691 (indirectbuf::seekpos): Likewise.
1692 * filebuf.cc (filebuf::setbuf): Likewise.
1693 (filebuf::close): Cast NULL to filebuf*.
1695 Wed Mar 1 14:23:18 1995 Per Bothner <bothner@kalessin.cygnus.com>
1697 * configure.in (DISTCLEAN): Add, with target-mkfrag.
1699 Fri Feb 24 01:01:08 1995 Jason Merrill <jason@python.cygnus.com>
1701 * configure.in (frags): Don't require so many dashes in the
1702 canonical target name.
1704 Sat Feb 18 13:18:30 1995 Per Bothner <bothner@kalessin.cygnus.com>
1706 * streambuf.cc (streambuf::sync): Always return 0, even for
1707 non-flushed output. This is required by the ANSI/ISO draft.
1708 * genops.c (_IO_sync): Likewise always return 0.
1710 Fri Feb 17 16:33:28 1995 Per Bothner <bothner@kalessin.cygnus.com>
1712 * fileops.c (_IO_file_close_it): Call _IO_file_sync, rather
1713 than _IO_do_flush, because we want to adjust the file pointer
1714 if reading and not at end (as in SVR4, and as in fflush).
1715 Also, make sure to return error indication if sync fails.
1716 (_IO_file_sync): Ignore seek error if it is ESPIPE.
1717 (_IO_file_seekoff): If not readable, do dumb lseek.
1718 * iofclose.c (_IO_fclose): If closing a non-filebuf, return -1
1721 Fri Feb 17 19:31:00 1995 Ian Lance Taylor <ian@cygnus.com>
1723 * gen-params: Check for struct tms in <sys/times.h>, defining
1724 HAVE_SYS_TIMES accordingly.
1726 Wed Feb 15 21:05:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
1728 * strops.c (_IO_str_count): Use LEN macro.
1729 (_IO_str_seekoff): Update _len field.
1731 Mon Feb 6 19:29:00 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1733 * gen-params: Default to short, long and long long for 16, 32 and
1734 64 bit types, in case detection fails.
1736 Wed Jan 25 18:07:30 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1738 * gen-params (_G_wint_t): Allow for broken promotions.
1740 Tue Jan 24 16:15:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1742 * stdstrbufs.cc (_IO_fake_stdiobufs): Add an extra layer of struct,
1743 to force correct alignment on i960s.
1744 (DEF_STDIOBUF, _IO_{stdin,stdout,stderr}_buf): Update accordingly.
1746 Thu Jan 19 18:30:53 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1748 * config.shared (CXXINCLUDES): Add libstdc++ to includes for
1750 (LIBS): Also link with libstdc++ when building libg++ toys.
1751 Don't set EXPORT_ALL_VARIABLES; users will have to set
1752 LD_LIBRARY_PATH themselves.
1754 Fri Dec 30 16:38:13 1994 Mike Stump <mrs@cygnus.com>
1756 * config/linux.mt: Fix build problem on linux 1.0.8.
1758 Thu Dec 22 11:49:45 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1760 * config/netware.mt: Use gcc to pre-link iostream.nlm's objects
1761 instead of using nlmconv, so that references to functions in
1762 libgcc.a are resolved.
1764 * configure.in: Append .mt to target makefile fragment file names.
1766 * floatconv.c (tens, tinytens, bigtens): Added const qualifier.
1768 Tue Dec 20 09:59:50 1994 Mike Stump <mrs@cygnus.com>
1770 * gen-params (VTABLE_LABEL_PREFIX): Since some systems have GNU nm
1771 as nm, and they demangle by default, we have to notice this, and
1772 try --no-cplus (linux) or --no-demangle when running nm.
1774 Wed Dec 14 18:13:58 1994 Per Bothner <bothner@kalessin.cygnus.com>
1776 * gen-params: To determine vt-name-mangling using dummy.C add
1777 #include and #prama interface/implementation to avoid problem with
1778 assemblers that don't emit local symbols. Reported under HPUX 8
1779 by Thomas Arend <arend@blasius.Chemietechnik.Uni-Dortmund.DE>.
1781 * streambuf.h (ios::ios): Move inline definition after
1782 that of ios::init (which ios::ios calls).
1784 Sun Dec 4 19:50:32 1994 Per Bothner <bothner@kalessin.cygnus.com>
1786 * fileops.c (_IO_file_init, _IO_file_close_it, _IO_file_sync):
1787 Set _offset to _IO_pos_BAD, to support applications that follow
1788 POSIX.1 rules on mixing file handles.
1790 * fileops.c (_IO_file_overflow): Handle case that buffer was
1791 allocated (perhaps by setvbuf) but _IO_write_base is still 0.
1793 * iostdio.h (setbuffer): #define as _IO_setbuffer.
1794 * streambuf.h, filebuf.cc: Removed filebuf::do_write.
1796 Tue Nov 29 23:38:57 1994 Per Bothner (bothner@rtl.cygnus.com)
1798 * floatconv.c (setword0, setword1): Fix typo.
1800 Tue Nov 29 15:37:29 1994 Per Bothner <bothner@kalessin.cygnus.com>
1802 * config.shared: Move -fno-implicit-template from CXXFLAGS
1803 to LIBCXXFLAGS. Tests are better run without it.
1805 * floatconv.c (word0, word1): Re-place/re-implement using unions
1806 instead of casts to avoid optimizer problems.
1808 * dbz/dbzmain.c: Renamed dirname -> dir_name to avoid OSF
1809 header file braindamage.
1811 Sat Nov 5 19:44:00 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1813 * config.shared (LIBCFLAGS): Define.
1814 (LIBCXXFLAGS): Define.
1815 (DOING_LIBGXX): Define TOLIBGXX. Change LIBS to use -lg++. Add
1816 LD_LIBRARY_PATH and .EXPORT_ALL_VARIABLES:.
1817 (FLAGS_TO_PASS): Add LIBC{,XX}FLAGS.
1818 (XC{,XX}FLAGS): Set to LIBCFLAGS or CFLAGS depending on $LIBDIR.
1819 (COMPILE.c): Define, use in .c.o rule.
1820 (COMPILE.cc): Define, use in .cc.o rule.
1822 Sat Nov 5 15:12:12 1994 Per Bothner <bothner@kalessin.cygnus.com>
1824 * Makefile.in (VERSION): Update to 0.67.
1826 * streambuf.h (ios::dont_close): Is now set by default.
1827 * fstream.h, fstream.cc (__fb_init): New function. Clears
1828 ios::dont_close. Change fstreambase constructors to call it.
1829 * strstream.cc: *strstream constructors must clear ios::dont_close.
1830 * iostream.cc: Simplify - don't need to set ios::dont_close.
1831 * ioassign.cc: Simplify - assume ios::dont_close is always set.
1833 * fstream.h, fstream.cc: If _IO_NEW_STREAMS, put the
1834 filebuf as a member __my_fb.
1835 * strstream.{h,cc}: Likewile use a strstreambuf member __my_sb.
1836 * streambuf.h, stdstreams.cc, ioextend.cc:
1837 Fix if _IO_NEW_STREAMS to not use ios::dont_close.
1839 * streambuf.h (class ios): Move rdbuf later, to avoid
1840 inability of g++ to inline.
1841 * filebuf.cc (filebuf::~filebuf): Call _IO_do_flush.
1843 * config.shared: Emit rules to make depend.
1846 Fri Nov 4 17:19:11 1994 Per Bothner <bothner@kalessin.cygnus.com>
1848 * README: Fix typos.
1849 * libio.h: Add comment. Update Copyright notice.
1851 Fri Nov 4 21:46:30 1994 Paul Eggert <eggert@twinsun.com>
1853 * libio.h (__P): Change argument name spelling from
1854 `paramlist' to `protos' for compatibility with BSDI 1.1.
1856 Thu Nov 3 00:45:16 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1858 * config.shared (CXXFLAGS): Add -fno-implicit-templates.
1860 Mon Oct 24 15:57:35 1994 Per Bothner <bothner@kalessin.cygnus.com>
1862 * config.shared: Define NOSTDIC and use it for libio too.
1864 Thu Oct 20 19:45:35 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1866 * iogetdelim.c: #include <stdlib.h>.
1868 Thu Oct 20 17:09:52 1994 Per Bothner <bothner@kalessin.cygnus.com>
1870 * iostream.h: Add classes _IO_istream_withassign and
1871 _IO_ostream_withassign. Re-type cin, cout, cerr, clog.
1872 (class iostream): Don't add extra _gcount field.
1873 * ioassign.cc: New file. Implement operator= for cin etc.
1874 * streambuf.h (class ios): Change return type of operator=.
1875 * Makefile.in (IOSTREAM_OBJECTS): Add ioassign.o.
1877 * Makefile.in: Re-arrange, so linux.mt overrides can work.
1879 * fileops.c (_IO_file_seekoff): Optimize seeks within buffer.
1881 Wed Oct 19 14:25:47 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1883 * gen-params (wint_t): Return to using __WCHAR_TYPE__ for
1884 compatibility with gcc versions prior to 2.6.1.
1886 Tue Oct 18 17:08:18 1994 Per Bothner <bothner@kalessin.cygnus.com>
1888 * Makefile.in: Define _G_CONFOG_H as _G_config.h for Linux. Use it.
1889 (IO_OBJECTS): Add iogetdelim.o.
1890 * config/linux.mt: New file.
1891 * configure.in: Select config/linux.mt if Linux.
1892 * iogetdelim.c: Verious cleanups, many from
1893 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>.
1894 * libioP.h: Add _IO_getdelim. Use (void) for no-parameter functions.
1896 Thu Oct 13 16:30:56 1994 Per Bothner (bothner@kalessin.cygnus.com)
1898 * libio.h: Rename USE_DTOA to _IO_USE_DTOA for namespace reasons.
1899 * iostream.cc, iovfscanf.c, iovfprintf, floatconv.c:
1900 Update USE_DTOA -> _IO_USE_DTOA.
1902 * libio.h (_IO_feof, _IO_ferror): Move to here ...
1903 * iolibio: ... from here
1905 * iostream.cc (istream::get, istream::ignore, istream::read):
1906 Set _gcount to 0 if ipfx0 failed.
1908 * iostream.cc (flush): Do virtual function call, rather than
1909 going through jumptable. (To get correct method in derived class.)
1910 Bug and fix from John Wiegley <jw@cis.ohio-state.edu>.
1912 * iofdopen.c (O_ACCMODE): Define using O_RDWR, not O_RDWRITE.
1914 * streambuf.h (ios::rdbuf(streambuf*)): New.
1915 * streambuf.h (ios::operator=): Make private (i.e. dis-allow).
1917 Wed Oct 12 19:09:20 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1919 * gen-params: Define _G_NO_NRV and _G_NO_EXTERN_TEMPLATES if not
1922 Thu Oct 6 16:03:43 1994 Per Bothner (bothner@kalessin.cygnus.com)
1924 * iostream.texi (ostrstream::str): Note that NUL is not written
1927 Wed Oct 5 17:28:29 1994 Per Bothner (bothner@kalessin.cygnus.com)
1929 * iogetdelim.c (_IO_getdelim): New function.
1931 Wed Oct 5 15:40:22 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1933 * config/netware.mt: New file, first cut at Netware NLM support.
1934 * configure.in (*-*-netware*): Use config/netware.mt.
1936 * config.shared (NLMCONV, LD): New definition.
1938 * gen-params: check for nm in ${binutils}/nm.new.
1939 * config.shared: Likewise.
1941 Tue Oct 4 12:20:01 1994 Per Bothner (bothner@kalessin.cygnus.com)
1943 * iomanip.h (omanip::operator<<): Make 2nd arg be const.
1944 Bug and fix reported by Greg McGary <gkm@magilla.cichlid.com>.
1946 * strstream.cc (strstreambuf::pcount): Simplify, to match
1947 ANSI/ISO specification.
1949 Mon Sep 26 15:19:52 1994 Jason Merrill (jason@deneb.cygnus.com)
1951 * gen-params: Include <wchar.h> and <wctype.h> if they exist.
1953 Thu Sep 8 14:41:41 1994 Jason Merrill (jason@deneb.cygnus.com)
1955 * iostream.h (class istream): Declare operator>>(long double&).
1956 (class ostream): Define operator<<(long double).
1958 * iostream.cc (istream::operator>>(long double&)): Define.
1960 Wed Sep 7 14:42:29 1994 Per Bothner (bothner@kalessin.cygnus.com)
1962 * iostream.texi (Overflow): Fix bugs in example.
1964 Fri Sep 2 17:45:57 1994 Per Bothner (bothner@kalessin.cygnus.com)
1966 * iostream.tex: Document a little on how to write your
1967 own streambuf-derived class, with an example.
1969 Tue Aug 30 13:03:57 1994 Brendan Kehoe (brendan@lisa.cygnus.com)
1971 * floatconv.c (s2b): Declare X and Y to be _G_int32_t.
1972 (diff, quorem): Declare BORROW, Y, and Z likewise.
1973 (ulp): Declare L likewise.
1974 (_IO_strtod): Declare L and AADJ likewise.
1975 (_IO_dtoa): Declare L and D likewise. Cast division of D by DS to
1978 Mon Aug 29 16:01:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
1980 * iosetvbuf.c (_IO_setvbuf): If setting _IOFBF and no
1981 buffer was specified, call __doallocate.
1983 * fileops.c, floatconv.c: Add a bunch of parentheses to
1984 shut up gcc warnings. Patch from H.J.Lu.
1986 * stdiostream.cc (stdiobuf::sys_read): Inline call to getc
1987 for the normal case (size==1).
1989 Sat Aug 20 12:14:52 1994 Per Bothner (bothner@kalessin.cygnus.com)
1991 * Makefile.in (VERSION): Increase to 0.66.
1993 Fri Aug 19 17:28:41 1994 Per Bothner (bothner@kalessin.cygnus.com)
1995 * iolibio.h: Added _IO_printf prototype.
1996 Added extern "C" { ... } wrappers #ifdef __cplusplus.
1997 Bugs reported by Neal Becker <neal@ctd.comsat.com>.
1999 Wed Aug 17 18:17:15 1994 Per Bothner (bothner@kalessin.cygnus.com)
2001 * fileops.c (_IO_file_seekoff): For _IO_seek_cur, adjust for
2002 read-ahead before jumping to label dumb.
2004 Wed Aug 3 13:15:01 1994 H.J. Lu (hjl@nynexst.com)
2006 * libioP.h (CHECK_FILE(FILE,RET)): new, which checks for
2007 FILE == NULL and _IO_MAGIC_MASK.
2008 (COERCE_FILE(FILE)): merged into CHECK_FILE(FILE,RET)
2011 * iofread.c, iofwrite.c: add CHECK_FILE(fp, 0);
2012 * iofclose.c: add CHECK_FILE(fp, EOF); remove _IO_MAGIC_MASK check.
2014 * iofflush.c, iofgetpos.c, iofputs.c, iofscanf.c,
2015 iofsetpos.c, iofvbuf.c, ioungetc.c:
2016 Add CHECK_FILE(fp, EOF) and remove COERCE_FILE(fp).
2018 * iofgets.c: add CHECK_FILE(fp, NULL) and remove COERCE_FILE(fp).
2019 * iofprintf.c: add CHECK_FILE(fp, -1) and remove COERCE_FILE(fp).
2020 * ioftell.c: add CHECK_FILE(fp, -1L) and remove COERCE_FILE(fp).
2021 * iosetbuffer.c: add CHECK_FILE(fp, ) and remove COERCE_FILE(fp).
2023 Fri Aug 12 15:35:39 1994 Per Bothner (bothner@kalessin.cygnus.com)
2025 * iofdopen.c (_IO_fdopen): #define O_ACCMODE if it isn't.
2026 Still set O_APPEND if "a" is given, but don't unset it
2027 if it isn't. Added comment.
2029 Mon Aug 8 13:11:00 1994 Per Bothner (bothner@kalessin.cygnus.com)
2031 * gen-params (VTABLE_LABEL_PREFIX): Changes in the implementation.
2032 For look for _*vt[$_.]7*filebuf in the nm output, because that
2033 matches what g++ produces and has produced. Thus it should be
2034 somewhat more robust.
2036 Sun Aug 7 22:52:49 1994 Per Bothner (bothner@kalessin.cygnus.com)
2038 * gen-params (CC): Remove no-longer-needed -I options
2039 passed to xgcc (now they are implied by the -B options).
2041 Wed Jul 20 16:41:13 1994 Per Bothner (bothner@kalessin.cygnus.com)
2043 * Makefile.in (tooldir): Added definition, so we can do
2044 'make install' in this directory.
2045 Bug reported by Klamer Schutte <schutte@tpd.tno.nl>.
2047 Mon Jul 18 18:02:34 1994 Per Bothner (bothner@kalessin.cygnus.com)
2049 * gen-params (VTABLE_LABEL_PREFIX): Remove filename sppearing
2050 by itself. Add comment explaining what is going on.
2052 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@jalod)
2054 * libio.h: define _IO_uid_t and _IO_HAVE_ST_BLKSIZE
2057 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@jalod)
2059 * iopopen.c: Don't include <errno.h>. It is included in "libioP.h".
2061 * iopopen.c (_IO_proc_close) : check if fp is on the list
2064 Thu Jul 14 16:38:47 1994 Per Bothner (bothner@kalessin.cygnus.com)
2066 * gen-params (CONFIG_NM): Make sed scripts to find vtable name
2067 mangling more robost for different forms of nm output.
2069 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@jalod)
2071 * iofopen.c (_IO_fopen): don't check [redundantly] fp == NULL after
2072 IO_file_init(&fp->_file).
2074 * iomanip.h (template<class TP> class iapp):
2075 change ostream to istream.
2077 Tue Jul 12 14:09:02 1994 Per Bothner (bothner@kalessin.cygnus.com)
2079 * Makefile.in (VERSION): Increase to 0.65.
2080 * libioP.h (builtinbuf_vtable): Only define #ifdef __cplusplus.
2082 * gen-params (_G_int8_t): Only define if defined(__STDC__),
2083 because K&R C compilers don't have signed char.
2084 (_G_int64_t, _G_uint64_t): Only define if defined(__GNUC__)
2085 because other compilers may not have long long.
2087 Sun Mar 06 13:10:21 1994 H.J. Lu (hjl@nynexst.com)
2089 * floatconv.c (_IO_dtoa ()): fix a small memory leak, set the
2090 "on_stack" field to be 0 if "result" is not NULL.
2092 Sat Mar 05 13:18:20 1994 H.J. Lu (hjl@nynexst.com)
2094 * floatconv.c (_IO_dtoa ()): if the number of digits of the
2095 floating point number is more than the previous one, free the
2096 old string and allocate a new one.
2097 [Minor optimization to avoid Bcopy. -PB]
2099 Mon Jul 11 10:53:41 1994 Per Bothner (bothner@kalessin.cygnus.com)
2101 * fileops.c (_IO_file_underflow): 'count' should be unsigned,
2102 since it contains the return value of read. Reported by
2103 Teemu Torma <tot@trema.fi>.
2105 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@nynexst.com)
2107 * floatconv.c (_IO_strtod ()): make "+" and "-" as error.
2109 Sat Jul 9 15:09:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
2111 Make sure _IO_FILE::_flags is always initialized correctly, for the
2112 C functions (fopen, fdopen, popen), and not just the C++ functions.
2113 * fileops.c (_IO_file_init): Set _flags to CLOSED_FILEBUF_FLAGS.
2114 * fileops.c (_IO_file_fopen): Remove bogus assignment.
2115 * filebuf.cc (filebuf constructors): Don't pass CLOSED_FILEBUF_FLAGS
2116 to streambuf constructor - _IO_file_init does it instead.
2117 * filebuf.cc (CLOSED_FILEBUF_FLAGS): Removed.
2118 * iopopen.c (_IO_proc_open): Use _IO_mask_flags.
2120 Thu Jun 30 08:49:53 1994 Jason Merrill (jason@deneb.cygnus.com)
2122 * dbz/Makefile.in (mostlyclean): Add target.
2124 Wed Jun 29 09:30:12 1994 Jason Merrill (jason@deneb.cygnus.com)
2126 * gen-params: Woops, can't run a C program to determine target
2127 characteristics. Sigh.
2129 Tue Jun 28 03:11:33 1994 Jason Merrill (jason@deneb.cygnus.com)
2131 * gen-params: Add _G_{,u}int{8,16,64}_t, use a short C program to
2132 determine what all these should be rather than trying to compare
2133 the MAX numbers in the shell.
2135 Sun Jun 26 21:04:24 1994 Per Bothner (bothner@kalessin.cygnus.com)
2137 * stdiostream.h, stdiostream.cc (stdiobuf::xsgetn): Removed.
2138 Too hairy. If we want to optimize it, we should do so in
2139 filebuf::xsgetn (or rather _IO_file_xsgetn).
2141 * stdiostream.h (class stdiobuf), stdiostream.cc: Fix parameter
2142 and return types of virtual function to matcher base types (Oops!).
2143 * streamstream.cc (stdiobuf::xsgetn, stdiobuf::xsputn):
2144 Optimize to call fread.fwrite directly if !buffered.
2145 * fileops.c: Fix comment.
2147 Fri Jun 24 11:28:18 1994 Per Bothner (bothner@kalessin.cygnus.com)
2149 * stdiostream.h (istdiostream, ostdiostream): New classes.
2151 More robust final cleanup.
2152 * cleanup.c (_IO_register_cleanup): Register _IO_cleanup,
2153 rather than _IO_flush_all.
2154 * filedoalloc.c: Update comment.
2155 * genops.c (_IO_unbuffer_all): New. Makes all files unbuffered.
2156 * genops.c (_IO_cleanup), libioP.h: New function. Call
2157 _IO_flush_all, and then _IO_unbuffer_all. This is in case C++
2158 destructors try to do output *after* _IO_cleanup is called.
2160 Construct standard stdiobufs statically (using type punning).
2161 * stdstrbufs.c; Unless _STDIO_USES_IOSTREAM declare standard
2162 stdiobufs (for stdin, stdout, and stderr), using type punning
2163 (struct _IO_fake_stdiobuf). This avoids constructor-time problems.
2164 * stdstreams.cc: Remove the declarations of the stdiobufs.
2165 Instead use the new (fake) ones in stdstrbufs.cc. We no longer
2166 have to call ios::sync_with_stdio at constructor time.
2168 Preliminary support for new ANSI streambuf::uflow virtual.
2169 * libioP.h (struct _IO_jump_t): Add __uflow field.
2170 * genops.c (_IO_default_uflow), libioP.h: New function.
2171 * fileops.c (_IO_file_jumps), iopopen.c (IO_proc_jumps),
2172 iovfprintf.c (_IO_helper_jumps), strops.c (_IO_str_jumps),
2173 streambuf.cc (_IO_streambuf_jumps): Add _IO_default_uflow.
2174 * genops.c (__uflow): New function.
2175 (save_for_backup): New function. Some code shared by
2176 __underflow and __uflow, moved out from the former.
2177 (_IO_default_uflow): New function.
2178 * libio.h (_IO_getc): Call __uflow, not __underflow.
2180 Wed Jun 22 20:22:49 1994 Per Bothner (bothner@kalessin.cygnus.com)
2182 Make sure that the vtable of a streambuf is always valid,
2183 which makes ios::rdbuf simpler and faster.
2184 * gen-params: Add code to determine _G_VTABLE_LABEL_HAS_LENGTH,
2185 _G_VTABLE_LABEL_PREFIX, _G_VTABLE_LABEL_PREFIX_ID, and
2186 _G_USING_THUNKS, which describe how virtual function tables are named.
2187 * stdfiles.c (FILEBUF_LITERAL): Moved to libioP.h.
2188 * libioP.h (builtinbuf_vtable): New (complicated) declaration.
2189 * filebuf.cc (filebuf::__new), strstream.cc (SET_STR_JUMPS):
2190 Initialize vtable to builtinbuf_vtable, not NULL.
2191 * stdstrbufs.cc: New file. Same as stdfiles.c, except that
2192 vtable is initialized to builtinbuf_vtable, not NULL.
2193 * streambuf.h (ios::rdbuf): Can now simplify/optimize, due to
2194 above changes. Always, just return _strbuf.
2195 * builtinbuf.h, builtinbuf.cc (builtinbuf::vtable,
2196 builtinbuf::get_builtin_vtable): Removed. No longer needed.
2197 * streambuf.h, builtinbuf.cc (ios::_IO_fix_vtable): No longer needed.
2198 Only defined #ifdef _STREAM_COMPAT, for binary compatibility.
2199 * Makefile.in: Move stdfiles.o from IO_OBJECTS to STDIO_WRAP_OBJECTS.
2200 (IOSTREAM_OBJECT): Add stdstrbufs.o.
2201 * Makefile.in (_G_config.h): Pass $(CXXFLAGS) as part of $(CXX).
2203 Fri Feb 11 11:08:01 1994 SBPM Marc GINGOLD (marc@david.saclay.cea.fr)
2205 * iovfprintf.c (helper_vfprintf): add
2206 hp->_IO_file_flags = _IO_MAGIC|(_IO_IS_FILEBUF+_IO_NO_READS);
2207 [This is needed because _IO_vfprintf checks for _IO_UNBUFFERED. -PB]
2208 [Actually: don't set _IO_IS_FILEBUF. -PB]
2210 Wed Jun 22 13:49:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
2212 * stdiostream.cc, stdiostream.h (stdiobuf::buffered): New methods.
2214 * iofdopen.c (_IO_fdopen): Various minor improvements.
2216 * iovfscanf.c: Don't return EOF on control_failure.
2218 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@nynexst.com)
2220 * iovfscanf.c: Enforce the sequence of the conversion specifications.
2222 Fri Jun 17 20:57:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
2224 * iofdopen.c: Use fcntl to check that requested access mode is
2225 compatible with existing access mode, and to change the
2226 O_APPEND file status flag if need be.
2228 Thu Jun 16 17:33:50 1994 Per Bothner (bothner@kalessin.cygnus.com)
2230 * streambuf.h (ios::init): Initialize all the fields.
2231 This may be overkill, but the current ANSI working paper requires it.
2232 * streambuf.h (ios::ios): Reimplement in terms of ios::init.
2233 * iostream.cc (Non-default constructors istream::istream,
2234 ostream::ostream, iostream::iostream): Cannot use a mem-initializer,
2235 because it is ignored if initializing a derived class. Instead,
2238 Wed Jun 15 13:35:37 1994 Per Bothner (bothner@kalessin.cygnus.com)
2240 * stdstreams.cc (ISTREAM_DEF): Fix typo (it's a _fake_istream, not
2241 a _fake_ostream). Reported by Jason Shirk <jshirk@gomez.intel.com>.
2243 * stdiostream.h, stdiostream.cc (stdiobuf::~stdiobuf): New.
2245 * stdiostream.cc (stdiobuf::sync): Call _IO_do_flush rather
2246 than filebuf::sync (to avoid bad seeks).
2248 * libioP.h (_IO_do_flush): Add missing parentheses.
2250 Fri Jun 3 19:16:57 1994 Jason Merrill (jason@deneb.cygnus.com)
2252 * config.shared (CXXFLAGS): Remove -fno-implicit-templates.
2254 * iomanip.h: Add explicit external instantiations.
2256 Wed Jun 1 14:14:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
2258 * libio.h (struct _IO_FILE_plus): Move definition from here ...
2259 * libioP.h (struct _IO_FILE_plus): ... to here. Since this
2260 file is private to the implementation, we can rename the fields
2261 from the implementor's to the user's name anme space.
2262 (This avoids a lossage on SCO, whose stdio.h has a #define _file.)
2263 * iofdopen.c, iofopen.c, stdfiles.c: Fix field references accordingly.
2264 * iopopen.c (struct_IO_proc_file): Rename fields from
2265 implementor's name space to user's, and update usages.
2266 * streambuf.h (streambuf::_vtable): Re-implement to not need
2267 struct _IO_FILE_plus.
2268 * strfile.h (struct _IO_strfile_): Likewise.
2270 Wed Jun 1 13:57:48 1994 Jason Merrill (jason@deneb.cygnus.com)
2272 * config.shared (CXXFLAGS): Use -fno-implicit-templates instead of
2273 -fexternal-templates.
2275 Tue May 31 08:49:28 1994 Mike Stump (mrs@cygnus.com)
2277 * genops.c, iofclose.c, iofdopen.c, iofopen.c, iopopen.c: Be
2278 consistent about protecting #include <stdlib.h>.
2280 * ioputs.c: Add #include <string.h>, to avoid warning on alpha.
2282 * iofdopen.c: Add #include <stdlib.h>, so that malloc works on
2283 machines where sizeof(int) != sizeof(void *).
2285 Mon May 30 17:26:49 1994 Per Bothner (bothner@kalessin.cygnus.com)
2287 * pfstream.cc (ipfstream::ipfstream, opfstream::opfstream):
2288 Reverse sense of test of return value of procbuf::open.
2289 (It returns NULL on failure.)
2291 * filedoalloc.c (_IO_file_doallocate): Remove dead code for
2292 USE_MALLOC_BUF. Add code to return EOF if ALLOC_BUF fails.
2294 Sat May 28 13:47:47 1994 Jason Merrill (jason@deneb.cygnus.com)
2296 * iomanip.cc: Explicitly instantiate smanip<int> and
2297 smanip<ios::fmtflags>.
2299 Wed May 25 16:04:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
2301 * strfile.h: Use __P instead of _PARAMS.
2303 Fri May 20 11:42:17 1994 Per Bothner (bothner@kalessin.cygnus.com)
2305 * libio.h: Rename _PARAMS macro to __P for better glibc and BSD
2306 compatibility. (Also define _PARAMS for backwards compatibility.)
2307 * cleanup.c, iolibio.h, ioperror.c, iovfprintf.c, iovfscanf.c,
2308 libioP.h: Use __P instead of _PARAMS.
2309 * iostdio.h: Use __P instead of _ARGS.
2311 * fileops.c (_IO_file_read): Minor stylistic tweak. (It is
2312 preferable to test errno *after* the error return.)
2314 Fri May 13 15:25:36 1994 Jason Merrill (jason@deneb.cygnus.com)
2316 * iostream.*: Add insertor and extractor for bool (just pretend
2319 Fri May 13 14:12:03 1994 Mike Stump (mrs@cygnus.com)
2321 * gen-params: Check for builtin bool support.
2323 Wed May 11 00:48:35 1994 Jason Merrill (jason@deneb.cygnus.com)
2325 Make libg++ build with gcc -ansi -pedantic-errors
2326 * gen-params: #ifdef __STRICT_ANSI__, #define _G_NO_NRV.
2327 * pfstream.cc (ipfstream::ipfstream): Wrap use of variable-size
2328 array in #ifndef __STRICT_ANSI__.
2330 Fri May 6 12:42:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
2332 * Makefile.in (VERSION): Increase to 0.64.
2334 * isgetline.cc (istream::getline): The delimiter should *not*
2335 be included in the gcount().
2337 * filedoalloc.c: #include <stdlib.h> (If __STDC__) to get malloc.
2338 * iostream.h (ostream::put): Remove overloaded versions, to match
2339 new working paper. (Actually just put inside _STREAM_COMPAT, for now.)
2341 Tue May 3 14:14:57 1994 Per Bothner (bothner@kalessin.cygnus.com)
2343 * genops.c (_IO_default_finish): Make robust when called
2344 multiple times on the same _IO_FILE*. (One way this can
2345 happen is by the builtinbuf destructor being followed by the
2346 streambuf destructor.)
2348 Mon May 2 13:55:26 1994 Jason Merrill (jason@deneb.cygnus.com)
2350 * gen-params: Actually determine wint_t rather than depending on
2351 cpp to provide it or defaulting to the underlying type for
2354 Sat Apr 30 14:47:30 1994 Jason Merrill (jason@deneb.cygnus.com)
2356 * gen-params: Add _G_wint_t, allow __*_TYPE__ to override values
2357 at compile time, fix definition of _G_ARGS.
2359 Fri Apr 29 16:55:37 1994 Per Bothner (bothner@kalessin.cygnus.com)
2361 * libio.h: Remove #pragma interface. (There is no implementation.)
2363 Mon Mar 28 14:22:26 1994 Per Bothner (bothner@kalessin.cygnus.com)
2365 * iostream.cc (ostream::operator<<(double)): Add/fix support
2366 for printing '+' when ios::showpos is set.
2367 (Fixes bug reported by Doug Moore <dougm@cs.rice.edu>.)
2368 * iostream.cc (istream::read): Set eofbit as well as failbit on eof.
2369 * iostream.cc (ostream::operator<<(int)): Fix conversion
2370 to unsigned (used to lose on INT_MIN).
2371 * iostream.cc (ostream::operator<<(long)): Use (unsigned long),
2372 rather than (unsigned) for temporary.
2374 * config.shared, Makefile.in: Remove definitions and uses
2375 of XTRAFLAGS. It is no longer needed, since it is
2376 now implied by the -B flag.
2378 Fri Mar 25 00:31:22 1994 Jason Merrill (jason@deneb.cygnus.com)
2380 * builtinbuf.h: Add put /**/ around comment on trailing #endif.
2382 * Makefile.in (c++clean): Make clean in tests subdir, too.
2384 Wed Mar 23 16:42:09 1994 Doug Evans (dje@canuck.cygnus.com)
2386 * configure.in: Remove Makefile.tem before creating it.
2387 Needed when configuring from read-only source trees.
2389 Wed Mar 16 14:06:42 1994 Per Bothner (bothner@kalessin.cygnus.com)
2391 * stdstreams.cc: Fix so that stdiobuf are used for cin/cout/cerr,
2392 unless _STDIO_USES_IOSTREAM is defined.
2393 * filebuf.cc (filebuf::setbuf): Fix confusion about return
2394 value from _IO_file_setbuf.
2396 Sun Mar 13 00:54:12 1994 Paul Eggert (eggert@twinsun.com)
2398 * config.shared: Ensure that `all' precedes `.PHONY';
2399 BSDI 1.1 needs this.
2401 Sat Mar 12 03:58:00 1994 Paul Eggert (eggert@twinsun.com)
2403 * config.shared: Output a definition of INSTALL that uses
2404 $${rootme}, not ${rootme}. Most `make's don't care, but BSDI
2407 Fri Mar 4 17:33:01 1994 Per Bothner (bothner@kalessin.cygnus.com)
2409 * iopopen.c: #define _POSIX_SOURCE.
2410 * isgetline.c (istream::getline): Various fixes.
2412 Thu Mar 3 17:58:20 1994 Per Bothner (bothner@kalessin.cygnus.com)
2414 * iostream.cc (write_int): Fix test for when to add initial '0'
2415 when ios::oct and ios::showbase are set.
2416 For hex, showbase adds initial 0x (or 0X) regardless of val==0.
2417 Bugs reported by Phil Roth <proth@cs.uiuc.edu>.
2419 Mon Feb 21 13:18:20 1994 H.J. Lu (hjl@nynexst.com)
2421 * libio.h (_IO_PENDING_OUTPUT_COUNT(_fp)): return the
2422 pending output count in _fp.
2424 Fri Feb 25 09:26:57 1994 Ian Lance Taylor (ian@cygnus.com)
2426 * gen-params: For HAVE_SYS_WAIT, compile dummy.c, not dummy.C.
2428 Tue Feb 22 11:19:09 1994 Per Bothner (bothner@kalessin.cygnus.com)
2430 * streambuf.h, genops.c, libioP.h: Rename references to
2431 _IO_FILE fields other_gbase => _IO_save_base,
2432 _aux_limit => _IO_backup_base, and _other_egptr => _IO_save_end.
2433 * libio.h: Remove no-longer needed macros _other_gbase,
2434 _aux_limit, and _other_egptr.
2435 * genops.c (__underflow, _IO_default_finishh, _IO_unsave_markers):
2436 Check _IO_save_base for NULL before FREEing it or calling
2437 _IO_free_backup_area.
2439 Thu Feb 17 15:26:59 1994 Per Bothner (bothner@kalessin.cygnus.com)
2441 * gen-params: Improve deduction of _G_uint32 and _G_int32.
2442 Should now work for 16-bit, 32-bit, or 64-bit targets.
2443 * gen-params: Check for sys/wait.h using ${CC}, since it's
2444 now used in a C file, not a C++ file.
2445 * floatconv.c: Typedef _G_uint32_t as unsigned32, and use
2446 unsigned32 in place of unsigned long. (Needed for Alpha.)
2448 Tue Feb 8 13:40:15 1994 Per Bothner (bothner@kalessin.cygnus.com)
2450 * fileops.c (_IO_file_close_it): Simplify by using _IO_do_flush.
2451 * fileops.c (_IO_file_finish): Don't call _IO_file_close_it -
2452 do it inline. Call _IO_do_flush even if _IO_DELETE_DONT_CLOSE.
2453 * fileops.c (_IO_file_attach): Set _IO_DELETE_DONT_CLOSE.
2454 * genops.c (_IO_flush_all): Only call overflow if there is
2456 * iofclose.c (_IO_fclose): Check that magic number is correct,
2457 and clear it when done. Avoids crashing some buggy applications.
2458 * iogetline.c (_IO_getline): Don't gratuitously increment old_len.
2459 * iogets.c (_IO_gets): Take care to get required ANSi semantics.
2461 Sun Feb 6 19:50:39 1994 Jason Merrill (jason@deneb.cygnus.com)
2463 * iomanip.cc: Explicitly instantiate operator<< and >>.
2465 Fri Feb 4 12:28:22 1994 Jason Merrill (jason@deneb.cygnus.com)
2467 * config.shared (CXXFLAGS): Use -fexternal-templates.
2469 * iomanip.h: Uncomment #pragma interface.
2471 Thu Jan 20 13:48:40 1994 Per Bothner (bothner@kalessin.cygnus.com)
2473 If no characters are read by fgets, ANSI C doesn't allow '\0' to
2474 be written to the buffer, but it is required by ANSI C++
2475 for istream::get and istream::getline. Both use _IO_getline ...
2476 * iogetline.c (_IO_getline): Don't write a '\0' at the end
2477 of the read data. The input buffer length does not include
2479 * iofgets.c, iogets.c: Change appropriately.
2480 Also check for _IO_ERR_SEEN, as required by ANSI.
2481 * isgetline.cc: Update accordingly.
2483 Mon Jan 17 13:24:26 1994 Jason Merrill (jason@deneb.cygnus.com)
2485 * Makefile.in (c++clean): Added target for compiler testing
2486 (i.e. make c++clean all).
2488 Mon Jan 10 11:20:42 1994 Per Bothner (bothner@kalessin.cygnus.com)
2490 * libio.h (_IO_putc): Add parentheses.
2491 Patch from Rik Faith <faith@cs.unc.edu>.
2493 Tue Jan 4 01:32:28 1993 Hongjiu Lu (hjl@nynexst.com)
2495 * genops.c (_IO_default_xsputn):
2496 (_IO_default_xsgetn):
2497 * ioignore.c: change "_IO_size_t count" to
2498 "_IO_ssize_t count".
2499 * iogetline.c: change "_IO_size_t len" to
2502 Mon Dec 20 00:31:21 1993 Per Bothner (bothner@kalessin.cygnus.com)
2504 * config.shared (CXXINCLUDES): Fix quoting of $(NOSTDINC).
2506 Sun Dec 19 21:03:45 1993 Per Bothner (bothner@kalessin.cygnus.com)
2508 * Makefile.in (VERSION): Increase to 0.63.
2510 Fri Dec 17 13:02:44 1993 Per Bothner (bothner@kalessin.cygnus.com)
2512 * iofread.c (_IO_fread): Return 0 if either size or count is 0.
2513 * iofwrite.c (_IO_fwrite): Return 0 if either size or count is 0.
2514 (This is consistent with fread, and most implementations, but not
2515 with a literal reading of the ANSI spec.)
2516 * iovfscanf.c (_IO_vfscanf): If got EOF while skipping spaces,
2517 set seen_eof and break (instead of returning).
2518 * sbscan.cc (streambuf::vscan): Set error state before returning.
2519 * streambuf.h: Add a forward declarations for class istream
2520 to work around a g++ vtable name mangling bug. (Patch from
2521 harry@pdsrc.hilco.com via Jeffrey A Law <law@snake.cs.utah.edu>.)
2524 Sat Dec 11 16:21:08 1993 Per Bothner (bothner@kalessin.cygnus.com)
2526 * iovfprintf.c (struct helper_file, _IO_helper_overflow,
2527 helper_vfprintf, _IO_helper_jumps): New structs and functions.
2528 (_IO_vfprintf): Use helper_vfprintf to make printing to
2529 unbuffered files more efficient.
2530 * genops.c (_IO_default_underflow), libioP.h: New function.
2532 * iovsscanf.c (_IO_vsscanf): The input string's length marks
2533 its logical end-of-file.
2535 Wed Dec 8 13:20:46 1993 Per Bothner (bothner@kalessin.cygnus.com)
2537 * indstream.cc (indirectbuf::sync()): Don't crash if get_stream()
2538 or put_stream() are NULL; sync() both streams even if error.
2540 Sun Dec 5 19:24:29 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
2542 * iostreamP.h (convert_to_seekflags): Use _IO_seek_set instead of
2543 0 inside the conditial expressions.
2545 * iofsetpos.c (_IO_fsetpos): Delete unused var `pos'.
2547 Sat Dec 4 15:57:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
2549 * filedoalloc.c (_IO_file_doallocate): Change type of couldbetty
2550 to int, and type of size to _IO_size_t, instead of size_t.
2551 (Change needed for Ultrix, which incorrectly deliberately doesn't
2552 define size_t in <sys/types.h> if _POSIX_SOURCE is defined.)
2554 Thu Dec 2 22:43:03 1993 Per Bothner (bothner@kalessin.cygnus.com)
2556 * fileops.c (_IO_file_finish): Remove redundant call to _IO_un_link.
2557 * iofclose.c (_IO_fclose): Don't call fp->_jumps->__close; it's
2558 too low-level. Instead call _IO_file_close_it.
2559 * dbz/Makefile.in (rclean, distclean): Add some missing files.
2561 Wed Dec 1 13:19:14 1993 Per Bothner (bothner@kalessin.cygnus.com)
2563 * config/hpux.mt (MATH_H_INLINES): No longer define.
2564 Patch from Jeffrey A Law <law@snake.cs.utah.edu>.
2566 Fri Nov 26 13:28:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
2568 * config.shared (CINCLUDES): Define default if libg++.
2569 * iofread.c: Use _IO_sgetn.c.
2570 * iolibio.h (_IO_clearerr): Fix typo.
2571 * genops.c (_IO_seekmark): Return 0 on success.
2572 * floactconv.c (Binit): Change to static.
2573 * iofclose.c (_IO_fclose): Check if file is _IO_stdin, _IO_stdout,
2574 or _IO_stderr; if so don't try to free it. Fix from hjl@nynexst.com.
2576 * genops.c (_IO_default_sync), libioP.h: New function.
2577 * libioP.h (_IO_default_close): Use _IO_default_sync -same interface.
2579 * Makefile.in: Increase version to 0.62.
2580 * iopopen.c (_IO_proc_close): Use waitpid (available in libibarty,
2581 if needed), rather than wait. Don't block/ignore SIGINT etc,
2582 as this is counter to Posix.2.
2583 * iopopen.c: Chain open proc_files, and have the child close
2584 the ones that are open (as required by Posix.2).
2586 * fstream.h (fstreambase::rdbuf), strstream.h (strstreambase
2587 ::rdbuf): Call ios::rdbuf() instead of getting _strbuf directly.
2589 * sbscan.cc (streambuf::vscan): Comment out duplicate default arg.
2590 * floatconv.c: Recognize Alpha and i860 as little-endian.
2591 * streambuf.cc: Return two bogus value returns from void functions.
2592 * iolibio.h, iofwrite.c: Fix buffer type to (const void*).
2593 * libio.h: Predefine of struct _IO_FILE to help non-g++-compilers.
2594 * libioP.h, pfstream.cc, stdfiles.c, iovfscanf.c: Cleanup syntax junk.
2595 * stdstreams.cc: Minor simplification.
2596 * streambuf.h, builtinbuf.cc: Add non-const ios::_IO_fix_vtable()
2597 for temporary binary compatibility.
2599 * filedoalloc.c, fileops.c: Add _POSIX_SOURCE.
2600 * fileops.c, iofopen.c, iofputs.c, iostream.cc, strops.c,
2601 strstream.cc, genops.c: Add some missing #includes.
2602 * iofopen.c, iofdopen.c: Return NULL if malloc fails.
2603 * iovfscanf.c: Fix return type in strtol prototype.
2604 * fwrite.c: Remove bogus file.
2606 Wed Nov 17 14:09:42 1993 Per Bothner (bothner@cygnus.com)
2608 * builtinbuf.cc (ios::_IO_fix_vtable), streambuf.h: Make method
2609 const, to reduce problems with -Wcast-qual.
2611 Tue Nov 16 19:30:42 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2613 * config.shared (CXXINCLUDE): use ${} instead of $() for NOSTDINC
2615 Tue Nov 16 14:15:45 1993 Per Bothner (bothner@kalessin.cygnus.com)
2617 * iopopen.c (_IO_proc_close): Re-structure to avoid
2618 declarations after statements.
2619 * floatconv.c: If not __STDC__, #define DBL_MANT_DIG.
2620 * config/isc.mt (G_CONFIG_ARGS): Remove bogus spaces.
2621 Patch from David A. Avery <daa@nic.cerf.net>.
2623 Tue Nov 16 15:58:31 1993 Mark Eichin (eichin@cygnus.com)
2625 * Makefile.in (_G_config.h): explicitly use $(SHELL) to run
2626 gen-params, since we know it is a script (we're explicitly looking
2627 in ${srcdir} for it) and /bin/sh might not be good enough.
2629 Mon Nov 15 13:26:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
2631 * builtinbuf.cc: Don't depend on initialization of static
2632 variable builtinbuf::vtable, since that might happen after
2633 we need it (for a static constructor). Instead, initialize
2634 it when needed by inlining the code from get_builtin_vtable
2635 into ios::_IO_fix_vtable().
2637 * floatconv.c: Avoid using #elif, which some C compilers lack.
2638 * iogetline.c, libioP.h: Make char parameter be int, to avoid
2639 some default promotion anomalies.
2641 Fri Nov 5 11:49:46 1993 Per Bothner (bothner@kalessin.cygnus.com)
2643 * config.shared (do-clean-dvi): Remove TeX work files.
2644 * iopopen.c (extern _IO_fork): Don't use parameter type void.
2645 * strops.c (_IO_str_init_static): Clear the allocate_buffer
2646 function pointer, to mark the strfile as being static.
2647 Bug fix from Mike Raisbeck <mike@pudding.rtr.COM>.
2649 Thu Nov 4 10:44:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
2651 * filebuf.cc (filebuf:): Use sseekoff rather than seekoff
2652 (which loses if vtable pointer is NULL).
2654 * iostream.cc (ostream::operator<<(long long n)): Fix thinko.
2656 * Makefile.in (VERSION): Increase to 0.60.
2657 * Makefile.in (IO_OBJECTS): Added iopopen.o.
2658 * config.shared (DISTCLEAN): Also remove Make.pack.
2659 * config.shared (CXXINCLUDES): Add $(NOSTDINC).
2661 * config.shared (INSTALL): Fix so it ues the correct install.sh
2662 whether $srcdir is absolute or relative.
2664 * floatconv.c (DBL_MAX_10_EXP): Fix default value.
2666 Wed Nov 3 10:20:49 1993 Per Bothner (bothner@kalessin.cygnus.com)
2668 * gen-params: Make more robust to allow random junk (NeXT
2669 has spaces) before typedefs.
2671 * fileops.c (_IO_file_overflow): Reduce code duplication.
2672 * Makefile.in (IO_OBJECTS): Remove ioputs.o.
2674 * iovfscanf.c, libio.h: Extra parameter to _IO_vfscanf,
2675 for optionally setting an error indication..
2676 * iofscanf.c, ioscanf.c, iofscanf.c, iovsscanf.c: Fix calls to
2677 _IO_vfscanf to pass an extra NULL.
2678 * sbscan.cc (streambuf::vscan): If passed an extra stream,
2679 set its error state (using new _IO_vfscanf parameter.
2681 * filedoalloc.c, fileops.c, genops.c, iogetline.c, ioignore.c,
2682 libio.h, libioP.h, streambuf.cc streambuf.h, strfile.h, strops.c,
2683 strstream.cc: Replace macros (_base, _ebuf, _eback, _gptr, _egptr,
2684 _pbase, _pptr, _epptr) by field names (_IO_buf_base, _IO_buf_end,
2685 _IO_read_base, _IO_read_pre, IO_read_end, _IO_write_base,
2686 _IO_write_ptr, _IO_write_end).
2687 * libio.h: Remove the old macros (which fixes a conflict.
2689 Mon Nov 1 15:22:12 1993 Per Bothner (bothner@kalessin.cygnus.com)
2691 * iostream.cc: Use _IO_sputn instead of sputn. _IO_sputn does
2692 not require a vtable pointer, and is also slightly faster.
2694 * builtinbuf.{h,cc} (builtinbuf::setbuf): Fix return and
2697 Mon Oct 25 12:56:33 1993 Per Bothner (bothner@kalessin.cygnus.com)
2699 Kludge to make sure _IO_FILE buffers get flushed before exit.
2700 * dbz/dbzmain.c, dbz/fake.c, dbz/byteflip.c:
2701 Invoke DBZ_FINISH macro (if defined) before (normal) exits.
2702 * dbz/Makefile.in (CFLAGS): Define DBZ_FINISH to call _IO_flush_all.
2704 Sat Oct 23 22:10:53 1993 Per Bothner (bothner@kalessin.cygnus.com)
2706 * Makefile.in (VERSION): Set to 0.60 for libg++ release.
2707 * fileops.c (_IO_file_attach): Set _offset to _IO_pos_BAD.
2708 * iostream.cc (ostream::flush): Fix thinkp.
2709 * editbuf.cc, isgetsb.cc, isscan.cc, osform.cc, parsestream.cc,
2710 pfstream.cc, sbform.cc, sbscan.cc, stdstreams.cc, stream.cc:
2711 Replace #include "ioprivate.h" by #include "libioP.h" (and
2712 sometimes stdarg.h, stdlib.h and/or string.h).
2713 * ioprivate.h: Removed.
2716 Thu Oct 21 19:24:02 1993 Per Bothner (bothner@kalessin.cygnus.com)
2718 * PlotFile.h, SFile.h, editbuf.cc, editbuf.h, filebuf.cc,
2719 fstream.cc, fstream.h, indstream.cc, indstream.h, iomanip.cc,
2720 iomanip.h, ioprivate.h, iostream.cc, iostream.h, isgetline.cc,
2721 isgetsb.cc, parsestream.cc, parsestream.h, pfstream.cc,
2722 pfstream.h, procbuf.cc, procbuf.h, stdiostream.cc, stdiostream.h,
2723 stdstreams.cc, streambuf.cc, streambuf.h, strstream.cc,
2724 strstream.h: Remove old (duplicate) copyright notices.
2726 * iostream.cc: Fix calls to sync() to be safe in the presence
2727 of vtable-less streambufs.
2729 Wed Oct 20 15:22:04 1993 Per Bothner (bothner@kalessin.cygnus.com)
2731 * streambuf.h (streambuf::underflow, streambuf::overflow):
2732 Don't make virtual functions pure.
2733 * streambuf.cc (streambuf::underflow, streambuf::overflow):
2734 Default definitions (return EOF).
2735 * fstream.h: Add new (int fd, char* buf, int len) constructors.
2736 These are deprecated, but added for AT&T compatibility.
2737 * fstream.cc fstreambase::fstreambase(int fd, char *p, int l): New.
2739 Thu Oct 14 14:57:01 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2741 * configure.in: use 'mv -f' instead of 'mv'
2743 Tue Oct 12 05:01:44 1993 Mike Stump (mrs@cygnus.com)
2745 * floatconv.c: Fix typo, change __STDC to __STDC__.
2747 Mon Oct 11 17:03:12 1993 Per Bothner (bothner@kalessin.cygnus.com)
2749 * cleanup.c: It should be #if _G_HAVE_ATEXIT, not #ifdef.
2751 * floatconv.c, iostrerror.c, iovfprintf.c, iovfscanf.c, libioP.h:
2752 Bunch of fixes to allow use of non-ANSI (K&R) C compilers.
2754 * Makefile.in (iostream.list): Use CC=$(CXX) to force use of gcc.
2757 Fri Oct 8 16:19:58 1993 Per Bothner (bothner@kalessin.cygnus.com)
2759 * Makefile.in: Move ioungetc.o from STDIO_WRAP_OBJECTS to
2760 IO_OBJECTS (since it is needed for iovfscanf.c).
2761 * iostrerror.c: Add declaration of strerror.
2763 Thu Oct 7 12:02:28 1993 Per Bothner (bothner@kalessin.cygnus.com)
2765 * cleanup.c: New file, to cause flushing at exit.
2766 * filedoalloc.c: Cause flushing on exit.
2767 * Makefile.in (OSPRIM_OBJECTS): Add cleanup.o.
2768 * gen-params: Check for atexit.
2770 Tue Oct 5 19:11:14 1993 Mike Stump (mrs@cygnus.com)
2772 * ioperror.c (_IO_strerror): Add missing ()s in _PARAMS usage.
2774 Tue Oct 5 10:33:37 1993 Per Bothner (bothner@kalessin.cygnus.com)
2776 * iofprintf.c, iofscanf.c, ioprintf.c, ioscanf.c, iosprintf.c,
2777 iosscanf.c: Remove bogus semi-colon after va_dcl.
2778 * ioperror.c: Fix typos in declaration.
2780 Mon Oct 4 17:12:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
2782 * configure.in (CLEAN): Define (as _G_config.h *.a).
2784 * fileops.c (_IO_file_read): Don't assume EINTR is defined.
2785 * iosetbuf.c: Replace by generalized ...
2786 * iosetbuffer.c: ... variant, derived from BSD.
2787 * Makefile.in (STDIO_WRAP_OBJECTS): Change correspondingly.
2788 * iosetvbuf.c (iosetvbuf): Minor ANSI tweak.
2789 * iostdio.h (setbuf, setlinebuf): New #defines.
2790 * iolibio.h (_IO_setbuf, _IO_setlinebuf): (Re-)define as macros.
2791 * Makefile.in (LIBIO_OBJECTS): New macro.
2793 Tue Sep 28 14:15:52 1993 Per Bothner (bothner@kalessin.cygnus.com)
2795 * libioP.h (_IO_proc_open, _IO_proc_close): Add missing return types.
2796 * procbuf.cc: Belated fixes.
2798 Mon Sep 27 14:04:47 1993 Per Bothner (bothner@kalessin.cygnus.com)
2800 * Makefile.in: List new files. Add STDIO_WRAP_OBJECTS macro.
2801 * floatconv.c (d2b): Use Exp_msk11 instead of Exp_msk1.
2802 * iofgetpos.c (_IO_fgetpos), iofsetpos.c (_IO_fsetpos): Clean up.
2803 * iolibio.h: New file. Declarations of _IO_foo, for most foo
2804 where foo is a stdio function. (Remove these from libio.h.)
2805 * iostream.h (istream::istreambuf, ostream::ostreambuf): Move
2806 obsolete functions inside #ifdef _STREAM_COMPAT.
2807 * libio.h, libioP.h, streambuf.h, parsestream.h, stdiostream.h:
2808 Use _IO_fpos_t rather than _IO_pos_t.
2809 * iopopen.c: New file type, for pipe (popen-like) streams.
2810 * procbuf.cc: Now just a C++ wrapper for the files in iopopen.c.
2811 * streambuf.h (ios::unsetf): Return complete old value of flags.
2812 * iogets.c (_IO_gets(), ioungetc.c (_IO_ungetc), ioperror.c
2813 (_IO_perror), iostrerror.c (_IO_strerror): New files and
2814 functions, for stdio implementation.
2815 * iostdio.h: Add declarations for various recently-added functions.
2817 Sun Sep 12 14:24:55 1993 Per Bothner (bothner@kalessin.cygnus.com)
2819 * streambuf.h (ios::showpos):: Fix typo.
2821 Fri Aug 27 12:05:47 1993 Per Bothner (bothner@kalessin.cygnus.com)
2823 * iopadn.c (_IO_padn): Change to return count of chars written.
2824 * outfloat.c, iovfprintf.c: Change for new _IO_padn interface.
2825 * iostream.cc (ostream::operator<<): Make sure to set badbit
2826 on a failure (many places). Use _IO_padn more.
2827 * iostream.cc (ostream& ostream::operator<<(const void *p): Move to
2828 * osform.cc: ... here, to reduce linking-in-the-world syndrome.
2829 * osform.cc: Use rdbuf(), instead of _strbuf directly.
2831 * genops.c (_IO_sgetn), libio.h: New function.
2832 * streambuf.h (streambuf.h::sgetn): Use _IO_sgetn.
2833 * SFile.cc (SFile::operator[]): Use sseekoff, not seekoff.
2835 Thu Aug 26 10:16:31 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2837 * config.shared (SUBDIRS): only recurse if the directory is configured
2839 Wed Aug 25 12:56:12 1993 Per Bothner (bothner@kalessin.cygnus.com)
2841 * config/{hpux.mt, isc.mt, sco4.mt}:
2842 Moved from ../libg++/config (since they affect _G_config.h).
2843 * configure.in: Set target_make_frag to one of the above files.
2845 Fri Aug 20 00:53:14 1993 Per Bothner (bothner@kalessin.cygnus.com)
2847 * iofopen.c (iofopen): Fix type passed to _IO_un_link().
2848 * Makefile.in (_G_config.h): Pass $CC (not $CXX) as CC.
2850 * configure.in (configdirs): Add dbz and stdio.
2851 * fileops.c (_IO_file_seekoff): Convert more old functionality.
2852 * iofdopen.c: Use mode parameter to set _flags.
2853 * iofscanf.c, ioputs.c, ioscanf.c, iosprintf.c: New files.
2854 * Makefile.in (IO_OBJECTS): Added new objects.
2855 * iostdio.h: Add feof. fscanf, puts, sprintf, vsprintf.
2856 * libio.h: Add _IO_vprintf macro.
2857 * iofopen.c: Invoke _IO_un_link if failure.
2858 * iovsprintf.c: Write terminating NUL.
2860 * libioP.h: Add COERCE_FILE macro (by default does nothing).
2861 * iofclose.c, iofflush.c, iofgets.c, iofprintf.c, iofputs.c,
2862 iofread.c, ioftell.c, iofwrite.c, iosetbuf.c, iosetvbuf.c:
2863 Invoke COERCE_FILE macro.
2864 * ioftell.c: Use _IO_seekoff.
2866 Wed Aug 18 22:49:56 1993 Per Bothner (bothner@kalessin.cygnus.com)
2868 * sbform.cc (streambuf::form), sbscan.cc (streambuf::scan):
2869 Remove cast to _IO_va_list. (Loses if array type.)
2871 * libio.h: Handle _IO_va_list for systems that need <stdarg.h>.
2872 * floatconv.h: Fix typo (reported by H.J.Lu).
2874 Wed Aug 18 19:34:04 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2876 * configure.in (INSTALLDIR): handle native vs. cross case
2878 * Makefile.in (install): don't use $TARGETLIB, set INSTALLDIR to
2881 Wed Aug 18 12:10:03 1993 Per Bothner (bothner@kalessin.cygnus.com)
2883 * Makefile.in: Rename iostream-files to iostream.list.
2884 * configure.in: Add iostream.list to MOSTLYCLEAN.
2886 Tue Aug 17 18:56:59 1993 Per Bothner (bothner@kalessin.cygnus.com)
2888 * Makefile.in: Depend on _G_config.h where appropriate.
2889 * config.shared (CXXINCLUDES): If doing libg++, search ../libio.
2891 Tue Aug 17 17:34:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
2893 New directory. Based on old libg++/iostream code,
2894 but extensively re-written.