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