1 Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3 * configure.in: Cleanup and add mh-*pic handling for arm, powerpc
5 Fri Mar 5 01:15:15 1999 H.J. Lu (hjl@gnu.org)
7 * config/linuxlibc1.mt (MT_CFLAGS): Add -D_G_STDIO_USES_LIBIO
10 * genops.c: Add the proper weak alias if _G_STDIO_USES_LIBIO
11 and _G_HAVE_WEAK_SYMBOL are defined.
12 * iofclose.c: Likewise.
14 * ioferror.c: Likewise.
17 * iovsprintf.c: Likewise.
18 * iovsscanf.c: Likewise.
20 Wed Feb 10 09:25:48 1999 Mumit Khan <khan@xraylith.wisc.edu>
22 * gen-params (VTABLE_LABEL_PREFIX): Handle windows32.
24 Wed Feb 3 22:05:41 1999 H.J. Lu (hjl@gnu.org)
25 Jeffrey A Law (law@cygnus.com)
27 * Makefile.in (iostream.list): Remove dependency on
29 ($(LIBIOSTREAM_DEP)): Depend on stamp-picdir.
30 ($(LIBIO_FILES)): Similarly.
32 * config.shared (all): Make $(PICDIR) concurrent.
34 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
36 * configure.in (compiler_name): Add check to detect if this
37 language's compiler has been built.
39 1998-10-12 Alexandre Oliva <oliva@dcc.unicamp.br>
41 * config.shared (depend.new): delete libc-lock.h from
42 dependencies, and fix _G_config.h -> $(_G_CONFIG_H) rule
45 Sun Oct 11 01:51:42 1998 Jeffrey A Law (law@cygnus.com)
47 * config.shared (depend.new): Fix typo.
50 1998-09-09 Manfred Hollstein <manfred@s-direktnet.de>
52 * configure.in (INSTALLDIR): Fix comment about changing INSTALLDIR's
53 value; don't change its value if --enable-version-specific-runtime-libs
56 Wed Sep 2 21:05:39 1998 H.J. Lu (hjl@gnu.org)
58 * configure.in: Fix INSTALLDIR replacement for cross-compile.
60 Sun Aug 30 22:27:02 1998 Lutz Wohlrab <lutz.wohlrab@informatik.tu-chemnitz.de>
62 * dbz/Makefile.in: Avoid assumptions about "tr" behaves when
63 LANG is set to something other than English.
65 Sun Aug 30 22:17:00 1998 H.J. Lu (hjl@gnu.org)
67 * config.shared: Set libsubdir.
69 1998-08-25 14:34 Ulrich Drepper <drepper@cygnus.com>
71 * libio/iogetline.c (_IO_getline_info): Don't read anything for
72 N == 0. Patch by HJ Lu.
74 1998-08-23 Mark Mitchell <mark@markmitchell.com>
76 * iomanip.h: Use __extension__ for `extern' explicit template
79 1998-08-17 Ulrich Drepper <drepper@cygnus.com>
81 * strfile.h: Define __PMT if not already defined.
83 1998-08-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
85 * libioP.h: Use __PMT in typedefs.
86 * strfile.h: Likewise.
88 1998-06-29 Ulrich Drepper <drepper@cygnus.com>
90 * libio.h: Rewrite __PMT change so that it works with platforms
91 defining __P but not __PMT.
93 * libio.h (__PMT): New macro. Defined like __P. Use is for
96 1998-06-27 Manfred Hollstein <manfred@s-direktnet.de>
98 * Makefile.in (install): Remove superfluous /include.
100 1998-06-26 Manfred Hollstein <manfred@s-direktnet.de>
102 * config.shared (FLAGS_TO_PASS): Add gcc_version_trigger.
103 (Makefile): Add dependency upon $(gcc_version_trigger).
105 1998-06-24 Manfred Hollstein <manfred@s-direktnet.de>
107 * Makefile.in (install): Install _G_config.h depending on new flag
108 --enable-version-specific-runtime-libs.
109 * config/linux.mt (gxx_include_dir): Remove definition here as we use
110 gcc's default anyway.
112 1998-06-24 Manfred Hollstein <manfred@s-direktnet.de>
114 * config.shared (FLAGS_TO_PASS): Add gcc_version.
116 1998-06-19 Manfred Hollstein <manfred@s-direktnet.de>
118 * config.shared (FLAGS_TO_PASS): Add libsubdir.
120 1998-06-07 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
122 * genops.c (__underflow): Read character from read pointer as unsigned.
125 1998-05-22 Ulrich Drepper <drepper@cygnus.com>
127 * strops.c (_IO_str_underflow): Read newly available character
128 from buffer as unsigned.
130 Sun Apr 19 22:13:36 1998 H.J. Lu (hjl@gnu.org)
132 * isgetline.cc (istream::get): Fix a typo.
134 Thu Mar 5 09:23:28 1998 Manfred Hollstein <manfred@s-direktnet.de>
136 * configure.in: Make locating frag files failsafe even for the
137 special case if configuring and building in srcdir.
139 1998-02-24 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
141 Changes for _G_IO_IO_FILE_VERSION == 0x20001:
142 * libioP.h (_IO_showmanyc_t, _IO_SHOWMANYC, _IO_imbue_t,
143 _IO_IMBUE): New definitions.
144 (struct _IO_jump_t): Add __showmanyc and __imbue fields.
145 (_IO_file_fopen): Add new fourth argument.
146 * filebuf.cc (filebuf::open): Pass new fourth argument to
148 * iolibio.h (_IO_freopen): Likewise.
149 * streambuf.cc (streambuf::showmanyc, streambuf::imbue): New
151 * streambuf.h (_IO_wchar_t): Define to _G_wchar_t.
152 (ios::fill): Remove casts.
153 (struct streambuf): Add showmanyc and imbue members.
155 * iostream.cc (ostream::operator<<(double n)) [__GLIBC_MINOR__ >=
156 1]: Initialize new fields is_char of struct printf_info.
157 (ostream::operator<<(long double n)) [__GLIBC_MINOR__ >= 1]:
160 Sun Feb 22 17:24:53 1998 Jeffrey A Law (law@cygnus.com)
162 * config.shared: Bring back changes from Ian and Fred that were
163 accidentally clobbered. Should eliminate the need for Dave's
166 Tue Feb 17 21:56:25 1998 H.J. Lu (hjl@gnu.org)
168 * config/linux.mt (IO_OBJECTS): Add iogetline.o.
169 * config/linuxlibc1.mt: Ditto.
171 * iogetline.c (_IO_getline_info): Renamed from _IO_getline.
172 (_IO_getline): Just call _IO_getline_info.
174 * isgetline.cc (istream::getline, istream::get, _sb_readline):
175 Call _IO_getline_info instead of _IO_getline and get the EOF
177 * sbgetline.cc (streambuf::sgetline): Ditto.
179 * libioP.h (_IO_getline_info): New declaration.
181 * iogetline.c (_IO_getline): Handle the case when there is no
184 Fri Feb 13 00:57:20 1998 Krister Walfridsson (cato@df.lth.se)
186 * fileops.c: #include <unistd.h>.
187 * ioprims.c: Likewise.
189 1998-02-10 Mark Mitchell <mmitchell@usa.net>
191 * iostream.cc (ostream::operator<<(long double)): Don't use
192 labeled initializers.
194 Fri Feb 6 01:35:56 1998 Manfred Hollstein <manfred@s-direktnet.de>
196 * config.shared (FLAGS_TO_PASS): Don't emit PICFLAG.
197 (.c.o): Check value of enable_shared, not PICFLAG.
200 (stamp-picdir): Dito.
202 Thu Feb 5 17:41:26 1998 Dave Brolley <brolley@cygnus.com>
204 * config.shared (LIBS): Change to -L../../libstdc++ (was -L../libstdc++)
205 if ${DOING_GPERF} is true.
207 1998-01-20 Andreas Schwab (schwab@issan.informatik.uni-dortmund.de)
209 * iostream.cc (istream::operator>>(long double&))
210 [!_G_HAVE_LONG_DOUBLE_IO]: Scan value into separate variable, in
211 case long double is bigger than double.
212 (ostream::operator<<(double)) [_G_HAVE_PRINTF_FP]: Fix order of
213 initializers of struct printf_info to match declaration order,
214 to work around g++ bug.
215 (ostream::operator<<(long double)) [_G_HAVE_PRINTF_FP]: Likewise.
217 * gen-params: Add missing quotes. Avoid useless use of command
220 Sun Feb 1 13:29:47 1998 H.J. Lu (hjl@gnu.org)
222 * filebuf.cc (filebuf::open): Call _IO_file_open if
223 _G_HAVE_IO_FILE_OPEN is 1.
225 * libio.h (_IO_fpos64_t, _IO_off64_t): Defined if
226 _G_IO_IO_FILE_VERSION == 0x20001.
228 * libioP.h (_IO_file_open): New declaration.
230 * libio.h (_IO_FILE, _IO_stdin_, _IO_stdout_, _IO_stderr_,
231 _IO_seekoff, _IO_seekpos): Add support for libio in glibc 2.1.
232 * libioP.h (_IO_seekoff_t, _IO_seekpos_t, _IO_seek_t,
233 _IO_seekoff, _IO_seekpos, _IO_default_seekoff,
234 _IO_default_seekpos, _IO_default_seek, _IO_file_seekoff,
235 _IO_file_seek, _IO_str_seekoff, _IO_pos_BAD, _IO_pos_as_off,
237 * streambuf.h (streamoff, streampos): Ditto.
239 * gen-params (__extension__): Use only if gcc version >= 2.8.
241 Sun Feb 1 13:08:18 1998 Krister Walfridsson (cato@df.lth.se)
243 * dbz/dbz.c (putconf): Handle systems which use "long long" as type
245 * dbz/dbzmain.c (mkfiles): Likewise.
247 Wed Jan 28 10:27:11 1998 Manfred Hollstein <manfred@s-direktnet.de>
249 * config.shared (FLAGS_TO_PASS): Add gxx_include_dir.
251 * stdio/configure.in, tests/configure.in: Update with yesterday's
252 toplevel configure.in changes.
253 * testsuite/configure.in: Likewise.
255 * config.shared: Fix typo in yesterday's changes.
257 Tue Jan 27 23:26:07 1998 Manfred Hollstein <manfred@s-direktnet.de>
259 * config.shared: Emit everything which needs to be re-definable
260 via file descriptor 1; the generic stuff is emitted using redirection
263 * configure.in (package_makefile_rules_frag): New variable
264 which is used in the call to config.shared; redirect file descriptor 2
265 to ${package_makefile_rules_frag}.
267 Tue Jan 27 10:35:22 1998 H.J. Lu (hjl@gnu.org)
269 * configure.in (topsrcdir): New.
270 (CHECK_SUBDIRS, configdirs): Check ${topsrcdir}/gcc instead.
271 (config-ml.in): Use ${topsrcdir}/config-ml.in.
273 * tests/configure.in (topsrcdir): New.
274 (CHECK): Check ${topsrcdir}/gcc instead.
276 Fri Jan 16 00:48:03 1998 Manfred Hollstein <manfred@lts.sel.alcatel.de>
278 * config.shared (FLAGS_TO_PASS): Add SHELL.
280 Thu Jan 15 00:21:58 1998 Ian Lance Taylor <ian@cygnus.com>
282 * configure.in: For *-*-cygwin32*, add a -I for winsup to both
283 XCINCLUDES and XCXXINCLUDES.
284 * config.shared: Use ${host_includes} when setting CXXINCLUDES in
285 the DOING_LIBGXX case.
286 * Makefile.in (_G_config.h): Pass $(CINCLUDES) in CC and
287 $(CXXINCLUDES) in CXX when running gen-params.
289 Tue Jan 13 21:32:08 1998 H.J. Lu (hjl@gnu.org)
291 * configure.in (CHECK_SUBDIRS): Set to testsuite only if
292 ${srcdir}/../gcc exists.
293 (configdirs): Include testsuite only if ${srcdir}/../gcc exists.
295 * tests/Makefile.in (check): Depend on $(CHECK).
297 * tests/configure.in (CHECK): Set to "check-iostream
298 check-stdio" if ${srcdir}/../../gcc doesn't exists.
300 Thu Jan 8 18:09:03 1998 Fred Fish <fnf@cygnus.com>
302 * config.shared (THIS_FILE): Really found via TOLIBIO instead
303 of TOLIBCXX, which is empty when configuring gperf.
304 (LIBS): When linking gperf, find libstdc++ relative to TO_TOPDIR
305 instead of hardcoded "../".
307 1997-12-12 Brendan Kehoe <brendan@lisa.cygnus.com>
309 Don't make gperf depend upon libg++.
310 * config.shared (TOLIBGCXX) [DOING_GPERF]: Delete.
311 (LIBS) [DOING_GPERF]: Make it just `-L../libstdc++ -lstdc++'.
313 Thu Dec 11 11:20:59 1997 H.J. Lu (hjl@gnu.org)
315 * configure.in (target frags): Add *-linux-gnu.
317 Fri Dec 5 16:22:15 1997 H.J. Lu (hjl@gnu.org)
319 * streambuf.cc (streambuf::~streambuf): Don't delete _lock
320 for _IO_stdin/_IO_stdout/_IO_stderr.
322 Thu Nov 27 01:32:43 1997 Jeffrey A Law (law@cygnus.com)
324 * Makefile.in (install): Change gxx_includedir to gcc_include_dir.
325 * config.shared (gxx_includedir): Remove default definition.
326 * config/linux.mt: Change gxx_includedir to gxx_include_dir.
327 * config/linuxaxp1.mt: Likewise.
329 Wed Nov 26 16:08:50 1997 Richard Henderson (rth@cygnus.com)
331 * configure.in (target frags): Add powerpc*-linux-gnulibc1.
332 (stdio-lock): Similarly.
334 * configure.in (target frags): Add alpha*-linux-gnulibc1.
335 (pic frags): Its alpha*- not alpha-.
336 (stdio-lock): Kill everything. Add alpha*-linux-gnulibc1.
337 * libio.h: Check __GLIBC_MINOR__ to find stdio-lock.h. If not
338 _IO_MTSAFE_IO & GLIBC, make sure the lock pointer is still there.
339 * libioP.h: Check __GLIBC_MINOR__ to find libc-lock.h.
341 * config/linuxaxp1-libc-lock.h: New file.
342 * config/linuxaxp1-stdio-lock.h: New file.
343 * config/linuxaxp1.mt: New file.
345 * gen-params (va_list): Check for and use __gnuc_va_list.
346 (NULL): Work around some linux kernel headers and redefine NULL.
348 Mon Nov 24 17:04:18 1997 Michael Meissner <meissner@cygnus.com>
350 * stdiostream.cc (sys_read): Declare ch with int type, rather than
353 Tue Nov 18 09:53:58 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
355 * stdstrbufs.cc (DEF_STDFILE): Use STD_VTABLE.
357 Tue Nov 11 01:40:17 1997 Oleg Krivosheev <kriol@fnal.gov>
359 * iomanip.h: Fix guiding decls.
361 1997-11-05 Brendan Kehoe <brendan@lisa.cygnus.com>
363 * libio.h (__P): Name its arg `p' instead of `params'.
364 Avoids problems with an unchanged Solaris math.h header.
366 Wed Oct 29 23:01:47 1997 Jason Merrill <jason@yorick.cygnus.com>
368 * gen-params: Override NULL.
370 1997-10-27 03:53 Ulrich Drepper <drepper@cygnus.com>
372 * stdio-lock.h: Removed. Was never needed.
374 Wed Oct 22 19:19:32 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
376 * libio.h (_IO_LOCK_T): Handle glibc 2 when _IO_MTSAFE_IO is
379 * iovsscanf.c (vsscanf): Make it weak alias of _IO_vsscanf if
380 __linux__ is defined instead of __ELF__
382 * config/linuxlibc1.mt (USER_INCLUDES): Add libio.h.
384 1997-10-15 Ulrich Drepper <drepper@cygnus.com>
386 * configure.in: Create compatibility code in bits/libc-lock.h file.
388 Thu Oct 9 07:08:41 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
390 * libio.h (_IO_LOCK_T): Handle glibc 2 when _IO_MTSAFE_IO is
393 * filedoalloc.c (_IO_file_doallocate): Don't call
394 _IO_cleanup_registration_needed if __linux__ is defined.
396 * iofclose.c (fclose): Make it weak alias of _IO_fclose if
399 * iovsprintf.c (vsprintf): Make it weak alias of _IO_vsprintf
400 if __ELF__ is defined.
402 * iovsscanf.c (vsscanf): Make it weak alias of _IO_vsscanf if
405 * config/linuxlibc1.mt (MT_CFLAGS): Defined as -D_G_HAVE_MMAP.
406 (IO_OBJECTS): Add filedoalloc.o fileops.o genops.o iofclose.o
407 iovsprintf.o iovsscanf.o strops.o.
409 Fri Oct 3 10:13:13 1997 Jason Merrill <jason@yorick.cygnus.com>
411 * iostream.cc, libio.h: Convert other uses of #ifdef
412 _G_HAVE_PRINTF_FP to #if.
414 1997-10-02 Brendan Kehoe <brendan@lisa.cygnus.com>
416 * iostream.cc (operator<<): Use `#if _G_HAVE_PRINTF_FP', not ifdef.
418 Thu Oct 2 10:36:49 1997 Jason Merrill <jason@yorick.cygnus.com>
420 * gen-params: Fix __printf_fp test.
421 * config/linuxlibc1.mt (gxx_includedir): Don't define.
423 Thu Oct 2 10:36:26 1997 Ulrich Drepper <drepper@rtl.cygnus.com>
425 * config/linuxlibc1.mt (_G_CONFIG_H): Don't define.
426 * gen-params: Add test for __printf_fp.
428 Sun Sep 28 12:09:04 1997 Mark Mitchell <mmitchell@usa.net>
430 * iomanip.h: Use new friend <> syntax.
432 Sun Sep 28 12:04:21 1997 Jason Merrill <jason@yorick.cygnus.com>
434 * libio.h: Don't use _IO_LOCK_T if it's not defined.
436 Fri Sep 26 20:56:41 1997
438 Based on a patch by H.J. Lu (hjl@gnu.ai.mit.edu).
440 * Makefile.in (STDIO_OBJECTS): New. Defined as stdfiles.o.
441 (LIBIO_OBJECTS): Add $(STDIO_OBJECTS).
442 (PICFLAG): New, empty. moved to here from config.shared.
444 * config.shared (DISTCLEAN): Add target-mkfrag.
447 * configure.in (*-linux-gnulibc1): Remove warning.
448 (*-linux-gnu): Use linux.mt mtsafe.mt.
449 (alpha-*-linux*): Use mh-elfalphapic.
451 * gen-params (_G_ullong): Also check unsigned long long int.
452 (_G_llong): Also check long long int.
454 * libio.h (_IO_lock_t): Add support for the Linux libc 5.
455 (_IO_peekc): Defined as _IO_peekc_unlocked if _IO_MTSAFE_IO
458 * iostream.cc (__cvt_double): Fix a typo in declaration.
459 (info): Use expr != 0 to initialize the bit fields. Don't
460 initialize "extra" for the Linux libc 5.
462 * streambuf.h (_G_NEED_STDARG_H): Changed from _IO_NEED_STDARG_H.
464 * config/linux.mt (STDIO_OBJECTS): New, empty.
465 (MT_CFLAGS): Removed.
467 * config/linuxlibc1.mt: Rewrite. it's identical to linux.mt but
468 IO_OBJECTS mentions files not in early libc5 versions.
470 * config/mtsafe.mt: New.
472 * dbz/Makefile.in (check): Support make -j.
474 * tests/tFile.cc (tempfile): Fix a typo.
476 1997-09-19 11:52 Jim Wilson <wilson@cygnus.com>
478 * Makefile.in (LIBIO_OBJECTS): Depend on _G_CONFIG_H.
480 1997-09-17 04:08 Ulrich Drepper <drepper@cygnus.com>
482 * iostream.cc: Add forward declaration for __cvt_double.
483 * libio.h: Define _IO_USE_DTOA is _G_HAVE_PRINTF_FP is not defined.
484 * strops.c (_IO_str_count): Correct last change.
486 1997-09-17 02:50 Ulrich Drepper <drepper@cygnus.com>
488 * libioP.h: Define __set_errno if not already defined.
490 1997-09-15 02:37 Ulrich Drepper <drepper@cygnus.com>
492 * config/linux.mt: Rewrite for use with glibc 2.
493 * config/linuxlibc1.mt: Old content of linux.mt, fir libc4 and
496 * config.shared (COMPILE.c): Allow new flags in MT_CFLAGS be
498 (COMPILE.cc): Likewise.
500 * configure.in (*-linux*): Remove goal. We now have...
501 (*-linux-gnulibc1): For libc4 and libc5. Emit warning.
502 (*-linux-gnu)): For glibc 2.
503 Create links to find headers for multi-threading if necessary.
505 * fileops.c: Make thread-safe by using _IO_cleanup_region_start
506 etc to handle cancelation. Acquire locks in functions which are
508 (_IO_file_read, _IO_file_write): Remove dead code.
510 * include/empty.h: Define stub macros for locking.
512 * iolibio.h: Add prototypes for obstack printing functions.
514 * ioseekoff.c (_IO_seekoff): Lock stream before working.
515 * ioseekpos.c (_IO_seekpos): Likewise.
517 * iostream.cc: Add support for long double I/O.
518 Use __printf_fp from glibc is available.
519 Use _IO_cleanup_region_start to handle cancelation correctly.
520 * iostream.h (class ostream): Change opfx and osfx to lock/unlock
522 (class istream): Likewise for ipfx, ipfx0, ipfx1, and isfx.
523 Declare new function lock and unlock for ostream and istream.
524 * osform.cc: Use _IO_cleanup_region_start to handle cancelation
527 * libio.h: Update from glibc version. Pretty printing.
528 * libioP.h: Likewise.
530 * outfloat.c: Only compile if _IO_USE_DTOA is defined.
532 * stdio/feof.c: Make thread safe.
533 * stdio/ferror.c: Likewise.
534 * stdio/getc.c : Likewise.
535 * stdio/putc.c : Likewise.
536 * stdio/stdio.h: Declare function of thread-safe API.
538 * stdio/obprintf.c: New file.
539 * stdio/vasprintf.c: New file.
541 * stdio-lock.h: Removed.
543 * stdstrbufs.c: Add definitions for thread-safe streams.
545 * streambuf.cc: Initialize lock.
547 * strops.c (_IO_str_count): Undo last change.
549 * tests/tFile.cc: Support parallel builds by avoiding fixed
552 Thu Sep 11 18:43:56 1997 Jason Merrill <jason@yorick.cygnus.com>
554 * Makefile.in (iostream.list): Remove STDIO_WRAP_OBJECTS.
556 Mon Sep 8 01:30:27 1997 Weiwen Liu <liu@hepunix.physics.yale.edu>
560 Sun Sep 7 23:00:18 1997 Jim Wilson (wilson@cygnus.com)
562 * linux.mt (LIBIOSTREAM_DEP): Change stdio.list to stmp-stdio.
564 Fri Sep 5 09:58:43 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
566 * Makefile.in (iostream.list): Instead of adding stdio.list, add
568 (iostream.list): Lose dependency on stmp-stdio, not necessary for
569 our stuff. The stdio stuff is present here just for uniformity
572 Thu Sep 4 17:26:22 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
574 * parsestream.cc (general_parsebuf): Cast return of malloc to char*.
576 1997-09-04 16:11 Ulrich Drepper <drepper@cygnus.com>
578 Change compared to version initially intended to in:
579 * strops.c (_IO_str_count): Still use _IO_write_ptr, not
580 _IO_write_end, for now.
582 * iofeof.c, ioferror.c, iofflush_u.c, iogetc.c, ioputc.c, peekc.c,
583 stdio-lock.h: New files.
586 * include/empty.h: New header.
588 * filedoalloc.c: Update and reformat copyright.
590 Use __set_errno throughout the code to support multi-threaded
592 Correct layout to follow the Coding Standard.
593 Add casts to prevent warnings.
594 * fileops.c: Likewise.
595 * genops.c: Likewise.
596 * iofclose.c: Likewise.
597 * iofdopen.c: Likewise.
598 * iofflush.c: Likewise.
599 * iofgetpos.c: Likewise.
600 * iofgets.c: Likewise.
601 * iofopen.c: Likewise.
602 * iofprintf.c: Likewise.
603 * iofputs.c: Likewise.
604 * iofread.c: Likewise.
605 * iofsetpos.c: Likewise.
606 * ioftell.c: Likewise.
607 * iofwrite.c: Likewise.
608 * iogetdelim.c: Likewise.
609 * iogetline.c: Likewise.
610 * iogets.c: Likewise.
611 * iopadn.c: Likewise.
612 * iopopen.c: Likewise.
613 * ioputs.c: Likewise.
614 * ioseekoff.c: Likewise.
615 * iosetbuffer.c: Likewise.
616 * iosetvbuf.c: Likewise.
617 * iosprintf.c: Likewise.
618 * ioungetc.c: Likewise.
619 * iovsprintf.c: Likewise.
620 * iovsscanf.c: Likewise.
622 * libioP.h: Likewise.
623 * stdfiles.c: Likewise.
624 * strfile.h: Likewise.
625 * strops.c: Likewise.
627 * Makefile.in (IO_OBJECTS): Add peekc.o, iogetc.o, ioputc.o,
628 iofeof.o, and ioferror.o.
629 (iostream.list): Depend upon stmp-stdio. Add the entries
630 from stdio.list to iostream.list.
631 (stmp-stdio): New name for what was the stdio/stdio.list rule.
632 All it now does is cd down into stdio and build stdio.list.
634 * configure.in (ALL): Add libiostream.a.
636 * libio.h [_IO_MTSFE_IO]: Include header declaring locking code.
637 Otherwise define opaque _IO_lock_t.
638 Define _IO_cookie_file.
639 Rename _IO_getc to _IO_getc_unlocked, _IO_peekc to _IO_peekc_unlocked,
640 _IO_putc to _IO_putc_unlocked, _IO_feof to _IO_feof_unclocked, and
641 _IO_ferror to _IO_ferror_unlocked.
642 Add prototypes for _IO_getc, _IO_putc, _IO_feof, _IO_ferror,
643 and _IO_peekc_locked.
644 Add declarations for _IO_flockfile, _IO_funlockfile, and
645 _IO_ftrylockfile. If !_IO_MTSAFE_IO define _IO_flockfile,
646 _IO_funlockfile, _IO_ftrylockfile, _IO_cleanup_region_start, and
647 _IO_cleanup_region_end as empty macros.
649 * libioP.h: Change type of finish function to take an additional int
650 argument and change declaration of finish functions.
651 Add prototypes for _IO_seekoff and _IO_seekpos.
652 If _G_HAVE_MMAP is defined use stream buffers allocated with mmap.
653 Redefine FREE_BUF and ALLOC_BUF macros to help in both situations.
654 (FILEBUF_LITERAL): If we compile for a thread-safe library also
655 initialize lock member.
657 * filedoalloc.c: Take care for systems already defining _POSIX_SOURCE.
658 Keep name space clean on systems which require this.
659 (_IO_file_doallocate): Adopt ALLOC_BUF call for changed semantic.
661 * fileops.c: Keep name space clean on systems which require this.
662 (_IO_file_attach): Don't fail if seek failed because it's used on a
664 (_IO_file_underflow): Update buffer pointers before calling `read'
665 since the `read' might not return anymore.
666 (_IO_file_overflow): If stream allows no writes set error flag.
667 (_IO_seekoff): Make sure that after flushing the file pointer in
668 the underlying file is exact.
669 (_IO_file_read): Don't restart `read' syscall if it return EINTR.
671 (_IO_file_write): Likewise for `write'.
672 (_IO_cleanup): Install as exit handler in glibc.
674 * genops.c (_IO_setb): Correctly use FREE_BUF.
675 (_IO_default_doallocate): Correctly use ALLOC_BUF.
676 (_IO_init): Initialize lock in stream structure.
677 (_IO_default_finish): Destroy lock.
678 (_IO_get_column): Don't compile since it's not needed.
679 (_IO_nobackup_default): Likewise.
681 * iopopen.c: Take care for systems already defining _POSIX_SOURCE.
682 Correct _IO_fork and _IO_dup2 prototypes.
684 * iofclose.c: Acquire lock before starting the work.
685 * iofflush.c: Likewise.
686 * iofgetpos.c: Likewise.
687 * iofgets.c: Likewise.
688 * iofputs.c: Likewise.
689 * iofread.c: Likewise.
690 * iofsetpos.c: Likewise.
691 * ioftell.c: Likewise.
692 * iofwrite.c: Likewise.
693 * iogetdelim.c: Likewise.
694 * iogets.c: Likewise.
695 * ioputs.c: Likewise.
696 * iosetbuffer.c: Likewise.
697 * iosetvbuf.c: Likewise.
698 * ioungetc.c: Likewise.
700 * iofdopen.c: Create and initialize lock for new stream.
701 * iofopen.c: Likewise.
702 * iopopen.c (_IO_popen): Likewise.
703 * iovsprintf.c: Likewise.
704 * iovsscanf.c: Likewise.
706 * genops.c: Make weak aliases for various functions.
707 * iofclose.c: Likewise.
708 * iofdopen.c: Likewise.
709 * iofflush.c: Likewise.
710 * iofgetpos.c: Likewise.
711 * iofgets.c: Likewise.
712 * iofopen.c: Likewise.
713 * iofputs.c: Likewise.
714 * iofread.c: Likewise.
715 * iofsetpos.c: Likewise.
716 * ioftell.c: Likewise.
717 * iofwrite.c: Likewise.
718 * iogetdelim.c: Likewise.
719 * iogets.c: Likewise.
720 * ioputs.c: Likewise.
721 * iosetbuffer.c: Likewise.
722 * iosetvbuf.c: Likewise.
723 * ioungetc.c: Likewise.
724 * iovsprintf.c: Likewise.
725 * iovsscanf.c: Likewise.
727 * iofflush_u.c: New file. fflush_unlocked implementation.
729 * iostream.h [_G_HAVE_LONG_DOUBLE_IO]: Declare real long double
732 * peekc.c: New file. Implement _IO_peekc_locked function.
734 * stdfiles.c: If we compile for a thread-safe library also define
737 Tue Aug 26 12:24:01 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
739 * testsuite/Makefile.in (check): Don't depend on site.exp.
740 (just-check): Depend on site.exp.
742 Wed Aug 20 02:01:34 1997 Jason Merrill <jason@yorick.cygnus.com>
744 * iostream.h: Add copy assignment ops for _IO_?stream_withassign.
746 Tue Jul 22 10:31:41 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
748 * config.shared (CHECK_SUBDIRS): Use install-sh, not install.sh.
750 Wed Jun 25 12:20:55 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
752 * config.shared (DOING_GPERF): Look for this, defining TOLIBGXX
755 Wed Jun 18 11:03:34 1997 Bob Manson <manson@charmed.cygnus.com>
757 * config.shared (FLAGS_TO_PASS): Don't include RUNTEST.
759 Tue Jun 17 22:23:48 1997 Bob Manson <manson@charmed.cygnus.com>
761 * config.shared (FLAGS_TO_PASS): Pass RUNTEST and RUNTESTFLAGS.
763 Fri May 16 21:08:53 1997 Bob Manson <manson@charmed.cygnus.com>
765 * iovfprintf.c: Declare __cvt_double before use.
767 * floatconv.c (d2b): Use _G_int32_t instead of int for the
768 e and bits parameters.
769 (_IO_strtod): Use _G_int32_t.
771 * gen-params: Look for NO_USE_DTOA and USE_INT32_FLAGS.
773 * strops.c (_IO_str_init_static): use _G_int32_t appropriately.
775 * libio.h: If _G_NO_USE_DTOA is set, then don't define
778 * config/mn10200.mt: Don't use dtoa, it only works
781 Thu May 15 17:44:12 1997 Bob Manson <manson@charmed.cygnus.com>
783 * configure.in: Set CHECK_SUBDIRS to testsuite if we're doing
786 * config.shared(check): Only run make check in the directories
787 specified by CHECK_SUBDIRS. Set CHECK_SUBDIRS to SUBDIRS
788 if it has no previous value.
790 Thu May 1 17:35:19 1997 Jason Merrill <jason@yorick.cygnus.com>
792 * Makefile.in (test, tpipe): Add $(CFLAGS).
794 Wed Apr 30 12:16:29 1997 Jason Merrill <jason@yorick.cygnus.com>
796 * configure.in: Don't turn on multilib here.
798 Sat Apr 26 13:38:21 1997 Bob Manson <manson@charmed.cygnus.com>
800 * configure.in (configdirs): Add testsuite directory.
802 * testsuite/ChangeLog:
803 * testsuite/Makefile.in:
804 * testsuite/libio.tests/tiomanip.exp:
805 * testsuite/libio.tests/tstdiomisc.exp:
806 * testsuite/libio.tests/tiomisc.exp:
807 * testsuite/libio.tests/tFile.exp:
808 * testsuite/libio.tests/tfformat.exp:
809 * testsuite/libio.tests/tiformat.exp:
810 * testsuite/libio.tests/hounddog.exp:
811 * testsuite/libio.tests/putbackdog.exp:
812 * testsuite/configure.in:
813 * testsuite/lib/libio.exp:
814 * testsuite/config/default.exp:
815 New files for DejaGnu-style testsuite.
817 Fri Apr 4 03:16:44 1997 Ulrich Drepper <drepepr@cygnus.com>
819 * configure.in: Enable multilibing by default.
820 Update multilib template to read config-ml.in.
822 * floatconv.c: Enable use in cross targets which use the
823 newlib ieeefp.h header.
825 Thu Jan 23 09:16:16 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
827 * libioP.h (_IO_file_attach): Delete redundant decl.
829 Tue Jan 21 22:13:45 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
831 * streambuf.h (class ios): Take out STREAMSIZE member, since we
832 only need (and should only have) the global one.
834 Tue Jan 7 14:02:40 1997 Jason Merrill <jason@yorick.cygnus.com>
836 * iostream.h (long long fns): Use __extension__.
838 * gen-params: Use _G_llong and _G_ullong instead of long long for
841 Fri Dec 6 13:13:30 1996 Jason Merrill <jason@yorick.cygnus.com>
843 * dbz/dbz.c: Use off_t.
845 Sat Nov 23 15:44:37 1996 Jason Merrill <jason@yorick.cygnus.com>
847 * Makefile.in (install): Don't install _G_config.h with other headers.
849 Mon Nov 18 17:12:41 1996 Jason Merrill <jason@yorick.cygnus.com>
851 * config.shared (SUBDIRS): Use -O instead of -O3 for debugging.
853 Sun Nov 3 12:43:34 1996 Jason Merrill <jason@yorick.cygnus.com>
855 * iostream.cc (write_int): Treat string literals as const.
857 Thu Sep 26 10:09:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
859 * depend: Regenerate.
861 Wed Sep 25 22:54:45 1996 Jason Merrill <jason@yorick.cygnus.com>
863 * config.shared (depend.new): Deal with headers that don't end in .h.
865 Thu Aug 29 17:05:53 1996 Michael Meissner <meissner@tiktok.cygnus.com>
867 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
869 Mon Aug 5 01:26:32 1996 Jason Merrill <jason@yorick.cygnus.com>
871 * config{ure.in,.shared} (DISTCLEAN): Add multilib.out.
873 Fri Aug 2 17:39:35 1996 Jason Merrill <jason@yorick.cygnus.com>
875 * libio.h (NULL): Use __null.
876 * libioP.h (NULL): Ditto.
877 * streambuf.h (NULL): Ditto.
878 * ioextend.cc (get_array_element): Use NULL instead of (void*)0.
880 Fri Jul 5 18:26:41 1996 Jim Wilson <wilson@cygnus.com>
882 * strfile.h (struct _IO_streambuf): New struct type.
883 (struct _IO_strfile): Use it.
885 Tue Jun 18 18:24:21 1996 Jason Merrill <jason@yorick.cygnus.com>
887 * fstream.h (fstreambase): Make __my_fb mutable.
890 Tue Jun 18 11:03:53 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
892 * dbz/fake.c (main): Set return type to int.
893 * dbz/dbzmain.c (main): Likewise.
894 * dbz/byteflip.c (main): Likewise.
896 Mon Jun 17 14:05:36 1996 Jason Merrill <jason@yorick.cygnus.com>
898 * gen-params: Check if clog conflicts with system libraries.
899 * stdstreams.cc: If it does, use __IO_clog.
900 * iostream.h: Likewise.
902 Tue Jun 11 13:39:31 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
904 * stdiostream.h (istdiostream (FILE*)): Put istream base
905 initializer before init for __f.
906 (ostdiostream (FILE*)): Likewise for ostream base init.
908 Tue May 14 11:47:21 1996 Per Bothner <bothner@andros.cygnus.com>
910 * strfile.h (_IO_str_fields): Removed _len field.
911 (_IO_STR_DYNAMIC, _IO_STR_FROZEN): new macros.
912 * strstream.h (strstreambuf::is_static): Removed.
913 (strstreambuf::frozen): Use _IO_STR_DYNAMIC instead of is_static.
914 * strstream.h, strstream.cc: Remove support for !_IO_NEW_STREAMS.
915 * strstream.cc (strstreambuf::init_dynamic): Don't set _s._len.
916 * strops.c (_IO_str_init_static): Better handling of the
917 negative (== unbounded) size case.
918 (_IO_str_overflow, _IO_str_underflow, _IO_str_count): Re-write
919 to not use _s._len, and otherwise cleanup/fix.
920 * strstream.h, strstream.cc (strstreambase::strstreambase()): Call
922 (other constructors): Simplify - init already called.
924 Tue May 14 10:55:21 1996 Per Bothner <bothner@deneb.cygnus.com>
926 Change so that strstreambuf default constructor does no allocation.
927 * strstream.h (strstreambuf::init_dynamic): Default initial size = 0.
928 * strstream.cc (strstreambuf::init_dynamic): Don't allocate a
929 buffer (yet) if initial_size is 0.
930 * strops.c (_IO_str_overflow): Add 100 to size of re-allocated
931 buffer, to handle case when initial size is 0.
933 * iostdio.h (remove, rename, tmpfile, tempnam): Comment out.
935 Mon May 13 23:19:39 1996 Per Bothner <bothner@deneb.cygnus.com>
937 * fileops.c (_IO_file_close_it): Just call _IO_do_flush rather
938 than _IO_file_sync, to avoid useless lseek.
940 Tue May 14 10:48:48 1996 Jason Merrill <jason@yorick.cygnus.com>
942 * floatconv.c (_IO_strtod): Force rv into the stack.
944 * config.shared (gxx_includedir): Now $(includedir)/g++.
946 Sat Apr 27 02:37:49 1996 Jason Merrill <jason@yorick.cygnus.com>
948 * libioP.h (JUMP*): Implement for thunks.
949 (_IO_jump_t): Add second dummy field for thunks.
951 Thu Apr 25 13:20:00 1996 Jason Merrill <jason@yorick.cygnus.com>
953 * config.shared (CXX): Use gcc, not g++.
955 Wed Apr 24 10:29:50 1996 Doug Evans <dje@blues.cygnus.com>
957 * config.shared (depend.new): Delete $(srcdir)/ from foo.{c,cc}
959 * depend: Regenerated.
961 Fri Apr 19 17:24:51 1996 Jason Merrill <jason@yorick.cygnus.com>
965 Wed Apr 10 17:16:01 1996 Jason Merrill <jason@yorick.cygnus.com>
967 * configure.in (ALL): Don't build iostream.a.
969 Mon Apr 8 14:44:11 1996 Per Bothner <bothner@kalessin.cygnus.com>
971 * iosetvbuf.c (_IO_setvbuf): Clear _IO_UNBUFFERED unless _IONBF.
973 Mon Apr 8 15:08:23 1996 Ian Lance Taylor <ian@cygnus.com>
975 * configure.in: Permit --enable-shared to specify a list of
978 Fri Apr 5 17:48:56 1996 Per Bothner <bothner@kalessin.cygnus.com>
980 * config.shared (MOSTLYCLEAN): Also remove ${EXTRA_MOSTLYCLEAN}.
982 Fri Mar 22 23:25:00 1996 Ulrich Drepper <drepepr@gnu.ai.mit.edu>
984 * genops.c (_IO_sputbackc, _IO_sungetc): Clear EOF flag if putsh
987 Wed Mar 27 11:54:08 1996 Jason Merrill <jason@yorick.cygnus.com>
991 Fri Mar 22 15:39:36 1996 Per Bothner <bothner@kalessin.cygnus.com>
993 * fileops.c (_IO_do_write): Revert previous fix. (It fails to
994 handle the case that fp->_IO_read_end != fp->_IO_write_base.)
995 (_IO_file_overflow): Instead, if _IO_read_ptr is at the end of
996 the buffer, reset all the read pointers to _IO_buf_base.
998 Tue Mar 12 12:03:17 1996 Per Bothner <bothner@kalessin.cygnus.com>
1000 * fileops.c (_IO_do_write): Even if to_do==0, must re-set buffer
1001 pointers. Bug and solution from Luke Blanshard <luke@cs.wisc.edu>.
1003 Wed Feb 28 10:00:24 1996 Jason Merrill <jason@yorick.cygnus.com>
1007 Tue Feb 27 18:08:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
1009 * iopopen.c (_IO_proc_open): Use (char*)0 rather than imprecise NULL.
1011 * streambuf.h (ios): Add ios::binary; deprecate ios::bin.
1012 * filebuf.cc (filebuf::open): Handle ios::binary.
1014 Fri Feb 9 12:40:19 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
1016 * cleanup.c (_IO_cleanup_registration_needed) [!_G_HAVE_ATEXIT]: Init
1018 * filedoalloc.c (_IO_cleanup_registration_needed): Remove decl.
1020 Thu Feb 8 08:12:50 1996 Brendan Kehoe <brendan@cygnus.com>
1022 * filedoalloc.c (_IO_cleanup_registration_needed): Revert previous
1023 change, since cleanup.c only defines it if _G_HAVE_ATEXIT.
1025 Wed Feb 7 15:10:17 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
1027 * filedoalloc.c (_IO_cleanup_registration_needed): Declare as extern.
1029 Tue Dec 12 17:21:13 1995 Per Bothner <bothner@kalessin.cygnus.com>
1031 * indstream.h, instream.cc (indirectbuf::uflow): New method.
1032 * indstream.cc (indirectbuf::underflow): Fix to use sgetc, not sbumpc.
1033 Fixes bug reported by Kevin Beyer <beyer@cs.wisc.edu>.
1035 * indstream.cc (indirectbuf::seekpos): Add paranoia test.
1037 Fri Dec 8 14:55:34 1995 Per Bothner <bothner@kalessin.cygnus.com>
1039 * stream.h: Add warning to not use these functions.
1040 * stream.cc (str, chr): Re-implement here (from libg++).
1042 Tue Nov 28 15:07:01 1995 Per Bothner <bothner@kalessin.cygnus.com>
1044 * config.shared: Use test instead of [ to avoid DEC Unix lossage.
1046 Thu Nov 23 14:51:43 1995 Per Bothner <bothner@kalessin.cygnus.com>
1048 * iopopen.c: Move #include <sys/types.h> ahead of #include <signal.h>
1049 to deal with BSDI's literal implementation of Posix.
1051 Sat Nov 25 11:21:55 1995 Doug Evans <dje@canuck.cygnus.com>
1053 * Makefile.in (install): Set rootme.
1054 * config.shared (TOPDIR): Set with ${foo-...} rather than ${foo=...}.
1055 (INSTALL): Handle absolute, dot, relative-not-dot values of srcdir.
1056 (TEXIDIR): Likewise.
1058 Tue Nov 21 14:12:05 1995 Ian Lance Taylor <ian@cygnus.com>
1060 * configure.in: Check ${with_cross_host} rather than comparing
1061 ${host} and ${target}.
1063 Mon Nov 20 13:55:29 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1065 * configure.in: Match *-sco3.2v[45]*.
1067 Wed Nov 15 20:19:31 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1069 * config.shared (FLAGS_TO_PASS): Also pass SHLIB and SHCURSES.
1071 Tue Nov 14 01:41:08 1995 Doug Evans <dje@canuck.cygnus.com>
1073 * config.shared (TO_REAL_TOPDIR): Define.
1074 (MULTITOP): Deleted.
1075 (MULTISRCTOP, MULTIBUILDTOP): New.
1076 (TOPDIR): Change MULTITOP to MULTIBUILDTOP, and use TO_REAL_TOPDIR.
1077 (INSTALL): Add with_multisrctop, TO_REAL_TOPDIR.
1078 (TEXIDIR): Use TO_REAL_TOPDIR.
1079 (LIBS): Delete MULTITOP.
1080 (FLAGS_TO_PASS): Add NM.
1081 (CXXINCLUDES): Delete MULTITOP.
1082 (depend.new): Delete adding MULTITOP to ../ build tree references.
1083 Add MULTISRCTOP to ../ source tree references.
1084 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in
1085 instead of cfg-ml-pos.in.
1087 Sun Nov 12 16:30:48 1995 Per Bothner <bothner@kalessin.cygnus.com>
1089 * Makefile.in (VERSION): Set to 2.7.1.
1090 * configure.in: Add warning for Linux.
1091 * config.shared (DISTCLEAN): Add EXTRA_DISTCLEAN.
1093 * editbuf.h (edit_mark::index_in_buffer): Avoid unused param warning.
1095 * iostream.cc (istream::operator>> (char*)): Improve ANSI compliance.
1097 Fri Nov 10 08:41:37 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1099 * config.shared (check): Add missing semicolon.
1101 Thu Nov 9 17:27:22 1995 Jason Merrill <jason@yorick.cygnus.com>
1103 * configure.in (ALL): Remove $(OSPRIM_OBJECTS).
1104 * config.shared (check): Set LD_LIBRARY_PATH.
1106 * iogetdelim.c (_IO_getdelim): Index *lineptr, rather than lineptr.
1107 From alan@spri.levels.unisa.edu.au (Alan Modra).
1109 Mon Nov 6 15:03:33 1995 Per Bothner <bothner@kalessin.cygnus.com>
1111 * streambuf.cc, editbuf.cc, isgetline.cc, parsestream.cc:
1112 Fixes to avoid -Wall warnings.
1114 Fri Nov 3 16:41:41 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1116 * gen-params [!__STDC__]: Include varargs.h instead of stdarg.h.
1118 Thu Nov 2 15:04:03 1995 Per Bothner <bothner@kalessin.cygnus.com>
1120 * config.shared: Re-write if X then Y else true fi to (not X) || Y.
1122 Wed Nov 1 13:26:44 1995 Per Bothner <bothner@kalessin.cygnus.com>
1124 * iostream.h (istream::ipfx): Add default argument value.
1125 Reported by Yotam Medini <yotam_medini@tmai.com>.
1127 * libioP.h (_IO_blen): Fix typo.
1128 Reported by Bryan T. Vold <btv@ldl.healthpartners.com>.
1130 Fri Oct 27 19:26:20 1995 Per Bothner <bothner@kalessin.cygnus.com>
1132 * Makefile.in (_G_config.h): Set CC to $(CC) rather than to $(CXX),
1133 now that CXX defaults to g++ and CC default to gcc (when found).
1134 * config.shared: Simplify CXX and CC, since they get overridden
1135 by ../configure anyway.
1137 Wed Oct 25 19:45:50 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1139 * iostdio.h: Wrap including the file with #ifndef _IOSTDIO_H.
1141 Wed Oct 25 11:14:25 1995 Per Bothner <bothner@kalessin.cygnus.com>
1143 * libio.h (_IO_seekoff, _IO_seekpos): New declarations.
1144 * libioP.h (_IO_seekoff, _IO_seekpos): Remove declarations.
1145 * libioP.h: Cleanup; remove old !_IO_UNIFIED_JUMPTABLES stuff.
1147 * filebuf.cc (filebuf::~filebuf): Only call SYSYCLOSE if currently
1148 open. Bug found by Martin Gerbershagen <ger@ezis-ulm.de>.
1150 * streambuf.h (streambuf::pubseekoff, streambuf::pubseekpos):
1151 Added, from ANSI draft.
1152 * filebuf.cc (filebuf::open), iostream.cc (variables places), SFile.cc:
1153 Use pubseekoff/pubseekpos rather than sseekoff/sseekpos.
1155 * Makefile.in (install): Don't install libiostream.a.
1157 * filedoalloc.c: Also #include <unistd.h>.
1159 Mon Oct 9 18:09:54 1995 Jason Molenda <crash@phydeaux.cygnus.com>
1161 * config.shared (SUFFIXES): add .c.
1163 Tue Sep 26 16:08:01 1995 Per Bothner <bothner@kalessin.cygnus.com>
1165 * procbuf.cc: Move #pragma implementation to beginning.
1167 Wed Sep 20 17:53:33 1995 Per Bothner <bothner@kalessin.cygnus.com>
1169 * procbuf.h, procbuf.cc: Add #pragma interface/implementation stuff.
1171 Wed Sep 20 18:59:00 1995 John Eaton <jwe@bevo.che.wisc.edu>
1173 * procbuf.h: Protect from being included multiple times.
1175 Wed Sep 20 15:47:14 1995 John Eaton <jwe@bevo.che.wisc.edu>
1177 * procbuf.h (procbuf): Add '_next' pointer field for compatibility
1180 Wed Sep 20 13:54:02 1995 Ian Lance Taylor <ian@cygnus.com>
1182 * config.shared: Add support for maintainer-clean target as a
1183 synonym for realclean.
1184 * dbz/Makefile.in: Likewise.
1186 Mon Sep 11 12:11:19 1995 Per Bothner <bothner@kalessin.cygnus.com>
1188 * iopopen.c: #include <sys/types.h> before <sys/wait.h>.
1189 This is in accordance with Posix, and needed for ISC.
1191 Fri Sep 8 00:11:55 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
1193 * gen-params: Use double quotes in the eval setting $TYPE to
1194 $VALUE, to preserve any single quotes in $VALUE.
1196 Mon Aug 21 11:39:09 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1198 * gen-params: Test for an appropriate version of gcc before using
1201 * config.shared: Add $(PICDIR) to $ALL.
1203 Mon Aug 7 17:51:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1205 * gen-params: Generate new macro _G_HAVE_SYS_CDEFS.
1206 * libio.h: If _G_HAVE_SYS_CDEFS, get __P from <sys/cdefs.h>.
1208 Fri Aug 4 23:21:17 1995 Paul Eggert <eggert@twinsun.com>
1210 * gen-params: When following typedef changes, allow typedefs
1211 that do not have a space before the defined type name,
1212 e.g. `typedef void *__gnuc_va_list;' as in Linux. Also,
1213 not require a space in the definiens, e.g. `typedef void*foo;'.
1215 Thu Aug 3 17:54:15 1995 Per Bothner <bothner@kalessin.cygnus.com>
1217 * iostream.h, iostream.cc (istream::sync): Added missing method.
1219 Thu Aug 3 17:49:34 1995 Per Bothner <bothner@kalessin.cygnus.com>
1221 * configure.in: Remove netbsd special case.
1222 * config/netbsd.mt: Removed; no longer used.
1224 Tue Jun 20 16:07:12 1995 Paul Eggert <eggert@twinsun.com>
1226 * gen-params: Take transitive closure of `typedef' relation.
1227 This is needed for BSD/OS 2.0, which has
1228 fpos_t -> off_t -> quad_t -> long long.
1230 Mon Jul 24 18:28:10 1995 Doug Evans <dje@canuck.cygnus.com>
1232 * config.shared (TOPDIR): Delete extra '/', $rootme may be empty.
1234 Sat Jul 22 13:27:45 1995 Doug Evans <dje@canuck.cygnus.com>
1236 * config.shared (depend.new): Fix quoting in DO NOT EDIT line.
1238 * Makefile.in (_G_config.h): Add multilib support.
1239 (install): Likewise.
1240 * config.shared: Likewise.
1241 * configure.in: Likewise.
1243 Wed Jun 28 17:40:25 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1245 * PlotFile.h, SFile.h, builtinbuf.h, editbuf.h, fstream.h,
1246 indstream.h, iomanip.h, iostream.h, parsestream.h, pfstream.h,
1247 procbuf.h, stdiostream.h, stream.h, streambuf.h, strstream.h: Wrap
1250 Thu Jun 22 04:34:01 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1252 * gen-params: Surround attributes with __.
1254 Mon Jun 19 00:33:22 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1256 * config.shared (SUBDIRS): Massage broken shells that require
1259 Sat Jun 17 11:25:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1261 * streambuf.h: Declare inline members inline in class.
1263 Thu Jun 15 20:45:13 1995 Per Bothner <bothner@kalessin.cygnus.com>
1265 * Makefile.in (VERSION): Update to version 2.7.0.
1267 Wed Jun 14 21:41:11 1995 Jason Merrill <jason@python.cygnus.com>
1269 * Makefile.in (STDIO_WRAP_OBJECTS): Remove stdfiles.o.
1270 (LIBIO_OBJECTS): Add stdfiles.o.
1272 Wed Jun 7 16:11:36 1995 Jason Merrill <jason@python.cygnus.com>
1274 * config.shared (all): Appease bash.
1276 Wed Jun 7 11:16:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1278 * configure.in (MOSTLYCLEAN): Remove stamp-picdir.
1280 * config.shared (MOSTLYCLEAN): Ditto.
1283 Mon Jun 5 18:29:39 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1285 * config/mh-*pic: Removed.
1287 * configure.in (MOSTLYCLEAN): Remove pic objects.
1288 (frags): Use toplevel pic fragments.
1290 * config.shared (CXXFLAGS): Use -O3.
1291 (PICFLAG, PICDIR): New macros.
1292 (all): Depend on $(PICDIR).
1293 (FLAGS_TO_PASS): Pass PICFLAG.
1294 (.x.o): Also build pic object.
1295 (stamp-picdir): Create directory for pic objects.
1296 (MOSTLYCLEAN): Remove pic objects.
1297 (CLEAN): Remove stamp-picdir.
1299 * Makefile.in (iostream.list): Depend on stamp-picdir.
1300 (c++clean): Don't remove _G_config.h.
1302 Mon Jun 5 15:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
1304 * strstream.h, strstream.cc (strstream::strstream()): Re-implement to
1305 be like ostrstream::ostrestream(), and not leak memory.
1307 * streambuf.h: Use #if !_IO_UNIFIED_JUMPTABLES instead of #ifndef.
1309 * iolibio.h (_IO_rewind): Add missing flags when calling _IO_seekoff.
1311 Thu May 25 22:30:21 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1313 * config/netbsd.mt (G_CONFIG_ARGS): Add defn for off_t. Another
1314 layer of typedefs has been added and the gen-params script can
1317 Wed May 10 03:02:58 1995 Jason Merrill <jason@python.cygnus.com>
1319 * iolibio.h (_IO_rewind): Add new argument to _IO_seekoff.
1321 * config/linux.mt (LIBIOSTREAM_OBJECTS): Include $(STDIO_WRAP_OBJECTS).
1322 (LIBIOSTREAM_DEP): Include stdio.list.
1323 (LIBIOSTREAM_USE): Include `cat stdio.list`.
1325 * Makefile.in (LIBIOSTREAM_DEP): New variable.
1326 (LIBIOSTREAM_USE): Ditto.
1327 (libiostream.a): Use them.
1328 (iostream.list): Ditto.
1329 (stdio.list): New rule.
1330 (stdio/stdio.list): Ditto.
1332 Tue May 9 18:29:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1334 * libioP.h (_IO_jump_t): Change TYPE for __dummy from int to
1337 Sat May 6 13:50:37 1995 Per Bothner <bothner@kalessin.cygnus.com>
1339 * libio.h (_IO_UNIFIED_JUMPTABLES): #define as true.
1340 (_IO_FILE): Remove _jumps field (#if _IO_UNIFIED_JUMPTABLES).
1342 * libioP.h (enum _IO_seekflags_): Removed.
1344 * libioP.h (_IO_setbuf_t): Change return value of setpos jumptable
1345 function to match C++ streambuf::setpos. (Return NULL on failure.)
1346 * fileops.c (_IO_file_setbuf), genops.c (_IO_default_setbuf),
1347 filebuf.cc, iosetvbuf.c: Update to use new setbuf conventions.
1349 * streambuf.h (streambuf): Re-order virtual functions more logically.
1350 * streambuf.cc (streambuf::uflow), streambuf.h: New virtual.
1351 * libioP.h (struct _IO_jump_t): Define using new JUMP_FIELD macro.
1352 And re-order in more logical order consistent with streambuf vtable.
1353 * fileops.c (_IO_file_jumps), iopopen.c (_IO_proc_jumps), iovfprintf.c
1354 (_IO_helper_jumps), streambuf.cc (_IO_streambuf_jumps), strops.c
1355 (_IO_str_jumps): Update accordingly, using JUMP_INIT macro.
1356 * stdfiles.c: Set vtable to point to _IO_file_jumps.
1357 * filebuf.cc, iopopen.c, iovfprintf.c (helper_vfprintf), iovsprintf.c,
1358 iovsscanf.c: Use macros and #if to set jumptables.
1360 * streambuf.c: _IO_streambuf_jumps and the _IO_sb_* methods are not
1361 needed #if _IO_UNIFIED_JUMPTABLES.
1362 * filebuf.cc (filebuf::__new): Also no longer needed.
1363 * fstream.cc (fstreambase::__fb_init, fstreambase::fstreambase): Fix.
1364 * stdstrbufs.c: Use filebuf vtable instead of builtinbuf's.
1365 * builtinbuf.h, builtinbuf.cc (builtinbuf): Commented out #if
1366 _IO_UNIFIED_JUMPTABLES - no longer needed.
1367 * strstream.cc (SET_STR_JUMPS): Does nothing now.
1369 * builtinbuf.cc, fileops.c, genops.c, iofgetpos.c, iofsetpos.c,
1370 ioftell.c, iopopen.c, ioseekoff.c, ioseekpos.c, iosetvbuf.c,
1371 iovfprintf.c, iovfscanf.c, strops.c: Use DEFUN and DEFUN_VOID.
1372 * filebuf.cc, fileops.c, genops.c, iopopen.c, ioseekoff.c, ioseekpos.c,
1373 iosetvbuf.c, iovfscanf.c: Use new JUMP_* and IO_OVERFLOW/... macros.
1375 * libioP.h (_IO_seekpos_t): Third arg is now an int (using _IOS_INPUT
1376 and _IOS_OUTPUT), not an enum _IO_seekflags_. Flags values are
1377 changed, and their sense inverted (to match streambuf::seekpos).
1378 * libioP.h (_IO_seekoff_t): Similarly match streambuf::seekoff.
1379 * filebuf.cc, fileops.c (_IO_file_fopen, _IO_file_seekoff), genops.c
1380 (_IO_default_seekpos, _IO_default_seekpos), iofgetpos.c, iofsetpos.c,
1381 iolibio.h (_IO_fseek), ioftell.c, ioseekoff.c, ioseekpos.c,
1382 iostream.cc, streambuf.cc, strops.c (_IO_str_seekoff), strstream.cc:
1383 New seekpos/seekoff conventions.
1384 * iostreamP.h (convert_to_seekflags): Removed - no longer needed.
1386 * iolibio.h (_IO_fread): New declaration.
1388 * dbz/Makefile.in: Re-arrange for cleaner dependencies.
1390 Fri May 5 15:55:22 1995 Per Bothner <bothner@kalessin.cygnus.com>
1392 * libioP.h (_IO_JUMPS. JUMP_FIELD, JUMP0, JUMP1, JUMP2, JUMP3,
1393 JUMP_INIT, _IO_FINISH, _IO_OVERFLOW, ... _IO_SYSSTAT): New macros
1394 in preparation for new unified jumptable/vtable implementation.
1395 * cleanup.c, filedoalloc.c, iofclose.c, iofflush.c, iofiledoalloc.c,
1396 ioprims.c, iosetbuffer.c, iostrerror.c, ioungetc.c: Use DEFUN.
1397 * filedoalloc.c, iofclose, iofflush, iosetbuffer.c: Use new macros.
1399 * iofopen.c, iofdopen.c: Use macros and #if for new jumptables.
1401 * gen-params: Do not #include <sys/types.h>.
1402 Add missing quote in 'eval'.
1403 Do add #include <sys/types.h> in test for <sys/resource.h>.
1404 * config/netbsd.mt: New file, defining _G_CONFIG_ARGS (for fpos_t).
1405 * configure.in: Use netbsd.mt for NetBSD.
1407 Wed May 3 15:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
1409 * libioP.h (DEFUN, DEFUN_VOID, AND): New macros, from ansidecl.h.
1410 * iofdopen.c, iofgets.c, iofopen.c, iofputs.c, iofread.c, iofwrite.c,
1411 iogetdelim.c, iogetline.c, iogets.c, ioignore.c, iopadn.c, ioperror.c,
1412 ioputs.c, iovsprintf.c, iovsscanf.c, outfloat.c: Use DEFUN.
1414 Mon May 1 16:22:30 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1416 * gen-params: #include <sys/types.h>. Don't use __WCHAR_TYPE__ in
1417 definition of _G_wchar_t. Use __attribute__ ((mode)) to get
1418 specific-sized ints under gcc, don't worry about int8 or int64
1419 otherwise. Provide defaults if deduction fails.
1421 Thu Apr 27 18:27:53 1995 Per Bothner <bothner@kalessin.cygnus.com>
1423 * streambuf.h (ios::~ios): Delete _arrays.
1424 (_IO_NEW_STREAMS): Turn on.
1425 * libio.h (__adjust_column): Remove bogus declaration.
1426 * genops.c (_IO_set_column): Fix typo (in commented-out code).
1428 Tue Apr 25 17:14:29 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1430 * config.shared (CXXINCLUDES): Use a shell variable with a
1431 different name from the make variable.
1432 * configure.in: Update accordingly.
1434 Mon Apr 17 17:19:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1436 * streambuf.h (__adjust_column): Remove redundant declaration.
1438 Sat Apr 15 11:39:25 1995 Per Bothner <bothner@kalessin.cygnus.com>
1440 * config.shared (do-clean-dvi): Also remove *.cps.
1442 * gen-params: Use ${SED} instead of sed.
1444 * libio.h: Remove #if'd out stuff (confuses makedepend).
1446 * stdstreams.cc (STD_STR): Standard streams start with ios::dec set.
1448 Fri Apr 14 23:46:31 1995 Per Bothner <bothner@kalessin.cygnus.com>
1450 * iostream.h, iostream.cc (istream::read, ostream::write):
1451 Use streamsize for the length parameter.
1453 * streambuf.h: Removed redundant __overflow and __underflow.
1455 * fstream.h, fstream.cc: Add void fstreambase::attach(int).
1457 * iosscanf.c (_IO_sscanf): Fix non-__STDC__ missing declaration.
1459 Mon Apr 3 15:40:55 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1461 * indstream.*: Fix prototypes of xsputn and xsgetn.
1463 * fileops.c: Avoid ??? trigraph.
1465 Mon Mar 27 16:16:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1467 * iomanip.h (operator<< (ostream&, const omanip<TP>&): Define
1469 (operator>> (istream&, const imanip<TP>&): Ditto.
1471 Mon Mar 27 08:56:00 1995 Brendan Kehoe (brendan@lisa.cygnus.com)
1473 * builtinbuf.cc (builtinbuf::setbuf): Cast NULL to streambuf*, to
1474 avoid warning/error about conversion from void*.
1475 * indstream.cc (indirectbuf::seekoff): Likewise.
1476 (indirectbuf::seekpos): Likewise.
1477 * filebuf.cc (filebuf::setbuf): Likewise.
1478 (filebuf::close): Cast NULL to filebuf*.
1480 Wed Mar 1 14:23:18 1995 Per Bothner <bothner@kalessin.cygnus.com>
1482 * configure.in (DISTCLEAN): Add, with target-mkfrag.
1484 Fri Feb 24 01:01:08 1995 Jason Merrill <jason@python.cygnus.com>
1486 * configure.in (frags): Don't require so many dashes in the
1487 canonical target name.
1489 Sat Feb 18 13:18:30 1995 Per Bothner <bothner@kalessin.cygnus.com>
1491 * streambuf.cc (streambuf::sync): Always return 0, even for
1492 non-flushed output. This is required by the ANSI/ISO draft.
1493 * genops.c (_IO_sync): Likewise always return 0.
1495 Fri Feb 17 16:33:28 1995 Per Bothner <bothner@kalessin.cygnus.com>
1497 * fileops.c (_IO_file_close_it): Call _IO_file_sync, rather
1498 than _IO_do_flush, because we want to adjust the file pointer
1499 if reading and not at end (as in SVR4, and as in fflush).
1500 Also, make sure to return error indication if sync fails.
1501 (_IO_file_sync): Ignore seek error if it is ESPIPE.
1502 (_IO_file_seekoff): If not readable, do dumb lseek.
1503 * iofclose.c (_IO_fclose): If closing a non-filebuf, return -1
1506 Fri Feb 17 19:31:00 1995 Ian Lance Taylor <ian@cygnus.com>
1508 * gen-params: Check for struct tms in <sys/times.h>, defining
1509 HAVE_SYS_TIMES accordingly.
1511 Wed Feb 15 21:05:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
1513 * strops.c (_IO_str_count): Use LEN macro.
1514 (_IO_str_seekoff): Update _len field.
1516 Mon Feb 6 19:29:00 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1518 * gen-params: Default to short, long and long long for 16, 32 and
1519 64 bit types, in case detection fails.
1521 Wed Jan 25 18:07:30 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1523 * gen-params (_G_wint_t): Allow for broken promotions.
1525 Tue Jan 24 16:15:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1527 * stdstrbufs.cc (_IO_fake_stdiobufs): Add an extra layer of struct,
1528 to force correct alignment on i960s.
1529 (DEF_STDIOBUF, _IO_{stdin,stdout,stderr}_buf): Update accordingly.
1531 Thu Jan 19 18:30:53 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1533 * config.shared (CXXINCLUDES): Add libstdc++ to includes for
1535 (LIBS): Also link with libstdc++ when building libg++ toys.
1536 Don't set EXPORT_ALL_VARIABLES; users will have to set
1537 LD_LIBRARY_PATH themselves.
1539 Fri Dec 30 16:38:13 1994 Mike Stump <mrs@cygnus.com>
1541 * config/linux.mt: Fix build problem on linux 1.0.8.
1543 Thu Dec 22 11:49:45 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1545 * config/netware.mt: Use gcc to pre-link iostream.nlm's objects
1546 instead of using nlmconv, so that references to functions in
1547 libgcc.a are resolved.
1549 * configure.in: Append .mt to target makefile fragment file names.
1551 * floatconv.c (tens, tinytens, bigtens): Added const qualifier.
1553 Tue Dec 20 09:59:50 1994 Mike Stump <mrs@cygnus.com>
1555 * gen-params (VTABLE_LABEL_PREFIX): Since some systems have GNU nm
1556 as nm, and they demangle by default, we have to notice this, and
1557 try --no-cplus (linux) or --no-demangle when running nm.
1559 Wed Dec 14 18:13:58 1994 Per Bothner <bothner@kalessin.cygnus.com>
1561 * gen-params: To determine vt-name-mangling using dummy.C add
1562 #include and #prama interface/implementation to avoid problem with
1563 assemblers that don't emit local symbols. Reported under HPUX 8
1564 by Thomas Arend <arend@blasius.Chemietechnik.Uni-Dortmund.DE>.
1566 * streambuf.h (ios::ios): Move inline definition after
1567 that of ios::init (which ios::ios calls).
1569 Sun Dec 4 19:50:32 1994 Per Bothner <bothner@kalessin.cygnus.com>
1571 * fileops.c (_IO_file_init, _IO_file_close_it, _IO_file_sync):
1572 Set _offset to _IO_pos_BAD, to support applications that follow
1573 POSIX.1 rules on mixing file handles.
1575 * fileops.c (_IO_file_overflow): Handle case that buffer was
1576 allocated (perhaps by setvbuf) but _IO_write_base is still 0.
1578 * iostdio.h (setbuffer): #define as _IO_setbuffer.
1579 * streambuf.h, filebuf.cc: Removed filebuf::do_write.
1581 Tue Nov 29 23:38:57 1994 Per Bothner (bothner@rtl.cygnus.com)
1583 * floatconv.c (setword0, setword1): Fix typo.
1585 Tue Nov 29 15:37:29 1994 Per Bothner <bothner@kalessin.cygnus.com>
1587 * config.shared: Move -fno-implicit-template from CXXFLAGS
1588 to LIBCXXFLAGS. Tests are better run without it.
1590 * floatconv.c (word0, word1): Re-place/re-implement using unions
1591 instead of casts to avoid optimizer problems.
1593 * dbz/dbzmain.c: Renamed dirname -> dir_name to avoid OSF
1594 header file braindamage.
1596 Sat Nov 5 19:44:00 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1598 * config.shared (LIBCFLAGS): Define.
1599 (LIBCXXFLAGS): Define.
1600 (DOING_LIBGXX): Define TOLIBGXX. Change LIBS to use -lg++. Add
1601 LD_LIBRARY_PATH and .EXPORT_ALL_VARIABLES:.
1602 (FLAGS_TO_PASS): Add LIBC{,XX}FLAGS.
1603 (XC{,XX}FLAGS): Set to LIBCFLAGS or CFLAGS depending on $LIBDIR.
1604 (COMPILE.c): Define, use in .c.o rule.
1605 (COMPILE.cc): Define, use in .cc.o rule.
1607 Sat Nov 5 15:12:12 1994 Per Bothner <bothner@kalessin.cygnus.com>
1609 * Makefile.in (VERSION): Update to 0.67.
1611 * streambuf.h (ios::dont_close): Is now set by default.
1612 * fstream.h, fstream.cc (__fb_init): New function. Clears
1613 ios::dont_close. Change fstreambase constructors to call it.
1614 * strstream.cc: *strstream constructors must clear ios::dont_close.
1615 * iostream.cc: Simplify - don't need to set ios::dont_close.
1616 * ioassign.cc: Simplify - assume ios::dont_close is always set.
1618 * fstream.h, fstream.cc: If _IO_NEW_STREAMS, put the
1619 filebuf as a member __my_fb.
1620 * strstream.{h,cc}: Likewile use a strstreambuf member __my_sb.
1621 * streambuf.h, stdstreams.cc, ioextend.cc:
1622 Fix if _IO_NEW_STREAMS to not use ios::dont_close.
1624 * streambuf.h (class ios): Move rdbuf later, to avoid
1625 inability of g++ to inline.
1626 * filebuf.cc (filebuf::~filebuf): Call _IO_do_flush.
1628 * config.shared: Emit rules to make depend.
1631 Fri Nov 4 17:19:11 1994 Per Bothner <bothner@kalessin.cygnus.com>
1633 * README: Fix typos.
1634 * libio.h: Add comment. Update Copyright notice.
1636 Fri Nov 4 21:46:30 1994 Paul Eggert <eggert@twinsun.com>
1638 * libio.h (__P): Change argument name spelling from
1639 `paramlist' to `protos' for compatibility with BSDI 1.1.
1641 Thu Nov 3 00:45:16 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1643 * config.shared (CXXFLAGS): Add -fno-implicit-templates.
1645 Mon Oct 24 15:57:35 1994 Per Bothner <bothner@kalessin.cygnus.com>
1647 * config.shared: Define NOSTDIC and use it for libio too.
1649 Thu Oct 20 19:45:35 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1651 * iogetdelim.c: #include <stdlib.h>.
1653 Thu Oct 20 17:09:52 1994 Per Bothner <bothner@kalessin.cygnus.com>
1655 * iostream.h: Add classes _IO_istream_withassign and
1656 _IO_ostream_withassign. Re-type cin, cout, cerr, clog.
1657 (class iostream): Don't add extra _gcount field.
1658 * ioassign.cc: New file. Implement operator= for cin etc.
1659 * streambuf.h (class ios): Change return type of operator=.
1660 * Makefile.in (IOSTREAM_OBJECTS): Add ioassign.o.
1662 * Makefile.in: Re-arrange, so linux.mt overrides can work.
1664 * fileops.c (_IO_file_seekoff): Optimize seeks within buffer.
1666 Wed Oct 19 14:25:47 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1668 * gen-params (wint_t): Return to using __WCHAR_TYPE__ for
1669 compatibility with gcc versions prior to 2.6.1.
1671 Tue Oct 18 17:08:18 1994 Per Bothner <bothner@kalessin.cygnus.com>
1673 * Makefile.in: Define _G_CONFOG_H as _G_config.h for Linux. Use it.
1674 (IO_OBJECTS): Add iogetdelim.o.
1675 * config/linux.mt: New file.
1676 * configure.in: Select config/linux.mt if Linux.
1677 * iogetdelim.c: Verious cleanups, many from
1678 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>.
1679 * libioP.h: Add _IO_getdelim. Use (void) for no-parameter functions.
1681 Thu Oct 13 16:30:56 1994 Per Bothner (bothner@kalessin.cygnus.com)
1683 * libio.h: Rename USE_DTOA to _IO_USE_DTOA for namespace reasons.
1684 * iostream.cc, iovfscanf.c, iovfprintf, floatconv.c:
1685 Update USE_DTOA -> _IO_USE_DTOA.
1687 * libio.h (_IO_feof, _IO_ferror): Move to here ...
1688 * iolibio: ... from here
1690 * iostream.cc (istream::get, istream::ignore, istream::read):
1691 Set _gcount to 0 if ipfx0 failed.
1693 * iostream.cc (flush): Do virtual function call, rather than
1694 going through jumptable. (To get correct method in derived class.)
1695 Bug and fix from John Wiegley <jw@cis.ohio-state.edu>.
1697 * iofdopen.c (O_ACCMODE): Define using O_RDWR, not O_RDWRITE.
1699 * streambuf.h (ios::rdbuf(streambuf*)): New.
1700 * streambuf.h (ios::operator=): Make private (i.e. dis-allow).
1702 Wed Oct 12 19:09:20 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1704 * gen-params: Define _G_NO_NRV and _G_NO_EXTERN_TEMPLATES if not
1707 Thu Oct 6 16:03:43 1994 Per Bothner (bothner@kalessin.cygnus.com)
1709 * iostream.texi (ostrstream::str): Note that NUL is not written
1712 Wed Oct 5 17:28:29 1994 Per Bothner (bothner@kalessin.cygnus.com)
1714 * iogetdelim.c (_IO_getdelim): New function.
1716 Wed Oct 5 15:40:22 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1718 * config/netware.mt: New file, first cut at Netware NLM support.
1719 * configure.in (*-*-netware*): Use config/netware.mt.
1721 * config.shared (NLMCONV, LD): New definition.
1723 * gen-params: check for nm in ${binutils}/nm.new.
1724 * config.shared: Likewise.
1726 Tue Oct 4 12:20:01 1994 Per Bothner (bothner@kalessin.cygnus.com)
1728 * iomanip.h (omanip::operator<<): Make 2nd arg be const.
1729 Bug and fix reported by Greg McGary <gkm@magilla.cichlid.com>.
1731 * strstream.cc (strstreambuf::pcount): Simplify, to match
1732 ANSI/ISO specification.
1734 Mon Sep 26 15:19:52 1994 Jason Merrill (jason@deneb.cygnus.com)
1736 * gen-params: Include <wchar.h> and <wctype.h> if they exist.
1738 Thu Sep 8 14:41:41 1994 Jason Merrill (jason@deneb.cygnus.com)
1740 * iostream.h (class istream): Declare operator>>(long double&).
1741 (class ostream): Define operator<<(long double).
1743 * iostream.cc (istream::operator>>(long double&)): Define.
1745 Wed Sep 7 14:42:29 1994 Per Bothner (bothner@kalessin.cygnus.com)
1747 * iostream.texi (Overflow): Fix bugs in example.
1749 Fri Sep 2 17:45:57 1994 Per Bothner (bothner@kalessin.cygnus.com)
1751 * iostream.tex: Document a little on how to write your
1752 own streambuf-derived class, with an example.
1754 Tue Aug 30 13:03:57 1994 Brendan Kehoe (brendan@lisa.cygnus.com)
1756 * floatconv.c (s2b): Declare X and Y to be _G_int32_t.
1757 (diff, quorem): Declare BORROW, Y, and Z likewise.
1758 (ulp): Declare L likewise.
1759 (_IO_strtod): Declare L and AADJ likewise.
1760 (_IO_dtoa): Declare L and D likewise. Cast division of D by DS to
1763 Mon Aug 29 16:01:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
1765 * iosetvbuf.c (_IO_setvbuf): If setting _IOFBF and no
1766 buffer was specified, call __doallocate.
1768 * fileops.c, floatconv.c: Add a bunch of parentheses to
1769 shut up gcc warnings. Patch from H.J.Lu.
1771 * stdiostream.cc (stdiobuf::sys_read): Inline call to getc
1772 for the normal case (size==1).
1774 Sat Aug 20 12:14:52 1994 Per Bothner (bothner@kalessin.cygnus.com)
1776 * Makefile.in (VERSION): Increase to 0.66.
1778 Fri Aug 19 17:28:41 1994 Per Bothner (bothner@kalessin.cygnus.com)
1780 * iolibio.h: Added _IO_printf prototype.
1781 Added extern "C" { ... } wrappers #ifdef __cplusplus.
1782 Bugs reported by Neal Becker <neal@ctd.comsat.com>.
1784 Wed Aug 17 18:17:15 1994 Per Bothner (bothner@kalessin.cygnus.com)
1786 * fileops.c (_IO_file_seekoff): For _IO_seek_cur, adjust for
1787 read-ahead before jumping to label dumb.
1789 Wed Aug 3 13:15:01 1994 H.J. Lu (hjl@nynexst.com)
1791 * libioP.h (CHECK_FILE(FILE,RET)): new, which checks for
1792 FILE == NULL and _IO_MAGIC_MASK.
1793 (COERCE_FILE(FILE)): merged into CHECK_FILE(FILE,RET)
1796 * iofread.c, iofwrite.c: add CHECK_FILE(fp, 0);
1797 * iofclose.c: add CHECK_FILE(fp, EOF); remove _IO_MAGIC_MASK check.
1799 * iofflush.c, iofgetpos.c, iofputs.c, iofscanf.c,
1800 iofsetpos.c, iofvbuf.c, ioungetc.c:
1801 Add CHECK_FILE(fp, EOF) and remove COERCE_FILE(fp).
1803 * iofgets.c: add CHECK_FILE(fp, NULL) and remove COERCE_FILE(fp).
1804 * iofprintf.c: add CHECK_FILE(fp, -1) and remove COERCE_FILE(fp).
1805 * ioftell.c: add CHECK_FILE(fp, -1L) and remove COERCE_FILE(fp).
1806 * iosetbuffer.c: add CHECK_FILE(fp, ) and remove COERCE_FILE(fp).
1808 Fri Aug 12 15:35:39 1994 Per Bothner (bothner@kalessin.cygnus.com)
1810 * iofdopen.c (_IO_fdopen): #define O_ACCMODE if it isn't.
1811 Still set O_APPEND if "a" is given, but don't unset it
1812 if it isn't. Added comment.
1814 Mon Aug 8 13:11:00 1994 Per Bothner (bothner@kalessin.cygnus.com)
1816 * gen-params (VTABLE_LABEL_PREFIX): Changes in the implementation.
1817 For look for _*vt[$_.]7*filebuf in the nm output, because that
1818 matches what g++ produces and has produced. Thus it should be
1819 somewhat more robust.
1821 Sun Aug 7 22:52:49 1994 Per Bothner (bothner@kalessin.cygnus.com)
1823 * gen-params (CC): Remove no-longer-needed -I options
1824 passed to xgcc (now they are implied by the -B options).
1826 Wed Jul 20 16:41:13 1994 Per Bothner (bothner@kalessin.cygnus.com)
1828 * Makefile.in (tooldir): Added definition, so we can do
1829 'make install' in this directory.
1830 Bug reported by Klamer Schutte <schutte@tpd.tno.nl>.
1832 Mon Jul 18 18:02:34 1994 Per Bothner (bothner@kalessin.cygnus.com)
1834 * gen-params (VTABLE_LABEL_PREFIX): Remove filename sppearing
1835 by itself. Add comment explaining what is going on.
1837 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@jalod)
1839 * libio.h: define _IO_uid_t and _IO_HAVE_ST_BLKSIZE
1842 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@jalod)
1844 * iopopen.c: Don't include <errno.h>. It is included in "libioP.h".
1846 * iopopen.c (_IO_proc_close) : check if fp is on the list
1849 Thu Jul 14 16:38:47 1994 Per Bothner (bothner@kalessin.cygnus.com)
1851 * gen-params (CONFIG_NM): Make sed scripts to find vtable name
1852 mangling more robost for different forms of nm output.
1854 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@jalod)
1856 * iofopen.c (_IO_fopen): don't check [redundantly] fp == NULL after
1857 IO_file_init(&fp->_file).
1859 * iomanip.h (template<class TP> class iapp):
1860 change ostream to istream.
1862 Tue Jul 12 14:09:02 1994 Per Bothner (bothner@kalessin.cygnus.com)
1864 * Makefile.in (VERSION): Increase to 0.65.
1865 * libioP.h (builtinbuf_vtable): Only define #ifdef __cplusplus.
1867 * gen-params (_G_int8_t): Only define if defined(__STDC__),
1868 because K&R C compilers don't have signed char.
1869 (_G_int64_t, _G_uint64_t): Only define if defined(__GNUC__)
1870 because other compilers may not have long long.
1872 Sun Mar 06 13:10:21 1994 H.J. Lu (hjl@nynexst.com)
1874 * floatconv.c (_IO_dtoa ()): fix a small memory leak, set the
1875 "on_stack" field to be 0 if "result" is not NULL.
1877 Sat Mar 05 13:18:20 1994 H.J. Lu (hjl@nynexst.com)
1879 * floatconv.c (_IO_dtoa ()): if the number of digits of the
1880 floating point number is more than the previous one, free the
1881 old string and allocate a new one.
1882 [Minor optimization to avoid Bcopy. -PB]
1884 Mon Jul 11 10:53:41 1994 Per Bothner (bothner@kalessin.cygnus.com)
1886 * fileops.c (_IO_file_underflow): 'count' should be unsigned,
1887 since it contains the return value of read. Reported by
1888 Teemu Torma <tot@trema.fi>.
1890 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@nynexst.com)
1892 * floatconv.c (_IO_strtod ()): make "+" and "-" as error.
1894 Sat Jul 9 15:09:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
1896 Make sure _IO_FILE::_flags is always initialized correctly, for the
1897 C functions (fopen, fdopen, popen), and not just the C++ functions.
1898 * fileops.c (_IO_file_init): Set _flags to CLOSED_FILEBUF_FLAGS.
1899 * fileops.c (_IO_file_fopen): Remove bogus assignment.
1900 * filebuf.cc (filebuf constructors): Don't pass CLOSED_FILEBUF_FLAGS
1901 to streambuf constructor - _IO_file_init does it instead.
1902 * filebuf.cc (CLOSED_FILEBUF_FLAGS): Removed.
1903 * iopopen.c (_IO_proc_open): Use _IO_mask_flags.
1905 Thu Jun 30 08:49:53 1994 Jason Merrill (jason@deneb.cygnus.com)
1907 * dbz/Makefile.in (mostlyclean): Add target.
1909 Wed Jun 29 09:30:12 1994 Jason Merrill (jason@deneb.cygnus.com)
1911 * gen-params: Woops, can't run a C program to determine target
1912 characteristics. Sigh.
1914 Tue Jun 28 03:11:33 1994 Jason Merrill (jason@deneb.cygnus.com)
1916 * gen-params: Add _G_{,u}int{8,16,64}_t, use a short C program to
1917 determine what all these should be rather than trying to compare
1918 the MAX numbers in the shell.
1920 Sun Jun 26 21:04:24 1994 Per Bothner (bothner@kalessin.cygnus.com)
1922 * stdiostream.h, stdiostream.cc (stdiobuf::xsgetn): Removed.
1923 Too hairy. If we want to optimize it, we should do so in
1924 filebuf::xsgetn (or rather _IO_file_xsgetn).
1926 * stdiostream.h (class stdiobuf), stdiostream.cc: Fix parameter
1927 and return types of virtual function to matcher base types (Oops!).
1928 * streamstream.cc (stdiobuf::xsgetn, stdiobuf::xsputn):
1929 Optimize to call fread.fwrite directly if !buffered.
1930 * fileops.c: Fix comment.
1932 Fri Jun 24 11:28:18 1994 Per Bothner (bothner@kalessin.cygnus.com)
1934 * stdiostream.h (istdiostream, ostdiostream): New classes.
1936 More robust final cleanup.
1937 * cleanup.c (_IO_register_cleanup): Register _IO_cleanup,
1938 rather than _IO_flush_all.
1939 * filedoalloc.c: Update comment.
1940 * genops.c (_IO_unbuffer_all): New. Makes all files unbuffered.
1941 * genops.c (_IO_cleanup), libioP.h: New function. Call
1942 _IO_flush_all, and then _IO_unbuffer_all. This is in case C++
1943 destructors try to do output *after* _IO_cleanup is called.
1945 Construct standard stdiobufs statically (using type punning).
1946 * stdstrbufs.c; Unless _STDIO_USES_IOSTREAM declare standard
1947 stdiobufs (for stdin, stdout, and stderr), using type punning
1948 (struct _IO_fake_stdiobuf). This avoids constructor-time problems.
1949 * stdstreams.cc: Remove the declarations of the stdiobufs.
1950 Instead use the new (fake) ones in stdstrbufs.cc. We no longer
1951 have to call ios::sync_with_stdio at constructor time.
1953 Preliminary support for new ANSI streambuf::uflow virtual.
1954 * libioP.h (struct _IO_jump_t): Add __uflow field.
1955 * genops.c (_IO_default_uflow), libioP.h: New function.
1956 * fileops.c (_IO_file_jumps), iopopen.c (IO_proc_jumps),
1957 iovfprintf.c (_IO_helper_jumps), strops.c (_IO_str_jumps),
1958 streambuf.cc (_IO_streambuf_jumps): Add _IO_default_uflow.
1959 * genops.c (__uflow): New function.
1960 (save_for_backup): New function. Some code shared by
1961 __underflow and __uflow, moved out from the former.
1962 (_IO_default_uflow): New function.
1963 * libio.h (_IO_getc): Call __uflow, not __underflow.
1965 Wed Jun 22 20:22:49 1994 Per Bothner (bothner@kalessin.cygnus.com)
1967 Make sure that the vtable of a streambuf is always valid,
1968 which makes ios::rdbuf simpler and faster.
1969 * gen-params: Add code to determine _G_VTABLE_LABEL_HAS_LENGTH,
1970 _G_VTABLE_LABEL_PREFIX, _G_VTABLE_LABEL_PREFIX_ID, and
1971 _G_USING_THUNKS, which describe how virtual function tables are named.
1972 * stdfiles.c (FILEBUF_LITERAL): Moved to libioP.h.
1973 * libioP.h (builtinbuf_vtable): New (complicated) declaration.
1974 * filebuf.cc (filebuf::__new), strstream.cc (SET_STR_JUMPS):
1975 Initialize vtable to builtinbuf_vtable, not NULL.
1976 * stdstrbufs.cc: New file. Same as stdfiles.c, except that
1977 vtable is initialized to builtinbuf_vtable, not NULL.
1978 * streambuf.h (ios::rdbuf): Can now simplify/optimize, due to
1979 above changes. Always, just return _strbuf.
1980 * builtinbuf.h, builtinbuf.cc (builtinbuf::vtable,
1981 builtinbuf::get_builtin_vtable): Removed. No longer needed.
1982 * streambuf.h, builtinbuf.cc (ios::_IO_fix_vtable): No longer needed.
1983 Only defined #ifdef _STREAM_COMPAT, for binary compatibility.
1984 * Makefile.in: Move stdfiles.o from IO_OBJECTS to STDIO_WRAP_OBJECTS.
1985 (IOSTREAM_OBJECT): Add stdstrbufs.o.
1986 * Makefile.in (_G_config.h): Pass $(CXXFLAGS) as part of $(CXX).
1988 Fri Feb 11 11:08:01 1994 SBPM Marc GINGOLD (marc@david.saclay.cea.fr)
1990 * iovfprintf.c (helper_vfprintf): add
1991 hp->_IO_file_flags = _IO_MAGIC|(_IO_IS_FILEBUF+_IO_NO_READS);
1992 [This is needed because _IO_vfprintf checks for _IO_UNBUFFERED. -PB]
1993 [Actually: don't set _IO_IS_FILEBUF. -PB]
1995 Wed Jun 22 13:49:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
1997 * stdiostream.cc, stdiostream.h (stdiobuf::buffered): New methods.
1999 * iofdopen.c (_IO_fdopen): Various minor improvements.
2001 * iovfscanf.c: Don't return EOF on control_failure.
2003 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@nynexst.com)
2005 * iovfscanf.c: Enforce the sequence of the conversion specifications.
2007 Fri Jun 17 20:57:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
2009 * iofdopen.c: Use fcntl to check that requested access mode is
2010 compatible with existing access mode, and to change the
2011 O_APPEND file status flag if need be.
2013 Thu Jun 16 17:33:50 1994 Per Bothner (bothner@kalessin.cygnus.com)
2015 * streambuf.h (ios::init): Initialize all the fields.
2016 This may be overkill, but the current ANSI working paper requires it.
2017 * streambuf.h (ios::ios): Reimplement in terms of ios::init.
2018 * iostream.cc (Non-default constructors istream::istream,
2019 ostream::ostream, iostream::iostream): Cannot use a mem-initializer,
2020 because it is ignored if initializing a derived class. Instead,
2023 Wed Jun 15 13:35:37 1994 Per Bothner (bothner@kalessin.cygnus.com)
2025 * stdstreams.cc (ISTREAM_DEF): Fix typo (it's a _fake_istream, not
2026 a _fake_ostream). Reported by Jason Shirk <jshirk@gomez.intel.com>.
2028 * stdiostream.h, stdiostream.cc (stdiobuf::~stdiobuf): New.
2030 * stdiostream.cc (stdiobuf::sync): Call _IO_do_flush rather
2031 than filebuf::sync (to avoid bad seeks).
2033 * libioP.h (_IO_do_flush): Add missing parentheses.
2035 Fri Jun 3 19:16:57 1994 Jason Merrill (jason@deneb.cygnus.com)
2037 * config.shared (CXXFLAGS): Remove -fno-implicit-templates.
2039 * iomanip.h: Add explicit external instantiations.
2041 Wed Jun 1 14:14:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
2043 * libio.h (struct _IO_FILE_plus): Move definition from here ...
2044 * libioP.h (struct _IO_FILE_plus): ... to here. Since this
2045 file is private to the implementation, we can rename the fields
2046 from the implementor's to the user's name anme space.
2047 (This avoids a lossage on SCO, whose stdio.h has a #define _file.)
2048 * iofdopen.c, iofopen.c, stdfiles.c: Fix field references accordingly.
2049 * iopopen.c (struct_IO_proc_file): Rename fields from
2050 implementor's name space to user's, and update usages.
2051 * streambuf.h (streambuf::_vtable): Re-implement to not need
2052 struct _IO_FILE_plus.
2053 * strfile.h (struct _IO_strfile_): Likewise.
2055 Wed Jun 1 13:57:48 1994 Jason Merrill (jason@deneb.cygnus.com)
2057 * config.shared (CXXFLAGS): Use -fno-implicit-templates instead of
2058 -fexternal-templates.
2060 Tue May 31 08:49:28 1994 Mike Stump (mrs@cygnus.com)
2062 * genops.c, iofclose.c, iofdopen.c, iofopen.c, iopopen.c: Be
2063 consistent about protecting #include <stdlib.h>.
2065 * ioputs.c: Add #include <string.h>, to avoid warning on alpha.
2067 * iofdopen.c: Add #include <stdlib.h>, so that malloc works on
2068 machines where sizeof(int) != sizeof(void *).
2070 Mon May 30 17:26:49 1994 Per Bothner (bothner@kalessin.cygnus.com)
2072 * pfstream.cc (ipfstream::ipfstream, opfstream::opfstream):
2073 Reverse sense of test of return value of procbuf::open.
2074 (It returns NULL on failure.)
2076 * filedoalloc.c (_IO_file_doallocate): Remove dead code for
2077 USE_MALLOC_BUF. Add code to return EOF if ALLOC_BUF fails.
2079 Sat May 28 13:47:47 1994 Jason Merrill (jason@deneb.cygnus.com)
2081 * iomanip.cc: Explicitly instantiate smanip<int> and
2082 smanip<ios::fmtflags>.
2084 Wed May 25 16:04:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
2086 * strfile.h: Use __P instead of _PARAMS.
2088 Fri May 20 11:42:17 1994 Per Bothner (bothner@kalessin.cygnus.com)
2090 * libio.h: Rename _PARAMS macro to __P for better glibc and BSD
2091 compatibility. (Also define _PARAMS for backwards compatibility.)
2092 * cleanup.c, iolibio.h, ioperror.c, iovfprintf.c, iovfscanf.c,
2093 libioP.h: Use __P instead of _PARAMS.
2094 * iostdio.h: Use __P instead of _ARGS.
2096 * fileops.c (_IO_file_read): Minor stylistic tweak. (It is
2097 preferable to test errno *after* the error return.)
2099 Fri May 13 15:25:36 1994 Jason Merrill (jason@deneb.cygnus.com)
2101 * iostream.*: Add insertor and extractor for bool (just pretend
2104 Fri May 13 14:12:03 1994 Mike Stump (mrs@cygnus.com)
2106 * gen-params: Check for builtin bool support.
2108 Wed May 11 00:48:35 1994 Jason Merrill (jason@deneb.cygnus.com)
2110 Make libg++ build with gcc -ansi -pedantic-errors
2111 * gen-params: #ifdef __STRICT_ANSI__, #define _G_NO_NRV.
2112 * pfstream.cc (ipfstream::ipfstream): Wrap use of variable-size
2113 array in #ifndef __STRICT_ANSI__.
2115 Fri May 6 12:42:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
2117 * Makefile.in (VERSION): Increase to 0.64.
2119 * isgetline.cc (istream::getline): The delimiter should *not*
2120 be included in the gcount().
2122 * filedoalloc.c: #include <stdlib.h> (If __STDC__) to get malloc.
2123 * iostream.h (ostream::put): Remove overloaded versions, to match
2124 new working paper. (Actually just put inside _STREAM_COMPAT, for now.)
2126 Tue May 3 14:14:57 1994 Per Bothner (bothner@kalessin.cygnus.com)
2128 * genops.c (_IO_default_finish): Make robust when called
2129 multiple times on the same _IO_FILE*. (One way this can
2130 happen is by the builtinbuf destructor being followed by the
2131 streambuf destructor.)
2133 Mon May 2 13:55:26 1994 Jason Merrill (jason@deneb.cygnus.com)
2135 * gen-params: Actually determine wint_t rather than depending on
2136 cpp to provide it or defaulting to the underlying type for
2139 Sat Apr 30 14:47:30 1994 Jason Merrill (jason@deneb.cygnus.com)
2141 * gen-params: Add _G_wint_t, allow __*_TYPE__ to override values
2142 at compile time, fix definition of _G_ARGS.
2144 Fri Apr 29 16:55:37 1994 Per Bothner (bothner@kalessin.cygnus.com)
2146 * libio.h: Remove #pragma interface. (There is no implementation.)
2148 Mon Mar 28 14:22:26 1994 Per Bothner (bothner@kalessin.cygnus.com)
2150 * iostream.cc (ostream::operator<<(double)): Add/fix support
2151 for printing '+' when ios::showpos is set.
2152 (Fixes bug reported by Doug Moore <dougm@cs.rice.edu>.)
2153 * iostream.cc (istream::read): Set eofbit as well as failbit on eof.
2154 * iostream.cc (ostream::operator<<(int)): Fix conversion
2155 to unsigned (used to lose on INT_MIN).
2156 * iostream.cc (ostream::operator<<(long)): Use (unsigned long),
2157 rather than (unsigned) for temporary.
2159 * config.shared, Makefile.in: Remove definitions and uses
2160 of XTRAFLAGS. It is no longer needed, since it is
2161 now implied by the -B flag.
2163 Fri Mar 25 00:31:22 1994 Jason Merrill (jason@deneb.cygnus.com)
2165 * builtinbuf.h: Add put /**/ around comment on trailing #endif.
2167 * Makefile.in (c++clean): Make clean in tests subdir, too.
2169 Wed Mar 23 16:42:09 1994 Doug Evans (dje@canuck.cygnus.com)
2171 * configure.in: Remove Makefile.tem before creating it.
2172 Needed when configuring from read-only source trees.
2174 Wed Mar 16 14:06:42 1994 Per Bothner (bothner@kalessin.cygnus.com)
2176 * stdstreams.cc: Fix so that stdiobuf are used for cin/cout/cerr,
2177 unless _STDIO_USES_IOSTREAM is defined.
2178 * filebuf.cc (filebuf::setbuf): Fix confusion about return
2179 value from _IO_file_setbuf.
2181 Sun Mar 13 00:54:12 1994 Paul Eggert (eggert@twinsun.com)
2183 * config.shared: Ensure that `all' precedes `.PHONY';
2184 BSDI 1.1 needs this.
2186 Sat Mar 12 03:58:00 1994 Paul Eggert (eggert@twinsun.com)
2188 * config.shared: Output a definition of INSTALL that uses
2189 $${rootme}, not ${rootme}. Most `make's don't care, but BSDI
2192 Fri Mar 4 17:33:01 1994 Per Bothner (bothner@kalessin.cygnus.com)
2194 * iopopen.c: #define _POSIX_SOURCE.
2195 * isgetline.c (istream::getline): Various fixes.
2197 Thu Mar 3 17:58:20 1994 Per Bothner (bothner@kalessin.cygnus.com)
2199 * iostream.cc (write_int): Fix test for when to add initial '0'
2200 when ios::oct and ios::showbase are set.
2201 For hex, showbase adds initial 0x (or 0X) regardless of val==0.
2202 Bugs reported by Phil Roth <proth@cs.uiuc.edu>.
2204 Mon Feb 21 13:18:20 1994 H.J. Lu (hjl@nynexst.com)
2206 * libio.h (_IO_PENDING_OUTPUT_COUNT(_fp)): return the
2207 pending output count in _fp.
2209 Fri Feb 25 09:26:57 1994 Ian Lance Taylor (ian@cygnus.com)
2211 * gen-params: For HAVE_SYS_WAIT, compile dummy.c, not dummy.C.
2213 Tue Feb 22 11:19:09 1994 Per Bothner (bothner@kalessin.cygnus.com)
2215 * streambuf.h, genops.c, libioP.h: Rename references to
2216 _IO_FILE fields other_gbase => _IO_save_base,
2217 _aux_limit => _IO_backup_base, and _other_egptr => _IO_save_end.
2218 * libio.h: Remove no-longer needed macros _other_gbase,
2219 _aux_limit, and _other_egptr.
2220 * genops.c (__underflow, _IO_default_finishh, _IO_unsave_markers):
2221 Check _IO_save_base for NULL before FREEing it or calling
2222 _IO_free_backup_area.
2224 Thu Feb 17 15:26:59 1994 Per Bothner (bothner@kalessin.cygnus.com)
2226 * gen-params: Improve deduction of _G_uint32 and _G_int32.
2227 Should now work for 16-bit, 32-bit, or 64-bit targets.
2228 * gen-params: Check for sys/wait.h using ${CC}, since it's
2229 now used in a C file, not a C++ file.
2230 * floatconv.c: Typedef _G_uint32_t as unsigned32, and use
2231 unsigned32 in place of unsigned long. (Needed for Alpha.)
2233 Tue Feb 8 13:40:15 1994 Per Bothner (bothner@kalessin.cygnus.com)
2235 * fileops.c (_IO_file_close_it): Simplify by using _IO_do_flush.
2236 * fileops.c (_IO_file_finish): Don't call _IO_file_close_it -
2237 do it inline. Call _IO_do_flush even if _IO_DELETE_DONT_CLOSE.
2238 * fileops.c (_IO_file_attach): Set _IO_DELETE_DONT_CLOSE.
2239 * genops.c (_IO_flush_all): Only call overflow if there is
2241 * iofclose.c (_IO_fclose): Check that magic number is correct,
2242 and clear it when done. Avoids crashing some buggy applications.
2243 * iogetline.c (_IO_getline): Don't gratuitously increment old_len.
2244 * iogets.c (_IO_gets): Take care to get required ANSi semantics.
2246 Sun Feb 6 19:50:39 1994 Jason Merrill (jason@deneb.cygnus.com)
2248 * iomanip.cc: Explicitly instantiate operator<< and >>.
2250 Fri Feb 4 12:28:22 1994 Jason Merrill (jason@deneb.cygnus.com)
2252 * config.shared (CXXFLAGS): Use -fexternal-templates.
2254 * iomanip.h: Uncomment #pragma interface.
2256 Thu Jan 20 13:48:40 1994 Per Bothner (bothner@kalessin.cygnus.com)
2258 If no characters are read by fgets, ANSI C doesn't allow '\0' to
2259 be written to the buffer, but it is required by ANSI C++
2260 for istream::get and istream::getline. Both use _IO_getline ...
2261 * iogetline.c (_IO_getline): Don't write a '\0' at the end
2262 of the read data. The input buffer length does not include
2264 * iofgets.c, iogets.c: Change appropriately.
2265 Also check for _IO_ERR_SEEN, as required by ANSI.
2266 * isgetline.cc: Update accordingly.
2268 Mon Jan 17 13:24:26 1994 Jason Merrill (jason@deneb.cygnus.com)
2270 * Makefile.in (c++clean): Added target for compiler testing
2271 (i.e. make c++clean all).
2273 Mon Jan 10 11:20:42 1994 Per Bothner (bothner@kalessin.cygnus.com)
2275 * libio.h (_IO_putc): Add parentheses.
2276 Patch from Rik Faith <faith@cs.unc.edu>.
2278 Tue Jan 4 01:32:28 1993 Hongjiu Lu (hjl@nynexst.com)
2280 * genops.c (_IO_default_xsputn):
2281 (_IO_default_xsgetn):
2282 * ioignore.c: change "_IO_size_t count" to
2283 "_IO_ssize_t count".
2284 * iogetline.c: change "_IO_size_t len" to
2287 Mon Dec 20 00:31:21 1993 Per Bothner (bothner@kalessin.cygnus.com)
2289 * config.shared (CXXINCLUDES): Fix quoting of $(NOSTDINC).
2291 Sun Dec 19 21:03:45 1993 Per Bothner (bothner@kalessin.cygnus.com)
2293 * Makefile.in (VERSION): Increase to 0.63.
2295 Fri Dec 17 13:02:44 1993 Per Bothner (bothner@kalessin.cygnus.com)
2297 * iofread.c (_IO_fread): Return 0 if either size or count is 0.
2298 * iofwrite.c (_IO_fwrite): Return 0 if either size or count is 0.
2299 (This is consistent with fread, and most implementations, but not
2300 with a literal reading of the ANSI spec.)
2301 * iovfscanf.c (_IO_vfscanf): If got EOF while skipping spaces,
2302 set seen_eof and break (instead of returning).
2303 * sbscan.cc (streambuf::vscan): Set error state before returning.
2304 * streambuf.h: Add a forward declarations for class istream
2305 to work around a g++ vtable name mangling bug. (Patch from
2306 harry@pdsrc.hilco.com via Jeffrey A Law <law@snake.cs.utah.edu>.)
2309 Sat Dec 11 16:21:08 1993 Per Bothner (bothner@kalessin.cygnus.com)
2311 * iovfprintf.c (struct helper_file, _IO_helper_overflow,
2312 helper_vfprintf, _IO_helper_jumps): New structs and functions.
2313 (_IO_vfprintf): Use helper_vfprintf to make printing to
2314 unbuffered files more efficient.
2315 * genops.c (_IO_default_underflow), libioP.h: New function.
2317 * iovsscanf.c (_IO_vsscanf): The input string's length marks
2318 its logical end-of-file.
2320 Wed Dec 8 13:20:46 1993 Per Bothner (bothner@kalessin.cygnus.com)
2322 * indstream.cc (indirectbuf::sync()): Don't crash if get_stream()
2323 or put_stream() are NULL; sync() both streams even if error.
2325 Sun Dec 5 19:24:29 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
2327 * iostreamP.h (convert_to_seekflags): Use _IO_seek_set instead of
2328 0 inside the conditial expressions.
2330 * iofsetpos.c (_IO_fsetpos): Delete unused var `pos'.
2332 Sat Dec 4 15:57:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
2334 * filedoalloc.c (_IO_file_doallocate): Change type of couldbetty
2335 to int, and type of size to _IO_size_t, instead of size_t.
2336 (Change needed for Ultrix, which incorrectly deliberately doesn't
2337 define size_t in <sys/types.h> if _POSIX_SOURCE is defined.)
2339 Thu Dec 2 22:43:03 1993 Per Bothner (bothner@kalessin.cygnus.com)
2341 * fileops.c (_IO_file_finish): Remove redundant call to _IO_un_link.
2342 * iofclose.c (_IO_fclose): Don't call fp->_jumps->__close; it's
2343 too low-level. Instead call _IO_file_close_it.
2344 * dbz/Makefile.in (rclean, distclean): Add some missing files.
2346 Wed Dec 1 13:19:14 1993 Per Bothner (bothner@kalessin.cygnus.com)
2348 * config/hpux.mt (MATH_H_INLINES): No longer define.
2349 Patch from Jeffrey A Law <law@snake.cs.utah.edu>.
2351 Fri Nov 26 13:28:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
2353 * config.shared (CINCLUDES): Define default if libg++.
2354 * iofread.c: Use _IO_sgetn.c.
2355 * iolibio.h (_IO_clearerr): Fix typo.
2356 * genops.c (_IO_seekmark): Return 0 on success.
2357 * floactconv.c (Binit): Change to static.
2358 * iofclose.c (_IO_fclose): Check if file is _IO_stdin, _IO_stdout,
2359 or _IO_stderr; if so don't try to free it. Fix from hjl@nynexst.com.
2361 * genops.c (_IO_default_sync), libioP.h: New function.
2362 * libioP.h (_IO_default_close): Use _IO_default_sync -same interface.
2364 * Makefile.in: Increase version to 0.62.
2365 * iopopen.c (_IO_proc_close): Use waitpid (available in libibarty,
2366 if needed), rather than wait. Don't block/ignore SIGINT etc,
2367 as this is counter to Posix.2.
2368 * iopopen.c: Chain open proc_files, and have the child close
2369 the ones that are open (as required by Posix.2).
2371 * fstream.h (fstreambase::rdbuf), strstream.h (strstreambase
2372 ::rdbuf): Call ios::rdbuf() instead of getting _strbuf directly.
2374 * sbscan.cc (streambuf::vscan): Comment out duplicate default arg.
2375 * floatconv.c: Recognize Alpha and i860 as little-endian.
2376 * streambuf.cc: Return two bogus value returns from void functions.
2377 * iolibio.h, iofwrite.c: Fix buffer type to (const void*).
2378 * libio.h: Predefine of struct _IO_FILE to help non-g++-compilers.
2379 * libioP.h, pfstream.cc, stdfiles.c, iovfscanf.c: Cleanup syntax junk.
2380 * stdstreams.cc: Minor simplification.
2381 * streambuf.h, builtinbuf.cc: Add non-const ios::_IO_fix_vtable()
2382 for temporary binary compatibility.
2384 * filedoalloc.c, fileops.c: Add _POSIX_SOURCE.
2385 * fileops.c, iofopen.c, iofputs.c, iostream.cc, strops.c,
2386 strstream.cc, genops.c: Add some missing #includes.
2387 * iofopen.c, iofdopen.c: Return NULL if malloc fails.
2388 * iovfscanf.c: Fix return type in strtol prototype.
2389 * fwrite.c: Remove bogus file.
2391 Wed Nov 17 14:09:42 1993 Per Bothner (bothner@cygnus.com)
2393 * builtinbuf.cc (ios::_IO_fix_vtable), streambuf.h: Make method
2394 const, to reduce problems with -Wcast-qual.
2396 Tue Nov 16 19:30:42 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2398 * config.shared (CXXINCLUDE): use ${} instead of $() for NOSTDINC
2400 Tue Nov 16 14:15:45 1993 Per Bothner (bothner@kalessin.cygnus.com)
2402 * iopopen.c (_IO_proc_close): Re-structure to avoid
2403 declarations after statements.
2404 * floatconv.c: If not __STDC__, #define DBL_MANT_DIG.
2405 * config/isc.mt (G_CONFIG_ARGS): Remove bogus spaces.
2406 Patch from David A. Avery <daa@nic.cerf.net>.
2408 Tue Nov 16 15:58:31 1993 Mark Eichin (eichin@cygnus.com)
2410 * Makefile.in (_G_config.h): explicitly use $(SHELL) to run
2411 gen-params, since we know it is a script (we're explicitly looking
2412 in ${srcdir} for it) and /bin/sh might not be good enough.
2414 Mon Nov 15 13:26:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
2416 * builtinbuf.cc: Don't depend on initialization of static
2417 variable builtinbuf::vtable, since that might happen after
2418 we need it (for a static constructor). Instead, initialize
2419 it when needed by inlining the code from get_builtin_vtable
2420 into ios::_IO_fix_vtable().
2422 * floatconv.c: Avoid using #elif, which some C compilers lack.
2423 * iogetline.c, libioP.h: Make char parameter be int, to avoid
2424 some default promotion anomalies.
2426 Fri Nov 5 11:49:46 1993 Per Bothner (bothner@kalessin.cygnus.com)
2428 * config.shared (do-clean-dvi): Remove TeX work files.
2429 * iopopen.c (extern _IO_fork): Don't use parameter type void.
2430 * strops.c (_IO_str_init_static): Clear the allocate_buffer
2431 function pointer, to mark the strfile as being static.
2432 Bug fix from Mike Raisbeck <mike@pudding.rtr.COM>.
2434 Thu Nov 4 10:44:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
2436 * filebuf.cc (filebuf:): Use sseekoff rather than seekoff
2437 (which loses if vtable pointer is NULL).
2439 * iostream.cc (ostream::operator<<(long long n)): Fix thinko.
2441 * Makefile.in (VERSION): Increase to 0.60.
2442 * Makefile.in (IO_OBJECTS): Added iopopen.o.
2443 * config.shared (DISTCLEAN): Also remove Make.pack.
2444 * config.shared (CXXINCLUDES): Add $(NOSTDINC).
2446 * config.shared (INSTALL): Fix so it ues the correct install.sh
2447 whether $srcdir is absolute or relative.
2449 * floatconv.c (DBL_MAX_10_EXP): Fix default value.
2451 Wed Nov 3 10:20:49 1993 Per Bothner (bothner@kalessin.cygnus.com)
2453 * gen-params: Make more robust to allow random junk (NeXT
2454 has spaces) before typedefs.
2456 * fileops.c (_IO_file_overflow): Reduce code duplication.
2457 * Makefile.in (IO_OBJECTS): Remove ioputs.o.
2459 * iovfscanf.c, libio.h: Extra parameter to _IO_vfscanf,
2460 for optionally setting an error indication..
2461 * iofscanf.c, ioscanf.c, iofscanf.c, iovsscanf.c: Fix calls to
2462 _IO_vfscanf to pass an extra NULL.
2463 * sbscan.cc (streambuf::vscan): If passed an extra stream,
2464 set its error state (using new _IO_vfscanf parameter.
2466 * filedoalloc.c, fileops.c, genops.c, iogetline.c, ioignore.c,
2467 libio.h, libioP.h, streambuf.cc streambuf.h, strfile.h, strops.c,
2468 strstream.cc: Replace macros (_base, _ebuf, _eback, _gptr, _egptr,
2469 _pbase, _pptr, _epptr) by field names (_IO_buf_base, _IO_buf_end,
2470 _IO_read_base, _IO_read_pre, IO_read_end, _IO_write_base,
2471 _IO_write_ptr, _IO_write_end).
2472 * libio.h: Remove the old macros (which fixes a conflict.
2474 Mon Nov 1 15:22:12 1993 Per Bothner (bothner@kalessin.cygnus.com)
2476 * iostream.cc: Use _IO_sputn instead of sputn. _IO_sputn does
2477 not require a vtable pointer, and is also slightly faster.
2479 * builtinbuf.{h,cc} (builtinbuf::setbuf): Fix return and
2482 Mon Oct 25 12:56:33 1993 Per Bothner (bothner@kalessin.cygnus.com)
2484 Kludge to make sure _IO_FILE buffers get flushed before exit.
2485 * dbz/dbzmain.c, dbz/fake.c, dbz/byteflip.c:
2486 Invoke DBZ_FINISH macro (if defined) before (normal) exits.
2487 * dbz/Makefile.in (CFLAGS): Define DBZ_FINISH to call _IO_flush_all.
2489 Sat Oct 23 22:10:53 1993 Per Bothner (bothner@kalessin.cygnus.com)
2491 * Makefile.in (VERSION): Set to 0.60 for libg++ release.
2492 * fileops.c (_IO_file_attach): Set _offset to _IO_pos_BAD.
2493 * iostream.cc (ostream::flush): Fix thinkp.
2494 * editbuf.cc, isgetsb.cc, isscan.cc, osform.cc, parsestream.cc,
2495 pfstream.cc, sbform.cc, sbscan.cc, stdstreams.cc, stream.cc:
2496 Replace #include "ioprivate.h" by #include "libioP.h" (and
2497 sometimes stdarg.h, stdlib.h and/or string.h).
2498 * ioprivate.h: Removed.
2501 Thu Oct 21 19:24:02 1993 Per Bothner (bothner@kalessin.cygnus.com)
2503 * PlotFile.h, SFile.h, editbuf.cc, editbuf.h, filebuf.cc,
2504 fstream.cc, fstream.h, indstream.cc, indstream.h, iomanip.cc,
2505 iomanip.h, ioprivate.h, iostream.cc, iostream.h, isgetline.cc,
2506 isgetsb.cc, parsestream.cc, parsestream.h, pfstream.cc,
2507 pfstream.h, procbuf.cc, procbuf.h, stdiostream.cc, stdiostream.h,
2508 stdstreams.cc, streambuf.cc, streambuf.h, strstream.cc,
2509 strstream.h: Remove old (duplicate) copyright notices.
2511 * iostream.cc: Fix calls to sync() to be safe in the presence
2512 of vtable-less streambufs.
2514 Wed Oct 20 15:22:04 1993 Per Bothner (bothner@kalessin.cygnus.com)
2516 * streambuf.h (streambuf::underflow, streambuf::overflow):
2517 Don't make virtual functions pure.
2518 * streambuf.cc (streambuf::underflow, streambuf::overflow):
2519 Default definitions (return EOF).
2520 * fstream.h: Add new (int fd, char* buf, int len) constructors.
2521 These are deprecated, but added for AT&T compatibility.
2522 * fstream.cc fstreambase::fstreambase(int fd, char *p, int l): New.
2524 Thu Oct 14 14:57:01 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2526 * configure.in: use 'mv -f' instead of 'mv'
2528 Tue Oct 12 05:01:44 1993 Mike Stump (mrs@cygnus.com)
2530 * floatconv.c: Fix typo, change __STDC to __STDC__.
2532 Mon Oct 11 17:03:12 1993 Per Bothner (bothner@kalessin.cygnus.com)
2534 * cleanup.c: It should be #if _G_HAVE_ATEXIT, not #ifdef.
2536 * floatconv.c, iostrerror.c, iovfprintf.c, iovfscanf.c, libioP.h:
2537 Bunch of fixes to allow use of non-ANSI (K&R) C compilers.
2539 * Makefile.in (iostream.list): Use CC=$(CXX) to force use of gcc.
2542 Fri Oct 8 16:19:58 1993 Per Bothner (bothner@kalessin.cygnus.com)
2544 * Makefile.in: Move ioungetc.o from STDIO_WRAP_OBJECTS to
2545 IO_OBJECTS (since it is needed for iovfscanf.c).
2546 * iostrerror.c: Add declaration of strerror.
2548 Thu Oct 7 12:02:28 1993 Per Bothner (bothner@kalessin.cygnus.com)
2550 * cleanup.c: New file, to cause flushing at exit.
2551 * filedoalloc.c: Cause flushing on exit.
2552 * Makefile.in (OSPRIM_OBJECTS): Add cleanup.o.
2553 * gen-params: Check for atexit.
2555 Tue Oct 5 19:11:14 1993 Mike Stump (mrs@cygnus.com)
2557 * ioperror.c (_IO_strerror): Add missing ()s in _PARAMS usage.
2559 Tue Oct 5 10:33:37 1993 Per Bothner (bothner@kalessin.cygnus.com)
2561 * iofprintf.c, iofscanf.c, ioprintf.c, ioscanf.c, iosprintf.c,
2562 iosscanf.c: Remove bogus semi-colon after va_dcl.
2563 * ioperror.c: Fix typos in declaration.
2565 Mon Oct 4 17:12:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
2567 * configure.in (CLEAN): Define (as _G_config.h *.a).
2569 * fileops.c (_IO_file_read): Don't assume EINTR is defined.
2570 * iosetbuf.c: Replace by generalized ...
2571 * iosetbuffer.c: ... variant, derived from BSD.
2572 * Makefile.in (STDIO_WRAP_OBJECTS): Change correspondingly.
2573 * iosetvbuf.c (iosetvbuf): Minor ANSI tweak.
2574 * iostdio.h (setbuf, setlinebuf): New #defines.
2575 * iolibio.h (_IO_setbuf, _IO_setlinebuf): (Re-)define as macros.
2576 * Makefile.in (LIBIO_OBJECTS): New macro.
2578 Tue Sep 28 14:15:52 1993 Per Bothner (bothner@kalessin.cygnus.com)
2580 * libioP.h (_IO_proc_open, _IO_proc_close): Add missing return types.
2581 * procbuf.cc: Belated fixes.
2583 Mon Sep 27 14:04:47 1993 Per Bothner (bothner@kalessin.cygnus.com)
2585 * Makefile.in: List new files. Add STDIO_WRAP_OBJECTS macro.
2586 * floatconv.c (d2b): Use Exp_msk11 instead of Exp_msk1.
2587 * iofgetpos.c (_IO_fgetpos), iofsetpos.c (_IO_fsetpos): Clean up.
2588 * iolibio.h: New file. Declarations of _IO_foo, for most foo
2589 where foo is a stdio function. (Remove these from libio.h.)
2590 * iostream.h (istream::istreambuf, ostream::ostreambuf): Move
2591 obsolete functions inside #ifdef _STREAM_COMPAT.
2592 * libio.h, libioP.h, streambuf.h, parsestream.h, stdiostream.h:
2593 Use _IO_fpos_t rather than _IO_pos_t.
2594 * iopopen.c: New file type, for pipe (popen-like) streams.
2595 * procbuf.cc: Now just a C++ wrapper for the files in iopopen.c.
2596 * streambuf.h (ios::unsetf): Return complete old value of flags.
2597 * iogets.c (_IO_gets(), ioungetc.c (_IO_ungetc), ioperror.c
2598 (_IO_perror), iostrerror.c (_IO_strerror): New files and
2599 functions, for stdio implementation.
2600 * iostdio.h: Add declarations for various recently-added functions.
2602 Sun Sep 12 14:24:55 1993 Per Bothner (bothner@kalessin.cygnus.com)
2604 * streambuf.h (ios::showpos):: Fix typo.
2606 Fri Aug 27 12:05:47 1993 Per Bothner (bothner@kalessin.cygnus.com)
2608 * iopadn.c (_IO_padn): Change to return count of chars written.
2609 * outfloat.c, iovfprintf.c: Change for new _IO_padn interface.
2610 * iostream.cc (ostream::operator<<): Make sure to set badbit
2611 on a failure (many places). Use _IO_padn more.
2612 * iostream.cc (ostream& ostream::operator<<(const void *p): Move to
2613 * osform.cc: ... here, to reduce linking-in-the-world syndrome.
2614 * osform.cc: Use rdbuf(), instead of _strbuf directly.
2616 * genops.c (_IO_sgetn), libio.h: New function.
2617 * streambuf.h (streambuf.h::sgetn): Use _IO_sgetn.
2618 * SFile.cc (SFile::operator[]): Use sseekoff, not seekoff.
2620 Thu Aug 26 10:16:31 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2622 * config.shared (SUBDIRS): only recurse if the directory is configured
2624 Wed Aug 25 12:56:12 1993 Per Bothner (bothner@kalessin.cygnus.com)
2626 * config/{hpux.mt, isc.mt, sco4.mt}:
2627 Moved from ../libg++/config (since they affect _G_config.h).
2628 * configure.in: Set target_make_frag to one of the above files.
2630 Fri Aug 20 00:53:14 1993 Per Bothner (bothner@kalessin.cygnus.com)
2632 * iofopen.c (iofopen): Fix type passed to _IO_un_link().
2633 * Makefile.in (_G_config.h): Pass $CC (not $CXX) as CC.
2635 * configure.in (configdirs): Add dbz and stdio.
2636 * fileops.c (_IO_file_seekoff): Convert more old functionality.
2637 * iofdopen.c: Use mode parameter to set _flags.
2638 * iofscanf.c, ioputs.c, ioscanf.c, iosprintf.c: New files.
2639 * Makefile.in (IO_OBJECTS): Added new objects.
2640 * iostdio.h: Add feof. fscanf, puts, sprintf, vsprintf.
2641 * libio.h: Add _IO_vprintf macro.
2642 * iofopen.c: Invoke _IO_un_link if failure.
2643 * iovsprintf.c: Write terminating NUL.
2645 * libioP.h: Add COERCE_FILE macro (by default does nothing).
2646 * iofclose.c, iofflush.c, iofgets.c, iofprintf.c, iofputs.c,
2647 iofread.c, ioftell.c, iofwrite.c, iosetbuf.c, iosetvbuf.c:
2648 Invoke COERCE_FILE macro.
2649 * ioftell.c: Use _IO_seekoff.
2651 Wed Aug 18 22:49:56 1993 Per Bothner (bothner@kalessin.cygnus.com)
2653 * sbform.cc (streambuf::form), sbscan.cc (streambuf::scan):
2654 Remove cast to _IO_va_list. (Loses if array type.)
2656 * libio.h: Handle _IO_va_list for systems that need <stdarg.h>.
2657 * floatconv.h: Fix typo (reported by H.J.Lu).
2659 Wed Aug 18 19:34:04 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2661 * configure.in (INSTALLDIR): handle native vs. cross case
2663 * Makefile.in (install): don't use $TARGETLIB, set INSTALLDIR to
2666 Wed Aug 18 12:10:03 1993 Per Bothner (bothner@kalessin.cygnus.com)
2668 * Makefile.in: Rename iostream-files to iostream.list.
2669 * configure.in: Add iostream.list to MOSTLYCLEAN.
2671 Tue Aug 17 18:56:59 1993 Per Bothner (bothner@kalessin.cygnus.com)
2673 * Makefile.in: Depend on _G_config.h where appropriate.
2674 * config.shared (CXXINCLUDES): If doing libg++, search ../libio.
2676 Tue Aug 17 17:34:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
2678 New directory. Based on old libg++/iostream code,
2679 but extensively re-written.