12004-09-30 Release Manager 2 3 * GCC 3.3.5 Released. 4 52004-05-31 Release Manager 6 7 * GCC 3.3.4 Released. 8 92004-02-14 Release Manager 10 11 * GCC 3.3.3 Released. 12 132003-10-16 Release Manager 14 15 * GCC 3.3.2 Released. 16 172003-08-04 Release Manager 18 19 * GCC 3.3.1 Released. 20 212003-08-04 Release Manager 22 23 * GCC 3.3.1 Released. 24 252003-05-13 Release Manager 26 27 * GCC 3.3 Released. 28 292003-05-13 Release Manager 30 31 * GCC 3.3 Released. 32 332003-05-13 Release Manager 34 35 * GCC 3.3 Released. 36 372002-12-13 Benjamin Kosnik <bkoz@redhat.com> 38 39 * Makefile.am (AM_CFLAGS): Remove DEBUG_FLAGS. 40 412001-02-03 Alexandre Oliva <aoliva@redhat.com> 42 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> 43 44 * Makefile.am (mkinstalldirs): Set. 45 462001-01-28 Benjamin Kosnik <bkoz@gnu.org> 47 48 * Makefile.am (LIBIO_SRCS): Remove stdio.c. 49 502000-10-29 Benjamin Kosnik <bkoz@gnu.org> 51 52 * Makefile.am (INCLUDES): Change to $(top_builddir)/include. 53 542000-10-29 Mark Mitchell <mark@codesourcery.com> 55 56 * iofopen.c (_IO_new_fopen): Don't define `_IO_wide_data wd' 57 if _GLIBCPP_USE_WCHAR_T is not defined. 58 * iofwide.c: Don't define codecvt functions when 59 _GLIBCPP_USE_WCHAR_T is not defined. 60 (_IO_fwide): Don't try to put the stream in wide mode when 61 _GLIBCPP_USE_WCHAR_T is not defined. 62 * libio.h (_IO_wide_data): Define it as an incomplete struct 63 when _GLIBCPP_USE_WCHAR_T is not defined. 64 * wfiledoalloc.c: Don't define anything when 65 _GLIBCPP_USE_WCHAR_T is not defined. 66 * wfileops.c: Likewise. 67 * wgenops.c: Likewise. 68 69 * _G_config.h (_G_USING_THUNKS): Allow overrides from 70 OS-configuration files. 71 * libioP.h: Test _G_USING_THUNKS with #if, rather than #ifdef. 72 732000-10-17 Benjamin Kosnik <bkoz@gnu.org> 74 75 * libioP.h: Break up extern "C" bits around includes. 76 * libio.h: Only include C headers, or else _C_legacy namespaces 77 will be nested. 78 * libioP.h: Same here. 79 802000-10-11 Benjamin Kosnik <bkoz@gnu.org> 81 82 * Makefile.am: Add includes from GLIBCPP_EXPORT_INCLUDES. 83 842000-10-10 Benjamin Kosnik <bkoz@gnu.org> 85 86 * _G_config.h (__need_ptrdiff_t): Add. 87 882000-10-08 Benjamin Kosnik <bkoz@gnu.org> 89 90 * Makefile.am (INCLUDES): Simplify. 91 * libioP.h (JUMP1): If compiling c++, use std headers. 92 * _G_config.h: Same. 93 942000-10-07 Benjamin Kosnik <bkoz@gnu.org> 95 96 * Makefile.am (CONFIG_INCLUDES): Remove. 97 982000-10-06 Benjamin Kosnik <bkoz@gnu.org> 99 100 * Makefile.am (libio_la_DEPENDENCIES): Remove extaneous cruft. 101 (libio_la_SOURCES): Remove. 102 1032000-10-05 Benjamin Kosnik <bkoz@gnu.org> 104 105 * Makefile.am (INCLUDES): Add glibcpp_includedir. 106 1072000-10-04 Benjamin Kosnik <bkoz@gnu.org> 108 109 * _G_config.h : Re-guard the __mbstate_t declaration. 110 1112000-09-27 Benjamin Kosnik <bkoz@gnu.org> 112 113 * libioP.h: Remove fcntl.h include. 114 1152000-08-22 Benjamin Kosnik <bkoz@gnu.org> 116 117 * iofwide.c (_IO_fwide): Simplify, as nl_langinfo is assumed. 118 1192000-08-14 Benjamin Kosnik <bkoz@gnu.org> 120 121 * *: Merge with mainline glibc sources. 122 * filedoalloc.c (_IO_file_doallocate): Don't call 123 _IO_cleanup_registration_needed, even if not libc. 124 * iofwide.c (_IO_fwide): Correct placement of defines. 125 * cleanup.c: Remove. 126 1272000-08-04 benjamin kosnik <bkoz@haight.constant.com> 128 129 * genops.c (_IO_unbuffer_write): Don't call _IO_SETBUF if the 130 stream is not orientated. 131 1322000-08-04 Benjamin Kosnik <bkoz@gnu.org> 133 134 * Makefile.am (LIBIO_SRCS): Add c_codecvt.c 135 1362000-07-12 benjamin kosnik <bkoz@gnu.org> 137 138 * _G_config.h: Smoke less crack, don't define _G_HAVE_ST_BLKSIZE. 139 1402000-04-25 Benjamin Kosnik <bkoz@gnu.org> 141 142 * libio.h: Change decls for seekoff/seekpos. 143 * Makefile.am: Add bits to not generate _G_config.h on linux. 144 * gen-params: Remove sigset_t declaration. 145 1462000-02-29 Benjamin Kosnik <bkoz@gnu.org> 147 148 * Makefile.am (libio_headers): Strip out deadweight. 149 1502000-02-21 Benjamin Kosnik <bkoz@cygnus.com> 151 152 * gen-params (CONFIG_NM): Specifically add in nm as the 153 default CONFIG_NM. 154 1552000-02-10 Benjamin Kosnik <bkoz@gnu.org> 156 157 * Makefile.am: Add bits for _G_config.h generation. 158 * gen-params: New file. 159 1602000-02-07 Benjamin Kosnik <bkoz@gnu.org> 161 162 * Makefile.am: Change license. 163 1641999-07-28 Benjamin Kosnik <bkoz@gnu.org> 165 166 * Makefile.am (libio_la_SOURCES): Remove cleanup.c, so that 167 _IO_cleanup will not be undefined. 168 1691998-11-26 Manfred Hollstein <manfred@s-direktnet.de> 170 171 * configure.in (compiler_name): Add check to detect if this 172 language's compiler has been built. 173 1741998-10-12 Alexandre Oliva <oliva@dcc.unicamp.br> 175 176 * config.shared (depend.new): delete libc-lock.h from 177 dependencies, and fix _G_config.h -> $(_G_CONFIG_H) rule 178 * depend: Rebuilt. 179 180Sun Oct 11 01:51:42 1998 Jeffrey A Law (law@cygnus.com) 181 182 * config.shared (depend.new): Fix typo. 183 * depend: Rebuilt. 184 1851998-09-09 Manfred Hollstein <manfred@s-direktnet.de> 186 187 * configure.in (INSTALLDIR): Fix comment about changing INSTALLDIR's 188 value; don't change its value if --enable-version-specific-runtime-libs 189 has been specified. 190 191Wed Sep 2 21:05:39 1998 H.J. Lu (hjl@gnu.org) 192 193 * configure.in: Fix INSTALLDIR replacement for cross-compile. 194 195Sun Aug 30 22:27:02 1998 Lutz Wohlrab <lutz.wohlrab@informatik.tu-chemnitz.de> 196 197 * dbz/Makefile.in: Avoid assumptions about "tr" behaves when 198 LANG is set to something other than English. 199 200Sun Aug 30 22:17:00 1998 H.J. Lu (hjl@gnu.org) 201 202 * config.shared: Set libsubdir. 203 2041998-08-25 14:34 Ulrich Drepper <drepper@cygnus.com> 205 206 * libio/iogetline.c (_IO_getline_info): Don't read anything for 207 N == 0. Patch by HJ Lu. 208 2091998-08-23 Mark Mitchell <mark@markmitchell.com> 210 211 * iomanip.h: Use __extension__ for `extern' explicit template 212 instantiations. 213 2141998-08-17 Ulrich Drepper <drepper@cygnus.com> 215 216 * strfile.h: Define __PMT if not already defined. 217 2181998-08-03 Andreas Jaeger <aj@arthur.rhein-neckar.de> 219 220 * libioP.h: Use __PMT in typedefs. 221 * strfile.h: Likewise. 222 2231998-06-29 Ulrich Drepper <drepper@cygnus.com> 224 225 * libio.h: Rewrite __PMT change so that it works with platforms 226 defining __P but not __PMT. 227 228 * libio.h (__PMT): New macro. Defined like __P. Use is for 229 function pointers. 230 2311998-06-27 Manfred Hollstein <manfred@s-direktnet.de> 232 233 * Makefile.in (install): Remove superfluous /include. 234 2351998-06-26 Manfred Hollstein <manfred@s-direktnet.de> 236 237 * config.shared (FLAGS_TO_PASS): Add gcc_version_trigger. 238 (Makefile): Add dependency upon $(gcc_version_trigger). 239 2401998-06-24 Manfred Hollstein <manfred@s-direktnet.de> 241 242 * Makefile.in (install): Install _G_config.h depending on new flag 243 --enable-version-specific-runtime-libs. 244 * config/linux.mt (gxx_include_dir): Remove definition here as we use 245 gcc's default anyway. 246 2471998-06-24 Manfred Hollstein <manfred@s-direktnet.de> 248 249 * config.shared (FLAGS_TO_PASS): Add gcc_version. 250 2511998-06-19 Manfred Hollstein <manfred@s-direktnet.de> 252 253 * config.shared (FLAGS_TO_PASS): Add libsubdir. 254 2551998-06-07 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 256 257 * genops.c (__underflow): Read character from read pointer as unsigned. 258 (__uflow): Likewise. 259 2601998-05-22 Ulrich Drepper <drepper@cygnus.com> 261 262 * strops.c (_IO_str_underflow): Read newly available character 263 from buffer as unsigned. 264 265Sun Apr 19 22:13:36 1998 H.J. Lu (hjl@gnu.org) 266 267 * isgetline.cc (istream::get): Fix a typo. 268 269Thu Mar 5 09:23:28 1998 Manfred Hollstein <manfred@s-direktnet.de> 270 271 * configure.in: Make locating frag files failsafe even for the 272 special case if configuring and building in srcdir. 273 2741998-02-24 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 275 276 Changes for _G_IO_IO_FILE_VERSION == 0x20001: 277 * libioP.h (_IO_showmanyc_t, _IO_SHOWMANYC, _IO_imbue_t, 278 _IO_IMBUE): New definitions. 279 (struct _IO_jump_t): Add __showmanyc and __imbue fields. 280 (_IO_file_fopen): Add new fourth argument. 281 * filebuf.cc (filebuf::open): Pass new fourth argument to 282 _IO_file_fopen. 283 * iolibio.h (_IO_freopen): Likewise. 284 * streambuf.cc (streambuf::showmanyc, streambuf::imbue): New 285 functions. 286 * streambuf.h (_IO_wchar_t): Define to _G_wchar_t. 287 (ios::fill): Remove casts. 288 (struct streambuf): Add showmanyc and imbue members. 289 290 * iostream.cc (ostream::operator<<(double n)) [__GLIBC_MINOR__ >= 291 1]: Initialize new fields is_char of struct printf_info. 292 (ostream::operator<<(long double n)) [__GLIBC_MINOR__ >= 1]: 293 Likewise. 294 295Sun Feb 22 17:24:53 1998 Jeffrey A Law (law@cygnus.com) 296 297 * config.shared: Bring back changes from Ian and Fred that were 298 accidentally clobbered. Should eliminate the need for Dave's 299 recent change. 300 301Tue Feb 17 21:56:25 1998 H.J. Lu (hjl@gnu.org) 302 303 * config/linux.mt (IO_OBJECTS): Add iogetline.o. 304 * config/linuxlibc1.mt: Ditto. 305 306 * iogetline.c (_IO_getline_info): Renamed from _IO_getline. 307 (_IO_getline): Just call _IO_getline_info. 308 309 * isgetline.cc (istream::getline, istream::get, _sb_readline): 310 Call _IO_getline_info instead of _IO_getline and get the EOF 311 information. 312 * sbgetline.cc (streambuf::sgetline): Ditto. 313 314 * libioP.h (_IO_getline_info): New declaration. 315 316 * iogetline.c (_IO_getline): Handle the case when there is no 317 buffer. 318 319Fri Feb 13 00:57:20 1998 Krister Walfridsson (cato@df.lth.se) 320 321 * fileops.c: #include <unistd.h>. 322 * ioprims.c: Likewise. 323 3241998-02-10 Mark Mitchell <mmitchell@usa.net> 325 326 * iostream.cc (ostream::operator<<(long double)): Don't use 327 labeled initializers. 328 329Fri Feb 6 01:35:56 1998 Manfred Hollstein <manfred@s-direktnet.de> 330 331 * config.shared (FLAGS_TO_PASS): Don't emit PICFLAG. 332 (.c.o): Check value of enable_shared, not PICFLAG. 333 (.C.o): Dito. 334 (.cc.o): Dito. 335 (stamp-picdir): Dito. 336 337Thu Feb 5 17:41:26 1998 Dave Brolley <brolley@cygnus.com> 338 339 * config.shared (LIBS): Change to -L../../libstdc++ (was -L../libstdc++) 340 if ${DOING_GPERF} is true. 341 3421998-01-20 Andreas Schwab (schwab@issan.informatik.uni-dortmund.de) 343 344 * iostream.cc (istream::operator>>(long double&)) 345 [!_G_HAVE_LONG_DOUBLE_IO]: Scan value into separate variable, in 346 case long double is bigger than double. 347 (ostream::operator<<(double)) [_G_HAVE_PRINTF_FP]: Fix order of 348 initializers of struct printf_info to match declaration order, 349 to work around g++ bug. 350 (ostream::operator<<(long double)) [_G_HAVE_PRINTF_FP]: Likewise. 351 352 * gen-params: Add missing quotes. Avoid useless use of command 353 substitution. 354 355Sun Feb 1 13:29:47 1998 H.J. Lu (hjl@gnu.org) 356 357 * filebuf.cc (filebuf::open): Call _IO_file_open if 358 _G_HAVE_IO_FILE_OPEN is 1. 359 360 * libio.h (_IO_fpos64_t, _IO_off64_t): Defined if 361 _G_IO_IO_FILE_VERSION == 0x20001. 362 363 * libioP.h (_IO_file_open): New declaration. 364 365 * libio.h (_IO_FILE, _IO_stdin_, _IO_stdout_, _IO_stderr_, 366 _IO_seekoff, _IO_seekpos): Add support for libio in glibc 2.1. 367 * libioP.h (_IO_seekoff_t, _IO_seekpos_t, _IO_seek_t, 368 _IO_seekoff, _IO_seekpos, _IO_default_seekoff, 369 _IO_default_seekpos, _IO_default_seek, _IO_file_seekoff, 370 _IO_file_seek, _IO_str_seekoff, _IO_pos_BAD, _IO_pos_as_off, 371 _IO_pos_0): Ditto. 372 * streambuf.h (streamoff, streampos): Ditto. 373 374 * gen-params (__extension__): Use only if gcc version >= 2.8. 375 376Sun Feb 1 13:08:18 1998 Krister Walfridsson (cato@df.lth.se) 377 378 * dbz/dbz.c (putconf): Handle systems which use "long long" as type 379 for "off_t". 380 * dbz/dbzmain.c (mkfiles): Likewise. 381 382Wed Jan 28 10:27:11 1998 Manfred Hollstein <manfred@s-direktnet.de> 383 384 * config.shared (FLAGS_TO_PASS): Add gxx_include_dir. 385 386 * stdio/configure.in, tests/configure.in: Update with yesterday's 387 toplevel configure.in changes. 388 * testsuite/configure.in: Likewise. 389 390 * config.shared: Fix typo in yesterday's changes. 391 392Tue Jan 27 23:26:07 1998 Manfred Hollstein <manfred@s-direktnet.de> 393 394 * config.shared: Emit everything which needs to be re-definable 395 via file descriptor 1; the generic stuff is emitted using redirection 396 onto fd 2. 397 398 * configure.in (package_makefile_rules_frag): New variable 399 which is used in the call to config.shared; redirect file descriptor 2 400 to ${package_makefile_rules_frag}. 401 402Tue Jan 27 10:35:22 1998 H.J. Lu (hjl@gnu.org) 403 404 * configure.in (topsrcdir): New. 405 (CHECK_SUBDIRS, configdirs): Check ${topsrcdir}/gcc instead. 406 (config-ml.in): Use ${topsrcdir}/config-ml.in. 407 408 * tests/configure.in (topsrcdir): New. 409 (CHECK): Check ${topsrcdir}/gcc instead. 410 411Fri Jan 16 00:48:03 1998 Manfred Hollstein <manfred@lts.sel.alcatel.de> 412 413 * config.shared (FLAGS_TO_PASS): Add SHELL. 414 415Thu Jan 15 00:21:58 1998 Ian Lance Taylor <ian@cygnus.com> 416 417 * configure.in: For *-*-cygwin32*, add a -I for winsup to both 418 XCINCLUDES and XCXXINCLUDES. 419 * config.shared: Use ${host_includes} when setting CXXINCLUDES in 420 the DOING_LIBGXX case. 421 * Makefile.in (_G_config.h): Pass $(CINCLUDES) in CC and 422 $(CXXINCLUDES) in CXX when running gen-params. 423 424Tue Jan 13 21:32:08 1998 H.J. Lu (hjl@gnu.org) 425 426 * configure.in (CHECK_SUBDIRS): Set to testsuite only if 427 ${srcdir}/../gcc exists. 428 (configdirs): Include testsuite only if ${srcdir}/../gcc exists. 429 430 * tests/Makefile.in (check): Depend on $(CHECK). 431 432 * tests/configure.in (CHECK): Set to "check-iostream 433 check-stdio" if ${srcdir}/../../gcc doesn't exists. 434 435Thu Jan 8 18:09:03 1998 Fred Fish <fnf@cygnus.com> 436 437 * config.shared (THIS_FILE): Really found via TOLIBIO instead 438 of TOLIBCXX, which is empty when configuring gperf. 439 (LIBS): When linking gperf, find libstdc++ relative to TO_TOPDIR 440 instead of hardcoded "../". 441 4421997-12-12 Brendan Kehoe <brendan@lisa.cygnus.com> 443 444 Don't make gperf depend upon libg++. 445 * config.shared (TOLIBGCXX) [DOING_GPERF]: Delete. 446 (LIBS) [DOING_GPERF]: Make it just `-L../libstdc++ -lstdc++'. 447 448Thu Dec 11 11:20:59 1997 H.J. Lu (hjl@gnu.org) 449 450 * configure.in (target frags): Add *-linux-gnu. 451 452Fri Dec 5 16:22:15 1997 H.J. Lu (hjl@gnu.org) 453 454 * streambuf.cc (streambuf::~streambuf): Don't delete _lock 455 for _IO_stdin/_IO_stdout/_IO_stderr. 456 457Thu Nov 27 01:32:43 1997 Jeffrey A Law (law@cygnus.com) 458 459 * Makefile.in (install): Change gxx_includedir to gcc_include_dir. 460 * config.shared (gxx_includedir): Remove default definition. 461 * config/linux.mt: Change gxx_includedir to gxx_include_dir. 462 * config/linuxaxp1.mt: Likewise. 463 464Wed Nov 26 16:08:50 1997 Richard Henderson (rth@cygnus.com) 465 466 * configure.in (target frags): Add powerpc*-linux-gnulibc1. 467 (stdio-lock): Similarly. 468 469 * configure.in (target frags): Add alpha*-linux-gnulibc1. 470 (pic frags): Its alpha*- not alpha-. 471 (stdio-lock): Kill everything. Add alpha*-linux-gnulibc1. 472 * libio.h: Check __GLIBC_MINOR__ to find stdio-lock.h. If not 473 _IO_MTSAFE_IO & GLIBC, make sure the lock pointer is still there. 474 * libioP.h: Check __GLIBC_MINOR__ to find libc-lock.h. 475 476 * config/linuxaxp1-libc-lock.h: New file. 477 * config/linuxaxp1-stdio-lock.h: New file. 478 * config/linuxaxp1.mt: New file. 479 480 * gen-params (va_list): Check for and use __gnuc_va_list. 481 (NULL): Work around some linux kernel headers and redefine NULL. 482 483Mon Nov 24 17:04:18 1997 Michael Meissner <meissner@cygnus.com> 484 485 * stdiostream.cc (sys_read): Declare ch with int type, rather than 486 without a type. 487 488Tue Nov 18 09:53:58 1997 H.J. Lu (hjl@gnu.ai.mit.edu) 489 490 * stdstrbufs.cc (DEF_STDFILE): Use STD_VTABLE. 491 492Tue Nov 11 01:40:17 1997 Oleg Krivosheev <kriol@fnal.gov> 493 494 * iomanip.h: Fix guiding decls. 495 4961997-11-05 Brendan Kehoe <brendan@lisa.cygnus.com> 497 498 * libio.h (__P): Name its arg `p' instead of `params'. 499 Avoids problems with an unchanged Solaris math.h header. 500 501Wed Oct 29 23:01:47 1997 Jason Merrill <jason@yorick.cygnus.com> 502 503 * gen-params: Override NULL. 504 5051997-10-27 03:53 Ulrich Drepper <drepper@cygnus.com> 506 507 * stdio-lock.h: Removed. Was never needed. 508 509Wed Oct 22 19:19:32 1997 H.J. Lu (hjl@gnu.ai.mit.edu) 510 511 * libio.h (_IO_LOCK_T): Handle glibc 2 when _IO_MTSAFE_IO is 512 not defined. 513 514 * iovsscanf.c (vsscanf): Make it weak alias of _IO_vsscanf if 515 __linux__ is defined instead of __ELF__ 516 517 * config/linuxlibc1.mt (USER_INCLUDES): Add libio.h. 518 5191997-10-15 Ulrich Drepper <drepper@cygnus.com> 520 521 * configure.in: Create compatibility code in bits/libc-lock.h file. 522 523Thu Oct 9 07:08:41 1997 H.J. Lu (hjl@gnu.ai.mit.edu) 524 525 * libio.h (_IO_LOCK_T): Handle glibc 2 when _IO_MTSAFE_IO is 526 not defined. 527 528 * filedoalloc.c (_IO_file_doallocate): Don't call 529 _IO_cleanup_registration_needed if __linux__ is defined. 530 531 * iofclose.c (fclose): Make it weak alias of _IO_fclose if 532 __ELF__ is defined. 533 534 * iovsprintf.c (vsprintf): Make it weak alias of _IO_vsprintf 535 if __ELF__ is defined. 536 537 * iovsscanf.c (vsscanf): Make it weak alias of _IO_vsscanf if 538 __ELF__ is defined. 539 540 * config/linuxlibc1.mt (MT_CFLAGS): Defined as -D_G_HAVE_MMAP. 541 (IO_OBJECTS): Add filedoalloc.o fileops.o genops.o iofclose.o 542 iovsprintf.o iovsscanf.o strops.o. 543 544Fri Oct 3 10:13:13 1997 Jason Merrill <jason@yorick.cygnus.com> 545 546 * iostream.cc, libio.h: Convert other uses of #ifdef 547 _G_HAVE_PRINTF_FP to #if. 548 5491997-10-02 Brendan Kehoe <brendan@lisa.cygnus.com> 550 551 * iostream.cc (operator<<): Use `#if _G_HAVE_PRINTF_FP', not ifdef. 552 553Thu Oct 2 10:36:49 1997 Jason Merrill <jason@yorick.cygnus.com> 554 555 * gen-params: Fix __printf_fp test. 556 * config/linuxlibc1.mt (gxx_includedir): Don't define. 557 558Thu Oct 2 10:36:26 1997 Ulrich Drepper <drepper@rtl.cygnus.com> 559 560 * config/linuxlibc1.mt (_G_CONFIG_H): Don't define. 561 * gen-params: Add test for __printf_fp. 562 563Sun Sep 28 12:09:04 1997 Mark Mitchell <mmitchell@usa.net> 564 565 * iomanip.h: Use new friend <> syntax. 566 567Sun Sep 28 12:04:21 1997 Jason Merrill <jason@yorick.cygnus.com> 568 569 * libio.h: Don't use _IO_LOCK_T if it's not defined. 570 571Fri Sep 26 20:56:41 1997 572 573 Based on a patch by H.J. Lu (hjl@gnu.ai.mit.edu). 574 575 * Makefile.in (STDIO_OBJECTS): New. Defined as stdfiles.o. 576 (LIBIO_OBJECTS): Add $(STDIO_OBJECTS). 577 (PICFLAG): New, empty. moved to here from config.shared. 578 579 * config.shared (DISTCLEAN): Add target-mkfrag. 580 (PICFLAG): Removed. 581 582 * configure.in (*-linux-gnulibc1): Remove warning. 583 (*-linux-gnu): Use linux.mt mtsafe.mt. 584 (alpha-*-linux*): Use mh-elfalphapic. 585 586 * gen-params (_G_ullong): Also check unsigned long long int. 587 (_G_llong): Also check long long int. 588 589 * libio.h (_IO_lock_t): Add support for the Linux libc 5. 590 (_IO_peekc): Defined as _IO_peekc_unlocked if _IO_MTSAFE_IO 591 is not defined. 592 593 * iostream.cc (__cvt_double): Fix a typo in declaration. 594 (info): Use expr != 0 to initialize the bit fields. Don't 595 initialize "extra" for the Linux libc 5. 596 597 * streambuf.h (_G_NEED_STDARG_H): Changed from _IO_NEED_STDARG_H. 598 599 * config/linux.mt (STDIO_OBJECTS): New, empty. 600 (MT_CFLAGS): Removed. 601 602 * config/linuxlibc1.mt: Rewrite. it's identical to linux.mt but 603 IO_OBJECTS mentions files not in early libc5 versions. 604 605 * config/mtsafe.mt: New. 606 607 * dbz/Makefile.in (check): Support make -j. 608 609 * tests/tFile.cc (tempfile): Fix a typo. 610 6111997-09-19 11:52 Jim Wilson <wilson@cygnus.com> 612 613 * Makefile.in (LIBIO_OBJECTS): Depend on _G_CONFIG_H. 614 6151997-09-17 04:08 Ulrich Drepper <drepper@cygnus.com> 616 617 * iostream.cc: Add forward declaration for __cvt_double. 618 * libio.h: Define _IO_USE_DTOA is _G_HAVE_PRINTF_FP is not defined. 619 * strops.c (_IO_str_count): Correct last change. 620 6211997-09-17 02:50 Ulrich Drepper <drepper@cygnus.com> 622 623 * libioP.h: Define __set_errno if not already defined. 624 6251997-09-15 02:37 Ulrich Drepper <drepper@cygnus.com> 626 627 * config/linux.mt: Rewrite for use with glibc 2. 628 * config/linuxlibc1.mt: Old content of linux.mt, fir libc4 and 629 libc5. 630 631 * config.shared (COMPILE.c): Allow new flags in MT_CFLAGS be 632 passed. 633 (COMPILE.cc): Likewise. 634 635 * configure.in (*-linux*): Remove goal. We now have... 636 (*-linux-gnulibc1): For libc4 and libc5. Emit warning. 637 (*-linux-gnu)): For glibc 2. 638 Create links to find headers for multi-threading if necessary. 639 640 * fileops.c: Make thread-safe by using _IO_cleanup_region_start 641 etc to handle cancelation. Acquire locks in functions which are 642 called directly. 643 (_IO_file_read, _IO_file_write): Remove dead code. 644 645 * include/empty.h: Define stub macros for locking. 646 647 * iolibio.h: Add prototypes for obstack printing functions. 648 649 * ioseekoff.c (_IO_seekoff): Lock stream before working. 650 * ioseekpos.c (_IO_seekpos): Likewise. 651 652 * iostream.cc: Add support for long double I/O. 653 Use __printf_fp from glibc is available. 654 Use _IO_cleanup_region_start to handle cancelation correctly. 655 * iostream.h (class ostream): Change opfx and osfx to lock/unlock 656 stream 657 (class istream): Likewise for ipfx, ipfx0, ipfx1, and isfx. 658 Declare new function lock and unlock for ostream and istream. 659 * osform.cc: Use _IO_cleanup_region_start to handle cancelation 660 correctly. 661 662 * libio.h: Update from glibc version. Pretty printing. 663 * libioP.h: Likewise. 664 665 * outfloat.c: Only compile if _IO_USE_DTOA is defined. 666 667 * stdio/feof.c: Make thread safe. 668 * stdio/ferror.c: Likewise. 669 * stdio/getc.c : Likewise. 670 * stdio/putc.c : Likewise. 671 * stdio/stdio.h: Declare function of thread-safe API. 672 673 * stdio/obprintf.c: New file. 674 * stdio/vasprintf.c: New file. 675 676 * stdio-lock.h: Removed. 677 678 * stdstrbufs.c: Add definitions for thread-safe streams. 679 680 * streambuf.cc: Initialize lock. 681 682 * strops.c (_IO_str_count): Undo last change. 683 684 * tests/tFile.cc: Support parallel builds by avoiding fixed 685 name for test file. 686 687Thu Sep 11 18:43:56 1997 Jason Merrill <jason@yorick.cygnus.com> 688 689 * Makefile.in (iostream.list): Remove STDIO_WRAP_OBJECTS. 690 691Mon Sep 8 01:30:27 1997 Weiwen Liu <liu@hepunix.physics.yale.edu> 692 693 * libio.h: Fix typo. 694 695Sun Sep 7 23:00:18 1997 Jim Wilson (wilson@cygnus.com) 696 697 * linux.mt (LIBIOSTREAM_DEP): Change stdio.list to stmp-stdio. 698 699Fri Sep 5 09:58:43 1997 Brendan Kehoe <brendan@lisa.cygnus.com> 700 701 * Makefile.in (iostream.list): Instead of adding stdio.list, add 702 STDIO_WRAP_OBJECTS. 703 (iostream.list): Lose dependency on stmp-stdio, not necessary for 704 our stuff. The stdio stuff is present here just for uniformity 705 with glibc. 706 707Thu Sep 4 17:26:22 1997 Brendan Kehoe <brendan@lisa.cygnus.com> 708 709 * parsestream.cc (general_parsebuf): Cast return of malloc to char*. 710 7111997-09-04 16:11 Ulrich Drepper <drepper@cygnus.com> 712 713 Change compared to version initially intended to in: 714 * strops.c (_IO_str_count): Still use _IO_write_ptr, not 715 _IO_write_end, for now. 716 717 * iofeof.c, ioferror.c, iofflush_u.c, iogetc.c, ioputc.c, peekc.c, 718 stdio-lock.h: New files. 719 720 * include: New dir. 721 * include/empty.h: New header. 722 723 * filedoalloc.c: Update and reformat copyright. 724 Don't use DEFUN. 725 Use __set_errno throughout the code to support multi-threaded 726 programs. 727 Correct layout to follow the Coding Standard. 728 Add casts to prevent warnings. 729 * fileops.c: Likewise. 730 * genops.c: Likewise. 731 * iofclose.c: Likewise. 732 * iofdopen.c: Likewise. 733 * iofflush.c: Likewise. 734 * iofgetpos.c: Likewise. 735 * iofgets.c: Likewise. 736 * iofopen.c: Likewise. 737 * iofprintf.c: Likewise. 738 * iofputs.c: Likewise. 739 * iofread.c: Likewise. 740 * iofsetpos.c: Likewise. 741 * ioftell.c: Likewise. 742 * iofwrite.c: Likewise. 743 * iogetdelim.c: Likewise. 744 * iogetline.c: Likewise. 745 * iogets.c: Likewise. 746 * iopadn.c: Likewise. 747 * iopopen.c: Likewise. 748 * ioputs.c: Likewise. 749 * ioseekoff.c: Likewise. 750 * iosetbuffer.c: Likewise. 751 * iosetvbuf.c: Likewise. 752 * iosprintf.c: Likewise. 753 * ioungetc.c: Likewise. 754 * iovsprintf.c: Likewise. 755 * iovsscanf.c: Likewise. 756 * libio.h: Likewise. 757 * libioP.h: Likewise. 758 * stdfiles.c: Likewise. 759 * strfile.h: Likewise. 760 * strops.c: Likewise. 761 762 * Makefile.in (IO_OBJECTS): Add peekc.o, iogetc.o, ioputc.o, 763 iofeof.o, and ioferror.o. 764 (iostream.list): Depend upon stmp-stdio. Add the entries 765 from stdio.list to iostream.list. 766 (stmp-stdio): New name for what was the stdio/stdio.list rule. 767 All it now does is cd down into stdio and build stdio.list. 768 769 * configure.in (ALL): Add libiostream.a. 770 771 * libio.h [_IO_MTSFE_IO]: Include header declaring locking code. 772 Otherwise define opaque _IO_lock_t. 773 Define _IO_cookie_file. 774 Rename _IO_getc to _IO_getc_unlocked, _IO_peekc to _IO_peekc_unlocked, 775 _IO_putc to _IO_putc_unlocked, _IO_feof to _IO_feof_unclocked, and 776 _IO_ferror to _IO_ferror_unlocked. 777 Add prototypes for _IO_getc, _IO_putc, _IO_feof, _IO_ferror, 778 and _IO_peekc_locked. 779 Add declarations for _IO_flockfile, _IO_funlockfile, and 780 _IO_ftrylockfile. If !_IO_MTSAFE_IO define _IO_flockfile, 781 _IO_funlockfile, _IO_ftrylockfile, _IO_cleanup_region_start, and 782 _IO_cleanup_region_end as empty macros. 783 784 * libioP.h: Change type of finish function to take an additional int 785 argument and change declaration of finish functions. 786 Add prototypes for _IO_seekoff and _IO_seekpos. 787 If _G_HAVE_MMAP is defined use stream buffers allocated with mmap. 788 Redefine FREE_BUF and ALLOC_BUF macros to help in both situations. 789 (FILEBUF_LITERAL): If we compile for a thread-safe library also 790 initialize lock member. 791 792 * filedoalloc.c: Take care for systems already defining _POSIX_SOURCE. 793 Keep name space clean on systems which require this. 794 (_IO_file_doallocate): Adopt ALLOC_BUF call for changed semantic. 795 796 * fileops.c: Keep name space clean on systems which require this. 797 (_IO_file_attach): Don't fail if seek failed because it's used on a 798 pipe. 799 (_IO_file_underflow): Update buffer pointers before calling `read' 800 since the `read' might not return anymore. 801 (_IO_file_overflow): If stream allows no writes set error flag. 802 (_IO_seekoff): Make sure that after flushing the file pointer in 803 the underlying file is exact. 804 (_IO_file_read): Don't restart `read' syscall if it return EINTR. 805 This violates POSIX. 806 (_IO_file_write): Likewise for `write'. 807 (_IO_cleanup): Install as exit handler in glibc. 808 809 * genops.c (_IO_setb): Correctly use FREE_BUF. 810 (_IO_default_doallocate): Correctly use ALLOC_BUF. 811 (_IO_init): Initialize lock in stream structure. 812 (_IO_default_finish): Destroy lock. 813 (_IO_get_column): Don't compile since it's not needed. 814 (_IO_nobackup_default): Likewise. 815 816 * iopopen.c: Take care for systems already defining _POSIX_SOURCE. 817 Correct _IO_fork and _IO_dup2 prototypes. 818 819 * iofclose.c: Acquire lock before starting the work. 820 * iofflush.c: Likewise. 821 * iofgetpos.c: Likewise. 822 * iofgets.c: Likewise. 823 * iofputs.c: Likewise. 824 * iofread.c: Likewise. 825 * iofsetpos.c: Likewise. 826 * ioftell.c: Likewise. 827 * iofwrite.c: Likewise. 828 * iogetdelim.c: Likewise. 829 * iogets.c: Likewise. 830 * ioputs.c: Likewise. 831 * iosetbuffer.c: Likewise. 832 * iosetvbuf.c: Likewise. 833 * ioungetc.c: Likewise. 834 835 * iofdopen.c: Create and initialize lock for new stream. 836 * iofopen.c: Likewise. 837 * iopopen.c (_IO_popen): Likewise. 838 * iovsprintf.c: Likewise. 839 * iovsscanf.c: Likewise. 840 841 * genops.c: Make weak aliases for various functions. 842 * iofclose.c: Likewise. 843 * iofdopen.c: Likewise. 844 * iofflush.c: Likewise. 845 * iofgetpos.c: Likewise. 846 * iofgets.c: Likewise. 847 * iofopen.c: Likewise. 848 * iofputs.c: Likewise. 849 * iofread.c: Likewise. 850 * iofsetpos.c: Likewise. 851 * ioftell.c: Likewise. 852 * iofwrite.c: Likewise. 853 * iogetdelim.c: Likewise. 854 * iogets.c: Likewise. 855 * ioputs.c: Likewise. 856 * iosetbuffer.c: Likewise. 857 * iosetvbuf.c: Likewise. 858 * ioungetc.c: Likewise. 859 * iovsprintf.c: Likewise. 860 * iovsscanf.c: Likewise. 861 862 * iofflush_u.c: New file. fflush_unlocked implementation. 863 864 * iostream.h [_G_HAVE_LONG_DOUBLE_IO]: Declare real long double 865 output operator. 866 867 * peekc.c: New file. Implement _IO_peekc_locked function. 868 869 * stdfiles.c: If we compile for a thread-safe library also define 870 lock variable. 871 872Tue Aug 26 12:24:01 1997 H.J. Lu (hjl@gnu.ai.mit.edu) 873 874 * testsuite/Makefile.in (check): Don't depend on site.exp. 875 (just-check): Depend on site.exp. 876 877Wed Aug 20 02:01:34 1997 Jason Merrill <jason@yorick.cygnus.com> 878 879 * iostream.h: Add copy assignment ops for _IO_?stream_withassign. 880 881Tue Jul 22 10:31:41 1997 Brendan Kehoe <brendan@lisa.cygnus.com> 882 883 * config.shared (CHECK_SUBDIRS): Use install-sh, not install.sh. 884 885Wed Jun 25 12:20:55 1997 Brendan Kehoe <brendan@lisa.cygnus.com> 886 887 * config.shared (DOING_GPERF): Look for this, defining TOLIBGXX 888 and LIBS for it. 889 890Wed Jun 18 11:03:34 1997 Bob Manson <manson@charmed.cygnus.com> 891 892 * config.shared (FLAGS_TO_PASS): Don't include RUNTEST. 893 894Tue Jun 17 22:23:48 1997 Bob Manson <manson@charmed.cygnus.com> 895 896 * config.shared (FLAGS_TO_PASS): Pass RUNTEST and RUNTESTFLAGS. 897 898Fri May 16 21:08:53 1997 Bob Manson <manson@charmed.cygnus.com> 899 900 * iovfprintf.c: Declare __cvt_double before use. 901 902 * floatconv.c (d2b): Use _G_int32_t instead of int for the 903 e and bits parameters. 904 (_IO_strtod): Use _G_int32_t. 905 906 * gen-params: Look for NO_USE_DTOA and USE_INT32_FLAGS. 907 908 * strops.c (_IO_str_init_static): use _G_int32_t appropriately. 909 910 * libio.h: If _G_NO_USE_DTOA is set, then don't define 911 _IO_USE_DTOA. 912 913 * config/mn10200.mt: Don't use dtoa, it only works 914 for "real" doubles. 915 916Thu May 15 17:44:12 1997 Bob Manson <manson@charmed.cygnus.com> 917 918 * configure.in: Set CHECK_SUBDIRS to testsuite if we're doing 919 a cross compile. 920 921 * config.shared(check): Only run make check in the directories 922 specified by CHECK_SUBDIRS. Set CHECK_SUBDIRS to SUBDIRS 923 if it has no previous value. 924 925Thu May 1 17:35:19 1997 Jason Merrill <jason@yorick.cygnus.com> 926 927 * Makefile.in (test, tpipe): Add $(CFLAGS). 928 929Wed Apr 30 12:16:29 1997 Jason Merrill <jason@yorick.cygnus.com> 930 931 * configure.in: Don't turn on multilib here. 932 933Sat Apr 26 13:38:21 1997 Bob Manson <manson@charmed.cygnus.com> 934 935 * configure.in (configdirs): Add testsuite directory. 936 937 * testsuite/ChangeLog: 938 * testsuite/Makefile.in: 939 * testsuite/libio.tests/tiomanip.exp: 940 * testsuite/libio.tests/tstdiomisc.exp: 941 * testsuite/libio.tests/tiomisc.exp: 942 * testsuite/libio.tests/tFile.exp: 943 * testsuite/libio.tests/tfformat.exp: 944 * testsuite/libio.tests/tiformat.exp: 945 * testsuite/libio.tests/hounddog.exp: 946 * testsuite/libio.tests/putbackdog.exp: 947 * testsuite/configure.in: 948 * testsuite/lib/libio.exp: 949 * testsuite/config/default.exp: 950 New files for DejaGnu-style testsuite. 951 952Fri Apr 4 03:16:44 1997 Ulrich Drepper <drepepr@cygnus.com> 953 954 * configure.in: Enable multilibing by default. 955 Update multilib template to read config-ml.in. 956 957 * floatconv.c: Enable use in cross targets which use the 958 newlib ieeefp.h header. 959 960Thu Jan 23 09:16:16 1997 Brendan Kehoe <brendan@lisa.cygnus.com> 961 962 * libioP.h (_IO_file_attach): Delete redundant decl. 963 964Tue Jan 21 22:13:45 1997 Brendan Kehoe <brendan@lisa.cygnus.com> 965 966 * streambuf.h (class ios): Take out STREAMSIZE member, since we 967 only need (and should only have) the global one. 968 969Tue Jan 7 14:02:40 1997 Jason Merrill <jason@yorick.cygnus.com> 970 971 * iostream.h (long long fns): Use __extension__. 972 973 * gen-params: Use _G_llong and _G_ullong instead of long long for 974 deduced types. 975 976Fri Dec 6 13:13:30 1996 Jason Merrill <jason@yorick.cygnus.com> 977 978 * dbz/dbz.c: Use off_t. 979 980Sat Nov 23 15:44:37 1996 Jason Merrill <jason@yorick.cygnus.com> 981 982 * Makefile.in (install): Don't install _G_config.h with other headers. 983 984Mon Nov 18 17:12:41 1996 Jason Merrill <jason@yorick.cygnus.com> 985 986 * config.shared (SUBDIRS): Use -O instead of -O3 for debugging. 987 988Sun Nov 3 12:43:34 1996 Jason Merrill <jason@yorick.cygnus.com> 989 990 * iostream.cc (write_int): Treat string literals as const. 991 992Thu Sep 26 10:09:18 1996 Michael Meissner <meissner@tiktok.cygnus.com> 993 994 * depend: Regenerate. 995 996Wed Sep 25 22:54:45 1996 Jason Merrill <jason@yorick.cygnus.com> 997 998 * config.shared (depend.new): Deal with headers that don't end in .h. 999 1000Thu Aug 29 17:05:53 1996 Michael Meissner <meissner@tiktok.cygnus.com> 1001 1002 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro. 1003 1004Mon Aug 5 01:26:32 1996 Jason Merrill <jason@yorick.cygnus.com> 1005 1006 * config{ure.in,.shared} (DISTCLEAN): Add multilib.out. 1007 1008Fri Aug 2 17:39:35 1996 Jason Merrill <jason@yorick.cygnus.com> 1009 1010 * libio.h (NULL): Use __null. 1011 * libioP.h (NULL): Ditto. 1012 * streambuf.h (NULL): Ditto. 1013 * ioextend.cc (get_array_element): Use NULL instead of (void*)0. 1014 1015Fri Jul 5 18:26:41 1996 Jim Wilson <wilson@cygnus.com> 1016 1017 * strfile.h (struct _IO_streambuf): New struct type. 1018 (struct _IO_strfile): Use it. 1019 1020Tue Jun 18 18:24:21 1996 Jason Merrill <jason@yorick.cygnus.com> 1021 1022 * fstream.h (fstreambase): Make __my_fb mutable. 1023 From Joe Buck. 1024 1025Tue Jun 18 11:03:53 1996 Brendan Kehoe <brendan@lisa.cygnus.com> 1026 1027 * dbz/fake.c (main): Set return type to int. 1028 * dbz/dbzmain.c (main): Likewise. 1029 * dbz/byteflip.c (main): Likewise. 1030 1031Mon Jun 17 14:05:36 1996 Jason Merrill <jason@yorick.cygnus.com> 1032 1033 * gen-params: Check if clog conflicts with system libraries. 1034 * stdstreams.cc: If it does, use __IO_clog. 1035 * iostream.h: Likewise. 1036 1037Tue Jun 11 13:39:31 1996 Brendan Kehoe <brendan@lisa.cygnus.com> 1038 1039 * stdiostream.h (istdiostream (FILE*)): Put istream base 1040 initializer before init for __f. 1041 (ostdiostream (FILE*)): Likewise for ostream base init. 1042 1043Tue May 14 11:47:21 1996 Per Bothner <bothner@andros.cygnus.com> 1044 1045 * strfile.h (_IO_str_fields): Removed _len field. 1046 (_IO_STR_DYNAMIC, _IO_STR_FROZEN): new macros. 1047 * strstream.h (strstreambuf::is_static): Removed. 1048 (strstreambuf::frozen): Use _IO_STR_DYNAMIC instead of is_static. 1049 * strstream.h, strstream.cc: Remove support for !_IO_NEW_STREAMS. 1050 * strstream.cc (strstreambuf::init_dynamic): Don't set _s._len. 1051 * strops.c (_IO_str_init_static): Better handling of the 1052 negative (== unbounded) size case. 1053 (_IO_str_overflow, _IO_str_underflow, _IO_str_count): Re-write 1054 to not use _s._len, and otherwise cleanup/fix. 1055 * strstream.h, strstream.cc (strstreambase::strstreambase()): Call 1056 ios::init here. 1057 (other constructors): Simplify - init already called. 1058 1059Tue May 14 10:55:21 1996 Per Bothner <bothner@deneb.cygnus.com> 1060 1061 Change so that strstreambuf default constructor does no allocation. 1062 * strstream.h (strstreambuf::init_dynamic): Default initial size = 0. 1063 * strstream.cc (strstreambuf::init_dynamic): Don't allocate a 1064 buffer (yet) if initial_size is 0. 1065 * strops.c (_IO_str_overflow): Add 100 to size of re-allocated 1066 buffer, to handle case when initial size is 0. 1067 1068 * iostdio.h (remove, rename, tmpfile, tempnam): Comment out. 1069 1070Mon May 13 23:19:39 1996 Per Bothner <bothner@deneb.cygnus.com> 1071 1072 * fileops.c (_IO_file_close_it): Just call _IO_do_flush rather 1073 than _IO_file_sync, to avoid useless lseek. 1074 1075Tue May 14 10:48:48 1996 Jason Merrill <jason@yorick.cygnus.com> 1076 1077 * floatconv.c (_IO_strtod): Force rv into the stack. 1078 1079 * config.shared (gxx_includedir): Now $(includedir)/g++. 1080 1081Sat Apr 27 02:37:49 1996 Jason Merrill <jason@yorick.cygnus.com> 1082 1083 * libioP.h (JUMP*): Implement for thunks. 1084 (_IO_jump_t): Add second dummy field for thunks. 1085 1086Thu Apr 25 13:20:00 1996 Jason Merrill <jason@yorick.cygnus.com> 1087 1088 * config.shared (CXX): Use gcc, not g++. 1089 1090Wed Apr 24 10:29:50 1996 Doug Evans <dje@blues.cygnus.com> 1091 1092 * config.shared (depend.new): Delete $(srcdir)/ from foo.{c,cc} 1093 for SunOS VPATH. 1094 * depend: Regenerated. 1095 1096Fri Apr 19 17:24:51 1996 Jason Merrill <jason@yorick.cygnus.com> 1097 1098 * Version 2.8.0b3. 1099 1100Wed Apr 10 17:16:01 1996 Jason Merrill <jason@yorick.cygnus.com> 1101 1102 * configure.in (ALL): Don't build iostream.a. 1103 1104Mon Apr 8 14:44:11 1996 Per Bothner <bothner@kalessin.cygnus.com> 1105 1106 * iosetvbuf.c (_IO_setvbuf): Clear _IO_UNBUFFERED unless _IONBF. 1107 1108Mon Apr 8 15:08:23 1996 Ian Lance Taylor <ian@cygnus.com> 1109 1110 * configure.in: Permit --enable-shared to specify a list of 1111 directories. 1112 1113Fri Apr 5 17:48:56 1996 Per Bothner <bothner@kalessin.cygnus.com> 1114 1115 * config.shared (MOSTLYCLEAN): Also remove ${EXTRA_MOSTLYCLEAN}. 1116 1117Fri Mar 22 23:25:00 1996 Ulrich Drepper <drepepr@gnu.ai.mit.edu> 1118 1119 * genops.c (_IO_sputbackc, _IO_sungetc): Clear EOF flag if putsh 1120 back was successful. 1121 1122Wed Mar 27 11:54:08 1996 Jason Merrill <jason@yorick.cygnus.com> 1123 1124 * Version 2.8.0b2. 1125 1126Fri Mar 22 15:39:36 1996 Per Bothner <bothner@kalessin.cygnus.com> 1127 1128 * fileops.c (_IO_do_write): Revert previous fix. (It fails to 1129 handle the case that fp->_IO_read_end != fp->_IO_write_base.) 1130 (_IO_file_overflow): Instead, if _IO_read_ptr is at the end of 1131 the buffer, reset all the read pointers to _IO_buf_base. 1132 1133Tue Mar 12 12:03:17 1996 Per Bothner <bothner@kalessin.cygnus.com> 1134 1135 * fileops.c (_IO_do_write): Even if to_do==0, must re-set buffer 1136 pointers. Bug and solution from Luke Blanshard <luke@cs.wisc.edu>. 1137 1138Wed Feb 28 10:00:24 1996 Jason Merrill <jason@yorick.cygnus.com> 1139 1140 * Version 2.8.0b1. 1141 1142Tue Feb 27 18:08:16 1996 Per Bothner <bothner@kalessin.cygnus.com> 1143 1144 * iopopen.c (_IO_proc_open): Use (char*)0 rather than imprecise NULL. 1145 1146 * streambuf.h (ios): Add ios::binary; deprecate ios::bin. 1147 * filebuf.cc (filebuf::open): Handle ios::binary. 1148 1149Fri Feb 9 12:40:19 1996 Brendan Kehoe <brendan@lisa.cygnus.com> 1150 1151 * cleanup.c (_IO_cleanup_registration_needed) [!_G_HAVE_ATEXIT]: Init 1152 to NULL. 1153 * filedoalloc.c (_IO_cleanup_registration_needed): Remove decl. 1154 1155Thu Feb 8 08:12:50 1996 Brendan Kehoe <brendan@cygnus.com> 1156 1157 * filedoalloc.c (_IO_cleanup_registration_needed): Revert previous 1158 change, since cleanup.c only defines it if _G_HAVE_ATEXIT. 1159 1160Wed Feb 7 15:10:17 1996 Brendan Kehoe <brendan@lisa.cygnus.com> 1161 1162 * filedoalloc.c (_IO_cleanup_registration_needed): Declare as extern. 1163 1164Tue Dec 12 17:21:13 1995 Per Bothner <bothner@kalessin.cygnus.com> 1165 1166 * indstream.h, instream.cc (indirectbuf::uflow): New method. 1167 * indstream.cc (indirectbuf::underflow): Fix to use sgetc, not sbumpc. 1168 Fixes bug reported by Kevin Beyer <beyer@cs.wisc.edu>. 1169 1170 * indstream.cc (indirectbuf::seekpos): Add paranoia test. 1171 1172Fri Dec 8 14:55:34 1995 Per Bothner <bothner@kalessin.cygnus.com> 1173 1174 * stream.h: Add warning to not use these functions. 1175 * stream.cc (str, chr): Re-implement here (from libg++). 1176 1177Tue Nov 28 15:07:01 1995 Per Bothner <bothner@kalessin.cygnus.com> 1178 1179 * config.shared: Use test instead of [ to avoid DEC Unix lossage. 1180 1181Thu Nov 23 14:51:43 1995 Per Bothner <bothner@kalessin.cygnus.com> 1182 1183 * iopopen.c: Move #include <sys/types.h> ahead of #include <signal.h> 1184 to deal with BSDI's literal implementation of Posix. 1185 1186Sat Nov 25 11:21:55 1995 Doug Evans <dje@canuck.cygnus.com> 1187 1188 * Makefile.in (install): Set rootme. 1189 * config.shared (TOPDIR): Set with ${foo-...} rather than ${foo=...}. 1190 (INSTALL): Handle absolute, dot, relative-not-dot values of srcdir. 1191 (TEXIDIR): Likewise. 1192 1193Tue Nov 21 14:12:05 1995 Ian Lance Taylor <ian@cygnus.com> 1194 1195 * configure.in: Check ${with_cross_host} rather than comparing 1196 ${host} and ${target}. 1197 1198Mon Nov 20 13:55:29 1995 Brendan Kehoe <brendan@lisa.cygnus.com> 1199 1200 * configure.in: Match *-sco3.2v[45]*. 1201 1202Wed Nov 15 20:19:31 1995 Brendan Kehoe <brendan@lisa.cygnus.com> 1203 1204 * config.shared (FLAGS_TO_PASS): Also pass SHLIB and SHCURSES. 1205 1206Tue Nov 14 01:41:08 1995 Doug Evans <dje@canuck.cygnus.com> 1207 1208 * config.shared (TO_REAL_TOPDIR): Define. 1209 (MULTITOP): Deleted. 1210 (MULTISRCTOP, MULTIBUILDTOP): New. 1211 (TOPDIR): Change MULTITOP to MULTIBUILDTOP, and use TO_REAL_TOPDIR. 1212 (INSTALL): Add with_multisrctop, TO_REAL_TOPDIR. 1213 (TEXIDIR): Use TO_REAL_TOPDIR. 1214 (LIBS): Delete MULTITOP. 1215 (FLAGS_TO_PASS): Add NM. 1216 (CXXINCLUDES): Delete MULTITOP. 1217 (depend.new): Delete adding MULTITOP to ../ build tree references. 1218 Add MULTISRCTOP to ../ source tree references. 1219 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in 1220 instead of cfg-ml-pos.in. 1221 1222Sun Nov 12 16:30:48 1995 Per Bothner <bothner@kalessin.cygnus.com> 1223 1224 * Makefile.in (VERSION): Set to 2.7.1. 1225 * configure.in: Add warning for Linux. 1226 * config.shared (DISTCLEAN): Add EXTRA_DISTCLEAN. 1227 1228 * editbuf.h (edit_mark::index_in_buffer): Avoid unused param warning. 1229 1230 * iostream.cc (istream::operator>> (char*)): Improve ANSI compliance. 1231 1232Fri Nov 10 08:41:37 1995 Brendan Kehoe <brendan@lisa.cygnus.com> 1233 1234 * config.shared (check): Add missing semicolon. 1235 1236Thu Nov 9 17:27:22 1995 Jason Merrill <jason@yorick.cygnus.com> 1237 1238 * configure.in (ALL): Remove $(OSPRIM_OBJECTS). 1239 * config.shared (check): Set LD_LIBRARY_PATH. 1240 * NEWS: Fix typo. 1241 * iogetdelim.c (_IO_getdelim): Index *lineptr, rather than lineptr. 1242 From alan@spri.levels.unisa.edu.au (Alan Modra). 1243 1244Mon Nov 6 15:03:33 1995 Per Bothner <bothner@kalessin.cygnus.com> 1245 1246 * streambuf.cc, editbuf.cc, isgetline.cc, parsestream.cc: 1247 Fixes to avoid -Wall warnings. 1248 1249Fri Nov 3 16:41:41 1995 Brendan Kehoe <brendan@lisa.cygnus.com> 1250 1251 * gen-params [!__STDC__]: Include varargs.h instead of stdarg.h. 1252 1253Thu Nov 2 15:04:03 1995 Per Bothner <bothner@kalessin.cygnus.com> 1254 1255 * config.shared: Re-write if X then Y else true fi to (not X) || Y. 1256 1257Wed Nov 1 13:26:44 1995 Per Bothner <bothner@kalessin.cygnus.com> 1258 1259 * iostream.h (istream::ipfx): Add default argument value. 1260 Reported by Yotam Medini <yotam_medini@tmai.com>. 1261 1262 * libioP.h (_IO_blen): Fix typo. 1263 Reported by Bryan T. Vold <btv@ldl.healthpartners.com>. 1264 1265Fri Oct 27 19:26:20 1995 Per Bothner <bothner@kalessin.cygnus.com> 1266 1267 * Makefile.in (_G_config.h): Set CC to $(CC) rather than to $(CXX), 1268 now that CXX defaults to g++ and CC default to gcc (when found). 1269 * config.shared: Simplify CXX and CC, since they get overridden 1270 by ../configure anyway. 1271 1272Wed Oct 25 19:45:50 1995 Brendan Kehoe <brendan@lisa.cygnus.com> 1273 1274 * iostdio.h: Wrap including the file with #ifndef _IOSTDIO_H. 1275 1276Wed Oct 25 11:14:25 1995 Per Bothner <bothner@kalessin.cygnus.com> 1277 1278 * libio.h (_IO_seekoff, _IO_seekpos): New declarations. 1279 * libioP.h (_IO_seekoff, _IO_seekpos): Remove declarations. 1280 * libioP.h: Cleanup; remove old !_IO_UNIFIED_JUMPTABLES stuff. 1281 1282 * filebuf.cc (filebuf::~filebuf): Only call SYSYCLOSE if currently 1283 open. Bug found by Martin Gerbershagen <ger@ezis-ulm.de>. 1284 1285 * streambuf.h (streambuf::pubseekoff, streambuf::pubseekpos): 1286 Added, from ANSI draft. 1287 * filebuf.cc (filebuf::open), iostream.cc (variables places), SFile.cc: 1288 Use pubseekoff/pubseekpos rather than sseekoff/sseekpos. 1289 1290 * Makefile.in (install): Don't install libiostream.a. 1291 1292 * filedoalloc.c: Also #include <unistd.h>. 1293 1294Mon Oct 9 18:09:54 1995 Jason Molenda <crash@phydeaux.cygnus.com> 1295 1296 * config.shared (SUFFIXES): add .c. 1297 1298Tue Sep 26 16:08:01 1995 Per Bothner <bothner@kalessin.cygnus.com> 1299 1300 * procbuf.cc: Move #pragma implementation to beginning. 1301 1302Wed Sep 20 17:53:33 1995 Per Bothner <bothner@kalessin.cygnus.com> 1303 1304 * procbuf.h, procbuf.cc: Add #pragma interface/implementation stuff. 1305 1306Wed Sep 20 18:59:00 1995 John Eaton <jwe@bevo.che.wisc.edu> 1307 1308 * procbuf.h: Protect from being included multiple times. 1309 1310Wed Sep 20 15:47:14 1995 John Eaton <jwe@bevo.che.wisc.edu> 1311 1312 * procbuf.h (procbuf): Add '_next' pointer field for compatibility 1313 with _IO_proc_file. 1314 1315Wed Sep 20 13:54:02 1995 Ian Lance Taylor <ian@cygnus.com> 1316 1317 * config.shared: Add support for maintainer-clean target as a 1318 synonym for realclean. 1319 * dbz/Makefile.in: Likewise. 1320 1321Mon Sep 11 12:11:19 1995 Per Bothner <bothner@kalessin.cygnus.com> 1322 1323 * iopopen.c: #include <sys/types.h> before <sys/wait.h>. 1324 This is in accordance with Posix, and needed for ISC. 1325 1326Fri Sep 8 00:11:55 1995 Brendan Kehoe <brendan@lisa.cygnus.com> 1327 1328 * gen-params: Use double quotes in the eval setting $TYPE to 1329 $VALUE, to preserve any single quotes in $VALUE. 1330 1331Mon Aug 21 11:39:09 1995 Jason Merrill <jason@phydeaux.cygnus.com> 1332 1333 * gen-params: Test for an appropriate version of gcc before using 1334 mode attributes. 1335 1336 * config.shared: Add $(PICDIR) to $ALL. 1337 1338Mon Aug 7 17:51:40 1995 Per Bothner <bothner@kalessin.cygnus.com> 1339 1340 * gen-params: Generate new macro _G_HAVE_SYS_CDEFS. 1341 * libio.h: If _G_HAVE_SYS_CDEFS, get __P from <sys/cdefs.h>. 1342 1343Fri Aug 4 23:21:17 1995 Paul Eggert <eggert@twinsun.com> 1344 1345 * gen-params: When following typedef changes, allow typedefs 1346 that do not have a space before the defined type name, 1347 e.g. `typedef void *__gnuc_va_list;' as in Linux. Also, 1348 not require a space in the definiens, e.g. `typedef void*foo;'. 1349 1350Thu Aug 3 17:54:15 1995 Per Bothner <bothner@kalessin.cygnus.com> 1351 1352 * iostream.h, iostream.cc (istream::sync): Added missing method. 1353 1354Thu Aug 3 17:49:34 1995 Per Bothner <bothner@kalessin.cygnus.com> 1355 1356 * configure.in: Remove netbsd special case. 1357 * config/netbsd.mt: Removed; no longer used. 1358 1359Tue Jun 20 16:07:12 1995 Paul Eggert <eggert@twinsun.com> 1360 1361 * gen-params: Take transitive closure of `typedef' relation. 1362 This is needed for BSD/OS 2.0, which has 1363 fpos_t -> off_t -> quad_t -> long long. 1364 1365Mon Jul 24 18:28:10 1995 Doug Evans <dje@canuck.cygnus.com> 1366 1367 * config.shared (TOPDIR): Delete extra '/', $rootme may be empty. 1368 1369Sat Jul 22 13:27:45 1995 Doug Evans <dje@canuck.cygnus.com> 1370 1371 * config.shared (depend.new): Fix quoting in DO NOT EDIT line. 1372 1373 * Makefile.in (_G_config.h): Add multilib support. 1374 (install): Likewise. 1375 * config.shared: Likewise. 1376 * configure.in: Likewise. 1377 1378Wed Jun 28 17:40:25 1995 Jason Merrill <jason@phydeaux.cygnus.com> 1379 1380 * PlotFile.h, SFile.h, builtinbuf.h, editbuf.h, fstream.h, 1381 indstream.h, iomanip.h, iostream.h, parsestream.h, pfstream.h, 1382 procbuf.h, stdiostream.h, stream.h, streambuf.h, strstream.h: Wrap 1383 with extern "C++". 1384 1385Thu Jun 22 04:34:01 1995 Jason Merrill <jason@phydeaux.cygnus.com> 1386 1387 * gen-params: Surround attributes with __. 1388 1389Mon Jun 19 00:33:22 1995 Jason Merrill <jason@phydeaux.cygnus.com> 1390 1391 * config.shared (SUBDIRS): Massage broken shells that require 1392 'else true'. 1393 1394Sat Jun 17 11:25:38 1995 Jason Merrill <jason@phydeaux.cygnus.com> 1395 1396 * streambuf.h: Declare inline members inline in class. 1397 1398Thu Jun 15 20:45:13 1995 Per Bothner <bothner@kalessin.cygnus.com> 1399 1400 * Makefile.in (VERSION): Update to version 2.7.0. 1401 1402Wed Jun 14 21:41:11 1995 Jason Merrill <jason@python.cygnus.com> 1403 1404 * Makefile.in (STDIO_WRAP_OBJECTS): Remove stdfiles.o. 1405 (LIBIO_OBJECTS): Add stdfiles.o. 1406 1407Wed Jun 7 16:11:36 1995 Jason Merrill <jason@python.cygnus.com> 1408 1409 * config.shared (all): Appease bash. 1410 1411Wed Jun 7 11:16:38 1995 Jason Merrill <jason@phydeaux.cygnus.com> 1412 1413 * configure.in (MOSTLYCLEAN): Remove stamp-picdir. 1414 1415 * config.shared (MOSTLYCLEAN): Ditto. 1416 (CLEAN): Don't. 1417 1418Mon Jun 5 18:29:39 1995 Jason Merrill <jason@phydeaux.cygnus.com> 1419 1420 * config/mh-*pic: Removed. 1421 1422 * configure.in (MOSTLYCLEAN): Remove pic objects. 1423 (frags): Use toplevel pic fragments. 1424 1425 * config.shared (CXXFLAGS): Use -O3. 1426 (PICFLAG, PICDIR): New macros. 1427 (all): Depend on $(PICDIR). 1428 (FLAGS_TO_PASS): Pass PICFLAG. 1429 (.x.o): Also build pic object. 1430 (stamp-picdir): Create directory for pic objects. 1431 (MOSTLYCLEAN): Remove pic objects. 1432 (CLEAN): Remove stamp-picdir. 1433 1434 * Makefile.in (iostream.list): Depend on stamp-picdir. 1435 (c++clean): Don't remove _G_config.h. 1436 1437Mon Jun 5 15:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com> 1438 1439 * strstream.h, strstream.cc (strstream::strstream()): Re-implement to 1440 be like ostrstream::ostrestream(), and not leak memory. 1441 1442 * streambuf.h: Use #if !_IO_UNIFIED_JUMPTABLES instead of #ifndef. 1443 1444 * iolibio.h (_IO_rewind): Add missing flags when calling _IO_seekoff. 1445 1446Thu May 25 22:30:21 1995 J.T. Conklin <jtc@rtl.cygnus.com> 1447 1448 * config/netbsd.mt (G_CONFIG_ARGS): Add defn for off_t. Another 1449 layer of typedefs has been added and the gen-params script can 1450 not handle it. 1451 1452Wed May 10 03:02:58 1995 Jason Merrill <jason@python.cygnus.com> 1453 1454 * iolibio.h (_IO_rewind): Add new argument to _IO_seekoff. 1455 1456 * config/linux.mt (LIBIOSTREAM_OBJECTS): Include $(STDIO_WRAP_OBJECTS). 1457 (LIBIOSTREAM_DEP): Include stdio.list. 1458 (LIBIOSTREAM_USE): Include `cat stdio.list`. 1459 1460 * Makefile.in (LIBIOSTREAM_DEP): New variable. 1461 (LIBIOSTREAM_USE): Ditto. 1462 (libiostream.a): Use them. 1463 (iostream.list): Ditto. 1464 (stdio.list): New rule. 1465 (stdio/stdio.list): Ditto. 1466 1467Tue May 9 18:29:38 1995 Jason Merrill <jason@phydeaux.cygnus.com> 1468 1469 * libioP.h (_IO_jump_t): Change TYPE for __dummy from int to 1470 _G_size_t. 1471 1472Sat May 6 13:50:37 1995 Per Bothner <bothner@kalessin.cygnus.com> 1473 1474 * libio.h (_IO_UNIFIED_JUMPTABLES): #define as true. 1475 (_IO_FILE): Remove _jumps field (#if _IO_UNIFIED_JUMPTABLES). 1476 1477 * libioP.h (enum _IO_seekflags_): Removed. 1478 1479 * libioP.h (_IO_setbuf_t): Change return value of setpos jumptable 1480 function to match C++ streambuf::setpos. (Return NULL on failure.) 1481 * fileops.c (_IO_file_setbuf), genops.c (_IO_default_setbuf), 1482 filebuf.cc, iosetvbuf.c: Update to use new setbuf conventions. 1483 1484 * streambuf.h (streambuf): Re-order virtual functions more logically. 1485 * streambuf.cc (streambuf::uflow), streambuf.h: New virtual. 1486 * libioP.h (struct _IO_jump_t): Define using new JUMP_FIELD macro. 1487 And re-order in more logical order consistent with streambuf vtable. 1488 * fileops.c (_IO_file_jumps), iopopen.c (_IO_proc_jumps), iovfprintf.c 1489 (_IO_helper_jumps), streambuf.cc (_IO_streambuf_jumps), strops.c 1490 (_IO_str_jumps): Update accordingly, using JUMP_INIT macro. 1491 * stdfiles.c: Set vtable to point to _IO_file_jumps. 1492 * filebuf.cc, iopopen.c, iovfprintf.c (helper_vfprintf), iovsprintf.c, 1493 iovsscanf.c: Use macros and #if to set jumptables. 1494 1495 * streambuf.c: _IO_streambuf_jumps and the _IO_sb_* methods are not 1496 needed #if _IO_UNIFIED_JUMPTABLES. 1497 * filebuf.cc (filebuf::__new): Also no longer needed. 1498 * fstream.cc (fstreambase::__fb_init, fstreambase::fstreambase): Fix. 1499 * stdstrbufs.c: Use filebuf vtable instead of builtinbuf's. 1500 * builtinbuf.h, builtinbuf.cc (builtinbuf): Commented out #if 1501 _IO_UNIFIED_JUMPTABLES - no longer needed. 1502 * strstream.cc (SET_STR_JUMPS): Does nothing now. 1503 1504 * builtinbuf.cc, fileops.c, genops.c, iofgetpos.c, iofsetpos.c, 1505 ioftell.c, iopopen.c, ioseekoff.c, ioseekpos.c, iosetvbuf.c, 1506 iovfprintf.c, iovfscanf.c, strops.c: Use DEFUN and DEFUN_VOID. 1507 * filebuf.cc, fileops.c, genops.c, iopopen.c, ioseekoff.c, ioseekpos.c, 1508 iosetvbuf.c, iovfscanf.c: Use new JUMP_* and IO_OVERFLOW/... macros. 1509 1510 * libioP.h (_IO_seekpos_t): Third arg is now an int (using _IOS_INPUT 1511 and _IOS_OUTPUT), not an enum _IO_seekflags_. Flags values are 1512 changed, and their sense inverted (to match streambuf::seekpos). 1513 * libioP.h (_IO_seekoff_t): Similarly match streambuf::seekoff. 1514 * filebuf.cc, fileops.c (_IO_file_fopen, _IO_file_seekoff), genops.c 1515 (_IO_default_seekpos, _IO_default_seekpos), iofgetpos.c, iofsetpos.c, 1516 iolibio.h (_IO_fseek), ioftell.c, ioseekoff.c, ioseekpos.c, 1517 iostream.cc, streambuf.cc, strops.c (_IO_str_seekoff), strstream.cc: 1518 New seekpos/seekoff conventions. 1519 * iostreamP.h (convert_to_seekflags): Removed - no longer needed. 1520 1521 * iolibio.h (_IO_fread): New declaration. 1522 1523 * dbz/Makefile.in: Re-arrange for cleaner dependencies. 1524 1525Fri May 5 15:55:22 1995 Per Bothner <bothner@kalessin.cygnus.com> 1526 1527 * libioP.h (_IO_JUMPS. JUMP_FIELD, JUMP0, JUMP1, JUMP2, JUMP3, 1528 JUMP_INIT, _IO_FINISH, _IO_OVERFLOW, ... _IO_SYSSTAT): New macros 1529 in preparation for new unified jumptable/vtable implementation. 1530 * cleanup.c, filedoalloc.c, iofclose.c, iofflush.c, iofiledoalloc.c, 1531 ioprims.c, iosetbuffer.c, iostrerror.c, ioungetc.c: Use DEFUN. 1532 * filedoalloc.c, iofclose, iofflush, iosetbuffer.c: Use new macros. 1533 1534 * iofopen.c, iofdopen.c: Use macros and #if for new jumptables. 1535 1536 * gen-params: Do not #include <sys/types.h>. 1537 Add missing quote in 'eval'. 1538 Do add #include <sys/types.h> in test for <sys/resource.h>. 1539 * config/netbsd.mt: New file, defining _G_CONFIG_ARGS (for fpos_t). 1540 * configure.in: Use netbsd.mt for NetBSD. 1541 1542Wed May 3 15:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com> 1543 1544 * libioP.h (DEFUN, DEFUN_VOID, AND): New macros, from ansidecl.h. 1545 * iofdopen.c, iofgets.c, iofopen.c, iofputs.c, iofread.c, iofwrite.c, 1546 iogetdelim.c, iogetline.c, iogets.c, ioignore.c, iopadn.c, ioperror.c, 1547 ioputs.c, iovsprintf.c, iovsscanf.c, outfloat.c: Use DEFUN. 1548 1549Mon May 1 16:22:30 1995 Jason Merrill <jason@phydeaux.cygnus.com> 1550 1551 * gen-params: #include <sys/types.h>. Don't use __WCHAR_TYPE__ in 1552 definition of _G_wchar_t. Use __attribute__ ((mode)) to get 1553 specific-sized ints under gcc, don't worry about int8 or int64 1554 otherwise. Provide defaults if deduction fails. 1555 1556Thu Apr 27 18:27:53 1995 Per Bothner <bothner@kalessin.cygnus.com> 1557 1558 * streambuf.h (ios::~ios): Delete _arrays. 1559 (_IO_NEW_STREAMS): Turn on. 1560 * libio.h (__adjust_column): Remove bogus declaration. 1561 * genops.c (_IO_set_column): Fix typo (in commented-out code). 1562 1563Tue Apr 25 17:14:29 1995 Jason Merrill <jason@phydeaux.cygnus.com> 1564 1565 * config.shared (CXXINCLUDES): Use a shell variable with a 1566 different name from the make variable. 1567 * configure.in: Update accordingly. 1568 1569Mon Apr 17 17:19:40 1995 Per Bothner <bothner@kalessin.cygnus.com> 1570 1571 * streambuf.h (__adjust_column): Remove redundant declaration. 1572 1573Sat Apr 15 11:39:25 1995 Per Bothner <bothner@kalessin.cygnus.com> 1574 1575 * config.shared (do-clean-dvi): Also remove *.cps. 1576 1577 * gen-params: Use ${SED} instead of sed. 1578 1579 * libio.h: Remove #if'd out stuff (confuses makedepend). 1580 1581 * stdstreams.cc (STD_STR): Standard streams start with ios::dec set. 1582 1583Fri Apr 14 23:46:31 1995 Per Bothner <bothner@kalessin.cygnus.com> 1584 1585 * iostream.h, iostream.cc (istream::read, ostream::write): 1586 Use streamsize for the length parameter. 1587 1588 * streambuf.h: Removed redundant __overflow and __underflow. 1589 1590 * fstream.h, fstream.cc: Add void fstreambase::attach(int). 1591 1592 * iosscanf.c (_IO_sscanf): Fix non-__STDC__ missing declaration. 1593 1594Mon Apr 3 15:40:55 1995 Jason Merrill <jason@phydeaux.cygnus.com> 1595 1596 * indstream.*: Fix prototypes of xsputn and xsgetn. 1597 1598 * fileops.c: Avoid ??? trigraph. 1599 1600Mon Mar 27 16:16:38 1995 Jason Merrill <jason@phydeaux.cygnus.com> 1601 1602 * iomanip.h (operator<< (ostream&, const omanip<TP>&): Define 1603 separately. 1604 (operator>> (istream&, const imanip<TP>&): Ditto. 1605 1606Mon Mar 27 08:56:00 1995 Brendan Kehoe (brendan@lisa.cygnus.com) 1607 1608 * builtinbuf.cc (builtinbuf::setbuf): Cast NULL to streambuf*, to 1609 avoid warning/error about conversion from void*. 1610 * indstream.cc (indirectbuf::seekoff): Likewise. 1611 (indirectbuf::seekpos): Likewise. 1612 * filebuf.cc (filebuf::setbuf): Likewise. 1613 (filebuf::close): Cast NULL to filebuf*. 1614 1615Wed Mar 1 14:23:18 1995 Per Bothner <bothner@kalessin.cygnus.com> 1616 1617 * configure.in (DISTCLEAN): Add, with target-mkfrag. 1618 1619Fri Feb 24 01:01:08 1995 Jason Merrill <jason@python.cygnus.com> 1620 1621 * configure.in (frags): Don't require so many dashes in the 1622 canonical target name. 1623 1624Sat Feb 18 13:18:30 1995 Per Bothner <bothner@kalessin.cygnus.com> 1625 1626 * streambuf.cc (streambuf::sync): Always return 0, even for 1627 non-flushed output. This is required by the ANSI/ISO draft. 1628 * genops.c (_IO_sync): Likewise always return 0. 1629 1630Fri Feb 17 16:33:28 1995 Per Bothner <bothner@kalessin.cygnus.com> 1631 1632 * fileops.c (_IO_file_close_it): Call _IO_file_sync, rather 1633 than _IO_do_flush, because we want to adjust the file pointer 1634 if reading and not at end (as in SVR4, and as in fflush). 1635 Also, make sure to return error indication if sync fails. 1636 (_IO_file_sync): Ignore seek error if it is ESPIPE. 1637 (_IO_file_seekoff): If not readable, do dumb lseek. 1638 * iofclose.c (_IO_fclose): If closing a non-filebuf, return -1 1639 if _IO_ERR_SEEN. 1640 1641Fri Feb 17 19:31:00 1995 Ian Lance Taylor <ian@cygnus.com> 1642 1643 * gen-params: Check for struct tms in <sys/times.h>, defining 1644 HAVE_SYS_TIMES accordingly. 1645 1646Wed Feb 15 21:05:11 1995 Per Bothner <bothner@kalessin.cygnus.com> 1647 1648 * strops.c (_IO_str_count): Use LEN macro. 1649 (_IO_str_seekoff): Update _len field. 1650 1651Mon Feb 6 19:29:00 1995 Jason Merrill <jason@phydeaux.cygnus.com> 1652 1653 * gen-params: Default to short, long and long long for 16, 32 and 1654 64 bit types, in case detection fails. 1655 1656Wed Jan 25 18:07:30 1995 Jason Merrill <jason@phydeaux.cygnus.com> 1657 1658 * gen-params (_G_wint_t): Allow for broken promotions. 1659 1660Tue Jan 24 16:15:40 1995 Per Bothner <bothner@kalessin.cygnus.com> 1661 1662 * stdstrbufs.cc (_IO_fake_stdiobufs): Add an extra layer of struct, 1663 to force correct alignment on i960s. 1664 (DEF_STDIOBUF, _IO_{stdin,stdout,stderr}_buf): Update accordingly. 1665 1666Thu Jan 19 18:30:53 1995 Jason Merrill <jason@phydeaux.cygnus.com> 1667 1668 * config.shared (CXXINCLUDES): Add libstdc++ to includes for 1669 building libg++. 1670 (LIBS): Also link with libstdc++ when building libg++ toys. 1671 Don't set EXPORT_ALL_VARIABLES; users will have to set 1672 LD_LIBRARY_PATH themselves. 1673 1674Fri Dec 30 16:38:13 1994 Mike Stump <mrs@cygnus.com> 1675 1676 * config/linux.mt: Fix build problem on linux 1.0.8. 1677 1678Thu Dec 22 11:49:45 1994 J.T. Conklin (jtc@phishhead.cygnus.com) 1679 1680 * config/netware.mt: Use gcc to pre-link iostream.nlm's objects 1681 instead of using nlmconv, so that references to functions in 1682 libgcc.a are resolved. 1683 1684 * configure.in: Append .mt to target makefile fragment file names. 1685 1686 * floatconv.c (tens, tinytens, bigtens): Added const qualifier. 1687 1688Tue Dec 20 09:59:50 1994 Mike Stump <mrs@cygnus.com> 1689 1690 * gen-params (VTABLE_LABEL_PREFIX): Since some systems have GNU nm 1691 as nm, and they demangle by default, we have to notice this, and 1692 try --no-cplus (linux) or --no-demangle when running nm. 1693 1694Wed Dec 14 18:13:58 1994 Per Bothner <bothner@kalessin.cygnus.com> 1695 1696 * gen-params: To determine vt-name-mangling using dummy.C add 1697 #include and #prama interface/implementation to avoid problem with 1698 assemblers that don't emit local symbols. Reported under HPUX 8 1699 by Thomas Arend <arend@blasius.Chemietechnik.Uni-Dortmund.DE>. 1700 1701 * streambuf.h (ios::ios): Move inline definition after 1702 that of ios::init (which ios::ios calls). 1703 1704Sun Dec 4 19:50:32 1994 Per Bothner <bothner@kalessin.cygnus.com> 1705 1706 * fileops.c (_IO_file_init, _IO_file_close_it, _IO_file_sync): 1707 Set _offset to _IO_pos_BAD, to support applications that follow 1708 POSIX.1 rules on mixing file handles. 1709 1710 * fileops.c (_IO_file_overflow): Handle case that buffer was 1711 allocated (perhaps by setvbuf) but _IO_write_base is still 0. 1712 1713 * iostdio.h (setbuffer): #define as _IO_setbuffer. 1714 * streambuf.h, filebuf.cc: Removed filebuf::do_write. 1715 1716Tue Nov 29 23:38:57 1994 Per Bothner (bothner@rtl.cygnus.com) 1717 1718 * floatconv.c (setword0, setword1): Fix typo. 1719 1720Tue Nov 29 15:37:29 1994 Per Bothner <bothner@kalessin.cygnus.com> 1721 1722 * config.shared: Move -fno-implicit-template from CXXFLAGS 1723 to LIBCXXFLAGS. Tests are better run without it. 1724 1725 * floatconv.c (word0, word1): Re-place/re-implement using unions 1726 instead of casts to avoid optimizer problems. 1727 1728 * dbz/dbzmain.c: Renamed dirname -> dir_name to avoid OSF 1729 header file braindamage. 1730 1731Sat Nov 5 19:44:00 1994 Jason Merrill (jason@phydeaux.cygnus.com) 1732 1733 * config.shared (LIBCFLAGS): Define. 1734 (LIBCXXFLAGS): Define. 1735 (DOING_LIBGXX): Define TOLIBGXX. Change LIBS to use -lg++. Add 1736 LD_LIBRARY_PATH and .EXPORT_ALL_VARIABLES:. 1737 (FLAGS_TO_PASS): Add LIBC{,XX}FLAGS. 1738 (XC{,XX}FLAGS): Set to LIBCFLAGS or CFLAGS depending on $LIBDIR. 1739 (COMPILE.c): Define, use in .c.o rule. 1740 (COMPILE.cc): Define, use in .cc.o rule. 1741 1742Sat Nov 5 15:12:12 1994 Per Bothner <bothner@kalessin.cygnus.com> 1743 1744 * Makefile.in (VERSION): Update to 0.67. 1745 1746 * streambuf.h (ios::dont_close): Is now set by default. 1747 * fstream.h, fstream.cc (__fb_init): New function. Clears 1748 ios::dont_close. Change fstreambase constructors to call it. 1749 * strstream.cc: *strstream constructors must clear ios::dont_close. 1750 * iostream.cc: Simplify - don't need to set ios::dont_close. 1751 * ioassign.cc: Simplify - assume ios::dont_close is always set. 1752 1753 * fstream.h, fstream.cc: If _IO_NEW_STREAMS, put the 1754 filebuf as a member __my_fb. 1755 * strstream.{h,cc}: Likewile use a strstreambuf member __my_sb. 1756 * streambuf.h, stdstreams.cc, ioextend.cc: 1757 Fix if _IO_NEW_STREAMS to not use ios::dont_close. 1758 1759 * streambuf.h (class ios): Move rdbuf later, to avoid 1760 inability of g++ to inline. 1761 * filebuf.cc (filebuf::~filebuf): Call _IO_do_flush. 1762 1763 * config.shared: Emit rules to make depend. 1764 * depend: New file. 1765 1766Fri Nov 4 17:19:11 1994 Per Bothner <bothner@kalessin.cygnus.com> 1767 1768 * README: Fix typos. 1769 * libio.h: Add comment. Update Copyright notice. 1770 1771Fri Nov 4 21:46:30 1994 Paul Eggert <eggert@twinsun.com> 1772 1773 * libio.h (__P): Change argument name spelling from 1774 `paramlist' to `protos' for compatibility with BSDI 1.1. 1775 1776Thu Nov 3 00:45:16 1994 Jason Merrill (jason@phydeaux.cygnus.com) 1777 1778 * config.shared (CXXFLAGS): Add -fno-implicit-templates. 1779 1780Mon Oct 24 15:57:35 1994 Per Bothner <bothner@kalessin.cygnus.com> 1781 1782 * config.shared: Define NOSTDIC and use it for libio too. 1783 1784Thu Oct 20 19:45:35 1994 Jason Merrill (jason@phydeaux.cygnus.com) 1785 1786 * iogetdelim.c: #include <stdlib.h>. 1787 1788Thu Oct 20 17:09:52 1994 Per Bothner <bothner@kalessin.cygnus.com> 1789 1790 * iostream.h: Add classes _IO_istream_withassign and 1791 _IO_ostream_withassign. Re-type cin, cout, cerr, clog. 1792 (class iostream): Don't add extra _gcount field. 1793 * ioassign.cc: New file. Implement operator= for cin etc. 1794 * streambuf.h (class ios): Change return type of operator=. 1795 * Makefile.in (IOSTREAM_OBJECTS): Add ioassign.o. 1796 1797 * Makefile.in: Re-arrange, so linux.mt overrides can work. 1798 1799 * fileops.c (_IO_file_seekoff): Optimize seeks within buffer. 1800 1801Wed Oct 19 14:25:47 1994 Jason Merrill (jason@phydeaux.cygnus.com) 1802 1803 * gen-params (wint_t): Return to using __WCHAR_TYPE__ for 1804 compatibility with gcc versions prior to 2.6.1. 1805 1806Tue Oct 18 17:08:18 1994 Per Bothner <bothner@kalessin.cygnus.com> 1807 1808 * Makefile.in: Define _G_CONFOG_H as _G_config.h for Linux. Use it. 1809 (IO_OBJECTS): Add iogetdelim.o. 1810 * config/linux.mt: New file. 1811 * configure.in: Select config/linux.mt if Linux. 1812 * iogetdelim.c: Verious cleanups, many from 1813 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>. 1814 * libioP.h: Add _IO_getdelim. Use (void) for no-parameter functions. 1815 1816Thu Oct 13 16:30:56 1994 Per Bothner (bothner@kalessin.cygnus.com) 1817 1818 * libio.h: Rename USE_DTOA to _IO_USE_DTOA for namespace reasons. 1819 * iostream.cc, iovfscanf.c, iovfprintf, floatconv.c: 1820 Update USE_DTOA -> _IO_USE_DTOA. 1821 1822 * libio.h (_IO_feof, _IO_ferror): Move to here ... 1823 * iolibio: ... from here 1824 1825 * iostream.cc (istream::get, istream::ignore, istream::read): 1826 Set _gcount to 0 if ipfx0 failed. 1827 1828 * iostream.cc (flush): Do virtual function call, rather than 1829 going through jumptable. (To get correct method in derived class.) 1830 Bug and fix from John Wiegley <jw@cis.ohio-state.edu>. 1831 1832 * iofdopen.c (O_ACCMODE): Define using O_RDWR, not O_RDWRITE. 1833 1834 * streambuf.h (ios::rdbuf(streambuf*)): New. 1835 * streambuf.h (ios::operator=): Make private (i.e. dis-allow). 1836 1837Wed Oct 12 19:09:20 1994 Jason Merrill (jason@phydeaux.cygnus.com) 1838 1839 * gen-params: Define _G_NO_NRV and _G_NO_EXTERN_TEMPLATES if not 1840 compiling with g++. 1841 1842Thu Oct 6 16:03:43 1994 Per Bothner (bothner@kalessin.cygnus.com) 1843 1844 * iostream.texi (ostrstream::str): Note that NUL is not written 1845 automatically. 1846 1847Wed Oct 5 17:28:29 1994 Per Bothner (bothner@kalessin.cygnus.com) 1848 1849 * iogetdelim.c (_IO_getdelim): New function. 1850 1851Wed Oct 5 15:40:22 1994 J.T. Conklin (jtc@phishhead.cygnus.com) 1852 1853 * config/netware.mt: New file, first cut at Netware NLM support. 1854 * configure.in (*-*-netware*): Use config/netware.mt. 1855 1856 * config.shared (NLMCONV, LD): New definition. 1857 1858 * gen-params: check for nm in ${binutils}/nm.new. 1859 * config.shared: Likewise. 1860 1861Tue Oct 4 12:20:01 1994 Per Bothner (bothner@kalessin.cygnus.com) 1862 1863 * iomanip.h (omanip::operator<<): Make 2nd arg be const. 1864 Bug and fix reported by Greg McGary <gkm@magilla.cichlid.com>. 1865 1866 * strstream.cc (strstreambuf::pcount): Simplify, to match 1867 ANSI/ISO specification. 1868 1869Mon Sep 26 15:19:52 1994 Jason Merrill (jason@deneb.cygnus.com) 1870 1871 * gen-params: Include <wchar.h> and <wctype.h> if they exist. 1872 1873Thu Sep 8 14:41:41 1994 Jason Merrill (jason@deneb.cygnus.com) 1874 1875 * iostream.h (class istream): Declare operator>>(long double&). 1876 (class ostream): Define operator<<(long double). 1877 1878 * iostream.cc (istream::operator>>(long double&)): Define. 1879 1880Wed Sep 7 14:42:29 1994 Per Bothner (bothner@kalessin.cygnus.com) 1881 1882 * iostream.texi (Overflow): Fix bugs in example. 1883 1884Fri Sep 2 17:45:57 1994 Per Bothner (bothner@kalessin.cygnus.com) 1885 1886 * iostream.tex: Document a little on how to write your 1887 own streambuf-derived class, with an example. 1888 1889Tue Aug 30 13:03:57 1994 Brendan Kehoe (brendan@lisa.cygnus.com) 1890 1891 * floatconv.c (s2b): Declare X and Y to be _G_int32_t. 1892 (diff, quorem): Declare BORROW, Y, and Z likewise. 1893 (ulp): Declare L likewise. 1894 (_IO_strtod): Declare L and AADJ likewise. 1895 (_IO_dtoa): Declare L and D likewise. Cast division of D by DS to 1896 _G_int32_t. 1897 1898Mon Aug 29 16:01:54 1994 Per Bothner (bothner@kalessin.cygnus.com) 1899 1900 * iosetvbuf.c (_IO_setvbuf): If setting _IOFBF and no 1901 buffer was specified, call __doallocate. 1902 1903 * fileops.c, floatconv.c: Add a bunch of parentheses to 1904 shut up gcc warnings. Patch from H.J.Lu. 1905 1906 * stdiostream.cc (stdiobuf::sys_read): Inline call to getc 1907 for the normal case (size==1). 1908 1909Sat Aug 20 12:14:52 1994 Per Bothner (bothner@kalessin.cygnus.com) 1910 1911 * Makefile.in (VERSION): Increase to 0.66. 1912 1913Fri Aug 19 17:28:41 1994 Per Bothner (bothner@kalessin.cygnus.com) 1914 1915 * iolibio.h: Added _IO_printf prototype. 1916 Added extern "C" { ... } wrappers #ifdef __cplusplus. 1917 Bugs reported by Neal Becker <neal@ctd.comsat.com>. 1918 1919Wed Aug 17 18:17:15 1994 Per Bothner (bothner@kalessin.cygnus.com) 1920 1921 * fileops.c (_IO_file_seekoff): For _IO_seek_cur, adjust for 1922 read-ahead before jumping to label dumb. 1923 1924Wed Aug 3 13:15:01 1994 H.J. Lu (hjl@nynexst.com) 1925 1926 * libioP.h (CHECK_FILE(FILE,RET)): new, which checks for 1927 FILE == NULL and _IO_MAGIC_MASK. 1928 (COERCE_FILE(FILE)): merged into CHECK_FILE(FILE,RET) 1929 with typo fixes. 1930 1931 * iofread.c, iofwrite.c: add CHECK_FILE(fp, 0); 1932 * iofclose.c: add CHECK_FILE(fp, EOF); remove _IO_MAGIC_MASK check. 1933 1934 * iofflush.c, iofgetpos.c, iofputs.c, iofscanf.c, 1935 iofsetpos.c, iofvbuf.c, ioungetc.c: 1936 Add CHECK_FILE(fp, EOF) and remove COERCE_FILE(fp). 1937 1938 * iofgets.c: add CHECK_FILE(fp, NULL) and remove COERCE_FILE(fp). 1939 * iofprintf.c: add CHECK_FILE(fp, -1) and remove COERCE_FILE(fp). 1940 * ioftell.c: add CHECK_FILE(fp, -1L) and remove COERCE_FILE(fp). 1941 * iosetbuffer.c: add CHECK_FILE(fp, ) and remove COERCE_FILE(fp). 1942 1943Fri Aug 12 15:35:39 1994 Per Bothner (bothner@kalessin.cygnus.com) 1944 1945 * iofdopen.c (_IO_fdopen): #define O_ACCMODE if it isn't. 1946 Still set O_APPEND if "a" is given, but don't unset it 1947 if it isn't. Added comment. 1948 1949Mon Aug 8 13:11:00 1994 Per Bothner (bothner@kalessin.cygnus.com) 1950 1951 * gen-params (VTABLE_LABEL_PREFIX): Changes in the implementation. 1952 For look for _*vt[$_.]7*filebuf in the nm output, because that 1953 matches what g++ produces and has produced. Thus it should be 1954 somewhat more robust. 1955 1956Sun Aug 7 22:52:49 1994 Per Bothner (bothner@kalessin.cygnus.com) 1957 1958 * gen-params (CC): Remove no-longer-needed -I options 1959 passed to xgcc (now they are implied by the -B options). 1960 1961Wed Jul 20 16:41:13 1994 Per Bothner (bothner@kalessin.cygnus.com) 1962 1963 * Makefile.in (tooldir): Added definition, so we can do 1964 'make install' in this directory. 1965 Bug reported by Klamer Schutte <schutte@tpd.tno.nl>. 1966 1967Mon Jul 18 18:02:34 1994 Per Bothner (bothner@kalessin.cygnus.com) 1968 1969 * gen-params (VTABLE_LABEL_PREFIX): Remove filename sppearing 1970 by itself. Add comment explaining what is going on. 1971 1972Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@jalod) 1973 1974 * libio.h: define _IO_uid_t and _IO_HAVE_ST_BLKSIZE 1975 as _G_xxxxxxxx. 1976 1977Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@jalod) 1978 1979 * iopopen.c: Don't include <errno.h>. It is included in "libioP.h". 1980 1981 * iopopen.c (_IO_proc_close) : check if fp is on the list 1982 before close it. 1983 1984Thu Jul 14 16:38:47 1994 Per Bothner (bothner@kalessin.cygnus.com) 1985 1986 * gen-params (CONFIG_NM): Make sed scripts to find vtable name 1987 mangling more robost for different forms of nm output. 1988 1989Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@jalod) 1990 1991 * iofopen.c (_IO_fopen): don't check [redundantly] fp == NULL after 1992 IO_file_init(&fp->_file). 1993 1994 * iomanip.h (template<class TP> class iapp): 1995 change ostream to istream. 1996 1997Tue Jul 12 14:09:02 1994 Per Bothner (bothner@kalessin.cygnus.com) 1998 1999 * Makefile.in (VERSION): Increase to 0.65. 2000 * libioP.h (builtinbuf_vtable): Only define #ifdef __cplusplus. 2001 2002 * gen-params (_G_int8_t): Only define if defined(__STDC__), 2003 because K&R C compilers don't have signed char. 2004 (_G_int64_t, _G_uint64_t): Only define if defined(__GNUC__) 2005 because other compilers may not have long long. 2006 2007Sun Mar 06 13:10:21 1994 H.J. Lu (hjl@nynexst.com) 2008 2009 * floatconv.c (_IO_dtoa ()): fix a small memory leak, set the 2010 "on_stack" field to be 0 if "result" is not NULL. 2011 2012Sat Mar 05 13:18:20 1994 H.J. Lu (hjl@nynexst.com) 2013 2014 * floatconv.c (_IO_dtoa ()): if the number of digits of the 2015 floating point number is more than the previous one, free the 2016 old string and allocate a new one. 2017 [Minor optimization to avoid Bcopy. -PB] 2018 2019Mon Jul 11 10:53:41 1994 Per Bothner (bothner@kalessin.cygnus.com) 2020 2021 * fileops.c (_IO_file_underflow): 'count' should be unsigned, 2022 since it contains the return value of read. Reported by 2023 Teemu Torma <tot@trema.fi>. 2024 2025Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@nynexst.com) 2026 2027 * floatconv.c (_IO_strtod ()): make "+" and "-" as error. 2028 2029Sat Jul 9 15:09:21 1994 Per Bothner (bothner@kalessin.cygnus.com) 2030 2031 Make sure _IO_FILE::_flags is always initialized correctly, for the 2032 C functions (fopen, fdopen, popen), and not just the C++ functions. 2033 * fileops.c (_IO_file_init): Set _flags to CLOSED_FILEBUF_FLAGS. 2034 * fileops.c (_IO_file_fopen): Remove bogus assignment. 2035 * filebuf.cc (filebuf constructors): Don't pass CLOSED_FILEBUF_FLAGS 2036 to streambuf constructor - _IO_file_init does it instead. 2037 * filebuf.cc (CLOSED_FILEBUF_FLAGS): Removed. 2038 * iopopen.c (_IO_proc_open): Use _IO_mask_flags. 2039 2040Thu Jun 30 08:49:53 1994 Jason Merrill (jason@deneb.cygnus.com) 2041 2042 * dbz/Makefile.in (mostlyclean): Add target. 2043 2044Wed Jun 29 09:30:12 1994 Jason Merrill (jason@deneb.cygnus.com) 2045 2046 * gen-params: Woops, can't run a C program to determine target 2047 characteristics. Sigh. 2048 2049Tue Jun 28 03:11:33 1994 Jason Merrill (jason@deneb.cygnus.com) 2050 2051 * gen-params: Add _G_{,u}int{8,16,64}_t, use a short C program to 2052 determine what all these should be rather than trying to compare 2053 the MAX numbers in the shell. 2054 2055Sun Jun 26 21:04:24 1994 Per Bothner (bothner@kalessin.cygnus.com) 2056 2057 * stdiostream.h, stdiostream.cc (stdiobuf::xsgetn): Removed. 2058 Too hairy. If we want to optimize it, we should do so in 2059 filebuf::xsgetn (or rather _IO_file_xsgetn). 2060 2061 * stdiostream.h (class stdiobuf), stdiostream.cc: Fix parameter 2062 and return types of virtual function to matcher base types (Oops!). 2063 * streamstream.cc (stdiobuf::xsgetn, stdiobuf::xsputn): 2064 Optimize to call fread.fwrite directly if !buffered. 2065 * fileops.c: Fix comment. 2066 2067Fri Jun 24 11:28:18 1994 Per Bothner (bothner@kalessin.cygnus.com) 2068 2069 * stdiostream.h (istdiostream, ostdiostream): New classes. 2070 2071 More robust final cleanup. 2072 * cleanup.c (_IO_register_cleanup): Register _IO_cleanup, 2073 rather than _IO_flush_all. 2074 * filedoalloc.c: Update comment. 2075 * genops.c (_IO_unbuffer_all): New. Makes all files unbuffered. 2076 * genops.c (_IO_cleanup), libioP.h: New function. Call 2077 _IO_flush_all, and then _IO_unbuffer_all. This is in case C++ 2078 destructors try to do output *after* _IO_cleanup is called. 2079 2080 Construct standard stdiobufs statically (using type punning). 2081 * stdstrbufs.c; Unless _STDIO_USES_IOSTREAM declare standard 2082 stdiobufs (for stdin, stdout, and stderr), using type punning 2083 (struct _IO_fake_stdiobuf). This avoids constructor-time problems. 2084 * stdstreams.cc: Remove the declarations of the stdiobufs. 2085 Instead use the new (fake) ones in stdstrbufs.cc. We no longer 2086 have to call ios::sync_with_stdio at constructor time. 2087 2088 Preliminary support for new ANSI streambuf::uflow virtual. 2089 * libioP.h (struct _IO_jump_t): Add __uflow field. 2090 * genops.c (_IO_default_uflow), libioP.h: New function. 2091 * fileops.c (_IO_file_jumps), iopopen.c (IO_proc_jumps), 2092 iovfprintf.c (_IO_helper_jumps), strops.c (_IO_str_jumps), 2093 streambuf.cc (_IO_streambuf_jumps): Add _IO_default_uflow. 2094 * genops.c (__uflow): New function. 2095 (save_for_backup): New function. Some code shared by 2096 __underflow and __uflow, moved out from the former. 2097 (_IO_default_uflow): New function. 2098 * libio.h (_IO_getc): Call __uflow, not __underflow. 2099 2100Wed Jun 22 20:22:49 1994 Per Bothner (bothner@kalessin.cygnus.com) 2101 2102 Make sure that the vtable of a streambuf is always valid, 2103 which makes ios::rdbuf simpler and faster. 2104 * gen-params: Add code to determine _G_VTABLE_LABEL_HAS_LENGTH, 2105 _G_VTABLE_LABEL_PREFIX, _G_VTABLE_LABEL_PREFIX_ID, and 2106 _G_USING_THUNKS, which describe how virtual function tables are named. 2107 * stdfiles.c (FILEBUF_LITERAL): Moved to libioP.h. 2108 * libioP.h (builtinbuf_vtable): New (complicated) declaration. 2109 * filebuf.cc (filebuf::__new), strstream.cc (SET_STR_JUMPS): 2110 Initialize vtable to builtinbuf_vtable, not NULL. 2111 * stdstrbufs.cc: New file. Same as stdfiles.c, except that 2112 vtable is initialized to builtinbuf_vtable, not NULL. 2113 * streambuf.h (ios::rdbuf): Can now simplify/optimize, due to 2114 above changes. Always, just return _strbuf. 2115 * builtinbuf.h, builtinbuf.cc (builtinbuf::vtable, 2116 builtinbuf::get_builtin_vtable): Removed. No longer needed. 2117 * streambuf.h, builtinbuf.cc (ios::_IO_fix_vtable): No longer needed. 2118 Only defined #ifdef _STREAM_COMPAT, for binary compatibility. 2119 * Makefile.in: Move stdfiles.o from IO_OBJECTS to STDIO_WRAP_OBJECTS. 2120 (IOSTREAM_OBJECT): Add stdstrbufs.o. 2121 * Makefile.in (_G_config.h): Pass $(CXXFLAGS) as part of $(CXX). 2122 2123Fri Feb 11 11:08:01 1994 SBPM Marc GINGOLD (marc@david.saclay.cea.fr) 2124 2125 * iovfprintf.c (helper_vfprintf): add 2126 hp->_IO_file_flags = _IO_MAGIC|(_IO_IS_FILEBUF+_IO_NO_READS); 2127 [This is needed because _IO_vfprintf checks for _IO_UNBUFFERED. -PB] 2128 [Actually: don't set _IO_IS_FILEBUF. -PB] 2129 2130Wed Jun 22 13:49:22 1994 Per Bothner (bothner@kalessin.cygnus.com) 2131 2132 * stdiostream.cc, stdiostream.h (stdiobuf::buffered): New methods. 2133 2134 * iofdopen.c (_IO_fdopen): Various minor improvements. 2135 2136 * iovfscanf.c: Don't return EOF on control_failure. 2137 2138Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@nynexst.com) 2139 2140 * iovfscanf.c: Enforce the sequence of the conversion specifications. 2141 2142Fri Jun 17 20:57:22 1994 Per Bothner (bothner@kalessin.cygnus.com) 2143 2144 * iofdopen.c: Use fcntl to check that requested access mode is 2145 compatible with existing access mode, and to change the 2146 O_APPEND file status flag if need be. 2147 2148Thu Jun 16 17:33:50 1994 Per Bothner (bothner@kalessin.cygnus.com) 2149 2150 * streambuf.h (ios::init): Initialize all the fields. 2151 This may be overkill, but the current ANSI working paper requires it. 2152 * streambuf.h (ios::ios): Reimplement in terms of ios::init. 2153 * iostream.cc (Non-default constructors istream::istream, 2154 ostream::ostream, iostream::iostream): Cannot use a mem-initializer, 2155 because it is ignored if initializing a derived class. Instead, 2156 call ios::init. 2157 2158Wed Jun 15 13:35:37 1994 Per Bothner (bothner@kalessin.cygnus.com) 2159 2160 * stdstreams.cc (ISTREAM_DEF): Fix typo (it's a _fake_istream, not 2161 a _fake_ostream). Reported by Jason Shirk <jshirk@gomez.intel.com>. 2162 2163 * stdiostream.h, stdiostream.cc (stdiobuf::~stdiobuf): New. 2164 Call _IO_do_flush. 2165 * stdiostream.cc (stdiobuf::sync): Call _IO_do_flush rather 2166 than filebuf::sync (to avoid bad seeks). 2167 2168 * libioP.h (_IO_do_flush): Add missing parentheses. 2169 2170Fri Jun 3 19:16:57 1994 Jason Merrill (jason@deneb.cygnus.com) 2171 2172 * config.shared (CXXFLAGS): Remove -fno-implicit-templates. 2173 2174 * iomanip.h: Add explicit external instantiations. 2175 2176Wed Jun 1 14:14:44 1994 Per Bothner (bothner@kalessin.cygnus.com) 2177 2178 * libio.h (struct _IO_FILE_plus): Move definition from here ... 2179 * libioP.h (struct _IO_FILE_plus): ... to here. Since this 2180 file is private to the implementation, we can rename the fields 2181 from the implementor's to the user's name anme space. 2182 (This avoids a lossage on SCO, whose stdio.h has a #define _file.) 2183 * iofdopen.c, iofopen.c, stdfiles.c: Fix field references accordingly. 2184 * iopopen.c (struct_IO_proc_file): Rename fields from 2185 implementor's name space to user's, and update usages. 2186 * streambuf.h (streambuf::_vtable): Re-implement to not need 2187 struct _IO_FILE_plus. 2188 * strfile.h (struct _IO_strfile_): Likewise. 2189 2190Wed Jun 1 13:57:48 1994 Jason Merrill (jason@deneb.cygnus.com) 2191 2192 * config.shared (CXXFLAGS): Use -fno-implicit-templates instead of 2193 -fexternal-templates. 2194 2195Tue May 31 08:49:28 1994 Mike Stump (mrs@cygnus.com) 2196 2197 * genops.c, iofclose.c, iofdopen.c, iofopen.c, iopopen.c: Be 2198 consistent about protecting #include <stdlib.h>. 2199 2200 * ioputs.c: Add #include <string.h>, to avoid warning on alpha. 2201 2202 * iofdopen.c: Add #include <stdlib.h>, so that malloc works on 2203 machines where sizeof(int) != sizeof(void *). 2204 2205Mon May 30 17:26:49 1994 Per Bothner (bothner@kalessin.cygnus.com) 2206 2207 * pfstream.cc (ipfstream::ipfstream, opfstream::opfstream): 2208 Reverse sense of test of return value of procbuf::open. 2209 (It returns NULL on failure.) 2210 2211 * filedoalloc.c (_IO_file_doallocate): Remove dead code for 2212 USE_MALLOC_BUF. Add code to return EOF if ALLOC_BUF fails. 2213 2214Sat May 28 13:47:47 1994 Jason Merrill (jason@deneb.cygnus.com) 2215 2216 * iomanip.cc: Explicitly instantiate smanip<int> and 2217 smanip<ios::fmtflags>. 2218 2219Wed May 25 16:04:12 1994 Per Bothner (bothner@kalessin.cygnus.com) 2220 2221 * strfile.h: Use __P instead of _PARAMS. 2222 2223Fri May 20 11:42:17 1994 Per Bothner (bothner@kalessin.cygnus.com) 2224 2225 * libio.h: Rename _PARAMS macro to __P for better glibc and BSD 2226 compatibility. (Also define _PARAMS for backwards compatibility.) 2227 * cleanup.c, iolibio.h, ioperror.c, iovfprintf.c, iovfscanf.c, 2228 libioP.h: Use __P instead of _PARAMS. 2229 * iostdio.h: Use __P instead of _ARGS. 2230 2231 * fileops.c (_IO_file_read): Minor stylistic tweak. (It is 2232 preferable to test errno *after* the error return.) 2233 2234Fri May 13 15:25:36 1994 Jason Merrill (jason@deneb.cygnus.com) 2235 2236 * iostream.*: Add insertor and extractor for bool (just pretend 2237 it's an int). 2238 2239Fri May 13 14:12:03 1994 Mike Stump (mrs@cygnus.com) 2240 2241 * gen-params: Check for builtin bool support. 2242 2243Wed May 11 00:48:35 1994 Jason Merrill (jason@deneb.cygnus.com) 2244 2245 Make libg++ build with gcc -ansi -pedantic-errors 2246 * gen-params: #ifdef __STRICT_ANSI__, #define _G_NO_NRV. 2247 * pfstream.cc (ipfstream::ipfstream): Wrap use of variable-size 2248 array in #ifndef __STRICT_ANSI__. 2249 2250Fri May 6 12:42:21 1994 Per Bothner (bothner@kalessin.cygnus.com) 2251 2252 * Makefile.in (VERSION): Increase to 0.64. 2253 2254 * isgetline.cc (istream::getline): The delimiter should *not* 2255 be included in the gcount(). 2256 2257 * filedoalloc.c: #include <stdlib.h> (If __STDC__) to get malloc. 2258 * iostream.h (ostream::put): Remove overloaded versions, to match 2259 new working paper. (Actually just put inside _STREAM_COMPAT, for now.) 2260 2261Tue May 3 14:14:57 1994 Per Bothner (bothner@kalessin.cygnus.com) 2262 2263 * genops.c (_IO_default_finish): Make robust when called 2264 multiple times on the same _IO_FILE*. (One way this can 2265 happen is by the builtinbuf destructor being followed by the 2266 streambuf destructor.) 2267 2268Mon May 2 13:55:26 1994 Jason Merrill (jason@deneb.cygnus.com) 2269 2270 * gen-params: Actually determine wint_t rather than depending on 2271 cpp to provide it or defaulting to the underlying type for 2272 wchar_t. 2273 2274Sat Apr 30 14:47:30 1994 Jason Merrill (jason@deneb.cygnus.com) 2275 2276 * gen-params: Add _G_wint_t, allow __*_TYPE__ to override values 2277 at compile time, fix definition of _G_ARGS. 2278 2279Fri Apr 29 16:55:37 1994 Per Bothner (bothner@kalessin.cygnus.com) 2280 2281 * libio.h: Remove #pragma interface. (There is no implementation.) 2282 2283Mon Mar 28 14:22:26 1994 Per Bothner (bothner@kalessin.cygnus.com) 2284 2285 * iostream.cc (ostream::operator<<(double)): Add/fix support 2286 for printing '+' when ios::showpos is set. 2287 (Fixes bug reported by Doug Moore <dougm@cs.rice.edu>.) 2288 * iostream.cc (istream::read): Set eofbit as well as failbit on eof. 2289 * iostream.cc (ostream::operator<<(int)): Fix conversion 2290 to unsigned (used to lose on INT_MIN). 2291 * iostream.cc (ostream::operator<<(long)): Use (unsigned long), 2292 rather than (unsigned) for temporary. 2293 2294 * config.shared, Makefile.in: Remove definitions and uses 2295 of XTRAFLAGS. It is no longer needed, since it is 2296 now implied by the -B flag. 2297 2298Fri Mar 25 00:31:22 1994 Jason Merrill (jason@deneb.cygnus.com) 2299 2300 * builtinbuf.h: Add put /**/ around comment on trailing #endif. 2301 2302 * Makefile.in (c++clean): Make clean in tests subdir, too. 2303 2304Wed Mar 23 16:42:09 1994 Doug Evans (dje@canuck.cygnus.com) 2305 2306 * configure.in: Remove Makefile.tem before creating it. 2307 Needed when configuring from read-only source trees. 2308 2309Wed Mar 16 14:06:42 1994 Per Bothner (bothner@kalessin.cygnus.com) 2310 2311 * stdstreams.cc: Fix so that stdiobuf are used for cin/cout/cerr, 2312 unless _STDIO_USES_IOSTREAM is defined. 2313 * filebuf.cc (filebuf::setbuf): Fix confusion about return 2314 value from _IO_file_setbuf. 2315 2316Sun Mar 13 00:54:12 1994 Paul Eggert (eggert@twinsun.com) 2317 2318 * config.shared: Ensure that `all' precedes `.PHONY'; 2319 BSDI 1.1 needs this. 2320 2321Sat Mar 12 03:58:00 1994 Paul Eggert (eggert@twinsun.com) 2322 2323 * config.shared: Output a definition of INSTALL that uses 2324 $${rootme}, not ${rootme}. Most `make's don't care, but BSDI 2325 1.1 `make' does. 2326 2327Fri Mar 4 17:33:01 1994 Per Bothner (bothner@kalessin.cygnus.com) 2328 2329 * iopopen.c: #define _POSIX_SOURCE. 2330 * isgetline.c (istream::getline): Various fixes. 2331 2332Thu Mar 3 17:58:20 1994 Per Bothner (bothner@kalessin.cygnus.com) 2333 2334 * iostream.cc (write_int): Fix test for when to add initial '0' 2335 when ios::oct and ios::showbase are set. 2336 For hex, showbase adds initial 0x (or 0X) regardless of val==0. 2337 Bugs reported by Phil Roth <proth@cs.uiuc.edu>. 2338 2339Mon Feb 21 13:18:20 1994 H.J. Lu (hjl@nynexst.com) 2340 2341 * libio.h (_IO_PENDING_OUTPUT_COUNT(_fp)): return the 2342 pending output count in _fp. 2343 2344Fri Feb 25 09:26:57 1994 Ian Lance Taylor (ian@cygnus.com) 2345 2346 * gen-params: For HAVE_SYS_WAIT, compile dummy.c, not dummy.C. 2347 2348Tue Feb 22 11:19:09 1994 Per Bothner (bothner@kalessin.cygnus.com) 2349 2350 * streambuf.h, genops.c, libioP.h: Rename references to 2351 _IO_FILE fields other_gbase => _IO_save_base, 2352 _aux_limit => _IO_backup_base, and _other_egptr => _IO_save_end. 2353 * libio.h: Remove no-longer needed macros _other_gbase, 2354 _aux_limit, and _other_egptr. 2355 * genops.c (__underflow, _IO_default_finishh, _IO_unsave_markers): 2356 Check _IO_save_base for NULL before FREEing it or calling 2357 _IO_free_backup_area. 2358 2359Thu Feb 17 15:26:59 1994 Per Bothner (bothner@kalessin.cygnus.com) 2360 2361 * gen-params: Improve deduction of _G_uint32 and _G_int32. 2362 Should now work for 16-bit, 32-bit, or 64-bit targets. 2363 * gen-params: Check for sys/wait.h using ${CC}, since it's 2364 now used in a C file, not a C++ file. 2365 * floatconv.c: Typedef _G_uint32_t as unsigned32, and use 2366 unsigned32 in place of unsigned long. (Needed for Alpha.) 2367 2368Tue Feb 8 13:40:15 1994 Per Bothner (bothner@kalessin.cygnus.com) 2369 2370 * fileops.c (_IO_file_close_it): Simplify by using _IO_do_flush. 2371 * fileops.c (_IO_file_finish): Don't call _IO_file_close_it - 2372 do it inline. Call _IO_do_flush even if _IO_DELETE_DONT_CLOSE. 2373 * fileops.c (_IO_file_attach): Set _IO_DELETE_DONT_CLOSE. 2374 * genops.c (_IO_flush_all): Only call overflow if there is 2375 something to write. 2376 * iofclose.c (_IO_fclose): Check that magic number is correct, 2377 and clear it when done. Avoids crashing some buggy applications. 2378 * iogetline.c (_IO_getline): Don't gratuitously increment old_len. 2379 * iogets.c (_IO_gets): Take care to get required ANSi semantics. 2380 2381Sun Feb 6 19:50:39 1994 Jason Merrill (jason@deneb.cygnus.com) 2382 2383 * iomanip.cc: Explicitly instantiate operator<< and >>. 2384 2385Fri Feb 4 12:28:22 1994 Jason Merrill (jason@deneb.cygnus.com) 2386 2387 * config.shared (CXXFLAGS): Use -fexternal-templates. 2388 2389 * iomanip.h: Uncomment #pragma interface. 2390 2391Thu Jan 20 13:48:40 1994 Per Bothner (bothner@kalessin.cygnus.com) 2392 2393 If no characters are read by fgets, ANSI C doesn't allow '\0' to 2394 be written to the buffer, but it is required by ANSI C++ 2395 for istream::get and istream::getline. Both use _IO_getline ... 2396 * iogetline.c (_IO_getline): Don't write a '\0' at the end 2397 of the read data. The input buffer length does not include 2398 space for a '\0'. 2399 * iofgets.c, iogets.c: Change appropriately. 2400 Also check for _IO_ERR_SEEN, as required by ANSI. 2401 * isgetline.cc: Update accordingly. 2402 2403Mon Jan 17 13:24:26 1994 Jason Merrill (jason@deneb.cygnus.com) 2404 2405 * Makefile.in (c++clean): Added target for compiler testing 2406 (i.e. make c++clean all). 2407 2408Mon Jan 10 11:20:42 1994 Per Bothner (bothner@kalessin.cygnus.com) 2409 2410 * libio.h (_IO_putc): Add parentheses. 2411 Patch from Rik Faith <faith@cs.unc.edu>. 2412 2413Tue Jan 4 01:32:28 1993 Hongjiu Lu (hjl@nynexst.com) 2414 2415 * genops.c (_IO_default_xsputn): 2416 (_IO_default_xsgetn): 2417 * ioignore.c: change "_IO_size_t count" to 2418 "_IO_ssize_t count". 2419 * iogetline.c: change "_IO_size_t len" to 2420 "_IO_ssize_t len". 2421 2422Mon Dec 20 00:31:21 1993 Per Bothner (bothner@kalessin.cygnus.com) 2423 2424 * config.shared (CXXINCLUDES): Fix quoting of $(NOSTDINC). 2425 2426Sun Dec 19 21:03:45 1993 Per Bothner (bothner@kalessin.cygnus.com) 2427 2428 * Makefile.in (VERSION): Increase to 0.63. 2429 2430Fri Dec 17 13:02:44 1993 Per Bothner (bothner@kalessin.cygnus.com) 2431 2432 * iofread.c (_IO_fread): Return 0 if either size or count is 0. 2433 * iofwrite.c (_IO_fwrite): Return 0 if either size or count is 0. 2434 (This is consistent with fread, and most implementations, but not 2435 with a literal reading of the ANSI spec.) 2436 * iovfscanf.c (_IO_vfscanf): If got EOF while skipping spaces, 2437 set seen_eof and break (instead of returning). 2438 * sbscan.cc (streambuf::vscan): Set error state before returning. 2439 * streambuf.h: Add a forward declarations for class istream 2440 to work around a g++ vtable name mangling bug. (Patch from 2441 harry@pdsrc.hilco.com via Jeffrey A Law <law@snake.cs.utah.edu>.) 2442 * NEWS: New file. 2443 2444Sat Dec 11 16:21:08 1993 Per Bothner (bothner@kalessin.cygnus.com) 2445 2446 * iovfprintf.c (struct helper_file, _IO_helper_overflow, 2447 helper_vfprintf, _IO_helper_jumps): New structs and functions. 2448 (_IO_vfprintf): Use helper_vfprintf to make printing to 2449 unbuffered files more efficient. 2450 * genops.c (_IO_default_underflow), libioP.h: New function. 2451 2452 * iovsscanf.c (_IO_vsscanf): The input string's length marks 2453 its logical end-of-file. 2454 2455Wed Dec 8 13:20:46 1993 Per Bothner (bothner@kalessin.cygnus.com) 2456 2457 * indstream.cc (indirectbuf::sync()): Don't crash if get_stream() 2458 or put_stream() are NULL; sync() both streams even if error. 2459 2460Sun Dec 5 19:24:29 1993 Brendan Kehoe (brendan@lisa.cygnus.com) 2461 2462 * iostreamP.h (convert_to_seekflags): Use _IO_seek_set instead of 2463 0 inside the conditial expressions. 2464 2465 * iofsetpos.c (_IO_fsetpos): Delete unused var `pos'. 2466 2467Sat Dec 4 15:57:26 1993 Per Bothner (bothner@kalessin.cygnus.com) 2468 2469 * filedoalloc.c (_IO_file_doallocate): Change type of couldbetty 2470 to int, and type of size to _IO_size_t, instead of size_t. 2471 (Change needed for Ultrix, which incorrectly deliberately doesn't 2472 define size_t in <sys/types.h> if _POSIX_SOURCE is defined.) 2473 2474Thu Dec 2 22:43:03 1993 Per Bothner (bothner@kalessin.cygnus.com) 2475 2476 * fileops.c (_IO_file_finish): Remove redundant call to _IO_un_link. 2477 * iofclose.c (_IO_fclose): Don't call fp->_jumps->__close; it's 2478 too low-level. Instead call _IO_file_close_it. 2479 * dbz/Makefile.in (rclean, distclean): Add some missing files. 2480 2481Wed Dec 1 13:19:14 1993 Per Bothner (bothner@kalessin.cygnus.com) 2482 2483 * config/hpux.mt (MATH_H_INLINES): No longer define. 2484 Patch from Jeffrey A Law <law@snake.cs.utah.edu>. 2485 2486Fri Nov 26 13:28:36 1993 Per Bothner (bothner@kalessin.cygnus.com) 2487 2488 * config.shared (CINCLUDES): Define default if libg++. 2489 * iofread.c: Use _IO_sgetn.c. 2490 * iolibio.h (_IO_clearerr): Fix typo. 2491 * genops.c (_IO_seekmark): Return 0 on success. 2492 * floactconv.c (Binit): Change to static. 2493 * iofclose.c (_IO_fclose): Check if file is _IO_stdin, _IO_stdout, 2494 or _IO_stderr; if so don't try to free it. Fix from hjl@nynexst.com. 2495 2496 * genops.c (_IO_default_sync), libioP.h: New function. 2497 * libioP.h (_IO_default_close): Use _IO_default_sync -same interface. 2498 2499 * Makefile.in: Increase version to 0.62. 2500 * iopopen.c (_IO_proc_close): Use waitpid (available in libibarty, 2501 if needed), rather than wait. Don't block/ignore SIGINT etc, 2502 as this is counter to Posix.2. 2503 * iopopen.c: Chain open proc_files, and have the child close 2504 the ones that are open (as required by Posix.2). 2505 2506 * fstream.h (fstreambase::rdbuf), strstream.h (strstreambase 2507 ::rdbuf): Call ios::rdbuf() instead of getting _strbuf directly. 2508 2509 * sbscan.cc (streambuf::vscan): Comment out duplicate default arg. 2510 * floatconv.c: Recognize Alpha and i860 as little-endian. 2511 * streambuf.cc: Return two bogus value returns from void functions. 2512 * iolibio.h, iofwrite.c: Fix buffer type to (const void*). 2513 * libio.h: Predefine of struct _IO_FILE to help non-g++-compilers. 2514 * libioP.h, pfstream.cc, stdfiles.c, iovfscanf.c: Cleanup syntax junk. 2515 * stdstreams.cc: Minor simplification. 2516 * streambuf.h, builtinbuf.cc: Add non-const ios::_IO_fix_vtable() 2517 for temporary binary compatibility. 2518 2519 * filedoalloc.c, fileops.c: Add _POSIX_SOURCE. 2520 * fileops.c, iofopen.c, iofputs.c, iostream.cc, strops.c, 2521 strstream.cc, genops.c: Add some missing #includes. 2522 * iofopen.c, iofdopen.c: Return NULL if malloc fails. 2523 * iovfscanf.c: Fix return type in strtol prototype. 2524 * fwrite.c: Remove bogus file. 2525 2526Wed Nov 17 14:09:42 1993 Per Bothner (bothner@cygnus.com) 2527 2528 * builtinbuf.cc (ios::_IO_fix_vtable), streambuf.h: Make method 2529 const, to reduce problems with -Wcast-qual. 2530 2531Tue Nov 16 19:30:42 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 2532 2533 * config.shared (CXXINCLUDE): use ${} instead of $() for NOSTDINC 2534 2535Tue Nov 16 14:15:45 1993 Per Bothner (bothner@kalessin.cygnus.com) 2536 2537 * iopopen.c (_IO_proc_close): Re-structure to avoid 2538 declarations after statements. 2539 * floatconv.c: If not __STDC__, #define DBL_MANT_DIG. 2540 * config/isc.mt (G_CONFIG_ARGS): Remove bogus spaces. 2541 Patch from David A. Avery <daa@nic.cerf.net>. 2542 2543Tue Nov 16 15:58:31 1993 Mark Eichin (eichin@cygnus.com) 2544 2545 * Makefile.in (_G_config.h): explicitly use $(SHELL) to run 2546 gen-params, since we know it is a script (we're explicitly looking 2547 in ${srcdir} for it) and /bin/sh might not be good enough. 2548 2549Mon Nov 15 13:26:22 1993 Per Bothner (bothner@kalessin.cygnus.com) 2550 2551 * builtinbuf.cc: Don't depend on initialization of static 2552 variable builtinbuf::vtable, since that might happen after 2553 we need it (for a static constructor). Instead, initialize 2554 it when needed by inlining the code from get_builtin_vtable 2555 into ios::_IO_fix_vtable(). 2556 2557 * floatconv.c: Avoid using #elif, which some C compilers lack. 2558 * iogetline.c, libioP.h: Make char parameter be int, to avoid 2559 some default promotion anomalies. 2560 2561Fri Nov 5 11:49:46 1993 Per Bothner (bothner@kalessin.cygnus.com) 2562 2563 * config.shared (do-clean-dvi): Remove TeX work files. 2564 * iopopen.c (extern _IO_fork): Don't use parameter type void. 2565 * strops.c (_IO_str_init_static): Clear the allocate_buffer 2566 function pointer, to mark the strfile as being static. 2567 Bug fix from Mike Raisbeck <mike@pudding.rtr.COM>. 2568 2569Thu Nov 4 10:44:24 1993 Per Bothner (bothner@kalessin.cygnus.com) 2570 2571 * filebuf.cc (filebuf:): Use sseekoff rather than seekoff 2572 (which loses if vtable pointer is NULL). 2573 2574 * iostream.cc (ostream::operator<<(long long n)): Fix thinko. 2575 2576 * Makefile.in (VERSION): Increase to 0.60. 2577 * Makefile.in (IO_OBJECTS): Added iopopen.o. 2578 * config.shared (DISTCLEAN): Also remove Make.pack. 2579 * config.shared (CXXINCLUDES): Add $(NOSTDINC). 2580 2581 * config.shared (INSTALL): Fix so it ues the correct install.sh 2582 whether $srcdir is absolute or relative. 2583 2584 * floatconv.c (DBL_MAX_10_EXP): Fix default value. 2585 2586Wed Nov 3 10:20:49 1993 Per Bothner (bothner@kalessin.cygnus.com) 2587 2588 * gen-params: Make more robust to allow random junk (NeXT 2589 has spaces) before typedefs. 2590 2591 * fileops.c (_IO_file_overflow): Reduce code duplication. 2592 * Makefile.in (IO_OBJECTS): Remove ioputs.o. 2593 2594 * iovfscanf.c, libio.h: Extra parameter to _IO_vfscanf, 2595 for optionally setting an error indication.. 2596 * iofscanf.c, ioscanf.c, iofscanf.c, iovsscanf.c: Fix calls to 2597 _IO_vfscanf to pass an extra NULL. 2598 * sbscan.cc (streambuf::vscan): If passed an extra stream, 2599 set its error state (using new _IO_vfscanf parameter. 2600 2601 * filedoalloc.c, fileops.c, genops.c, iogetline.c, ioignore.c, 2602 libio.h, libioP.h, streambuf.cc streambuf.h, strfile.h, strops.c, 2603 strstream.cc: Replace macros (_base, _ebuf, _eback, _gptr, _egptr, 2604 _pbase, _pptr, _epptr) by field names (_IO_buf_base, _IO_buf_end, 2605 _IO_read_base, _IO_read_pre, IO_read_end, _IO_write_base, 2606 _IO_write_ptr, _IO_write_end). 2607 * libio.h: Remove the old macros (which fixes a conflict. 2608 2609Mon Nov 1 15:22:12 1993 Per Bothner (bothner@kalessin.cygnus.com) 2610 2611 * iostream.cc: Use _IO_sputn instead of sputn. _IO_sputn does 2612 not require a vtable pointer, and is also slightly faster. 2613 2614 * builtinbuf.{h,cc} (builtinbuf::setbuf): Fix return and 2615 parameter types. 2616 2617Mon Oct 25 12:56:33 1993 Per Bothner (bothner@kalessin.cygnus.com) 2618 2619 Kludge to make sure _IO_FILE buffers get flushed before exit. 2620 * dbz/dbzmain.c, dbz/fake.c, dbz/byteflip.c: 2621 Invoke DBZ_FINISH macro (if defined) before (normal) exits. 2622 * dbz/Makefile.in (CFLAGS): Define DBZ_FINISH to call _IO_flush_all. 2623 2624Sat Oct 23 22:10:53 1993 Per Bothner (bothner@kalessin.cygnus.com) 2625 2626 * Makefile.in (VERSION): Set to 0.60 for libg++ release. 2627 * fileops.c (_IO_file_attach): Set _offset to _IO_pos_BAD. 2628 * iostream.cc (ostream::flush): Fix thinkp. 2629 * editbuf.cc, isgetsb.cc, isscan.cc, osform.cc, parsestream.cc, 2630 pfstream.cc, sbform.cc, sbscan.cc, stdstreams.cc, stream.cc: 2631 Replace #include "ioprivate.h" by #include "libioP.h" (and 2632 sometimes stdarg.h, stdlib.h and/or string.h). 2633 * ioprivate.h: Removed. 2634 2635 2636Thu Oct 21 19:24:02 1993 Per Bothner (bothner@kalessin.cygnus.com) 2637 2638 * PlotFile.h, SFile.h, editbuf.cc, editbuf.h, filebuf.cc, 2639 fstream.cc, fstream.h, indstream.cc, indstream.h, iomanip.cc, 2640 iomanip.h, ioprivate.h, iostream.cc, iostream.h, isgetline.cc, 2641 isgetsb.cc, parsestream.cc, parsestream.h, pfstream.cc, 2642 pfstream.h, procbuf.cc, procbuf.h, stdiostream.cc, stdiostream.h, 2643 stdstreams.cc, streambuf.cc, streambuf.h, strstream.cc, 2644 strstream.h: Remove old (duplicate) copyright notices. 2645 2646 * iostream.cc: Fix calls to sync() to be safe in the presence 2647 of vtable-less streambufs. 2648 2649Wed Oct 20 15:22:04 1993 Per Bothner (bothner@kalessin.cygnus.com) 2650 2651 * streambuf.h (streambuf::underflow, streambuf::overflow): 2652 Don't make virtual functions pure. 2653 * streambuf.cc (streambuf::underflow, streambuf::overflow): 2654 Default definitions (return EOF). 2655 * fstream.h: Add new (int fd, char* buf, int len) constructors. 2656 These are deprecated, but added for AT&T compatibility. 2657 * fstream.cc fstreambase::fstreambase(int fd, char *p, int l): New. 2658 2659Thu Oct 14 14:57:01 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 2660 2661 * configure.in: use 'mv -f' instead of 'mv' 2662 2663Tue Oct 12 05:01:44 1993 Mike Stump (mrs@cygnus.com) 2664 2665 * floatconv.c: Fix typo, change __STDC to __STDC__. 2666 2667Mon Oct 11 17:03:12 1993 Per Bothner (bothner@kalessin.cygnus.com) 2668 2669 * cleanup.c: It should be #if _G_HAVE_ATEXIT, not #ifdef. 2670 2671 * floatconv.c, iostrerror.c, iovfprintf.c, iovfscanf.c, libioP.h: 2672 Bunch of fixes to allow use of non-ANSI (K&R) C compilers. 2673 2674 * Makefile.in (iostream.list): Use CC=$(CXX) to force use of gcc. 2675 * README: New file. 2676 2677Fri Oct 8 16:19:58 1993 Per Bothner (bothner@kalessin.cygnus.com) 2678 2679 * Makefile.in: Move ioungetc.o from STDIO_WRAP_OBJECTS to 2680 IO_OBJECTS (since it is needed for iovfscanf.c). 2681 * iostrerror.c: Add declaration of strerror. 2682 2683Thu Oct 7 12:02:28 1993 Per Bothner (bothner@kalessin.cygnus.com) 2684 2685 * cleanup.c: New file, to cause flushing at exit. 2686 * filedoalloc.c: Cause flushing on exit. 2687 * Makefile.in (OSPRIM_OBJECTS): Add cleanup.o. 2688 * gen-params: Check for atexit. 2689 2690Tue Oct 5 19:11:14 1993 Mike Stump (mrs@cygnus.com) 2691 2692 * ioperror.c (_IO_strerror): Add missing ()s in _PARAMS usage. 2693 2694Tue Oct 5 10:33:37 1993 Per Bothner (bothner@kalessin.cygnus.com) 2695 2696 * iofprintf.c, iofscanf.c, ioprintf.c, ioscanf.c, iosprintf.c, 2697 iosscanf.c: Remove bogus semi-colon after va_dcl. 2698 * ioperror.c: Fix typos in declaration. 2699 2700Mon Oct 4 17:12:22 1993 Per Bothner (bothner@kalessin.cygnus.com) 2701 2702 * configure.in (CLEAN): Define (as _G_config.h *.a). 2703 2704 * fileops.c (_IO_file_read): Don't assume EINTR is defined. 2705 * iosetbuf.c: Replace by generalized ... 2706 * iosetbuffer.c: ... variant, derived from BSD. 2707 * Makefile.in (STDIO_WRAP_OBJECTS): Change correspondingly. 2708 * iosetvbuf.c (iosetvbuf): Minor ANSI tweak. 2709 * iostdio.h (setbuf, setlinebuf): New #defines. 2710 * iolibio.h (_IO_setbuf, _IO_setlinebuf): (Re-)define as macros. 2711 * Makefile.in (LIBIO_OBJECTS): New macro. 2712 2713Tue Sep 28 14:15:52 1993 Per Bothner (bothner@kalessin.cygnus.com) 2714 2715 * libioP.h (_IO_proc_open, _IO_proc_close): Add missing return types. 2716 * procbuf.cc: Belated fixes. 2717 2718Mon Sep 27 14:04:47 1993 Per Bothner (bothner@kalessin.cygnus.com) 2719 2720 * Makefile.in: List new files. Add STDIO_WRAP_OBJECTS macro. 2721 * floatconv.c (d2b): Use Exp_msk11 instead of Exp_msk1. 2722 * iofgetpos.c (_IO_fgetpos), iofsetpos.c (_IO_fsetpos): Clean up. 2723 * iolibio.h: New file. Declarations of _IO_foo, for most foo 2724 where foo is a stdio function. (Remove these from libio.h.) 2725 * iostream.h (istream::istreambuf, ostream::ostreambuf): Move 2726 obsolete functions inside #ifdef _STREAM_COMPAT. 2727 * libio.h, libioP.h, streambuf.h, parsestream.h, stdiostream.h: 2728 Use _IO_fpos_t rather than _IO_pos_t. 2729 * iopopen.c: New file type, for pipe (popen-like) streams. 2730 * procbuf.cc: Now just a C++ wrapper for the files in iopopen.c. 2731 * streambuf.h (ios::unsetf): Return complete old value of flags. 2732 * iogets.c (_IO_gets(), ioungetc.c (_IO_ungetc), ioperror.c 2733 (_IO_perror), iostrerror.c (_IO_strerror): New files and 2734 functions, for stdio implementation. 2735 * iostdio.h: Add declarations for various recently-added functions. 2736 2737Sun Sep 12 14:24:55 1993 Per Bothner (bothner@kalessin.cygnus.com) 2738 2739 * streambuf.h (ios::showpos):: Fix typo. 2740 2741Fri Aug 27 12:05:47 1993 Per Bothner (bothner@kalessin.cygnus.com) 2742 2743 * iopadn.c (_IO_padn): Change to return count of chars written. 2744 * outfloat.c, iovfprintf.c: Change for new _IO_padn interface. 2745 * iostream.cc (ostream::operator<<): Make sure to set badbit 2746 on a failure (many places). Use _IO_padn more. 2747 * iostream.cc (ostream& ostream::operator<<(const void *p): Move to 2748 * osform.cc: ... here, to reduce linking-in-the-world syndrome. 2749 * osform.cc: Use rdbuf(), instead of _strbuf directly. 2750 2751 * genops.c (_IO_sgetn), libio.h: New function. 2752 * streambuf.h (streambuf.h::sgetn): Use _IO_sgetn. 2753 * SFile.cc (SFile::operator[]): Use sseekoff, not seekoff. 2754 2755Thu Aug 26 10:16:31 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 2756 2757 * config.shared (SUBDIRS): only recurse if the directory is configured 2758 2759Wed Aug 25 12:56:12 1993 Per Bothner (bothner@kalessin.cygnus.com) 2760 2761 * config/{hpux.mt, isc.mt, sco4.mt}: 2762 Moved from ../libg++/config (since they affect _G_config.h). 2763 * configure.in: Set target_make_frag to one of the above files. 2764 2765Fri Aug 20 00:53:14 1993 Per Bothner (bothner@kalessin.cygnus.com) 2766 2767 * iofopen.c (iofopen): Fix type passed to _IO_un_link(). 2768 * Makefile.in (_G_config.h): Pass $CC (not $CXX) as CC. 2769 2770 * configure.in (configdirs): Add dbz and stdio. 2771 * fileops.c (_IO_file_seekoff): Convert more old functionality. 2772 * iofdopen.c: Use mode parameter to set _flags. 2773 * iofscanf.c, ioputs.c, ioscanf.c, iosprintf.c: New files. 2774 * Makefile.in (IO_OBJECTS): Added new objects. 2775 * iostdio.h: Add feof. fscanf, puts, sprintf, vsprintf. 2776 * libio.h: Add _IO_vprintf macro. 2777 * iofopen.c: Invoke _IO_un_link if failure. 2778 * iovsprintf.c: Write terminating NUL. 2779 2780 * libioP.h: Add COERCE_FILE macro (by default does nothing). 2781 * iofclose.c, iofflush.c, iofgets.c, iofprintf.c, iofputs.c, 2782 iofread.c, ioftell.c, iofwrite.c, iosetbuf.c, iosetvbuf.c: 2783 Invoke COERCE_FILE macro. 2784 * ioftell.c: Use _IO_seekoff. 2785 2786Wed Aug 18 22:49:56 1993 Per Bothner (bothner@kalessin.cygnus.com) 2787 2788 * sbform.cc (streambuf::form), sbscan.cc (streambuf::scan): 2789 Remove cast to _IO_va_list. (Loses if array type.) 2790 2791 * libio.h: Handle _IO_va_list for systems that need <stdarg.h>. 2792 * floatconv.h: Fix typo (reported by H.J.Lu). 2793 2794Wed Aug 18 19:34:04 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 2795 2796 * configure.in (INSTALLDIR): handle native vs. cross case 2797 2798 * Makefile.in (install): don't use $TARGETLIB, set INSTALLDIR to 2799 $(libdir) 2800 2801Wed Aug 18 12:10:03 1993 Per Bothner (bothner@kalessin.cygnus.com) 2802 2803 * Makefile.in: Rename iostream-files to iostream.list. 2804 * configure.in: Add iostream.list to MOSTLYCLEAN. 2805 2806Tue Aug 17 18:56:59 1993 Per Bothner (bothner@kalessin.cygnus.com) 2807 2808 * Makefile.in: Depend on _G_config.h where appropriate. 2809 * config.shared (CXXINCLUDES): If doing libg++, search ../libio. 2810 2811Tue Aug 17 17:34:24 1993 Per Bothner (bothner@kalessin.cygnus.com) 2812 2813 New directory. Based on old libg++/iostream code, 2814 but extensively re-written. 2815