📄 changelog.libc
字号:
* 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 sensible
1999-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 interrupts
1999-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 19448
1999-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 warning
1999-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,
CYGSEM_LIBC_TIME_TIME_WORKING, CYGFUN_LIBC_TIME_POSIX,
CYGNUM_LIBC_TIME_CLOCK_TRACE_LEVEL, CYGIMP_LIBC_TIME_ASCTIME_INLINE,
CYGIMP_LIBC_TIME_CTIME_INLINE, CYGIMP_LIBC_TIME_DIFFTIME_INLINE,
CYGIMP_LIBC_TIME_GMTIME_INLINE, CYGIMP_LIBC_TIME_LOCALTIME_INLINE,
CYGIMP_LIBC_TIME_MKTIME_INLINE, CYGIMP_LIBC_TIME_ASCTIME_R_INLINE,
CYGIMP_LIBC_TIME_CTIME_R_INLINE, CYGIMP_LIBC_TIME_GMTIME_R_INLINE,
and CYGIMP_LIBC_TIME_LOCALTIME_R_INLINE
* time/asctime.cxx, time/asctime_r.cxx, time/clock.cxx, time/ctime.cxx,
time/ctime_r.cxx, time/difftime.cxx, time/gmtime.cxx,
time/gmtime_r.cxx, time/localtime.cxx, time/localtime_r.cxx,
time/mktime.cxx, time/strftime.cxx, time/time.cxx, time/timeutil.cxx,
include/time.inl:
New files to implement the new time functions. Many of them simply
provide the outline definitions, but the real body of the function
comes from time.inl
* src/PKGconf.mak:
Build new .cxx files
* src/clibincl/stdlibsupp.hxx:
Remove _div and _ldiv prototypes since they're no longer needed
* src/clibincl/timesupp.hxx:
Delete as its now obsolete
* src/time/clock.cxx:
Use new CYGSEM_LIBC_TIME_CLOCK_WORKING option to control whether it
just returns (clock_t)-1 or not.
Much reformatting and tidying
Change real imlpementation from _clock to __clock
Use CYGBLD_ATTRIB_WEAK_ALIAS now
* tests/stdlib/div.c, tests/stdlib/ldiv.c:
Add some extra tests for handling of negative numbers
Reformat and tidy a bit, including removing the test for CYGPKG_LIBC
since its now always defined if the test is to be compiled
* tests/time/clock.c:
Remove duplication CYG_TEST_INFO line
Check if unimplemented using "(clock_t)-1" and not just "-1"
1999-03-04 Jonathan Larmour <jlarmour@cygnus.co.uk>
* src/stdlib/system.cxx:
Make sure system() is a weak alias for __system()
* include/pkgconf/libc.h: Rework CDL description for
CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE and change its default to
"/dev/haldiag"
* src/stdio/common/stream.cxx:
Check that dev is valid when passed to stream constructor
* src/stdio/common/stdiosupp.cxx:
Tidy
* src/support/mainthread.cxx: Make this depend on
CYGSEM_LIBC_STARTUP_MAIN_THREAD rather than just CYGPKG_KERNEL
1999-03-04 Gary Thomas <gthomas@cygnus.co.uk>
Merged in changes from 'ecos-new_devs-19990216-branch'
(1999-02-24 Jonathan Larmour <jlarmour@cygnus.co.uk>)
* src/stdio/common/stream.cxx:
Add "fix me" comments and remove a couple of commented out lines
* src/stdio/common/vsnprintf.cxx:
* src/stdio/common/vsscanf.cxx:
Revert to using pointer to string for private data, not just string.
This preserves the state across multiple calls
(1999-02-24 Gary Thomas <gthomas@cygnus.co.uk>)
* src/stdio/common/vsscanf.cxx:
* src/stdio/common/vsnprintf.cxx:
* src/stdio/common/stream.cxx:
* src/stdio/common/stdiosupp.cxx:
* src/stdio/common/fopen.cxx:
* src/clibincl/stream.inl:
* src/clibincl/stream.hxx:
* src/clibincl/stdiosupp.hxx:
* include/pkgconf/libc.h: Changes for new I/O system.
1999-03-03 Jonathan Larmour <jlarmour@cygnus.co.uk>
* tests/stdlib/atexit.c: Forgot to config atexit test for
CYGFUN_LIBC_ATEXIT option
* include/pkgconf/libc.h:
Require CYGVAR_KERNEL_THREADS_DATA for CYGSEM_LIBC_PER_THREAD_STRTOK
This fixes PR 19362
Require CYGPKG_KERNEL for thread safe streams
Also don't need "requires CYGPKG_KERNEL" for per-thread rand and errno
if we already require a finer granularity kernel option
1999-02-25 Jonathan Larmour <jlarmour@cygnus.co.uk>
* include/pkgconf/libc.h: Fix CYGNUM_LIBC_MAIN_STACK_SIZE by changing
CYGPKG_LIBC_STARTUP_MAIN_THREAD -> CYGSEM_LIBC_STARTUP_MAIN_THREAD
Fix for PR 19304
1999-02-23 Jonathan Larmour <jlarmour@cygnus.co.uk>
* src/stdlib/system.cxx: Add to implement trivial system() call
* include/stdlib.h: Add system() prototype
* src/PKGconf.mak: Build system.cxx
* tests/ctype/ctype.c, tests/i18n/setlocale.c, tests/setjmp/setjmp.c,
tests/signal/signal1.c, tests/signal/signal2.c,
tests/stdio/sprintf1.c, tests/stdio/sprintf2.c, tests/stdio/sscanf.c,
tests/stdio/stdiooutput.c, tests/stdlib/atexit.c,
tests/stdlib/atoi.c, tests/stdlib/atol.c, tests/stdlib/bsearch.c,
tests/stdlib/div.c, tests/stdlib/getenv.c, tests/stdlib/labs.c,
tests/stdlib/ldiv.c, tests/stdlib/malloc1.c, tests/stdlib/malloc2.c,
tests/stdlib/malloc3.c, tests/stdlib/qsort.c, tests/stdlib/rand1.c,
tests/stdlib/rand2.c, tests/stdlib/rand3.c, tests/stdlib/realloc.c,
tests/stdlib/srand.c, tests/stdlib/strtol.c, tests/stdlib/strtoul.c,
tests/string/memchr.c, tests/string/memcmp1.c,
tests/string/memcmp2.c, tests/string/memcpy1.c,
tests/string/memcpy2.c, tests/string/memmove1.c,
tests/string/memmove2.c, tests/string/memset.c,
tests/string/strcat1.c, tests/string/strcat2.c,
tests/string/strchr.c, tests/string/strcmp1.c,
tests/string/strcmp2.c, tests/string/strcoll1.c,
tests/string/strcpy1.c, tests/string/strcpy2.c,
tests/string/strcspn.c, tests/string/strlen.c,
tests/string/strncat1.c, tests/string/strncat2.c,
tests/string/strncpy1.c, tests/string/strncpy2.c,
tests/string/strpbrk.c, tests/string/strrchr.c,
tests/string/strspn.c, tests/string/strstr.c, tests/string/strtok.c,
tests/string/strxfrm1.c, tests/string/strxfrm2.c, tests/time/clock.c:
Use CYG_TEST_NA() macro for non-applicable test configurations
1999-02-20 Jonathan Larmour <jlarmour@cygnus.co.uk>
* include/signal.h:
* include/signal.inl:
* src/signal/raise.cxx:
* src/signal/siginit.cxx:
* src/signal/signal.cxx:
* tests/signal/signal1.c
* tests/signal/signal2.c:
New files to implement ISO standard signals
* src/PKGconf.mak (TESTS):
* tests/PKGconf.mak (TESTS):
Update to build new files above
* include/stdlib.h:
* src/clibincl/stdlibsupp.hxx:
Comment and QA changes (including giving better names to some types)
* include/libc.h:
Add new configuration options for signals
Add new CYGSEM_LIBC_STARTUP_MAIN_THREAD option
Add a note to CYGNUM_LIBC_MAIN_STACK_SIZE option that it may be
overriden by HAL
Add new CYGFUN_LIBC_ATEXIT option and move ...ATEXIT_HANDLERS under
it
Add new CYGSEM_LIBC_EXIT_CALLS_FFLUSH option
Require CYGSEM_LIBC_STARTUP_MAIN_THREAD for "Invoke default static
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -