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