1 |
27 |
unneback |
2003-02-24 Jonathan Larmour
|
2 |
|
|
|
3 |
|
|
* cdl/stdio.cdl: Fix doc link.
|
4 |
|
|
|
5 |
|
|
2003-02-15 Fabrice Gautier
|
6 |
|
|
|
7 |
|
|
* include/stdio.inl (setbuf): Don't supply size with _IONBF.
|
8 |
|
|
* src/common/stdioinlines.cxx (setbuf): Ditto.
|
9 |
|
|
|
10 |
|
|
2003-01-29 Jonathan Larmour
|
11 |
|
|
|
12 |
|
|
* src/output/vfnprintf.cxx: Add support for C99 'z' flag (size_t).
|
13 |
|
|
|
14 |
|
|
2002-09-02 Andrew Lunn
|
15 |
|
|
|
16 |
|
|
* include/stream.inl (set_position): Fixed typo in none buffered
|
17 |
|
|
case. Seek pos bytes, not whence bytes.
|
18 |
|
|
|
19 |
|
|
2002-05-17 Martin Buck
|
20 |
|
|
|
21 |
|
|
* include/stdio.h (fnprintf): Added printf-format-checking using
|
22 |
|
|
CYGBLD_ATTRIB_PRINTF_FORMAT, since gcc does it automatically only for
|
23 |
|
|
ISO C90 functions.
|
24 |
|
|
(snprintf) Likewise.
|
25 |
|
|
|
26 |
|
|
2002-04-24 Yoshinori Sato
|
27 |
|
|
|
28 |
|
|
* include/streambuf.inl (Cyg_StdioStreamBuffer constructor):
|
29 |
|
|
Don't set default args in func definition.
|
30 |
|
|
(set_buffer): Ditto.
|
31 |
|
|
|
32 |
|
|
2002-04-05 Jonathan Larmour
|
33 |
|
|
|
34 |
|
|
* src/input/fgetc.cxx (fgetc): Silence conversion warning.
|
35 |
|
|
|
36 |
|
|
2002-04-04 Jonathan Larmour
|
37 |
|
|
|
38 |
|
|
* src/common/fopen.cxx (fopen_inner): Allocate memory using malloc and
|
39 |
|
|
placement new, not default new.
|
40 |
|
|
|
41 |
|
|
* src/input/fgetc.cxx (fgetc): Don't set error on true EOF.
|
42 |
|
|
|
43 |
|
|
2002-04-04 Jurica Baricevic
|
44 |
|
|
|
45 |
|
|
* src/common/fclose.cxx (fclose): Use delete if we can.
|
46 |
|
|
|
47 |
|
|
2002-02-06 Jonathan Larmour
|
48 |
|
|
|
49 |
|
|
* src/input/fread.cxx (fread): when looping read into ptrc, not ptr!
|
50 |
|
|
|
51 |
|
|
2002-01-25 Jonathan Larmour
|
52 |
|
|
|
53 |
|
|
* include/stream.inl (set_position): Fix the seek backwards case again.
|
54 |
|
|
Doh!
|
55 |
|
|
|
56 |
|
|
2002-01-24 Jonathan Larmour
|
57 |
|
|
|
58 |
|
|
* include/stream.inl (set_position): Fix the posdiff == 0 case.
|
59 |
|
|
|
60 |
|
|
2002-01-24 Jesper Skov
|
61 |
|
|
|
62 |
|
|
* include/stream.inl (set_position): Check that posdiff is >0
|
63 |
|
|
before taking the code path that assumes so.
|
64 |
|
|
|
65 |
|
|
2002-01-17 Jonathan Larmour
|
66 |
|
|
|
67 |
|
|
* include/stream.inl (set_position): Use an off_t for bytesavail to
|
68 |
|
|
prevent warnings.
|
69 |
|
|
|
70 |
|
|
2001-12-05 Jonathan Larmour
|
71 |
|
|
|
72 |
|
|
* src/common/fflush.cxx (cyg_libc_stdio_flush_all_but): Fix starvation
|
73 |
|
|
problem when waiting for threads to unlock of lower priority.
|
74 |
|
|
Fix for bug #57014.
|
75 |
|
|
|
76 |
|
|
2001-11-23 Jonathan Larmour
|
77 |
|
|
|
78 |
|
|
* cdl/stdio.cdl: Add dependency on stdlib string conversion functions
|
79 |
|
|
for *scanf.
|
80 |
|
|
|
81 |
|
|
2001-08-10 Robin Farine
|
82 |
|
|
|
83 |
|
|
* src/output/vfnprintf.cxx (cvt): Handles the cases of finite,
|
84 |
|
|
NaN and infinite numbers separately.
|
85 |
|
|
|
86 |
|
|
* src/common/stream.cxx (read): Read correct number of bytes when
|
87 |
|
|
a character has been "ungot".
|
88 |
|
|
|
89 |
|
|
2001-08-03 Jonathan Larmour
|
90 |
|
|
|
91 |
|
|
* include/streambuf.inl (~Cyg_StdioStreamBuffer): use correct configury
|
92 |
|
|
to decide when to call free.
|
93 |
|
|
|
94 |
|
|
2001-07-27 Jesper Skov
|
95 |
|
|
|
96 |
|
|
* src/common/fflush.cxx (cyg_libc_stdio_flush_all_but): The check
|
97 |
|
|
for last operation being a read is only valid in buffered IO mode.
|
98 |
|
|
|
99 |
|
|
2001-07-20 Jonathan Larmour
|
100 |
|
|
|
101 |
|
|
* include/stream.inl (set_position): Take read buffer into account
|
102 |
|
|
when seeking. Thanks to jjtsai for the
|
103 |
|
|
help.
|
104 |
|
|
|
105 |
|
|
2001-07-12 Jonathan Larmour
|
106 |
|
|
|
107 |
|
|
* src/common/fflush.cxx (cyg_libc_stdio_flush_all_but): Don't
|
108 |
|
|
flush a stream that was last used for reading - it doesn't need it.
|
109 |
|
|
* include/stream.hxx: cyg_libc_stdio_flush_all_but needs to be a
|
110 |
|
|
friend of class Cyg_StdioStream to do the above.
|
111 |
|
|
|
112 |
|
|
2001-06-18 Jonathan Larmour
|
113 |
|
|
|
114 |
|
|
* src/input/fread.cxx (fread): Fix compilation problem with below
|
115 |
|
|
change.
|
116 |
|
|
|
117 |
|
|
2001-06-15 Rob Jansen
|
118 |
|
|
|
119 |
|
|
* src/input/fread.cxx (fread): Changed to read the requested amount
|
120 |
|
|
of data items instead of stopping on CYG_LIBC_STDIO_BUFSIZE boundaries.
|
121 |
|
|
|
122 |
|
|
2001-06-08 Jeff Johnston
|
123 |
|
|
|
124 |
|
|
* src/input/vfscanf.cxx (vfscanf)[CYGINT_LIBC_I18N_MB_REQUIRED]: Added
|
125 |
|
|
call to mbtowc_fn for current locale to process format string.
|
126 |
|
|
Also added variable definitions needed in this circumstance.
|
127 |
|
|
* src/output/vfnprintf.cxx (vfnprintf)[CYGINT_LIBC_I18N_MB_REQUIRED]: Ditto.
|
128 |
|
|
(vfnprintf): Changed non-multibyte path to simply use the current
|
129 |
|
|
character rather than call the C mbtowc function since only
|
130 |
|
|
single byte characters would be possible.
|
131 |
|
|
|
132 |
|
|
2001-03-19 Jonathan Larmour
|
133 |
|
|
|
134 |
|
|
* src/common/stream.cxx (refill_read_buffer): Flush all streams here...
|
135 |
|
|
(read): ...rather than here, or...
|
136 |
|
|
(read_byte): ...here.
|
137 |
|
|
This means less flushing, which improves performance.
|
138 |
|
|
|
139 |
|
|
* src/input/fgets.cxx: Add a reminder comment to improve this later.
|
140 |
|
|
* src/input/gets.cxx: Ditto.
|
141 |
|
|
|
142 |
|
|
|
143 |
|
|
2001-03-16 Jonathan Larmour
|
144 |
|
|
|
145 |
|
|
* include/stream.hxx (class Cyg_StdioStream): Improve member visibility.
|
146 |
|
|
|
147 |
|
|
* src/common/stream.cxx (refill_read_buffer): Ensure eof is set.
|
148 |
|
|
* src/common/feof.cxx: New file. Implements the long lost
|
149 |
|
|
feof(), ferror() and clearerr() functions which were MIA for
|
150 |
|
|
no good reason.
|
151 |
|
|
* cdl/stdio.cdl: Build it.
|
152 |
|
|
|
153 |
|
|
2001-03-15 Jonathan Larmour
|
154 |
|
|
|
155 |
|
|
* cdl/stdio.cdl (CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE): Default to
|
156 |
|
|
tty default console.
|
157 |
|
|
|
158 |
|
|
* src/input/fgets.cxx (fgets): Reimplement to work with EOF properly.
|
159 |
|
|
Add tracing.
|
160 |
|
|
* src/input/gets.cxx (gets): Ditto.
|
161 |
|
|
|
162 |
|
|
* include/io.hxx, include/io.inl, include/stream.hxx,
|
163 |
|
|
include/stream.inl, include/streambuf.hxx, include/streambuf.inl:
|
164 |
|
|
Silence warnings from recent compilers.
|
165 |
|
|
|
166 |
|
|
2001-02-01 Jonathan Larmour
|
167 |
|
|
|
168 |
|
|
* cdl/stdio.cdl (CYGPKG_LIBC_STDIO_OPEN): Implements
|
169 |
|
|
CYGINT_ISO_STDIO_POSIX_FDFUNCS ( fileno() and fdopen() ).
|
170 |
|
|
|
171 |
|
|
2000-11-01 Jonathan Larmour
|
172 |
|
|
|
173 |
|
|
* include/stdio.h: Make FILE array type larger to be more resistant
|
174 |
|
|
against small data sections.
|
175 |
|
|
Lose the cyg_libc_stdio_stdin/out/err definitions with macros for
|
176 |
|
|
stdin/stdout/err since it can cause problems with libgcc exception
|
177 |
|
|
code. Instead just make these extern FILE *s.
|
178 |
|
|
* src/common/stderr.cxx:
|
179 |
|
|
* src/common/stdin.cxx:
|
180 |
|
|
* src/common/stdout.cxx:
|
181 |
|
|
Define objects with init priority corresponding to order the fd's
|
182 |
|
|
should be allocated where applicable.
|
183 |
|
|
Define actual stdin, stdout, stderr externally visible constants to
|
184 |
|
|
point to the streams.
|
185 |
|
|
|
186 |
|
|
* cdl/stdio.cdl: Support CYGINT_ISO_STDIO_STREAMS interface
|
187 |
|
|
|
188 |
|
|
* src/common/fopen.cxx (fdopen): return f as intended
|
189 |
|
|
|
190 |
|
|
2000-10-23 Jesper Skov
|
191 |
|
|
|
192 |
|
|
* include/streambuf.inl: Adjust assertions to cope with buffers
|
193 |
|
|
generated by sprintf and similar non-bound-buffer calls.
|
194 |
|
|
|
195 |
|
|
2000-08-09 Jonathan Larmour
|
196 |
|
|
|
197 |
|
|
* include/io.inl: No need to include string.h
|
198 |
|
|
|
199 |
|
|
* cdl/stdio.cdl: Add some more requires statements
|
200 |
|
|
|
201 |
|
|
2000-08-07 Jonathan Larmour
|
202 |
|
|
|
203 |
|
|
* src/common/stream.cxx (Cyg_StdioStream::Cyg_StdioStream):
|
204 |
|
|
Only call io_buf members conditionally.
|
205 |
|
|
|
206 |
|
|
2000-08-03 Jonathan Larmour
|
207 |
|
|
|
208 |
|
|
* src/common/fseek.cxx: Include assertion and tracing support since
|
209 |
|
|
they are used.
|
210 |
|
|
|
211 |
|
|
2000-07-20 Nick Garnett
|
212 |
|
|
|
213 |
|
|
* include/stream.hxx (class Cyg_StdioStream): Added get_dev()
|
214 |
|
|
accessor member function to return underlying device handle.
|
215 |
|
|
|
216 |
|
|
* src/common/fopen.cxx: Added fdopen() and fileno(). Reorganized
|
217 |
|
|
fopen() so that code common with fdopen() is now in a separate
|
218 |
|
|
function.
|
219 |
|
|
|
220 |
|
|
* src/common/stdiosupp.cxx (Cyg_libc_stdio_find_filename): Removed
|
221 |
|
|
compiler warning.
|
222 |
|
|
|
223 |
|
|
2000-07-13 Nick Garnett
|
224 |
|
|
|
225 |
|
|
* cdl/stdio.cdl: Added common/fseek.cxx to compile list.
|
226 |
|
|
Reorganized options for stream buffering:
|
227 |
|
|
CYGSEM_LIBC_STDIO_DYNAMIC_SETVBUF now controls whether the user
|
228 |
|
|
can attach their own buffer to the stream.
|
229 |
|
|
CYGSEM_LIBC_STDIO_SETVBUF_MALLOC controls whether buffers can be
|
230 |
|
|
malloced or only statically defined.
|
231 |
|
|
Added CYGPKG_LIBC_STDIO_FILEIO option to control whether the STDIO
|
232 |
|
|
package uses the FILEIO package for all IO, or goes directly to
|
233 |
|
|
the device drivers as before.
|
234 |
|
|
|
235 |
|
|
* include/stdio.h: Added file positioning calls defined in section
|
236 |
|
|
7.9.9 of the standard.
|
237 |
|
|
|
238 |
|
|
* include/io.hxx:
|
239 |
|
|
* include/io.inl:
|
240 |
|
|
Added these files to define an abstraction layer for access to the
|
241 |
|
|
real device underlying an IO stream. Depending on
|
242 |
|
|
CYGPKG_LIBC_STDIO_FILEIO this either goes to the FILEIO package or
|
243 |
|
|
directly to the device drivers.
|
244 |
|
|
|
245 |
|
|
* include/stream.hxx:
|
246 |
|
|
Modifications to use io.hxx abstractions.
|
247 |
|
|
Added second constructor for creating a buffer-only stream.
|
248 |
|
|
Added initialize() function which contains most of the common
|
249 |
|
|
stream initialization code.
|
250 |
|
|
Added a close() member function.
|
251 |
|
|
|
252 |
|
|
* include/stream.inl:
|
253 |
|
|
Modifications to use io.hxx abstractions.
|
254 |
|
|
Moved most of the work of the destructor into close() member.
|
255 |
|
|
Added FILEIO version of set_position() member function.
|
256 |
|
|
|
257 |
|
|
* include/streambuf.hxx:
|
258 |
|
|
* include/streambuf.inl:
|
259 |
|
|
* src/common/streambuf.cxx:
|
260 |
|
|
Rearranged to match new buffering configuration options.
|
261 |
|
|
|
262 |
|
|
* src/common/stream.cxx:
|
263 |
|
|
Modifications to use io.hxx abstractions.
|
264 |
|
|
Added second constructor, and moved common initialization code to
|
265 |
|
|
initialize() member function.
|
266 |
|
|
Added code to make position member correctly track current file
|
267 |
|
|
position.
|
268 |
|
|
|
269 |
|
|
* src/common/fopen.cxx:
|
270 |
|
|
Fixed handling of write/append in process_mode().
|
271 |
|
|
Moved call of process_mode() to before call to cyg_stdio_open() so
|
272 |
|
|
that stream modes may be passed in.
|
273 |
|
|
Added code to detect an interactive stream and choose non-buffered
|
274 |
|
|
mode - fully buffered is now the default.
|
275 |
|
|
Added calls to cyg_stdio_close() where appropriate.
|
276 |
|
|
|
277 |
|
|
* src/output/vfnprintf.cxx: Removed FLUSH() macro and its
|
278 |
|
|
uses. Deciding to flush should be in the hands of the buffer code,
|
279 |
|
|
or the user calling fflush().
|
280 |
|
|
|
281 |
|
|
* src/common/vsscanf.cxx:
|
282 |
|
|
Added FILEIO variant of vsscanf(). This uses a precharged stream
|
283 |
|
|
object to emulate input.
|
284 |
|
|
|
285 |
|
|
* src/common/vsnprintf.cxx:
|
286 |
|
|
Added FILEIO variant of vsnprintf(). This uses the standard stream
|
287 |
|
|
object to print into the supplied buffer.
|
288 |
|
|
|
289 |
|
|
* src/common/fseek.cxx:
|
290 |
|
|
Added this file to implement file positioning functions.
|
291 |
|
|
|
292 |
|
|
* src/common/fclose.cxx (fclose):
|
293 |
|
|
Added call to Cyg_StdioStream::close().
|
294 |
|
|
|
295 |
|
|
* include/stdiosupp.hxx:
|
296 |
|
|
* src/common/stdiosupp.cxx:
|
297 |
|
|
Modified Cyg_libc_stdio_find_filename() to take mode, binary and
|
298 |
|
|
append arguments.
|
299 |
|
|
|
300 |
|
|
* src/common/stdin.cxx:
|
301 |
|
|
* src/common/stdout.cxx:
|
302 |
|
|
* src/common/stderr.cxx:
|
303 |
|
|
Modified calls to Cyg_libc_stdio_find_filename() to pass
|
304 |
|
|
appropriate values for mode, binary and append arguments.
|
305 |
|
|
|
306 |
|
|
2000-06-18 Jonathan Larmour
|
307 |
|
|
|
308 |
|
|
* src/common/vsscanf.cxx: Add NULL select entry to DEVIO_TABLE
|
309 |
|
|
* src/common/vsnprintf.cxx: Likewise
|
310 |
|
|
|
311 |
|
|
2000-05-25 Hugo Tyson
|
312 |
|
|
|
313 |
|
|
* include/stream.inl (set_error): If the error is EEOF, set
|
314 |
|
|
the EOF flag (flags.at_eof) so that clients know.
|
315 |
|
|
|
316 |
|
|
* src/input/fgetc.cxx (__fgetc):
|
317 |
|
|
* src/input/fgets.cxx (_fgets):
|
318 |
|
|
* src/input/fread.cxx (_fread): Correctly handle an error,
|
319 |
|
|
or EOF indication, from real_stream->refill_read_buffer().
|
320 |
|
|
|
321 |
|
|
2000-05-02 Jonathan Larmour
|
322 |
|
|
|
323 |
|
|
* New package
|
324 |
|
|
Separated original libc out into separate packages on functional
|
325 |
|
|
boundaries.
|
326 |
|
|
Header files are now managed by isoinfra package
|
327 |
|
|
Plenty of cleanups done, but no major functionality changes
|
328 |
|
|
|
329 |
|
|
//===========================================================================
|
330 |
|
|
//####ECOSGPLCOPYRIGHTBEGIN####
|
331 |
|
|
// -------------------------------------------
|
332 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
333 |
|
|
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
|
334 |
|
|
//
|
335 |
|
|
// eCos is free software; you can redistribute it and/or modify it under
|
336 |
|
|
// the terms of the GNU General Public License as published by the Free
|
337 |
|
|
// Software Foundation; either version 2 or (at your option) any later version.
|
338 |
|
|
//
|
339 |
|
|
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
|
340 |
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
341 |
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
342 |
|
|
// for more details.
|
343 |
|
|
//
|
344 |
|
|
// You should have received a copy of the GNU General Public License along
|
345 |
|
|
// with eCos; if not, write to the Free Software Foundation, Inc.,
|
346 |
|
|
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
347 |
|
|
//
|
348 |
|
|
// As a special exception, if other files instantiate templates or use macros
|
349 |
|
|
// or inline functions from this file, or you compile this file and link it
|
350 |
|
|
// with other works to produce a work based on this file, this file does not
|
351 |
|
|
// by itself cause the resulting work to be covered by the GNU General Public
|
352 |
|
|
// License. However the source code for this file must still be made available
|
353 |
|
|
// in accordance with section (3) of the GNU General Public License.
|
354 |
|
|
//
|
355 |
|
|
// This exception does not invalidate any other reasons why a work based on
|
356 |
|
|
// this file might be covered by the GNU General Public License.
|
357 |
|
|
//
|
358 |
|
|
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
|
359 |
|
|
// at http://sources.redhat.com/ecos/ecos-license/
|
360 |
|
|
// -------------------------------------------
|
361 |
|
|
//####ECOSGPLCOPYRIGHTEND####
|
362 |
|
|
//===========================================================================
|