1 This ChangeLog file is now obsolete. This is the original ChangeLog from when
2 libc was one large package, before being separated. It is included for
5 2000-04-05 Jesper Skov <jskov@redhat.com>
7 * src/time/settime.cxx:
9 Wallclock moved to io/.
11 2000-03-28 John Dallaway <jld@cygnus.co.uk>
18 Adjust documentation URLs.
20 2000-03-27 Jesper Skov <jskov@redhat.com>
22 * src/clibincl/stream.inl (check_this): Use cyb_bool instead of bool.
24 2000-03-06 Jesper Skov <jskov@redhat.com>
26 * tests/time/strftime.c (test): Adjust test to match below change.
28 2000-03-02 Jonathan Larmour <jlarmour@redhat.co.uk>
30 * src/time/strftime.cxx (do_format): Make sure %m counts from
31 1..12 rather than 0..11. Fix for case 103300
33 2000-02-29 Jonathan Larmour <jlarmour@redhat.co.uk>
35 * src/stdio/output/vfnprintf.cxx: Correctly use 'n' parameter to
36 restrict length. Credit due to Andrew Lunn here as well.
39 * tests/stdio/sprintf2.c (test):
40 Add snprintf tests to verify the correct behaviour of restricting
43 2000-02-10 Jesper Skov <jskov@redhat.com>
45 * tests/signal/signal2.c (main):
46 Also reclaim DATA_TLB_MISS vector if available.
48 2000-01-31 Simon FitzMaurice <sdf@cygnus.co.uk>
51 Adjust help URLs in line with new doc layout.
53 2000-01-28 Simon FitzMaurice <sdf@cygnus.co.uk>
56 Adjust help URLs in line with new doc layout.
58 2000-01-19 Hugo Tyson <hmt@cygnus.co.uk>
60 * cdl/*.cdl: Add descriptions to a number of options &c which were
61 lacking same, also tidied up other typos as noticed en passant.
63 1999-11-11 Bart Veer <bartv@cygnus.co.uk>
66 Switch to a single boolean configuration option for code size vs.
69 1999-11-03 John Dallaway <jld@cygnus.co.uk>
71 * cdl/libc.cdl: Define tests.
73 1999-10-19 Jonathan Larmour <jlarmour@cygnus.co.uk>
75 * src/stdio/output/vfnprintf.cxx: We can now remove Berkeley
77 * src/stdlib/div.cxx: ditto
78 * src/stdlib/ldiv.cxx: ditto
79 * src/stdlib/strtol.cxx: ditto
80 * src/stdlib/strtoul.cxx: ditto
81 * src/string/strtok.cxx: ditto
83 1999-10-19 John Dallaway <jld@cygnus.co.uk>
87 Define CDL options for package-specific CFLAGS.
89 1999-10-08 Jonathan Larmour <jlarmour@cygnus.co.uk>
91 * include/pkgconf/libc.h (CYGNUM_LIBC_MAIN_THREAD_PRIORITY): Change
92 default to 10 to keep test farm happy
93 * cdl/startup.cdl: Likewise
95 1999-10-07 John Dallaway <jld@cygnus.co.uk>
97 * cdl/stdlib.cdl, cdl/string.cdl:
99 Specify radio buttons using CDL interfaces.
101 1999-10-06 Jonathan Larmour <jlarmour@cygnus.co.uk>
103 * cdl/stdio.cdl: Change default to /dev/ttydiag as per 1999-10-01
105 * cdl/startup.cdl: Add new form CDL for the startup changes as
108 1999-10-05 Jonathan Larmour <jlarmour@cygnus.co.uk>
110 * include/libc.h: Add CYGSEM_LIBC_MAIN_STACK_FROM_SYSTEM to allow
111 the user to supply their own stack.
112 Rename CYGNUM_LIBC_MAIN_STACK_SIZE to
113 CYGNUM_LIBC_MAIN_DEFAULT_STACK_SIZE and reparent under
114 CYGSEM_LIBC_MAIN_STACK_FROM_SYSTEM
115 Add CYGNUM_LIBC_MAIN_THREAD_PRIORITY to provide main() thread
118 * src/support/mainthread.cxx: Add support for user-supplied stack
119 Allow user to specify thread priority
121 These changes fix CR 101069
123 1999-10-01 Jonathan Larmour <jlarmour@cygnus.co.uk>
125 * include/pkgconf/libc.h (CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE): Change
126 default to /dev/ttydiag to get correct console-like behaviour
127 Also don't preclude use if haldiag package isn't included
130 1999-09-15 Jesper Skov <jskov@cygnus.co.uk>
132 * tests/signal/signal2.c (cause_fpe): Try both float and integer
135 1999-09-10 Jesper Skov <jskov@cygnus.co.uk>
137 * src/stdlib/malloc.cxx (cyg_libc_get_malloc_pool): Added for
140 1999-09-07 Jesper Skov <jskov@cygnus.co.uk>
142 * tests/signal/signal2.c: Disabled test3 on ARM.
144 1999-09-02 Hugo Tyson <hmt@cygnus.co.uk>
146 * include/assert.h: Make the sense of NDEBUG correct; it is "set"
147 when NOT debugging. Fix for CR 101983-CR-1
148 See Stroustrup, "The C++ Programming Language."
150 1999-08-18 Jonathan Larmour <jlarmour@cygnus.co.uk>
152 * src/stdio/common/fopen.cxx (_fopen): Set buffer size 0 when not
156 1999-08-17 John Dallaway <jld@cygnus.co.uk>
158 * cdl/stdlib.cdl, cdl/string.cdl:
160 Implement radio buttons using "FIXME radio" hack in
161 description field for now.
163 1999-08-12 John Dallaway <jld@cygnus.co.uk>
166 Take advantage of MACRONAME_ENUMVAL macros output by CDL.
168 1999-08-06 Jonathan Larmour <jlarmour@cygnus.co.uk>
170 * tests/stdio/sprintf2.c (test): Don't rely on 2.345 being exactly
171 representable in binary as a difference of 1 ulp will make it round
174 1999-07-16 Jonathan Larmour <jlarmour@cygnus.co.uk>
176 * src/stdio/input/fgetc.cxx:
177 Include outline versions of getc() (actually just a symbol alias for
178 fgetc() ) and getchar()
180 Add tracing/assertions
182 * src/stdio/input/fputc.cxx:
183 Likewise (except applied to putc() and putchar())
185 * src/stdio/common/stdioinlines.cxx (_puts):
186 Call fputc() not _fputc()
188 * src/clibincl/stdiosupp.hxx:
189 Remove now obsolete prototypes for _fgetc() and _fputc()
192 Don't bother with getc()/putc() macros any more, just call
194 Include protos for getc(), putc(), getchar() and putchar() functions
196 1999-06-21 Jesper Skov <jskov@cygnus.co.uk>
198 * tests/signal/signal2.c: Disabled test 3 for SH EDK7708.
200 1999-06-11 Jonathan Larmour <jlarmour@cygnus.co.uk>
202 * include/stdio.h: Make FILEs array types so they won't be
203 given $gp relocations on MIPS targets
205 1999-05-27 Jesper Skov <jskov@cygnus.co.uk>
207 * tests/time/ctime.c: Fixed compiler warning.
209 1999-05-25 Jonathan Larmour <jlarmour@cygnus.co.uk>
211 * tests/signal/signal2.c (main):
212 Update CYGPKG_HAL_TX39 -> CYGPKG_HAL_MIPS_TX39 due to recent MIPS
216 1999-04-30 Jesper Skov <jskov@lassi.cygnus.co.uk>
217 PR 19945/19946 workaround
218 * tests/signal/signal2.c: Disabled test 3 for PowerPC sim.
220 1999-04-19 Jonathan Larmour <jlarmour@cygnus.co.uk>
223 Ensure all calls to cyg_libc_time_year_is_leap() are with the full
224 year, and not the direct contents of a struct tm, which are (year-1900)
226 1999-04-19 Jesper Skov <jskov@cygnus.co.uk>
227 PR 19308, 19410, 19528
228 * tests/time/clock.c (test): Also disable data cache which may
229 affect timing when tracing/assertions are enabled.
231 1999-04-15 Jonathan Larmour <jlarmour@cygnus.co.uk>
233 * src/clibincl/stdiosupp.hxx:
234 Add prototype for new cyg_libc_stdio_flush_all_but() function
236 * src/clibincl/stream.hxx:
237 Don't include stdiosupp.hxx any more to prevent circular dependency,
238 therefore manually provide _setvbuf prototype
239 Make sure pkgconf/kernel.h is included before mutex.hxx
241 * src/clibincl/stream.inl (Cyg_StdioStream::set_error()):
242 Add missing unlock_me()
244 * src/stdio/common/fflush.cxx:
245 Separate most of code for fflush(NULL) into separate
246 cyg_libc_stdio_flush_all_but() function, which has the extra
247 capability of omitting one stream
249 * src/stdio/common/stderr.cxx:
250 * src/stdio/common/stdin.cxx:
251 * src/stdio/common/stdout.cxx:
252 * src/stdio/common/vsnprintf.cxx:
253 * src/stdio/common/vsscanf.cxx:
254 Add missing clibincl/stdiosupp.hxx include
256 * src/stdio/common/stream.cxx (Cyg_StdioStream::read()):
257 When reading, ensure we flush all output streams
259 * src/stdio/common/stream.cxx (Cyg_StdioStream::flush_output_unlocked):
260 Flush the device as well
262 1999-04-15 Jonathan Larmour <jlarmour@cygnus.co.uk>
264 * src/stdio/common/streambuf.cxx (set_buffer):
265 * src/stdio/common/stdioinlines.cxx (_setbuf):
266 * src/clibincl/streambuf.inl:
267 * src/clibincl/streambuf.hxx:
268 * src/clibincl/stream.hxx (class Cyg_StdioStream):
269 * include/pkgconf/libc.h:
270 * include/stdio.inl (setbuf):
271 Fix dumb typo: BUFSIZE -> BUFSIZ
274 1999-04-15 Jonathan Larmour <jlarmour@cygnus.co.uk>
276 * src/stdio/common/stdioinlines.cxx (_setbuf):
277 * include/stdio.inl (setbuf):
278 Use _IONBF when buf==NULL, and _IOLBF otherwise.
281 1999-04-15 John Dallaway <jld@cygnus.co.uk>
283 * include/pkgconf/libc.h: Tidy display string capitalization.
285 1999-04-12 Jonathan Larmour <jlarmour@cygnus.co.uk>
287 * include/pkgconf/libc.h:
288 Clarify CDL description of CYGNUM_LIBC_MALLOC_MEMPOOL_SIZE
290 * tests/signal/signal2.c: Try harder to generate an exception by
291 accessing a misaligned address
292 Don't handle SIGTRAP any more
293 Part of fix for PRs 19731/19607
295 1999-04-07 Jesper Skov <jskov@cygnus.co.uk>
297 * src/support/mainthread.cxx:
298 Changed to use the new Cyg_Thread constructor.
300 1999-04-07 Hugo Tyson <hmt@cygnus.co.uk>
302 * tests/signal/signal2.c (main): Use new macro
303 HAL_VSR_SET_TO_ECOS_HANDLER if defined, to wrest control from
304 CygMon, for example, by reinstalling eCos' default VSRs for
305 exceptions that we are provoking.
307 1999-03-29 Jonathan Larmour <jlarmour@cygnus.co.uk>
309 * src/signal/siginit.cxx: Include stdlib.h for exit()
312 1999-03-29 Jonathan Larmour <jlarmour@cygnus.co.uk>
314 * tests/time/clock.c (test): Disable instruction cache
315 Hopefully fixes PR 19308
317 1999-03-29 Jesper Skov <jskov@cygnus.co.uk>
319 * tests/signal/signal2.c: Disabled test 3 for PPC as it cannot
320 trap division by zero.
322 1999-03-26 Jonathan Larmour <jlarmour@cygnus.co.uk>
324 * src/support/main.cxx (main): Invoke cyg_user_start() if no kernel
325 Only sensible thing to do in our default main in a non-kernel config
327 1999-03-25 Jonathan Larmour <jlarmour@cygnus.co.uk>
330 Increase MAX_TIMEOUT since the sparclite gets very close to overrunning
331 it even when working.
332 Should return -1 iff CYGSEM_LIBC_TIME_TIME_WORKING isn't defined
335 1999-03-25 Hugo Tyson <hmt@cygnus.co.uk>
337 * tests/time/time.c (test): Take into account setting of
338 CYGSEM_LIBC_TIME_SETTIME_WORKING ie. does cyg_libc_time_settime()
339 work? If not, check that it returns an error.
340 This was exposed by the random combo in PR#19479.
342 1999-03-23 Jonathan Larmour <jlarmour@cygnus.co.uk>
344 * include/pkgconf/libc.h:
345 Rename CYGSEM_LIBC_RAND_SIMPLEST and CYGSEM_LIBC_RAND_KNUTH1 to
348 Add another rand implementation CYGIMP_LIBC_RAND_SIMPLE1 which is
351 Part of fix for PR 19562
353 * include/sys/cstartup.h:
354 Tidy and remove unnecessary dependencies
356 * src/stdlib/rand.cxx:
357 Rename algorithms from CYGSEM_... to CYGIMP_...
358 Add new "simple1" algorithm
360 * tests/ctype/ctype.c:
363 * tests/stdlib/rand3.c:
364 Fix so that 0..RAND_MAX is split evenly over buckets, which it wasn't
366 Deal with case of RAND_MAX not being divisible by NUM_BUCKETS
368 Increase TEST_LENGTH to 200000 to provide more representative sample
369 Add CYG_TEST_INFO output to help ensure it doesn't time out
372 * tests/stdlib/rand4.c:
373 Only fail if more than _two_ thirds (rather than one third) match.
374 This is because half would match for a perfectly random distribution
375 This is the rest of the fix for PR 19562
378 1999-03-22 Hugo Tyson <hmt@cygnus.co.uk>
380 * src/support/mainthread.cxx (CYGNUM_LIBC_MAIN_STACK_SIZE):
381 Use CYGNUM_HAL_STACK_SIZE_TYPICAL for the stack size instead of
382 CYGNUM_HAL_MINIMUM_STACK_SIZE.
384 1999-03-22 Jonathan Larmour <jlarmour@cygnus.co.uk>
386 * tests/PKGconf.mak: Add -Wno-format when building strftime otherwise
387 it generates warnings for things that we do want to test (null
388 string, and %y format)
390 1999-03-19 Jonathan Larmour <jlarmour@cygnus.co.uk>
392 * include/pkgconf/libc.h (CYGNUM_LIBC_TIME_DST_DEFAULT_STATE):
393 Put brackets back round negative number since sdf says the config
394 tool is fixed now (PR 19537)
396 Add new CYGSEM_LIBC_RAND_SIMPLEST and CYGSEM_LIBC_RAND_KNUTH1
397 options for different rand() algorithms in a so far failed attempt
400 * src/stdlib/rand.cxx:
401 Add new optional algorithm from Knuth vol.2
403 * tests/stdlib/rand4.c:
405 Don't run test when using simplest algorithm
407 * tests/signal/signal2.c (main):
408 Don't try to make an FPE on tx39 - its possible to detect but requires
409 too much HAL work to be sensible
411 1999-03-18 Jonathan Larmour <jlarmour@cygnus.co.uk>
413 * src/signal/siginit.cxx (cyg_libc_signals_hwexcept_handler):
414 Use HAL_ENABLE_INTERRUPTS() rather than kernel to enable interrupts
416 1999-03-18 Mark Galassi <rosalia@cygnus.com>
418 * tests/PKGconf.mak (TESTS): added rand4 compilation.
420 * tests/stdlib/rand4.c: added this test for periodicity in the
421 least significant bit of rand().
423 1999-03-18 Jonathan Larmour <jlarmour@cygnus.co.uk>
425 * include/pkgconf/libc.h: Remove CYGFUN_LIBC_TIME_POSIX dependency
428 * src/stdlib/itoa.cxx:
429 New file to convert integers to ascii
432 Add proto for new cyg_libc_itoa() function
435 Rework __asctime_r() to use memcpy() and cyg_libc_itoa() rather than
439 Build stdlib/itoa.cxx
441 The above changes fix PR 19448
443 1999-03-17 Jonathan Larmour <jlarmour@cygnus.co.uk>
445 * include/time.h: Add #define of __time_t_defined to placate newlib
446 if it is used by accident. This is just a temporary workaround though.
448 1999-03-16 Gary Thomas <gthomas@cygnus.co.uk>
450 * src/PKGconf.mak: Add compile option to step around ARM compiler bug.
452 1999-03-16 Jonathan Larmour <jlarmour@cygnus.co.uk>
454 * include/pkgconf/libc.h (CYGNUM_LIBC_TIME_DST_DEFAULT_STATE):
455 Don't use parentheses for now
457 * src/stdio/common/stream.cxx (refill_read_buffer):
458 Silence bogus compiler warning
460 1999-03-16 Jesper Skov <jskov@cygnus.co.uk>
462 * tests/signal/signal2.c (main): Enable SIGSEGV test for
466 1999-03-15 Jonathan Larmour <jlarmour@cygnus.co.uk>
468 * src/signal/siginit.cxx (cyg_libc_signals_hwexcept_handler):
469 Only enable interrupts if they were disabled
471 * include/sys/timeutil.h:
472 * src/time/timeutil.cxx:
473 Add FIX ME line as a reminder that the workaround there can go away
476 * include/pkgconf/libc.h:
477 Add proper define for CYGSEM_LIBC_EXIT_CALLS_FFLUSH
478 Put brackets round negative CYGNUM_LIBC_TIME_DST_DEFAULT_STATE define
481 * include/time.inl (__localtime_r):
482 Include sys/timeutil.h before this to get
483 cyg_libc_time_normalize_structtm()
485 1999-03-12 Gary Thomas <gthomas@cygnus.co.uk>
487 * include/sys/timeutil.h:
488 * src/time/timeutil.cxx: Remove 'const' from char arrays since
489 this fails [silently] on ARM when -fwritable-strings (PR19440)
491 1999-03-12 Jesper Skov <jskov@cygnus.co.uk>
493 * tests/signal/signal2.c (main): Compiler warnings fix was
496 1999-03-12 Jesper Skov <jskov@cygnus.co.uk>
498 * tests/signal/signal2.c (main):
499 Disabling SIGTRAP handling on i386/Linux is not a good idea.
500 1999-03-11 Jesper Skov <jskov@cygnus.co.uk>
502 * tests/signal/signal2.c:
503 Added compiler warnings fix.
504 Added N/A handling for i386/Linux.
506 1999-03-10 Gary Thomas <gthomas@cygnus.co.uk>
508 * include/pkgconf/libc.h: Force "haldiag" device to be present.
509 'asctime' and friends need 'stdio' as well.
511 * include/time.inl: Fix syntax error on difftime() declaration.
513 1999-03-08 Gary Thomas <gthomas@cygnus.co.uk>
515 * src/clibincl/stream.hxx: <cyg/infra/cyg_ass.h> needed for this file.
517 * src/stdio/common/vsscanf.cxx (str_read): Fix problem with string
518 pointer [created by merge with new I/O package].
520 1999-03-05 John Dallaway <jld@cygnus.co.uk>
522 * include/pkgconf/libc.h:
523 Add legal values for CYGNUM_LIBC_TIME_STD_DEFAULT_OFFSET
524 and CYGNUM_LIBC_TIME_DST_DEFAULT_OFFSET.
526 1999-03-05 Jonathan Larmour <jlarmour@cygnus.co.uk>
528 * include/time.inl (cyg_libc_time_year_is_leap):
529 Fix bug with modulo year 400
530 Fix typo in asctime_r macro
531 Fix gmtime_r, and mktime as a result of testing
533 * tests/time/asctime.c, tests/time/ctime.c, tests/time/gmtime.c,
534 tests/time/gmtime.c, tests/time/localtime.c, tests/time/mktime.c,
535 tests/time/strftime.c, tests/time/time.c:
539 Build above new tests
541 * include/pkgconf/libc.h:
542 Add reminder FIX ME about extra config option
544 * src/time/strftime.cxx:
545 Fix %w and %Y parameters as a result of testing
547 * src/time/timeutil.cxx:
548 Fix cyg_libc_time_normalize_structtm() as a result of testing
551 * tests/time/clock.c:
552 Reformat, remove obsolete bits and tidy
555 Add Cyg_libc_time_dst type and new functions
556 cyg_libc_time_setzoneoffsets(), cyg_libc_time_setdst(),
557 cyg_libc_time_getzoneoffsets(), cyg_libc_time_settime()
560 Implement the above functions. This allows us to adjust for timezone
561 diffences and set the time.
562 Change localtime() to adjust for STD/DST
563 Change mktime() to adjust for STD/DST
566 Add new config options CYGSEM_LIBC_TIME_SETTIME_WORKING
567 and component CYGPKG_LIBC_TIME_ZONES containing options
568 CYGNUM_LIBC_TIME_DST_DEFAULT_STATE,
569 CYGNUM_LIBC_TIME_STD_DEFAULT_OFFSET,
570 CYGNUM_LIBC_TIME_DST_DEFAULT_OFFSET
573 Adjust handling of %Z to _not_ deal with STD/DST
575 * src/time/settime.cxx:
576 New file to implement cyg_libc_time_settime()
581 * src/time/timeutil.cxx:
582 Supply outline versions of cyg_libc_time_setzoneoffsets(),
583 cyg_libc_time_setdst(), and cyg_libc_time_getzoneoffsets()
584 Add variables for STD/DST state
585 Some minor comment changes
588 Use CYGBLD_ATTRIB_CONST instead of __attribute__((const)) directly
591 Change format of function comment headers
593 * include/signal.inl:
594 Restrict errno.h inclusion to when its actually used
598 Add CYGBLD_ATTRIB_CONST to abs, div, labs, ldiv
600 * include/stdlib.inl:
602 Include new versions of div and ldiv which are more portable and
603 are cleanly rewritten so aren't covered by the BSD licence, which
606 * src/stdlib/div.cxx, src/stdlib/ldiv.cxx:
607 Non-inline, non-BSD and portable versions of the new versions of div
608 and ldiv from stdlib.inl
611 Much reformatting, tidying and improving comments
612 Change CLOCKS_PER_SEC from 1000 to 1000000
613 Add new functions asctime_r, ctime_r, gmtime_r, localtime_r, clock,
614 difftime, mktime, time, asctime, ctime, gmtime, localtime, strftime
615 Include new time.inl file
617 * include/pkgconf/libc.h:
618 Add new options CYGSEM_LIBC_TIME_CLOCK_WORKING,
619 CYGSEM_LIBC_TIME_TIME_WORKING, CYGFUN_LIBC_TIME_POSIX,
620 CYGNUM_LIBC_TIME_CLOCK_TRACE_LEVEL, CYGIMP_LIBC_TIME_ASCTIME_INLINE,
621 CYGIMP_LIBC_TIME_CTIME_INLINE, CYGIMP_LIBC_TIME_DIFFTIME_INLINE,
622 CYGIMP_LIBC_TIME_GMTIME_INLINE, CYGIMP_LIBC_TIME_LOCALTIME_INLINE,
623 CYGIMP_LIBC_TIME_MKTIME_INLINE, CYGIMP_LIBC_TIME_ASCTIME_R_INLINE,
624 CYGIMP_LIBC_TIME_CTIME_R_INLINE, CYGIMP_LIBC_TIME_GMTIME_R_INLINE,
625 and CYGIMP_LIBC_TIME_LOCALTIME_R_INLINE
627 * time/asctime.cxx, time/asctime_r.cxx, time/clock.cxx, time/ctime.cxx,
628 time/ctime_r.cxx, time/difftime.cxx, time/gmtime.cxx,
629 time/gmtime_r.cxx, time/localtime.cxx, time/localtime_r.cxx,
630 time/mktime.cxx, time/strftime.cxx, time/time.cxx, time/timeutil.cxx,
632 New files to implement the new time functions. Many of them simply
633 provide the outline definitions, but the real body of the function
639 * src/clibincl/stdlibsupp.hxx:
640 Remove _div and _ldiv prototypes since they're no longer needed
642 * src/clibincl/timesupp.hxx:
643 Delete as its now obsolete
645 * src/time/clock.cxx:
646 Use new CYGSEM_LIBC_TIME_CLOCK_WORKING option to control whether it
647 just returns (clock_t)-1 or not.
648 Much reformatting and tidying
649 Change real imlpementation from _clock to __clock
650 Use CYGBLD_ATTRIB_WEAK_ALIAS now
652 * tests/stdlib/div.c, tests/stdlib/ldiv.c:
653 Add some extra tests for handling of negative numbers
654 Reformat and tidy a bit, including removing the test for CYGPKG_LIBC
655 since its now always defined if the test is to be compiled
657 * tests/time/clock.c:
658 Remove duplication CYG_TEST_INFO line
659 Check if unimplemented using "(clock_t)-1" and not just "-1"
661 1999-03-04 Jonathan Larmour <jlarmour@cygnus.co.uk>
663 * src/stdlib/system.cxx:
664 Make sure system() is a weak alias for __system()
666 * include/pkgconf/libc.h: Rework CDL description for
667 CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE and change its default to
670 * src/stdio/common/stream.cxx:
671 Check that dev is valid when passed to stream constructor
673 * src/stdio/common/stdiosupp.cxx:
676 * src/support/mainthread.cxx: Make this depend on
677 CYGSEM_LIBC_STARTUP_MAIN_THREAD rather than just CYGPKG_KERNEL
679 1999-03-04 Gary Thomas <gthomas@cygnus.co.uk>
681 Merged in changes from 'ecos-new_devs-19990216-branch'
683 (1999-02-24 Jonathan Larmour <jlarmour@cygnus.co.uk>)
685 * src/stdio/common/stream.cxx:
686 Add "fix me" comments and remove a couple of commented out lines
688 * src/stdio/common/vsnprintf.cxx:
689 * src/stdio/common/vsscanf.cxx:
690 Revert to using pointer to string for private data, not just string.
691 This preserves the state across multiple calls
693 (1999-02-24 Gary Thomas <gthomas@cygnus.co.uk>)
695 * src/stdio/common/vsscanf.cxx:
696 * src/stdio/common/vsnprintf.cxx:
697 * src/stdio/common/stream.cxx:
698 * src/stdio/common/stdiosupp.cxx:
699 * src/stdio/common/fopen.cxx:
700 * src/clibincl/stream.inl:
701 * src/clibincl/stream.hxx:
702 * src/clibincl/stdiosupp.hxx:
703 * include/pkgconf/libc.h: Changes for new I/O system.
705 1999-03-03 Jonathan Larmour <jlarmour@cygnus.co.uk>
707 * tests/stdlib/atexit.c: Forgot to config atexit test for
708 CYGFUN_LIBC_ATEXIT option
710 * include/pkgconf/libc.h:
711 Require CYGVAR_KERNEL_THREADS_DATA for CYGSEM_LIBC_PER_THREAD_STRTOK
713 Require CYGPKG_KERNEL for thread safe streams
714 Also don't need "requires CYGPKG_KERNEL" for per-thread rand and errno
715 if we already require a finer granularity kernel option
717 1999-02-25 Jonathan Larmour <jlarmour@cygnus.co.uk>
719 * include/pkgconf/libc.h: Fix CYGNUM_LIBC_MAIN_STACK_SIZE by changing
720 CYGPKG_LIBC_STARTUP_MAIN_THREAD -> CYGSEM_LIBC_STARTUP_MAIN_THREAD
723 1999-02-23 Jonathan Larmour <jlarmour@cygnus.co.uk>
725 * src/stdlib/system.cxx: Add to implement trivial system() call
726 * include/stdlib.h: Add system() prototype
727 * src/PKGconf.mak: Build system.cxx
729 * tests/ctype/ctype.c, tests/i18n/setlocale.c, tests/setjmp/setjmp.c,
730 tests/signal/signal1.c, tests/signal/signal2.c,
731 tests/stdio/sprintf1.c, tests/stdio/sprintf2.c, tests/stdio/sscanf.c,
732 tests/stdio/stdiooutput.c, tests/stdlib/atexit.c,
733 tests/stdlib/atoi.c, tests/stdlib/atol.c, tests/stdlib/bsearch.c,
734 tests/stdlib/div.c, tests/stdlib/getenv.c, tests/stdlib/labs.c,
735 tests/stdlib/ldiv.c, tests/stdlib/malloc1.c, tests/stdlib/malloc2.c,
736 tests/stdlib/malloc3.c, tests/stdlib/qsort.c, tests/stdlib/rand1.c,
737 tests/stdlib/rand2.c, tests/stdlib/rand3.c, tests/stdlib/realloc.c,
738 tests/stdlib/srand.c, tests/stdlib/strtol.c, tests/stdlib/strtoul.c,
739 tests/string/memchr.c, tests/string/memcmp1.c,
740 tests/string/memcmp2.c, tests/string/memcpy1.c,
741 tests/string/memcpy2.c, tests/string/memmove1.c,
742 tests/string/memmove2.c, tests/string/memset.c,
743 tests/string/strcat1.c, tests/string/strcat2.c,
744 tests/string/strchr.c, tests/string/strcmp1.c,
745 tests/string/strcmp2.c, tests/string/strcoll1.c,
746 tests/string/strcpy1.c, tests/string/strcpy2.c,
747 tests/string/strcspn.c, tests/string/strlen.c,
748 tests/string/strncat1.c, tests/string/strncat2.c,
749 tests/string/strncpy1.c, tests/string/strncpy2.c,
750 tests/string/strpbrk.c, tests/string/strrchr.c,
751 tests/string/strspn.c, tests/string/strstr.c, tests/string/strtok.c,
752 tests/string/strxfrm1.c, tests/string/strxfrm2.c, tests/time/clock.c:
753 Use CYG_TEST_NA() macro for non-applicable test configurations
755 1999-02-20 Jonathan Larmour <jlarmour@cygnus.co.uk>
758 * include/signal.inl:
759 * src/signal/raise.cxx:
760 * src/signal/siginit.cxx:
761 * src/signal/signal.cxx:
762 * tests/signal/signal1.c
763 * tests/signal/signal2.c:
764 New files to implement ISO standard signals
766 * src/PKGconf.mak (TESTS):
767 * tests/PKGconf.mak (TESTS):
768 Update to build new files above
771 * src/clibincl/stdlibsupp.hxx:
772 Comment and QA changes (including giving better names to some types)
775 Add new configuration options for signals
776 Add new CYGSEM_LIBC_STARTUP_MAIN_THREAD option
777 Add a note to CYGNUM_LIBC_MAIN_STACK_SIZE option that it may be
779 Add new CYGFUN_LIBC_ATEXIT option and move ...ATEXIT_HANDLERS under
781 Add new CYGSEM_LIBC_EXIT_CALLS_FFLUSH option
782 Require CYGSEM_LIBC_STARTUP_MAIN_THREAD for "Invoke default static
785 * src/stdlib/atexit.cxx:
786 Support above CYGFUN_LIBC_ATEXIT and QA changes
788 * src/stdlib/exit.cxx:
789 Support for above new libc.h options, and some QA changes
791 * src/support/cstartup.cxx:
792 Add support for new CYGSEM_LIBC_STARTUP_MAIN_THREAD option
794 * src/support/mainthread.cxx:
795 Override main stack size if the HAL has a minimum
797 * src/string/strncpy.cxx:
798 Use improved algorithm for aligned copies - imported from newlib
801 * src/stdlib/abort.cxx:
802 Support raise(SIGABRT), and some QA
807 * tests/stdlib/abs.c:
810 1999-02-04 Jesper Skov <jskov@cygnus.co.uk>
812 * src/support/cstartup.cxx: Only define cyg_libc_main_thread when
813 the kernel is around.
815 1999-02-01 Jesper Skov <jskov@cygnus.co.uk>
817 * tests/time/clock.c: Joined the two test/NOP checks into
819 Increased tolerance in attempt to fix PRs 18737,18787,18846.
822 1999-01-28 Jonathan Larmour <jlarmour@cygnus.co.uk>
824 * src/string/strtok.cxx:
825 * src/stdlib/rand.cxx:
826 Include <pkgconf/kernel.h> if we use kernel header files
828 1999-01-25 Jonathan Larmour <jlarmour@cygnus.co.uk>
830 * tests/stdio/sscanf.c (test):
831 CYGSEM_LIBC_STDIO_PRINTF_FLOATING_POINT should be
832 CYGSEM_LIBC_STDIO_SCANF_FLOATING_POINT
835 * src/string/strtok.cxx:
836 * src/stdio/common/stdiofiles.cxx:
837 * src/errno/errno.cxx:
838 * src/stdlib/rand.cxx:
839 Give mutex protection objects a libc constructor priority
841 * src/support/invokemain.cxx:
842 Add prototype for cyg_hal_invoke_constructors()
844 * src/support/mainthread.cxx:
845 Give cyg_libc_dummy_constructor_obj a libc constructor priority,
846 and make its class have a public constructor
848 * src/stdio/common/stderr.cxx:
849 * src/stdio/common/stdout.cxx:
850 * src/stdio/common/stdin.cxx:
851 Give cyg_libc_stdio_stdin/out/err static objects a libc constructor
854 * src/clibincl/streambuf.hxx (class Cyg_StdioStreamBuffer):
855 * src/clibincl/stream.hxx (class Cyg_StdioStream):
856 Remove private copy constructor. Needed to make prioritised
857 static constructors work. Fix for PR 18898
859 1999-01-22 Jonathan Larmour <jlarmour@cygnus.co.uk>
861 * src/errno/errno.cxx:
862 Include pkgconf/kernel.h otherwise it fails with per-thread errno
865 * include/pkgconf/libc.h:
866 Enable per-thread errno by default since that is what POSIX would
869 * tests/time/clock.c (test):
870 Placate compiler by initializing clock_first/second/third anyway,
871 even though they won't be in practice. This is only a test program
872 so adding an extra instruction doesn't matter.
874 * src/i18n/locale.cxx (_setlocale):
875 Placate compiler, since it is dumb, by nesting, not serializing, if's
876 This is an idempotent change, but screws up the formatting :-(.
878 * src/string/strpbrk.cxx (_strpbrk):
879 Change while loop to do loop to placate compiler. It'll even save an
880 instruction too (wow!)
882 1999-01-22 John Dallaway <jld@cygnus.co.uk>
884 * include/pkgconf/libc.h:
885 Add closing curly brace to CYGPKG_LIBC_STRING_STRTOK definition
887 1999-01-21 Jonathan Larmour <jlarmour@cygnus.co.uk>
890 Tidy up and add to header description
891 Change cyg_get_errno_p() to cyg_libc_get_errno_p()
892 Remove ifdef CYGPKG_LIBC
894 * include/sys/file_if.h:
895 Remove - move contents to stdio.h
898 Tidy up header description
899 Move FILE typedef here from sys/file_if.h
900 SEEK_SET, SEEK_CUR, SEEK_END defined to 0, 1, 2 respectively
901 for backwards compatibility with old UNIX
902 Change definitions of stdin/out/err to be addresses of FILE
903 globals - even though they're actually Cyg_StdioStream it'll work
905 * include/pkgconf/libc.h:
906 Make CYGPRI_LIBC_WEAK et al macros depend on new ones in infra
907 Reorganise trace options under the individual components they are
909 Reorganise thread-safety options under the individual components
910 they are associated with.
911 Add new CYGSEM_LIBC_INVOKE_DEFAULT_STATIC_CONSTRUCTORS option
913 Remove dependency on pkgconf/kernel.h - Configuration Tool will
914 generate check macros anyway.
915 Remove CYGPKG_LIBC_TRACE, CYGFUN_LIBC_strtok, CYGPKG_LIBC_RAND
917 Tidy up description header
919 * src/clibincl/clibdata.hxx:
920 * src/clibincl/clibdata.inl:
921 * src/support/clibdata.cxx:
922 Remove and instead rely on each component to initialise its own data
924 * src/clibincl/stdiofiles.hxx, src/clibincl/stdiofiles.inl:
925 New files to contain global file list and lock (if applicable).
926 Implemented as class with member access functions
928 * src/errno/errno.cxx:
929 Reorganise with self-contained per-thread data, if applicable
930 Remove ifdef CYGPKG_LIBC
931 Tidy up description header
932 Rename cyg_get_errno_p() to cyg_libc_get_errno_p()
934 * src/stdio/common/fclose.cxx:
935 * src/stdio/common/fflush.cxx:
936 * src/stdio/common/fopen.cxx:
937 * src/stdio/common/freopen.cxx:
938 Remove ifdef CYGPKG_LIBC
939 Use new global file access method from stdiofiles.hxx
940 Tidy up description header
941 Use new CYGBLD_ATTRIB_WEAK_ALIAS
942 Access errno "normally" rather than clibdata way
944 * src/stdio/common/stdin.cxx:
945 * src/stdio/common/stdout.cxx
946 * src/stdio/common/stderr.cxx:
947 New files. Implement Cyg_StdioStream objects for each stream. In
948 separate self-contained files so using one doesn't bring in the
951 * src/stdio/common/stdiofiles.cxx:
952 New file. Implements global files array and lock
954 * src/stdlib/_exit.cxx:
955 Tidy up description header
956 Remove ifdef CYGPKG_LIBC
957 Use infra CYGBLD* macros
959 * src/stdlib/malloc.cxx:
960 Tidy up description header
961 Remove ifdef CYGPKG_LIBC
962 Add pkgconf/kernel.h now that pkgconf/libc.h doesn't have it
963 Use infra CYGBLD* macros
964 Make pool visible externally with weak attribute and new name
965 cyg_libc_malloc_memorypool
967 * src/stdlib/rand.cxx:
968 * src/stdlib/strtok.cxx:
969 Reorganise with self-contained per-thread data, if applicable
970 Remove ifdef CYGPKG_LIBC
971 Tidy up description header
972 Use infra CYGBLD* macros
974 * src/support/cstartup.cxx:
975 Split into smaller files to make selective linking work better,
976 fix i386 port problem and make GDB happy
978 * src/support/environ.cxx:
979 * src/support/invokemain.cxx:
980 * src/support/main.cxx:
981 * src/support/mainthread.cxx:
982 New files from bits of the old cstartup.cxx
983 Add support for CYGSEM_HAL_STOP_CONSTRUCTORS_ON_FLAG
986 Update to reflect file additions/deletion
988 * tests/stdlib/rand1.c:
989 * tests/stdlib/rand2.c:
990 * tests/stdlib/rand3.c:
991 * tests/stdlib/srand.c:
992 Make conform to coding standards
993 Remove ifdef CYGPKG_LIBC_RAND
994 Tidy up description header
996 * tests/string/strtok.c:
997 Make conform to coding standards
998 Remove ifdef CYGFUN_LIBC_strtok
999 Tidy up description header
1001 1999-01-15 Mark Galassi <rosalia@cygnus.com>
1003 * tests/stdlib/getenv.c (main): added tests for the case in which
1004 the user does not supply environ and in which the user supplies a
1007 1999-01-15 Jesper Skov <jskov@cygnus.co.uk>
1009 * src/support/cstartup.cxx: Added workaround for weak aliasing
1010 problem in i386 gcc.
1013 1999-01-15 Gary Thomas <gthomas@cygnus.co.uk>
1015 * include/pkgconf/libc.h (CYGNUM_LIBC_MAIN_STACK_SIZE):
1016 (CYGNUM_LIBC_MALLOC_MEMPOOL_SIZE): Change defaults to be
1017 more reasonable on small systems.
1019 1999-01-04 Jonathan Larmour <jlarmour@cygnus.co.uk>
1021 * src/support/clibdata.cxx:
1022 Minor bug with environ not being initialised correctly by
1025 1998-12-24 Bart Veer <bartv@cygnus.co.uk>
1027 * src/clibincl/stream.inl (Cyg_StdioStream):
1028 check_this() member functions should now be const
1030 1998-12-22 Jonathan Larmour <jlarmour@cygnus.co.uk>
1032 * src/string/memchr.cxx (_memchr):
1033 treat search value parameter to memchr as an unsigned byte,
1034 not a signed int - copied fix from newlib PR 18471
1036 1998-12-21 Jonathan Larmour <jlarmour@cygnus.co.uk>
1038 * tests/stdlib/realloc.c:
1039 * tests/stdlib/malloc3.c:
1040 * tests/stdlib/malloc2.c:
1043 1998-12-14 Jonathan Larmour <jlarmour@cygnus.co.uk>
1045 * tests/stdlib/malloc2.c, tests/stdlib/malloc3.c,
1046 tests/stdlib/realloc.c:
1047 Only run these tests when we have a coalescing memory allocator
1049 1998-12-14 Jonathan Larmour <jlarmour@cygnus.co.uk>
1051 * src/stdio/common/stream.cxx:
1052 Only check buffer init success if buffering
1054 * src/stdio/common/streambuf.cxx (set_buffer):
1055 Check for diff of requested size against buffer_size, not
1056 get_buffer_size(), since this may return -1, which won't be
1057 equal to size, and will cause malloc to be called
1059 1998-12-01 Jesper Skov <jskov@cygnus.co.uk>
1061 * tests/stdlib/getenv.c (main): Don't declare variables when they
1064 Thu Nov 26 17:59:12 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1066 * tests/string/strncpy1.c:
1067 Fix off-by-one error since it called my_strcmp() and not
1068 my_strncmp(), which meant in included the trailing NULL when it
1071 1998-11-26 Jesper Skov <jskov@cygnus.co.uk>
1073 * src/stdlib/qsort.cxx (_qsort):
1074 * src/stdlib/rand.cxx (_srand):
1075 Changed CYG_REPORT_FUNCNAMETYPE to CYG_REPORT_FUNCNAME in void
1078 Mon Oct 26 18:49:00 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1080 * src/support/cstartup.cxx (cyg_libc_dummy_main):
1081 Silence compiler warning with cast of char * to CYG_ADDRWORD
1083 Wed Oct 28 17:31:21 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1085 * src/time/clock.cxx (_clock):
1086 Reorder scaling expression as it was both incorrect and risked
1090 Mon Oct 19 14:40:06 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1092 * include/stdio.h (EOF):
1093 Change from -64 to (-1), to allow broken code to work :-/
1094 Also change other negative defines to be within parentheses
1096 1998-10-19 Mark Galassi <rosalia@cygnus.com>
1098 * include/pkgconf/libc.h: updated the doc URL
1100 Thu Oct 15 21:33:44 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1102 * src/clibincl/clibdata.hxx:
1103 Only include kernel thread headers when we're in thread-safe mode
1105 * src/time/clock.cxx:
1106 Only include kernel clock headers if there's a kernel with the
1107 right functionality available
1109 * tests/time/clock.c:
1110 Remove unnecessary inclusion of <pkgconf/kernel.h>
1112 Above changes are required for PR 17229
1114 Wed Oct 14 16:38:55 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1116 * src/clibincl/clibdata.hxx, src/clibincl/clibdata.inl:
1117 Conditionalise inclusion of clibincl/stdiosupp.hxx and
1118 clibincl/stream.hxx. Tidying up PR 17502
1120 Wed Oct 14 14:08:56 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1122 * include/pkgconf/libc.h:
1123 Rename CYGPKG_LIBC_STRING_OPTIMISATIONS to
1124 CYGPKG_LIBC_STRING_OPTIMIZATIONS to make it truely merkin.
1126 Tue Oct 13 19:34:41 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1128 * include/pkgconf/libc.h (CYGDAT_LIBC_ARGUMENTS):
1129 Add a default argv[0] of "" as many programs assume argc>0
1130 The standard allows argv[0] to be "" if the program name
1133 1998-09-26 Bart Veer <bartv@cygnus.co.uk>
1135 * src/clibincl/stdiosupp.hxx:
1136 PR 17502: this header file now does nothing if the stdio option
1137 is disabled completely. This is the same behaviour is
1138 clibincl/stream.hxx, although arguably the #ifdef protection
1139 should happen wherever the header file is #include'd rather than
1140 in the header file itself.
1142 * src/clibincl/clibdata.hxx:
1143 PR 17502: this header file still #include's internal stdio-related
1144 header files and references the FILE structure, even if stdio is
1145 disabled. There were some #ifdef's for CYGPKG_LIBC_STDIO already.
1146 One more has been added for _fopen() and _fclose().
1148 1998-09-25 Bart Veer <bartv@cygnus.co.uk>
1150 * src/clibincl/streambuf.inl (Cyg_StdioStreamBuffer):
1151 PR 17487: Reorder the calls to initialize member fields, to
1152 eliminate a compiler warning.
1154 Fri Sep 25 19:04:29 1998 Jonathan Larmour <jlarmour@peshwari.cygnus.co.uk>
1156 * src/errno/errno.cxx, src/stdlib/bsearch.cxx,
1157 src/stdlib/qsort.cxx, src/stdlib/rand.cxx, src/string/strtok.cxx,
1159 Only define tracing variable and tracing level macro when
1160 the relevant tracing level config options are set. Otherwise
1161 keep the tracing level fixed at 0
1164 * include/pkgconf/libc.h:
1165 Define trace levels only if parent CYGPKG_LIBC_TRACE is defined
1166 for consistency with Configuration Tool
1169 Fri Sep 25 17:24:45 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1171 * src/stdio/common/stdioinlines.cxx:
1172 Make definition of vscanf() dependent on CYGFUN_LIBC_STDIO_ungetc
1173 otherwise _vfscanf() won't be compiled. This therefore would
1174 cause a link fail iff selective linking is not enabled.
1177 Fri Sep 25 17:23:17 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1179 * src/stdlib/rand.cxx:
1180 Make compilation dependent on CYGPKG_LIBC_RAND
1183 * tests/stdlib/srand.c:
1184 Make definition of dummy test pass conditional on CYGPKG_LIBC_RAND
1185 not being defined, as well as CYGPKG_LIBC
1186 Caused compilation failure when testing PR 17473 fix
1188 Mon Sep 21 17:11:04 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1190 * tests/stdio/sscanf.c:
1191 Make sscanf test conditional on CYGFUN_LIBC_STDIO_ungetc since
1192 _vfscanf() only gets compiled if this is defined
1195 1998-09-20 Mark Galassi <rosalia@cygnus.com>
1197 * include/pkgconf/libc.h: updated CDL doc strings.
1199 Fri Sep 18 22:18:47 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1201 * src/clibincl/clibdata.inl (get_errno_p):
1202 Rather than this function only being available in thread-safe mode,
1203 instead make what it returns be either the per-thread errno, or
1204 global errno depending on the configuration.
1205 Include <errno.h> (conditionally) to support this change
1207 Wed Sep 16 11:20:31 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1209 * include/pkgconf/libc.h:
1210 Remove "fix me" comment which I forgot to remove before
1212 Tue Sep 15 19:27:57 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1214 * include/pkgconf/libc.h:
1215 Updated descriptions and a few other minor things after review.
1216 Notably though, the NDEBUG config option has been removed
1218 1998-09-15 Bart Veer <bartv@cygnus.co.uk>
1220 * include/pkgconf/libc.h:
1221 PR 17201: removed dependency on CYGPKG_KERNEL in the option
1222 CYGNUM_LIBC_MAIN_STACK_SIZE, since the actual dependencies cannot
1223 be expressed sensibly in the current system.
1225 1998-09-11 Bart Veer <bartv@cygnus.co.uk>
1227 * include/pkgconf/libc.h:
1228 Sorting out dependencies for error package.
1230 1998-09-10 Mark Galassi <rosalia@cygnus.com>
1232 * include/pkgconf/libc.h: started adding doc fields to the
1233 cdl_package data, as a pilot for now.
1235 Wed Sep 9 17:41:23 1998 Hugo Tyson <hmt@cygnus.co.uk>
1237 * include/pkgconf/libc.h:
1238 Add option CYGIMP_LIBC_MALLOC_CXX_DELETE_CALLS_FREE to explicitly
1239 control whether the empty delete functions (currently) in
1240 kernel/.../common/delete.cxx are enabled; controls code bloat, see
1241 the comments in delete.cxx.
1243 Fri Sep 4 16:43:38 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1245 * tests/stdio/stdiooutput.c:
1246 Add a default CYG_TEST_PASS() to make sure the test infra doesn't
1248 Also remove the unused string functionsa
1250 Fri Sep 4 15:43:48 1998 Hugo Tyson <hmt@cygnus.co.uk>
1252 * src/stdlib/exit.cxx (__libc_exit):
1253 * src/stdlib/_exit.cxx (__libc__exit):
1254 * src/stdlib/malloc.cxx (_free):
1255 * src/stdlib/abort.cxx (abort):
1256 * src/support/cstartup.cxx (invoke_main):
1257 Tracing system asserted cos it was being called incorrectly; these
1258 are void functions so you shouldn't give a type to the function
1261 Fri Sep 4 15:03:10 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1263 * include/pkgconf/libc.h:
1264 Fix CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE description to refer to
1265 the table.cxx file, not table.h
1267 Fri Sep 4 14:38:52 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1269 * include/pkgconf/libc.h:
1270 Add description for CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE since
1271 Proven won't be making any changes to the device driver
1272 implementation after all.
1275 * src/clibincl/stream.inl (set_position):
1276 Remove "fix me" line. It is obvious that this will have to change
1277 with a filesystem interface
1280 * src/stdio/common/freopen.cxx:
1281 Remove "fix me" - I know about this issue
1284 * src/stdio/common/stream.cxx (read):
1285 Remove "fix me" and change to use memcpy
1288 Fri Sep 4 14:36:47 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1290 * tests/stdio/stdiooutput.c:
1291 Actually add it this time!
1293 Fri Sep 4 13:48:13 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1295 * tests/stdio/stdiooutput.c:
1296 Add new tests for misc stdio output functions
1298 * tests/PKGconf.mak:
1299 Build stdiooutput.c test
1301 Fri Sep 4 12:52:10 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1303 * src/clibincl/stream.inl (write_byte):
1306 * tests/stdlib/getenv.c (main):
1307 Check whether str is NULL before doing a strcmp()
1309 * tests/stdio/sprintf2.c (main):
1310 Reformat to 76 columns
1312 Fri Sep 4 02:10:54 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1314 * src/clibincl/stream.hxx, src/stdio/common/stream.cxx:
1315 Add new peek_byte method to Cyg_StdioStream
1317 * src/stdio/input/vfscanf.cxx (_vfscanf):
1318 Fix up buffer access to work with new peek_byte method above
1321 Thu Sep 3 19:40:11 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1323 * tests/stdlib/rand1.c, tests/stdlib/rand2.c,
1324 tests/stdlib/rand3.c:
1325 Add extra check for CYGPKG_LIBC_RAND to decide whether the test
1326 is applicable or not
1328 * tests/stdlib/rand2.c (test):
1329 Use CYGNUM_LIBC_RAND_SEED for default seed, not 1
1331 * tests/string/strtok.c:
1332 Add extra check for CYGFUN_LIBC_strtok to decide whether the
1333 test is applicable or not
1335 Wed Sep 2 19:11:40 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1337 * src/stdio/input/fread.cxx, src/stdio/output/fwrite.cxx:
1338 Add fread() and fwrite() functions
1341 Build fread.cxx and fwrite.cxx from above
1343 * src/stdio/common/stream.cxx:
1344 Reformat to 76 columns
1345 In write(), move initialisation of *bytes_written to start
1346 In read(), move initialisation of *bytes_read to start
1349 Reformat to 76 columns
1351 Replace all references to the ANSI
1352 standard to instead by the ISO C standard
1354 Add commented argument names for "documentation"
1356 Add fread() and fwrite() prototypes
1358 * src/clibincl/stdiosupp.hxx:
1359 Copy the above changes from stdio.h, and add _fread() and _fwrite()
1362 * src/stdio/output/fputs.cxx, src/stdio/input/fgets.cxx:
1363 Reformat to 76 columns
1365 Wed Sep 2 15:41:15 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1367 * src/stdio/input/vfscanf.cxx:
1368 Reformat to 76 columns
1370 Wed Sep 2 14:46:18 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1372 * src/stdio/common/fflush.cxx:
1373 Use trylock_me() instead of lock_me(), and loop to prevent
1376 * src/clibincl/stream.hxx, src/clibincl/stream.inl:
1377 Add trylock_me() method
1379 * src/clibincl/stream.hxx, src/clibincl/stream.inl,
1380 src/stdio/common/fflush.cxx:
1381 Reformat to 76 columns
1383 Wed Sep 2 12:24:27 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1385 * include/pkgconf/libc.h:
1386 Change 0x7fff to 0x7fffffff. Oops!
1387 give main stack size option a legal_values field
1388 Undefine tracing by default
1389 Add some more description in the header
1391 Tue Sep 1 20:02:07 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1393 * tests/i18n/setlocale.c (cyg_package_start):
1394 Fix typo - extra "x" for no reason at all! :-)
1396 Tue Sep 1 19:44:58 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1398 * src/i18n/locale.cxx:
1399 Fix bug in find_locale_data() that miscalculated size of
1402 Make find_locale_data() match the locale "" and add some
1403 other things in _setlocale() to ensure that "C" gets returned
1404 when the default locale "" is passed.
1406 Only check the locale pointer when it is non-NULL
1408 * tests/i18n/setlocale.c:
1409 New tests for setlocale()
1411 * tests/PKGconf.mak:
1412 Update to build setlocale.c test
1414 * src/support/cstartup.cxx:
1415 Don't actually call system default main() "main" otherwise GDB
1416 gets confused and thinks its the entry point. Instead make a weak
1417 alias and call the real function something different.
1419 Tue Sep 1 18:31:42 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1421 * src/i18n/locale.cxx (_setlocale):
1422 Fix tracing macro name and remove "str maybe used before
1423 initialised" warning
1425 * tests/stdlib/qsort.c:
1426 Correct file description header
1428 Tue Sep 1 17:04:32 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1430 * include/locale.h, src/clibincl/i18nsupp.hxx, src/i18n/locale.cxx:
1431 New files to add support for locales as defined by the ISO C
1432 standard. i.e. setlocale() and localeconv() functions and some
1435 * include/pkgconf/libc.h:
1436 Add CYGNUM_LIBC_MAX_LOCALE_NAME_SIZE config option for locale
1442 * include/errno.h, src/clibincl/ctypesupp.hxx:
1443 Tidy up to 76 columns
1445 Tue Sep 1 00:24:22 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1447 * include/pkgconf/libc.h:
1448 Move environment-related options from stdlib into new
1449 CYGPKG_LIBC_STARTUP component. Also add options for main()'s
1450 arguments (CYGPKG_LIBC_ARGUMENTS), main()'s default stack size
1451 (CYGNUM_LIBC_MAIN_STACK_SIZE), number of atexit handlers
1452 (CYGNUM_LIBC_ATEXIT_HANDLERS), and whether _exit() stops the
1453 system (CYGSEM_LIBC_EXIT_STOPS_SYSTEM).
1455 * src/clibincl/stdlibsupp.hxx:
1456 Fix a few comment bugs, and add new
1457 cyg_libc_invoke_atexit_handlers() function prototype
1459 * src/stdlib/_exit.cxx, src/stdlib/atexit.cxx, src/stdlib/exit.cxx:
1460 Implement exit(), atexit() and _exit() correctly now. Also
1461 includes cyg_libc_invoke_atexit_handlers() in atexit.cxx. Now
1462 we get the correct behaviour of atexit(), and exit() invokes the
1463 atexit handlers and fflushs all the stdio streams. Add plenty of
1464 tracing of asserts too.
1466 * src/support/cstartup.cxx:
1467 Make main_thread object an exported global. Allow user-settable
1468 arguments. Add MUCH more tracing and asserts. Improve comments.
1469 Tidy up to 76 columns
1471 * tests/stdlib/atexit.c:
1472 Add simple test for atexit() and it calling registered functions
1474 * tests/PKGconf.mak:
1477 Mon Aug 31 18:54:48 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1479 * src/stdlib/getenv.cxx, tests/stdlib/getenv.c:
1480 Add support for getenv(), and some tests to ensure it works
1482 * src/PKGconf.mak, tests/PKGconf.mak:
1483 Update to include getenv.cxx and getenv.c test
1485 * src/clibincl/clibdata.hxx:
1486 remove prototype for environ - we expect files needing it to
1487 define it themselves
1489 * src/support/clibdata.cxx:
1490 Tidy up to 76 columns and add definition of char **environ, but
1491 with a configurable initialiser (see libc.h below)
1493 * tests/stdlib/abs.c (main):
1494 Tidy up to 76 columns
1496 * src/stdlib/malloc.cxx:
1497 Tidy up to 76 columns and remove warning for undefined _memcpy()
1498 by changing to memcpy(), and casting away signedness
1500 * include/pkgconf/libc.h:
1501 Add CYGPKG_LIBC_ENVIRONMENT and CYGDAT_LIBC_DEFAULT_ENVIRONMENT
1502 configuration options
1504 * include/pkgconf/libc.h, src/clibincl/clibdata.hxx:
1505 Tidy up to 76 columns
1508 Add getenv() prototype and tidy up to 76 columns
1510 * src/clibincl/stdlibsupp.hxx:
1511 Add _getenv() prototype
1513 Mon Aug 31 13:37:08 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1515 * src/stdlib/malloc.cxx:
1518 * tests/stdlib/realloc.c:
1519 Add this file to test new realloc() functionality
1521 * tests/PKGconf.mak:
1524 * tests/stdlib/malloc3.c (main), tests/stdlib/malloc2.c (main),
1525 tests/stdlib/malloc1.c (main):
1526 Conditionalise local vars to prevent warnings
1528 * tests/stdlib/malloc3.c (fill_with_data):
1529 Move '{' into "verb" line
1531 * include/pkgconf/libc.h:
1532 Require infra tracing support to allow tracing
1537 * src/clibincl/stdlibsupp.hxx:
1538 Update the commented argument names from stdlib.h, including realloc()
1540 1998-08-28 Bart Veer <bartv@cygnus.co.uk>
1542 * include/pkgconf/libc.h:
1543 * src/clibincl/clibdata.hxx, src/time/clock.cxx:
1545 Updated for new kernel configuration option symbol names
1547 Fri Aug 28 19:18:25 1998 Hugo Tyson <hmt@cygnus.co.uk>
1549 Changed the entry below to sat "tx39" instead of "mn10300".
1550 It's been a long week.
1552 Fri Aug 28 18:59:20 1998 Hugo Tyson <hmt@cygnus.co.uk>
1554 * src/support/cstartup.cxx: Add a weakly named main to allow the
1555 default configuration to link on the tx39 which has no
1556 scalextric linking yet. The static Cyg_Thread main_thread object
1557 below continues to exist, though unreferenced, so all its
1558 descendants must exist too.
1560 Fri Aug 28 08:54:29 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1563 Add commented argument names Add exit(), and atexit(). And move
1564 these along with abort() and _exit() to a new section.
1566 * src/stdlib/atexit.cxx, src/stdlib/exit.cxx:
1567 Add trivial versions of atexit() and exit()
1569 * include/pkgconf/libc.h:
1570 Add CYGNUM_LIBC_MAIN_STACK_SIZE config option
1572 * include/sys/cstartup.h, src/support/cstartup.cxx, src/PKGconf.mak:
1573 New files to provide a new function cyg_iso_c_support(), which
1574 invokes main "correctly".
1576 * tests/ctype/ctype.c, tests/setjmp/setjmp.c, tests/stdio/sprintf1.c,
1577 tests/stdio/sprintf2.c, tests/stdio/sscanf.c, tests/stdlib/abs.c,
1578 tests/stdlib/atoi.c, tests/stdlib/atol.c, tests/stdlib/bsearch.c,
1579 tests/stdlib/div.c, tests/stdlib/labs.c, tests/stdlib/ldiv.c,
1580 tests/stdlib/malloc1.c, tests/stdlib/malloc2.c,
1581 tests/stdlib/malloc3.c, tests/stdlib/qsort.c, tests/stdlib/rand1.c,
1582 tests/stdlib/rand2.c, tests/stdlib/rand3.c, tests/stdlib/srand.c,
1583 tests/stdlib/strtol.c, tests/stdlib/strtoul.c,
1584 tests/string/memchr.c, tests/string/memcmp1.c,
1585 tests/string/memcmp2.c, tests/string/memcpy1.c,
1586 tests/string/memcpy2.c, tests/string/memmove1.c,
1587 tests/string/memmove2.c, tests/string/memset.c,
1588 tests/string/strcat1.c, tests/string/strcat2.c,
1589 tests/string/strchr.c, tests/string/strcmp1.c,
1590 tests/string/strcmp2.c, tests/string/strcoll1.c,
1591 tests/string/strcoll2.c, tests/string/strcpy1.c,
1592 tests/string/strcpy2.c, tests/string/strcspn.c,
1593 tests/string/strlen.c, tests/string/strncat1.c,
1594 tests/string/strncat2.c, tests/string/strncpy1.c,
1595 tests/string/strncpy2.c, tests/string/strpbrk.c,
1596 tests/string/strrchr.c, tests/string/strspn.c,
1597 tests/string/strstr.c, tests/string/strtok.c,
1598 tests/string/strxfrm1.c, tests/string/strxfrm2.c,
1601 Modify all tests to use new startup mechanism, and cyg_iso_c_start()
1603 Fri Aug 28 00:29:38 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1605 * src/stdio/common/stream.cxx:
1606 Add #ifdef CYGSEM_LIBC_STDIO_WANT_BUFFERED_IO around all accesses to
1607 flags.last_buffer_op_was_read. Fix for PR 16997
1609 Thu Aug 27 01:12:42 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1611 * include/sys/file_if.h:
1612 Fix comments and remove cyg_get_file_star()
1614 Wed Aug 26 20:24:32 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1616 * include/pkgconf/libc.h:
1617 Remove #define CYGPKG_LIBC is that is meant to live in
1618 <pkgconf/system.h> after all
1620 Wed Aug 26 19:39:23 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1622 * include/pkgconf/libc.h:
1623 More fixes to CDL stuff to make it work better, and look better on
1626 Tue Aug 25 20:21:41 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1628 * include/pkgconf/libc.h:
1629 Make some fixes after running the ConfigTool
1631 Tue Aug 25 16:46:28 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1633 * include/pkgconf/libc.h (CYGNUM_LIBC_STDIO_BUFSIZE):
1634 Fix typo of CYGNUM_LIBC_STDIO_BUFSIZE
1636 Tue Aug 25 15:10:57 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1638 * include/pkgconf/libc.h:
1639 Tidy up CDL stuff a bit more, prior to checking it actually works.
1641 Tue Aug 25 11:38:52 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1643 * tests/stdlib/malloc2.c (main):
1644 Prevent calls to CYG_TEST_STILL_ALIVE for now
1646 Tue Aug 25 05:39:28 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1648 * include/pkgconf/libc.h:
1649 Change cosmetic paragraph alignment.
1651 Tue Aug 25 03:11:34 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1653 * src/support/clibdata.cxx:
1654 Make stderr initialise with buffer size 0.
1657 Mon Aug 24 17:38:46 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1659 * include/pkgconf/libc.h:
1660 First pass at CDL-ifying the C library configuration. Currently
1661 deliberately disabled as there a few outstanding issues.
1663 Mon Aug 24 16:14:22 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1665 * src/stdio/output/vfnprintf.cxx (_vfnprintf):
1666 clear up warning for unused argument
1668 * tests/stdlib/malloc2.c (NUM_ITERATIONS):
1669 Lower to 100 from 50000 so it won't take too long under the simulator
1671 Thu Aug 20 17:48:43 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1673 * src/stdlib/malloc.cxx:
1674 Remove now unnecessary inclusion of kernel/ktypes.h
1676 Wed Aug 19 19:19:14 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1678 * tests/stdio/sprintf1.c, tests/stdio/sprintf2.c,
1679 tests/stdio/sscanf.c, tests/stdlib/atoi.c, tests/stdlib/atol.c,
1680 tests/stdlib/rand1.c, tests/stdlib/rand2.c, tests/stdlib/rand3.c,
1681 tests/stdlib/srand.c, tests/stdlib/strtol.c,
1682 tests/stdlib/strtoul.c, tests/string/strtok.c,
1684 Add parameters to "main()" to silence warnings
1686 Wed Aug 19 18:52:59 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1688 * src/stdio/common/stream.cxx (refill_read_buffer):
1689 Put conditional error check into same #ifdef and if as what was being
1690 checked in the first place!
1692 Wed Aug 19 18:49:19 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1694 * src/clibincl/stream.inl:
1695 Reorder Cyg_StdioStream::check_this() to be first to silence
1698 Tue Aug 18 16:10:03 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1700 * ecc/language/c/libc/current/src/clibincl/clibdata.hxx,
1701 ecc/language/c/libc/current/src/errno/errno.cxx,
1702 ecc/language/c/libc/current/src/stdio/common/fopen.cxx,
1703 ecc/language/c/libc/current/src/stdlib/rand.cxx,
1704 ecc/language/c/libc/current/src/string/strtok.cxx:
1705 Rename CYGIMP_LIBC_INTERNAL_DATA_PREAMBLE,
1706 CYGIMP_LIBC_INTERNAL_DATA_ALLOC_CHECK_PREAMBLE,
1707 CYGVAR_LIBC_INTERNAL_DATA, and
1708 CYGIMP_LIBC_INTERNAL_DATA_CHECK to all have CYGPRI_ prefix instead
1709 as recommended by the config name rules
1712 Tue Aug 18 14:31:19 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1714 * src/stdio/common/setvbuf.cxx (_setvbuf):
1715 Rename variable names in assert line, otherwise doesn't build
1718 Sun Aug 16 18:15:12 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1720 * src/stdio/input/vfscanf.cxx (_vfscanf):
1721 Fix some bugs, although there are some left to fix still. Unrelated
1722 to the rest of the checkins, so I will check the partial fix in now.
1724 * src/clibincl/stream.hxx, src/clibincl/stream.inl,
1725 src/stdio/common/stream.cxx:
1726 Add parameters to constructor to allow more things to be done at
1729 Now we have "new", remove separate "construct" method
1731 Add more documentation on constructor
1733 As requested by code review, where possible, move boolean flags
1734 into separate packed bitfield structure for space efficiency
1736 Make readbuf_char be usable all the time rather than when configured
1737 not to be buffering, as it is also needed for non-buffered mode i.e.
1740 * src/stdio/common/fopen.cxx:
1741 Change to use new method of construction from above, using new
1743 Use thread-specific data, rather than global. And so change errnos
1744 to access errno entry specifically
1746 Make process_mode() check for append mode too
1748 Reformat for coding standards to have { in same line as "verb"
1750 * src/stdio/common/setvbuf.cxx:
1752 Change to cope with different way of dealing with buffering policy
1753 flags etc. in Cyg_StdioStream
1755 * src/stdio/common/vsnprintf.cxx, src/stdio/common/vsscanf.cxx,
1756 src/support/clibdata.cxx:
1757 Change construction of streams to use new parameters added above,
1758 and change to use _IONBF mode for string stdio functions,
1759 otherwise its a waste of memory. And use _IONBF for stderr as the
1760 ISO standard tells us to!
1762 Reformat for coding standards to have { in same line as "verb"
1764 * src/clibincl/streambuf.hxx, src/clibincl/streambuf.inl:
1765 Change constructor so that it can be set with default size and
1766 dynamic buffer (if applicable)
1768 Fix minor bug in destructor - should only call free when allocated
1771 Change get_buffer_size to return -1 if the buffer was not allowed
1774 * src/stdio/common/streambuf.cxx:
1775 Remove unnecessary stdio.h include and add extra comment to whether
1776 to free bit in set_buffer()
1778 * src/stdio/common/freopen.cxx:
1779 Change @@@ to standard fix me string
1781 * src/stdio/output/fputc.cxx:
1782 Remove unnecessary "written" variable
1784 Thu Aug 13 15:37:28 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1786 * src/stdlib/_exit.cxx:
1787 Included use of "fix me" line to ensure this is discussed before
1790 * include/stdlib.h, src/stdlib/abort.cxx, src/PKGconf.mak:
1791 Add abort.cxx to implement abort(), albeit naively
1793 Thu Jul 30 18:03:09 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1795 * src/stdio/common/vsscanf.cxx (_vsscanf),
1796 src/stdio/common/vsnprintf.cxx (_vsnprintf):
1797 Fix initialiser of pseudo string device table that didn't get updated
1798 when the table changed (Bad proven, no biscuit).
1800 * src/clibincl/stream.inl (~Cyg_StdioStream):
1801 Move invalidation of magic_validity_word to after unlock_me(),
1802 otherwise it always fails!
1804 Tue Jul 28 21:29:53 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1806 * src/clibincl/clibdata.hxx:
1807 Shorten over-long lines
1809 Tue Jul 28 20:28:23 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1811 * src/clibincl/stream.hxx (class Cyg_StdioStream),
1812 src/clibincl/stream.inl, src/stdio/common/stream.cxx:
1813 Clarify some comments and get the CYGDBG_DEFINE_CHECK_THIS and
1814 CYG_ASSERTCLASS stuff going
1816 * src/clibincl/stream.inl:
1817 Put '{'s on same line as "action" as per coding standards
1818 Shorten over-long lines
1820 Tue Jul 28 15:31:06 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1822 * src/clibincl/streambuf.inl, src/stdio/common/streambuf.cxx:
1823 Move set_buffer() from streambuf.inl to new file streambuf.cxx
1825 * src/PKGconf.mak (COMPILE):
1826 Build new file streambuf.cxx
1828 * src/clibincl/streambuf.hxx (class Cyg_StdioStreamBuffer):
1831 * src/stdio/common/stream.cxx:
1832 Put '{'s on same line as "action" as per coding standards
1833 Shorten over-long lines
1835 Tue Jul 28 00:26:36 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1837 * include/stdlib.inl, src/stdio/input/vfscanf.cxx,
1838 src/stdio/output/vfnprintf.cxx, src/stdlib/div.cxx,
1839 src/stdlib/ldiv.cxx, src/stdlib/qsort.cxx, src/stdlib/strtol.cxx,
1840 src/stdlib/strtoul.cxx, src/string/strtok.cxx:
1842 Include proper Berkeley license inline in the file, rather than
1843 referring to an external file
1846 Remove, now that it isn't referred to any more
1848 Mon Jul 27 23:34:26 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1850 * include/ctype.h, include/ctype.inl, include/errno.h,
1851 include/stdio.h, include/stdio.inl, include/stdlib.h,
1852 include/stdlib.inl, include/string.h, include/string.inl,
1853 include/time.h, include/sys/file_if.h, src/PKGconf.mak,
1854 src/clibincl/clibdata.hxx, src/clibincl/clibdata.inl,
1855 src/clibincl/ctypesupp.hxx, src/clibincl/stdiosupp.hxx,
1856 src/clibincl/stream.hxx, src/clibincl/streambuf.hxx,
1857 src/clibincl/streambuf.inl, src/clibincl/stringsupp.hxx,
1858 src/clibincl/timesupp.hxx, src/ctype/isalnum.cxx,
1859 src/ctype/isalpha.cxx, src/ctype/iscntrl.cxx,
1860 src/ctype/isdigit.cxx, src/ctype/isgraph.cxx,
1861 src/ctype/islower.cxx, src/ctype/isprint.cxx,
1862 src/ctype/ispunct.cxx, src/ctype/isspace.cxx,
1863 src/ctype/isupper.cxx, src/ctype/isxdigit.cxx,
1864 src/ctype/tolower.cxx, src/ctype/toupper.cxx,
1865 src/errno/errno.cxx, src/stdio/common/snprintf.cxx,
1866 src/stdio/common/sprintf.cxx, src/stdio/common/sscanf.cxx,
1867 src/stdio/common/stdioinlines.cxx, src/stdio/common/stream.cxx,
1868 src/stdio/common/ungetc.cxx, src/stdio/common/vsnprintf.cxx,
1869 src/stdio/common/vsscanf.cxx, src/stdio/input/fgetc.cxx,
1870 src/stdio/input/fgets.cxx, src/stdio/input/fscanf.cxx,
1871 src/stdio/input/gets.cxx, src/stdio/input/scanf.cxx,
1872 src/stdio/output/fnprintf.cxx, src/stdio/output/fprintf.cxx,
1873 src/stdio/output/fputc.cxx, src/stdio/output/fputs.cxx,
1874 src/stdio/output/printf.cxx, src/stdlib/_exit.cxx,
1875 src/stdlib/abs.cxx, src/stdlib/atof.cxx, src/stdlib/atoi.cxx,
1876 src/stdlib/atol.cxx, src/stdlib/div.cxx, src/stdlib/labs.cxx,
1877 src/stdlib/ldiv.cxx, src/stdlib/rand.cxx, src/stdlib/strtod.cxx,
1878 src/string/memchr.cxx, src/string/memcmp.cxx,
1879 src/string/memmove.cxx, src/string/strcat.cxx,
1880 src/string/strchr.cxx, src/string/strcmp.cxx,
1881 src/string/strcoll.cxx, src/string/strcpy.cxx,
1882 src/string/strcspn.cxx, src/string/strlen.cxx,
1883 src/string/strncat.cxx, src/string/strncmp.cxx,
1884 src/string/strncpy.cxx, src/string/strpbrk.cxx,
1885 src/string/strrchr.cxx, src/string/strspn.cxx,
1886 src/string/strstr.cxx, src/string/strsuppt.cxx,
1887 src/string/strtok.cxx, src/string/strxfrm.cxx,
1888 src/support/clibdata.cxx, src/time/clock.cxx:
1891 Mon Jul 27 23:14:18 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1893 * src/errno/errno.cxx, src/stdio/input/vfscanf.cxx,
1894 src/stdio/output/vfnprintf.cxx, src/stdlib/strtol.cxx,
1895 src/stdlib/strtoul.cxx, src/stdlib/malloc.cxx, src/stdlib/qsort.cxx,
1896 tests/ctype/ctype.c, tests/stdlib/rand3.c, tests/stdlib/malloc3.c:
1897 Remove all mentions of "register" in variable declarations. Also
1898 untabify where needed
1900 * src/stdlib/bsearch.cxx:
1904 Mon Jul 27 22:18:51 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1906 * src/stdio/output/fputc.cxx (_fputc):
1907 Replace call to stream write() with call to write_byte()
1909 * src/clibincl/stream.inl (write_byte):
1910 Add asserts for stream write() returning odd values for how much has
1913 (bytes_available_to_read):
1914 Remove "register" def for variable declaration
1916 Mon Jul 27 22:06:22 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1918 * src/stdio/common/stdiosupp.cxx:
1919 Remove #if 0'd cyg_get_file_star() and unnecessary pseudo string
1922 Mon Jul 27 21:57:25 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1924 * include/pkgconf/libc.h, src/support/clibdata.cxx:
1925 Change CYGXXX_LIBC_STDIO_DEFAULT_CONSOLE to
1926 CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE
1928 Mon Jul 27 21:49:23 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1930 * src/clibincl/clibdata.hxx, src/clibincl/clibdata.inl,
1931 src/clibincl/ctypesupp.hxx, src/clibincl/setjmpsupp.hxx,
1932 src/clibincl/stdiosupp.hxx, src/clibincl/stdlibsupp.hxx,
1933 src/clibincl/stream.hxx, src/clibincl/stream.inl,
1934 src/clibincl/streambuf.hxx, src/clibincl/streambuf.inl,
1935 src/clibincl/stringsupp.hxx, src/clibincl/timesupp.hxx:
1937 Change CYGONCE_LIBC_*_{HXX,INL} to CYGONCE_LIBC_CLIBINCL_*_{HXX,INL}
1939 Mon Jul 27 21:34:05 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1941 * include/pkgconf/libc.h:
1942 Change #define XXXXX 1 to #define XXXXX where applicable as per code
1945 Also remove obsolete CYGIMP_LIBC_THREAD_START_SUSPENDS_SELF
1947 Mon Jul 27 19:42:27 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1949 * src/stdio/common/fopen.cxx (_fopen):
1950 Use #ifdef, not #if for config options
1952 Mon Jul 27 15:01:51 BST 1998 Chris Provenzano <proven@cygnus.com>
1954 * src/stdio/common/stream.cxx, src/stdio/common/vsnprintf.cxx
1955 * src/stdio/common/vsscanf.cxx:
1956 Fixes to compile with the new Cyg_IORB field names.
1958 Thu Jul 9 03:40:21 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1960 * tests/stdlib/atoi.c, tests/stdlib/atol.c,
1961 tests/stdlib/strtol.c, tests/stdlib/strtoul.c:
1962 Adjust starting of tests to possibly start scheduler since
1963 strtol/stroul rely on errno, which may be a per-thread variable
1965 Thu Jul 9 03:06:25 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1967 * src/clibincl/stream.hxx, src/clibincl/stream.inl,
1968 src/stdio/common/stream.cxx, src/stdio/common/setvbuf.cxx:
1969 Consolidate read and write buffers into single buffer, as it should
1972 * src/clibincl/streambuf.hxx, src/clibincl/streambuf.inl:
1973 Add drain_buffer() method to speed up the case when we want the
1974 buffer completely emptied
1976 Tue Jul 7 21:26:33 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1978 * tests/stdio/sprintf1.c:
1979 Add a couple of new tests that check that very long strings work too
1981 Wed Jul 1 19:52:39 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1983 * src/clibincl/stream.hxx, src/clibincl/streambuf.hxx:
1984 Do not permit copy constructors
1986 * src/clibincl/stream.inl, src/stdio/common/fclose.cxx:
1987 Make sure we use #ifdef and not #if
1989 * src/clibincl/streambuf.inl:
1990 Use member initialisation list rather than explicit initialisation to
1993 Wed Jul 1 19:17:55 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1995 * include/pkgconf/libc.h and all files using config options:
1996 Rename configuration defines to make them more standard
1998 Thu Jun 25 20:09:30 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2000 * src/string/strcat.cxx:
2001 Add parentheses on check to silence warning
2002 (Verified by proven)
2004 Thu Jun 25 19:30:01 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2006 * src/stdlib/malloc.cxx:
2007 Make sure that the malloc pool is initialised before other things
2008 can use it. This is done with the hot new constructor ordering
2011 Thu Jun 25 18:27:03 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2013 * src/stdio/input/vfscanf.cxx:
2014 Remove bogus ifdef if floating point is _not_ wanted
2016 Thu Jun 25 17:31:42 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2018 * src/string/strtok.cxx:
2019 Fix argument checking to allow first argument of NULL
2021 Thu Jun 25 04:18:50 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2023 * src/clibincl/clibdata.inl (get_strtok_last_p):
2024 Remove bogus assertion
2026 * src/stdlib/malloc.cxx:
2027 Got sense of alignment check assertion the wrong way round, so negate
2030 Thu Jun 25 03:56:35 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2032 * src/string/strxfrm.cxx:
2033 Fix argument checking assertions with legitimate nulls here too
2035 Thu Jun 25 03:46:32 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2037 * src/stdlib/strtoul.cxx, src/stdlib/strtol.cxx:
2038 Fix argument checking assertions to cope with legitimate nulls
2040 Wed Jun 24 09:01:45 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2042 * tests/stdio/sprintf1.c:
2043 Remove extraneous info messages
2045 Wed Jun 24 05:59:17 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2047 * tests/stdio/sprintf1.c, tests/stdio/sprintf2.c, tests/stdio/sscanf.c,
2048 tests/stdlib/rand1.c, tests/stdlib/rand2.c, tests/stdlib/rand3.c,
2049 tests/stdlib/srand.c:
2051 Change large automatic arrays to static arrays to prevent overuse
2052 of a potentially small stack
2054 Wed Jun 24 05:45:28 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2056 * tests/stdio/sprintf1.c, tests/stdio/sprintf2.c, tests/stdio/sscanf.c,
2057 tests/stdlib/rand1.c, tests/stdlib/rand2.c, tests/stdlib/rand3.c,
2058 tests/stdlib/srand.c, tests/string/strtok.c, tests/time/clock.c:
2060 Increase thread stack size from 4K to 32K as in some cases it was
2064 Tue Jun 23 20:12:31 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2066 * tests/stdio/sscanf.c:
2067 Add extra tests, including floating point conversion testing
2069 Tue Jun 23 17:01:06 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2071 * src/string/strtok.cxx:
2072 Make sure this is only compiled if CYGFUN_LIBC_strtok is defined
2074 Tue Jun 23 06:10:13 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2076 * include/pkgconf/libc.h:
2077 add some comments - that's all
2079 * src/stdio/common/stream.cxx:
2080 fix case in refill_read_buffer() for what to do when there's nothing
2081 left. Now return EAGAIN
2083 * src/stdio/common/vsscanf.cxx, src/stdio/input/vfscanf.cxx:
2084 Get sscanf working properly and passing tests. Also make sure it
2085 ignores FP when its not configured
2087 * src/stdlib/atof.cxx:
2088 Only compile at all if strtod() is present
2091 Mon Jun 22 19:13:42 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2093 * src/clibincl/clibdata.hxx, src/clibincl/clibdata.inl:
2094 Conditionalise strtok_last and rand_seed better
2096 Mon Jun 22 14:14:12 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2098 * tests/stdlib/malloc3.c:
2099 Add test for checking that mallocing and freeing repeatedly works
2101 * tests/PKGconf.mak:
2102 Update to reflect addition of the above
2104 Mon Jun 22 13:09:33 BST 1998 Chris Provenzano <proven@cygnus.com>
2106 * src/stdio/common/fopen.cxx
2107 * src/stdio/common/stream.cxx
2108 * src/stdio/common/vsnprintf.cxx
2109 * src/stdio/common/vsscanf.cxx
2110 Include cyg/devs/common/iorb.h instead of iorb.hxx
2112 * src/stdio/common/stream.cxx
2113 Use read_blocking and write_blocking instead of just read and
2114 write when accessing devices through the virtual device table.
2116 Sun Jun 21 18:19:13 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2118 * src/stdio/common/stdioinlines.cxx:
2119 Propagate change of return code handling for puts from stdio.inl
2122 * src/stdio/output/fputc.cxx:
2123 make sure the right type is used for output - byte not int
2125 * src/support/clibdata.cxx:
2126 Fix #define config mistook. #endif was in wrong place
2128 Sun Jun 21 16:11:04 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2130 * src/clibincl/clibdata.hxx, src/clibincl/clibdata.inl:
2131 Allow explicit construction to get around a bug when
2132 dynamically allocating per-thread structure
2134 Sun Jun 21 16:02:51 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2136 * tests/ctype/ctype.c, tests/setjmp/setjmp.c, tests/stdio/sprintf1.c,
2137 tests/stdio/sprintf2.c, tests/stdio/sscanf.c, tests/stdlib/abs.c,
2138 tests/stdlib/atoi.c, tests/stdlib/atol.c, tests/stdlib/bsearch.c,
2139 tests/stdlib/div.c, tests/stdlib/labs.c, tests/stdlib/ldiv.c,
2140 tests/stdlib/malloc1.c, tests/stdlib/malloc2.c, tests/stdlib/qsort.c,
2141 tests/stdlib/rand1.c, tests/stdlib/rand2.c, tests/stdlib/rand3.c,
2142 tests/stdlib/srand.c, tests/stdlib/strtol.c, tests/stdlib/strtoul.c,
2143 tests/string/memchr.c, tests/string/memcmp1.c,
2144 tests/string/memcmp2.c, tests/string/memcpy1.c,
2145 tests/string/memcpy2.c, tests/string/memmove1.c,
2146 tests/string/memmove2.c, tests/string/memset.c,
2147 tests/string/strcat1.c, tests/string/strcat2.c,
2148 tests/string/strchr.c, tests/string/strcmp1.c,
2149 tests/string/strcmp2.c, tests/string/strcoll1.c,
2150 tests/string/strcpy1.c, tests/string/strcpy2.c,
2151 tests/string/strcspn.c, tests/string/strlen.c,
2152 tests/string/strncat1.c, tests/string/strncat2.c,
2153 tests/string/strncpy1.c, tests/string/strncpy2.c,
2154 tests/string/strpbrk.c, tests/string/strrchr.c,
2155 tests/string/strspn.c, tests/string/strstr.c, tests/string/strtok.c,
2156 tests/string/strxfrm1.c, tests/string/strxfrm2.c, tests/time/clock.c:
2158 Update tests to "do the right thing" with all configuration settings
2161 Sun Jun 21 04:54:14 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2163 * tests/setjmp/setjmp.c:
2164 I have to be careful not to use setjmp() in a way not exactly
2165 defined by the standard, so make sure I do, and add a comment
2166 documenting these ways.
2168 Also ensure this test does the right thing in all configurations
2170 Sun Jun 21 04:38:15 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2172 * include/pkgconf/libc.h:
2173 Add extra checks for invalid configurations
2174 Also make default for thread safety OFF
2176 * src/clibincl/clibdata.inl:
2179 * src/stdio/output/vfnprintf.cxx:
2180 Make printf of -0.0 floating point do the right thing
2182 Sun Jun 21 04:28:00 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2184 * src/stdio/common/snprintf.cxx, src/stdio/common/sprintf.cxx,
2185 src/stdio/common/sscanf.cxx, src/stdio/input/fscanf.cxx,
2186 src/stdio/input/scanf.cxx, src/stdio/output/fnprintf.cxx,
2187 src/stdio/output/fprintf.cxx, src/stdio/output/printf.cxx:
2189 Had to remove inline functions with varargs. Which means separating
2190 out each function from stdioinlines.cxx into a separate file, as they
2191 no longer belong there. So all the above files were created.
2193 * include/stdio.inl, src/PKGconf.mak,
2194 src/stdio/common/stdioinlines.cxx:
2195 Changed to take account of the above
2198 Sun Jun 21 03:58:42 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2200 * tests/stdio/sprintf1.c, tests/stdio/sprintf2.c:
2201 Update with floating-point tests. Also make sure they DTRT in all
2204 Fri Jun 19 19:33:06 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2206 * src/support/clibdata.cxx:
2207 accidentally initialised stdin/out/err twice
2209 Fri Jun 19 19:09:29 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2211 * src/support/clibdata.cxx:
2214 Fri Jun 19 18:59:07 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2216 * src/support/clibdata.cxx:
2219 Fri Jun 19 18:51:42 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2221 * src/support/clibdata.cxx:
2222 Fix initialisation of static data members. Unsure how it worked at
2225 Fri Jun 19 18:01:01 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2227 * include/stdio.inl:
2228 puts should check whether fputs returns non-negative, rather than
2231 Fri Jun 19 17:22:52 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2233 * src/clibincl/clibdata.inl:
2234 Make inclusion of get_errno_p conditional on thread-safety
2236 Wed Jun 17 10:55:32 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2238 * src/stdio/input/vfscanf.cxx:
2239 Add weak alias of vfscanf() to _vfscanf()
2241 Wed Jun 17 09:10:41 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2243 * src/stdio/common/fflush.cxx:
2244 Initialise err to silence compiler warning
2246 Wed Jun 17 08:59:20 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2248 * Most important is the addition of floating point support in
2249 src/stdio/output/vfnprintf.cxx and src/stdio/input/vfscanf.cxx. This
2250 also required the addition of atof() and strtod() in stdlib which is
2251 definitely no bad thing! Other than that...
2253 * Fix a whole bunch of stuff I messed up first time round. Also the
2254 sprintf and sscanf tests are included again.
2256 Tue Jun 16 16:38:02 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2258 * tests/PKGconf.mak:
2259 Typo with not putting comment character at the beginning. Sigh.
2261 Tue Jun 16 14:53:09 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2263 * tests/PKGconf.mak:
2264 Forgot to (temporarily) remove fputs test for now
2266 Mon Jun 15 20:40:03 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2268 Everything to do with stdio has almost completely changed, so there's
2269 not much point documenting individual changes.
2271 Mon Jun 15 18:36:01 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2273 * tests/stdlib/malloc2.c:
2274 Stop it moaning quite as much when it fails by making it exit sooner
2276 * tests/time/clock.c :
2277 This isn't a compound testcase
2279 Thu Jun 11 17:59:13 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2282 Reverse sense of NDEBUG ifdef, that was left in accidentally due
2285 Thu Jun 11 04:58:08 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2287 * include/errno.h, include/string.h, src/clibincl/stringsupp.hxx:
2288 Modify as I've now added an "error" package which defines the error
2289 codes and strerror()
2291 * src/errno/strerror.cxx:
2292 Moved to new error package and thus deleted
2294 Wed Jun 10 18:37:37 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2297 create this header and add assert() function
2299 Wed Jun 10 16:23:57 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2301 * include/stdlib.h, src/clibincl/stdlibsupp.hxx, src/stdlib/malloc.cxx:
2302 Add malloc(), calloc() and free() functions
2304 * include/pkgconf/libc.h:
2305 Add malloc memory pool size option
2307 * tests/stdlib/malloc1.c, tests/stdlib/malloc2.c:
2308 new tests for malloc
2310 * src/PKGconf.mak, tests/PKGconf.mak:
2311 Update for new files
2313 Wed Jun 10 15:06:16 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2315 * tests/setjmp/setjmp.c:
2318 Tue Jun 9 18:20:31 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2320 * include/pkgconf/libc.h:
2321 Add some setjmp config's and a macro for the noreturn attribute
2323 * include/setjmp.h, include/setjmp.inl, src/clibincl/setjmpsupp.hxx,
2324 src/setjmp/longjmp.cxx, tests/setjmp/setjmp.c:
2325 Added to implement and test setjmp() and longjmp()
2327 * src/PKGconf.mak, tests/PKGconf.mak:
2328 Update for newly added files
2330 Thu Jun 4 01:29:18 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2332 * src/string/memchr.cxx, src/string/memcmp.cxx, src/string/strcat.cxx,
2333 src/string/strchr.cxx, src/string/strcmp.cxx, src/string/strcpy.cxx,
2334 src/string/strlen.cxx, src/string/strncat.cxx,
2335 src/string/strncmp.cxx, src/string/strncpy.cxx:
2336 Rename CYGIMP_LIBC_PREFER_SMALL_TO_FAST to
2337 CYGIMP_LIBC_STRING_PREFER_SMALL_TO_FAST
2339 Also use slower but smaller version when __OPTIMIZE_SIZE__ is
2340 defined (which comes from using gcc -Os)
2342 Fri May 29 16:15:04 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2344 * include/ctype.inl, src/ctype/isxdigit.cxx:
2345 Fix bug that numerals aren't considered hex digits
2348 Change clock_t and time_t to be signed so that they can accept -1, as
2349 required by other libc functions
2351 * src/clibincl/clibdata.hxx:
2352 Fix typo that CYGIMP_LIBC_THREAD_SUPPORT should be ..._SAFETY
2353 Also fix macro to allocate thread-specific data to not set variables
2354 in a different stack-frame
2356 * tests/ctype/ctype.c:
2357 Fix some misunderstandings in tests, and add a few new ones
2359 * tests/stdlib/qsort.c:
2360 make ctr unsigned to prevent warnings
2362 * tests/stdlib/strtol.c, tests/stdlib/strtoul.c:
2363 Fix some misunderstandings in tests, and add a few new ones
2365 * tests/string/strrchr.c:
2366 Fix off by one error
2368 * tests/string/strspn.c:
2369 Fix case-sensitivity problem, and off-by-one error
2371 * tests/string/strxfrm1.c:
2372 Remove bogus bit of test that doesn't apply to strxfrm, and fix typo
2375 Fri May 22 16:33:04 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2378 Remove CXXFLAGS line now that its redundant
2381 Do a blitz change of all tests - break some of them down into
2382 different files, add new tests, standardize format, fix bugs,
2383 update for recent header file changes and much more!
2385 Wed May 20 17:50:04 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2387 * tests/PKGconf.mak:
2388 interim checkin for different dir structure for Bart
2390 Fri May 15 20:30:46 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2392 * Tidy up some loose ends I forgot: rename src/include directory to
2393 src/clibincl. And add clibdata.inl and timesupp.hxx in there.
2395 Thu May 14 19:56:32 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2397 * Basically everything has changed in the C library. Files have
2398 been moved, renamed, deleted and reworked. This is a major
2399 revision, and now starts from this new baseline rather than doing
2400 incremental changes.
2402 Fri Apr 17 18:43:02 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2405 added for new build system (actually Bart did this, but didn't
2406 update this ChangeLog)
2408 Fri Apr 17 15:03:25 1998 Hugo Tyson <hmt@cygnus.co.uk>
2410 * src/stdio/device/sim.cxx:
2411 Make it build with CYG_EMPTY_STATEMENT; the unadorned one is being
2414 Thu Apr 16 00:24:24 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2417 replace ECCIMP_LIBC_* conditional ifdef with CYGIMP_LIBC_*
2419 * include/eccconf/libc.h:
2420 improve comments and reorder a bit
2422 Wed Apr 8 14:35:20 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2424 * Makefile.am, src/Makefile.am, tests/Makefile.am, configure.in:
2425 many changes to integrate build structure from release tree
2427 * src/ctype/Makefile.am, src/ctype/Makefile.in, src/errno/Makefile.am,
2428 src/errno/Makefile.in, src/stdio/Makefile.am, src/stdio/Makefile.in,
2429 src/stdio/common/Makefile.am, src/stdio/common/Makefile.in,
2430 src/stdio/device/Makefile.am, src/stdio/device/Makefile.in,
2431 src/stdio/output/Makefile.am, src/stdio/output/Makefile.in,
2432 src/stdio/input/Makefile.am, src/stdio/input/Makefile.in,
2433 src/stdlib/Makefile.am, src/stdlib/Makefile.in,
2434 src/string/Makefile.am, src/string/Makefile.in,
2435 src/support/Makefile.am, src/support/Makefile.in,
2436 src/time/Makefile.am, src/time/Makefile.in:
2437 Remove as they are now redundant with above changes
2439 * include/Makefile.am:
2440 Add to support above changes
2442 * include/eccconf/libc.h:
2443 Change include file for configuration from kernel to system
2445 * src/include/kerndiag.hxx, src/stdio/device/kerndiag.cxx,
2446 src/time/clockfn.cxx:
2447 Change kernel include file to eccconf/kernel.h
2449 * src/include/strngdev.h:
2450 remove unnecessary kernel include
2452 * Makefile.in, aclocal.m4, configure, src/Makefile.in,
2453 tests/Makefile.in, include/Makefile.in:
2456 Mon Apr 6 20:55:07 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2458 * src/stdlib/abs.cxx, src/stdlib/atoi.cxx, src/stdlib/atol.cxx,
2459 src/stdlib/div.cxx, src/stdlib/labs.cxx, src/stdlib/ldiv.cxx:
2460 Separated out functions from stdlib.cxx into separate files
2462 * src/stdlib/stdlib.cxx:
2463 removed to be replaced by above files
2465 * Makefile.am, src/stdlib/Makefile.am:
2466 modified to support building above and not building stdlib.cxx
2468 * src/support/tsd.cxx:
2469 Remove unnecessary header file includes
2471 * Makefile.in, src/stdlib/Makefile.in:
2474 Mon Apr 6 19:19:42 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2476 * src/support/tsd.cxx, include/eccconf/libc.h:
2477 remove lame hack for tx39 compiler now that its fixed
2479 * src/include/sim.hxx:
2480 define constants as static to placate compiler
2482 Thu Apr 2 21:01:21 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2484 * src/ctype/ctype.cxx:
2485 deleted and separated out into below files
2487 * src/ctype/isalnum.cxx, src/ctype/isalpha.cxx, src/ctype/iscntrl.cxx,
2488 src/ctype/isdigit.cxx, src/ctype/isgraph.cxx, src/ctype/islower.cxx,
2489 src/ctype/isprint.cxx, src/ctype/ispunct.cxx, src/ctype/isspace.cxx,
2490 src/ctype/isupper.cxx, src/ctype/isxdigit.cxx, src/ctype/tolower.cxx,
2491 src/ctype/toupper.cxx:
2492 Separated out individual ctype functions from ctype.cxx into separate
2495 * Makefile.am, src/ctype/Makefile.am:
2496 modified to reflect above deletion/additions
2498 * Makefile.in, src/ctype/Makefile.in:
2501 Thu Apr 2 19:08:26 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2503 * src/string/strxfrm.cxx: optimise using prefix increments
2505 Thu Apr 2 15:18:15 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2507 * src/string/strchr.cxx: optimise setting of mask a little
2509 Thu Mar 26 14:07:01 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2511 * src/support/tsd.cxx: fixed some typos
2513 Thu Mar 26 11:58:47 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2515 * include/eccconf/libc.h, src/support/tsd.cxx:
2516 Implement workaround for tx39 compiler bug.
2518 * src/include/strsuppt.hxx:
2519 remove prototypes for _memcpy() and _memset() as they are now in the
2522 Wed Mar 25 18:31:53 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2524 * Makefile.am, src/string/Makefile.am: memcpy() and memset() are
2525 now in the kernel so remove them from build
2526 * include/string.h: add a comment to say as much
2527 * Makefile.in, src/string/Makefile.in: regenerate
2529 Wed Mar 25 15:30:42 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2531 * src/stdlib/_exit.cxx, src/include/file_if.inl:
2532 Change _exit workaround to not cause a compiler optimisation
2533 problem. Now just references _exit rather than calls it.
2535 Wed Mar 25 14:59:49 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2537 * src/string/strxfrm.cxx: Fix bug causing tests to fail completely
2540 Wed Mar 25 12:55:53 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2542 * src/include/sim.hxx: add types to constants (oops!)
2543 * Makefile.am: link src/stdio/device/sim.cxx
2544 * Makefile.in: regenerated
2546 Wed Mar 25 04:14:30 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2548 * src/include/file_if.hxx, src/include/file_if.inl,
2549 src/include/kerndiag.hxx, src/include/sim.hxx,
2550 src/include/stdio_if.hxx, src/include/strngdev.hxx,
2551 src/include/tsd.hxx, src/stdio/common/clearerr.cxx,
2552 src/stdio/common/clearerr.cxx, src/stdio/common/feof.cxx,
2553 src/stdio/common/ferror.cxx, src/stdio/common/file_if.cxx,
2554 src/stdio/common/vsprintf.cxx,
2555 src/stdio/device/kerndiag.cxx, src/stdio/device/sim.cxx,
2556 src/stdio/device/strngdev.cxx, src/stdio/output/fputc.cxx,
2557 src/stdio/output/fputs.cxx, src/stdio/output/puts.cxx,
2558 src/stdio/output/vfnprintf.cxx, src/support/tsd.cxx:
2559 Modified to support buffered reads including renaming
2560 _EccInternalFileStruct to __EccStdioStream which is what affects
2562 * src/include/file_if.inl, src/stdio/common/file_if.cxx: added for
2564 * src/stdio/common/sscanf.cxx, src/stdio/input/vfscanf.cxx,
2565 src/stdio/input/Makefile.am: added to provide sscanf() functionality
2566 * include/ctype.h, include/stdio.h, include/stdlib.h,
2567 include/string.h, include/eccconf/libc.h, src/ctype/ctype.cxx,
2568 src/stdlib/stdlib.cxx, src/string/strcoll.cxx,
2569 src/stdio/common/stdio.cxx:
2570 rename *_INLINES macros with prefix CYG rather than ECC
2571 * include/errno.h, src/errno/errno.cxx, src/errno/strerror.cxx:
2572 rename ErrNo to _ErrNo and add EAGAIN and EWOULDBLOCK error codes
2573 * configure.in, Makefile.am, src/stdio/Makefile.am,
2574 src/stdio/input/Makefile.am: add support for building
2575 file_if.cxx sscanf.cxx and vfscanf.cxx
2576 * src/stdio/Makefile.in, src/stdio/common/Makefile.in,
2577 src/stdio/input/Makefile.in, configure, Makefile.in: regenerated
2579 Tue Mar 24 19:51:40 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2581 * src/time/clockfn.cxx, src/time/clock.cxx:
2582 Renamed clock.cxx to clockfn.cxx (preserving CVS history)
2583 * Makefile.am, src/time/Makefile.am: updated to reflect name change
2584 * Makefile.in, src/time/Makefile.in: regenerated
2586 Tue Mar 24 16:28:06 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2588 * include/ctype.inl: Swap around definitions to get right order so
2591 Tue Mar 24 14:43:05 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2593 * include/ctype.h, include/stdio.h, include/stdlib.h, include/string.h:
2594 modify to only conditionally include inlines
2595 * src/ctype/ctype.cxx, src/stdio/common/stdio.cxx,
2596 src/stdlib/stdlib.cxx, src/string/strcoll.cxx,
2597 src/ctype/Makefile.am: Add to provide real linkable alternatives
2599 * Makefile.am, configure.in, src/Makefile.am,
2600 src/stdio/common/Makefile.am, src/stdlib/Makefile.am,
2601 src/string/Makefile.am: modified to support previous additions
2602 * include/eccconf/libc.h: redefine inline macro to add extern inline,
2603 and add conditional defines for inline functions. Also rename
2604 space vs. speed macro to have CYG instead of ECC prefix
2605 * include/stdio.inl: fix comment typo
2606 * src/stdlib/qsort.cxx: fix to define inline functions properly
2607 * src/string/memchr.cxx, src/string/memcmp.cxx, src/string/memcpy.cxx,
2608 src/string/memset.cxx, src/string/strcat.cxx, src/string/strchr.cxx,
2609 src/string/strcmp.cxx, src/string/strcpy.cxx, src/string/strlen.cxx,
2610 src/string/strncat.cxx, src/string/strncmp.cxx,
2611 src/string/strncpy.cxx
2612 * Makefile.in, configure, src/Makefile.in, src/ctype/Makefile.in,
2613 src/stdio/common/Makefile.in, src/stdlib/Makefile.in,
2614 src/string/Makefile.in: regenerate
2617 Mon Mar 23 19:19:49 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2619 * src/stdlib/_exit.cxx: added to support temporary _exit
2620 * include/stdlib.h, include/stdlib.inl: added support for _exit and
2621 added abs(), labs(), div() and ldiv() functions
2622 * src/include/file_if.hxx: added support for _exit kludge
2623 * src/stdlib/qsort.cxx: Added Berkeley copyright message
2624 * src/time/clock.cxx: Include correct kernel config header as
2625 CYG_CONFIGURATION rather than <config.h>
2626 * Makefile.am src/stdlib/Makefile.am: added support for _exit
2627 * Makefile.in, src/stdlib/Makefile.in: regenerated
2629 Mon Mar 23 14:41:07 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2631 * Replace ECCPKG_ANSI_LIBC with CYGPKG_ANSI_LIBC in all source files
2633 Mon Mar 23 14:28:44 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2635 * include/string.inl: add file to provide strcoll()
2636 * include/string.h: include string.inl
2637 * ctype.h: include ctype.inl (oops!)
2638 * include/stdlib.h: include stdlib.inl (oops!)
2640 Mon Mar 23 13:30:38 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2642 * include/ctype.h, include/ctype.inl: added to provide ANSI ctype
2644 * include/stdlib.h, include/stdlib.inl, src/include/stdlibbsp.hxx,
2645 src/stdlib/Makefile.am, src/stdlib/bsearch.cxx,
2646 src/stdlib/qsort.cxx, src/stdlib/rand.cxx, src/stdlib/srand.cxx,
2647 src/stdlib/strtol.cxx, src/stdlib/strtoul.cxx: Added to provide
2648 many stdlib functions
2649 * src/include/tsd.hxx: modified to support rand() random number
2650 seed, and added some comments
2651 * configure.in, Makefile.am, src/Makefile.am: modified to support
2652 addition of above new sources
2653 * include/eccconf/libc.h: Add extra helpful comments, and #include
2655 * src/time/clock.cxx: #include clock.inl and fix to call
2656 get_resolution() properly now
2657 * Makefile.in, configure, src/Makefile.in, src/errno/Makefile.in,
2658 src/stdio/Makefile.in, src/stdio/common/Makefile.in,
2659 src/stdio/device/Makefile.in, src/stdio/output/Makefile.in,
2660 src/stdlib/Makefile.in, src/strings/Makefile.in,
2661 src/support/Makefile.in, src/time/Makefile.in,
2662 tests/Makefile.in: regenerated
2665 Sun Mar 22 21:29:25 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2667 * include/time.h, src/include/timesupp.hxx, src/time/clock.cxx,
2668 src/time/Makefile.am: added to provide clock() function
2669 * src/Makefile.am: modified to try to build in src/time directory
2670 * include/eccconf/libc.h: added and is now the main configuration
2671 file for this package
2672 * acconfig.h, include/libcconf.h.in, include/stamp-h.in: removed
2673 due to usage of libc.h above instead
2674 * Almost all *.h, *.hxx and *.cxx: replaced LIBC_CONFIG_HEADER
2675 defined include with simple <pkgconf/libc.h>
2676 * configure.in: remove AM_CONFIG_HEADER of libcconf.h and
2677 LIBC_CONFIG_HEADER definition. Also remove usage of builtin
2678 memcpy() etc. from gcc, and generate src/time/Makefile
2679 * Makefile.am: link in src/time/clock.o
2680 * src/include/file_if.hxx, src/include/sim.hxx: use config header
2681 to decide whether C library is to be used
2682 * Makefile.in, aclocal.m4, configure, src/Makefile.in: regenerated
2684 Fri Mar 20 18:08:10 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2686 * src/string/strxfrm.cxx: Fixed bug with ignoring terminating NULL
2688 1998-03-20 Chris Tarpy <ctarpy@bhaji.cygnus.co.uk>
2690 * configure: - regenerated
2691 * Makefile.am: - Support added for libc testcases
2692 * Makefile.in: regenerated
2693 * configure.in: set c compiler, descend test dir
2694 * tests/Makefile.in: added
2695 * tests/Makefile.am: added
2696 * tests/tcdiag.cxx : added
2699 Thu Mar 19 11:41:56 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2701 * Initial check-in of everything
2703 //===========================================================================
2704 //####ECOSGPLCOPYRIGHTBEGIN####
2705 // -------------------------------------------
2706 // This file is part of eCos, the Embedded Configurable Operating System.
2707 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
2709 // eCos is free software; you can redistribute it and/or modify it under
2710 // the terms of the GNU General Public License as published by the Free
2711 // Software Foundation; either version 2 or (at your option) any later version.
2713 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY
2714 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
2715 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2716 // for more details.
2718 // You should have received a copy of the GNU General Public License along
2719 // with eCos; if not, write to the Free Software Foundation, Inc.,
2720 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
2722 // As a special exception, if other files instantiate templates or use macros
2723 // or inline functions from this file, or you compile this file and link it
2724 // with other works to produce a work based on this file, this file does not
2725 // by itself cause the resulting work to be covered by the GNU General Public
2726 // License. However the source code for this file must still be made available
2727 // in accordance with section (3) of the GNU General Public License.
2729 // This exception does not invalidate any other reasons why a work based on
2730 // this file might be covered by the GNU General Public License.
2732 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
2733 // at http://sources.redhat.com/ecos/ecos-license/
2734 // -------------------------------------------
2735 //####ECOSGPLCOPYRIGHTEND####
2736 //===========================================================================