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