📄 changelog
字号:
1999-04-19 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/time.inl: Ensure all calls to cyg_libc_time_year_is_leap() are with the full year, and not the direct contents of a struct tm, which are (year-1900)1999-04-15 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/clibincl/stdiosupp.hxx: Add prototype for new cyg_libc_stdio_flush_all_but() function * src/clibincl/stream.hxx: Don't include stdiosupp.hxx any more to prevent circular dependency, therefore manually provide _setvbuf prototype Make sure pkgconf/kernel.h is included before mutex.hxx * src/clibincl/stream.inl (Cyg_StdioStream::set_error()): Add missing unlock_me() * src/stdio/common/fflush.cxx: Separate most of code for fflush(NULL) into separate cyg_libc_stdio_flush_all_but() function, which has the extra capability of omitting one stream * src/stdio/common/stderr.cxx: * src/stdio/common/stdin.cxx: * src/stdio/common/stdout.cxx: * src/stdio/common/vsnprintf.cxx: * src/stdio/common/vsscanf.cxx: Add missing clibincl/stdiosupp.hxx include * src/stdio/common/stream.cxx (Cyg_StdioStream::read()): When reading, ensure we flush all output streams * src/stdio/common/stream.cxx (Cyg_StdioStream::flush_output_unlocked): Flush the device as well1999-04-15 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/stdio/common/streambuf.cxx (set_buffer): * src/stdio/common/stdioinlines.cxx (_setbuf): * src/clibincl/streambuf.inl: * src/clibincl/streambuf.hxx: * src/clibincl/stream.hxx (class Cyg_StdioStream): * include/pkgconf/libc.h: * include/stdio.inl (setbuf): Fix dumb typo: BUFSIZE -> BUFSIZ This fixes PR198371999-04-15 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/stdio/common/stdioinlines.cxx (_setbuf): * include/stdio.inl (setbuf): Use _IONBF when buf==NULL, and _IOLBF otherwise. Fix for PR 198361999-04-15 John Dallaway <jld@cygnus.co.uk> * include/pkgconf/libc.h: Tidy display string capitalization.1999-04-12 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/pkgconf/libc.h: Clarify CDL description of CYGNUM_LIBC_MALLOC_MEMPOOL_SIZE * tests/signal/signal2.c: Try harder to generate an exception by accessing a misaligned address Don't handle SIGTRAP any more Part of fix for PRs 19731/196071999-04-07 Jesper Skov <jskov@cygnus.co.uk> PR 19667 * src/support/mainthread.cxx: Changed to use the new Cyg_Thread constructor.1999-04-07 Hugo Tyson <hmt@cygnus.co.uk> * tests/signal/signal2.c (main): Use new macro HAL_VSR_SET_TO_ECOS_HANDLER if defined, to wrest control from CygMon, for example, by reinstalling eCos' default VSRs for exceptions that we are provoking.1999-03-29 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/signal/siginit.cxx: Include stdlib.h for exit() Fix for PR 197201999-03-29 Jonathan Larmour <jlarmour@cygnus.co.uk> * tests/time/clock.c (test): Disable instruction cache Hopefully fixes PR 193081999-03-29 Jesper Skov <jskov@cygnus.co.uk> * tests/signal/signal2.c: Disabled test 3 for PPC as it cannot trap division by zero.1999-03-26 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/support/main.cxx (main): Invoke cyg_user_start() if no kernel Only sensible thing to do in our default main in a non-kernel config1999-03-25 Jonathan Larmour <jlarmour@cygnus.co.uk> * tests/time/time.c: Increase MAX_TIMEOUT since the sparclite gets very close to overrunning it even when working. Should return -1 iff CYGSEM_LIBC_TIME_TIME_WORKING isn't defined Cosmetic changes 1999-03-25 Hugo Tyson <hmt@cygnus.co.uk> * tests/time/time.c (test): Take into account setting of CYGSEM_LIBC_TIME_SETTIME_WORKING ie. does cyg_libc_time_settime() work? If not, check that it returns an error. This was exposed by the random combo in PR#19479.1999-03-23 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/pkgconf/libc.h: Rename CYGSEM_LIBC_RAND_SIMPLEST and CYGSEM_LIBC_RAND_KNUTH1 to CYGIMP_... Add another rand implementation CYGIMP_LIBC_RAND_SIMPLE1 which is the default Part of fix for PR 19562 * include/sys/cstartup.h: Tidy and remove unnecessary dependencies * src/stdlib/rand.cxx: Rename algorithms from CYGSEM_... to CYGIMP_... Add new "simple1" algorithm * tests/ctype/ctype.c: Tidy * tests/stdlib/rand3.c: Fix so that 0..RAND_MAX is split evenly over buckets, which it wasn't before Deal with case of RAND_MAX not being divisible by NUM_BUCKETS exactly Increase TEST_LENGTH to 200000 to provide more representative sample Add CYG_TEST_INFO output to help ensure it doesn't time out Tidy * tests/stdlib/rand4.c: Only fail if more than _two_ thirds (rather than one third) match. This is because half would match for a perfectly random distribution This is the rest of the fix for PR 19562 Cosmetic changes1999-03-22 Hugo Tyson <hmt@cygnus.co.uk> * src/support/mainthread.cxx (CYGNUM_LIBC_MAIN_STACK_SIZE): Use CYGNUM_HAL_STACK_SIZE_TYPICAL for the stack size instead of CYGNUM_HAL_MINIMUM_STACK_SIZE.1999-03-22 Jonathan Larmour <jlarmour@cygnus.co.uk> * tests/PKGconf.mak: Add -Wno-format when building strftime otherwise it generates warnings for things that we do want to test (null string, and %y format)1999-03-19 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/pkgconf/libc.h (CYGNUM_LIBC_TIME_DST_DEFAULT_STATE): Put brackets back round negative number since sdf says the config tool is fixed now (PR 19537) Add new CYGSEM_LIBC_RAND_SIMPLEST and CYGSEM_LIBC_RAND_KNUTH1 options for different rand() algorithms in a so far failed attempt to fix PR 19562 * src/stdlib/rand.cxx: Add new optional algorithm from Knuth vol.2 * tests/stdlib/rand4.c: Some tidies Don't run test when using simplest algorithm * tests/signal/signal2.c (main): Don't try to make an FPE on tx39 - its possible to detect but requires too much HAL work to be sensible1999-03-18 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/signal/siginit.cxx (cyg_libc_signals_hwexcept_handler): Use HAL_ENABLE_INTERRUPTS() rather than kernel to enable interrupts1999-03-18 Mark Galassi <rosalia@cygnus.com> * tests/PKGconf.mak (TESTS): added rand4 compilation. * tests/stdlib/rand4.c: added this test for periodicity in the least significant bit of rand().1999-03-18 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/pkgconf/libc.h: Remove CYGFUN_LIBC_TIME_POSIX dependency on CYGPKG_LIBC_STDIO * src/stdlib/itoa.cxx: New file to convert integers to ascii * include/stdlib.h: Add proto for new cyg_libc_itoa() function * include/time.inl: Rework __asctime_r() to use memcpy() and cyg_libc_itoa() rather than sprintf() * src/PKGconf.mak: Build stdlib/itoa.cxx The above changes fix PR 194481999-03-17 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/time.h: Add #define of __time_t_defined to placate newlib if it is used by accident. This is just a temporary workaround though.1999-03-16 Gary Thomas <gthomas@cygnus.co.uk> * src/PKGconf.mak: Add compile option to step around ARM compiler bug.1999-03-16 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/pkgconf/libc.h (CYGNUM_LIBC_TIME_DST_DEFAULT_STATE): Don't use parentheses for now * src/stdio/common/stream.cxx (refill_read_buffer): Silence bogus compiler warning1999-03-16 Jesper Skov <jskov@cygnus.co.uk> * tests/signal/signal2.c (main): Enable SIGSEGV test for i386/Linux.1999-03-15 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/signal/siginit.cxx (cyg_libc_signals_hwexcept_handler): Only enable interrupts if they were disabled * include/sys/timeutil.h: * src/time/timeutil.cxx: Add FIX ME line as a reminder that the workaround there can go away in future * include/pkgconf/libc.h: Add proper define for CYGSEM_LIBC_EXIT_CALLS_FFLUSH Put brackets round negative CYGNUM_LIBC_TIME_DST_DEFAULT_STATE define Fix run time typo * include/time.inl (__localtime_r): Include sys/timeutil.h before this to get cyg_libc_time_normalize_structtm()1999-03-12 Gary Thomas <gthomas@cygnus.co.uk> * include/sys/timeutil.h: * src/time/timeutil.cxx: Remove 'const' from char arrays since this fails [silently] on ARM when -fwritable-strings (PR19440)1999-03-12 Jesper Skov <jskov@cygnus.co.uk> * tests/signal/signal2.c (main): Compiler warnings fix was slightly broken.1999-03-12 Jesper Skov <jskov@cygnus.co.uk> PR 19473 * tests/signal/signal2.c (main): Disabling SIGTRAP handling on i386/Linux is not a good idea.1999-03-11 Jesper Skov <jskov@cygnus.co.uk> PR 19473 * tests/signal/signal2.c: Added compiler warnings fix. Added N/A handling for i386/Linux.1999-03-10 Gary Thomas <gthomas@cygnus.co.uk> * include/pkgconf/libc.h: Force "haldiag" device to be present. 'asctime' and friends need 'stdio' as well. * include/time.inl: Fix syntax error on difftime() declaration.1999-03-08 Gary Thomas <gthomas@cygnus.co.uk> * src/clibincl/stream.hxx: <cyg/infra/cyg_ass.h> needed for this file. * src/stdio/common/vsscanf.cxx (str_read): Fix problem with string pointer [created by merge with new I/O package].1999-03-05 John Dallaway <jld@cygnus.co.uk> * include/pkgconf/libc.h: Add legal values for CYGNUM_LIBC_TIME_STD_DEFAULT_OFFSET and CYGNUM_LIBC_TIME_DST_DEFAULT_OFFSET.1999-03-05 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/time.inl (cyg_libc_time_year_is_leap): Fix bug with modulo year 400 Fix typo in asctime_r macro Fix gmtime_r, and mktime as a result of testing * tests/time/asctime.c, tests/time/ctime.c, tests/time/gmtime.c, tests/time/gmtime.c, tests/time/localtime.c, tests/time/mktime.c, tests/time/strftime.c, tests/time/time.c: New tests * tests/PKGconf.mak: Build above new tests * include/pkgconf/libc.h: Add reminder FIX ME about extra config option * src/time/strftime.cxx: Fix %w and %Y parameters as a result of testing * src/time/timeutil.cxx: Fix cyg_libc_time_normalize_structtm() as a result of testing of mktime() * tests/time/clock.c: Reformat, remove obsolete bits and tidy * include/time.h: Add Cyg_libc_time_dst type and new functions cyg_libc_time_setzoneoffsets(), cyg_libc_time_setdst(), cyg_libc_time_getzoneoffsets(), cyg_libc_time_settime() * include/time.inl: Implement the above functions. This allows us to adjust for timezone diffences and set the time. Change localtime() to adjust for STD/DST Change mktime() to adjust for STD/DST * include/libc.h: Add new config options CYGSEM_LIBC_TIME_SETTIME_WORKING and component CYGPKG_LIBC_TIME_ZONES containing options CYGNUM_LIBC_TIME_DST_DEFAULT_STATE, CYGNUM_LIBC_TIME_STD_DEFAULT_OFFSET, CYGNUM_LIBC_TIME_DST_DEFAULT_OFFSET * src/strftime.cxx: Adjust handling of %Z to _not_ deal with STD/DST * src/time/settime.cxx: New file to implement cyg_libc_time_settime() * src/PKGconf.mak: Build settime.cxx * src/time/timeutil.cxx: Supply outline versions of cyg_libc_time_setzoneoffsets(), cyg_libc_time_setdst(), and cyg_libc_time_getzoneoffsets() Add variables for STD/DST state Some minor comment changes * include/errno.h: Use CYGBLD_ATTRIB_CONST instead of __attribute__((const)) directly * include/signal.h: Change format of function comment headers * include/signal.inl: Restrict errno.h inclusion to when its actually used Fix a spelling typo * include/stdlib.h: Add CYGBLD_ATTRIB_CONST to abs, div, labs, ldiv * include/stdlib.inl: Reformat and tidy Include new versions of div and ldiv which are more portable and are cleanly rewritten so aren't covered by the BSD licence, which is now removed * src/stdlib/div.cxx, src/stdlib/ldiv.cxx: Non-inline, non-BSD and portable versions of the new versions of div and ldiv from stdlib.inl * include/time.h: Much reformatting, tidying and improving comments Change CLOCKS_PER_SEC from 1000 to 1000000 Add new functions asctime_r, ctime_r, gmtime_r, localtime_r, clock, difftime, mktime, time, asctime, ctime, gmtime, localtime, strftime Include new time.inl file * include/pkgconf/libc.h: Add new options CYGSEM_LIBC_TIME_CLOCK_WORKING,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -