📄 changelog
字号:
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_KERNEL1999-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 option1999-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 193041999-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 configurations1999-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 constructors" option * src/stdlib/atexit.cxx: Support above CYGFUN_LIBC_ATEXIT and QA changes * src/stdlib/exit.cxx: Support for above new libc.h options, and some QA changes * src/support/cstartup.cxx: Add support for new CYGSEM_LIBC_STARTUP_MAIN_THREAD option * src/support/mainthread.cxx: Override main stack size if the HAL has a minimum * src/string/strncpy.cxx: Use improved algorithm for aligned copies - imported from newlib QA changes * src/stdlib/abort.cxx: Support raise(SIGABRT), and some QA * include/errno.h: Add const attribute * tests/stdlib/abs.c: QA improvements1999-02-04 Jesper Skov <jskov@cygnus.co.uk> * src/support/cstartup.cxx: Only define cyg_libc_main_thread when the kernel is around.1999-02-01 Jesper Skov <jskov@cygnus.co.uk> * tests/time/clock.c: Joined the two test/NOP checks into one. Increased tolerance in attempt to fix PRs 18737,18787,18846. Fixed typo.1999-01-28 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/string/strtok.cxx: * src/stdlib/rand.cxx: Include <pkgconf/kernel.h> if we use kernel header files1999-01-25 Jonathan Larmour <jlarmour@cygnus.co.uk> * tests/stdio/sscanf.c (test): CYGSEM_LIBC_STDIO_PRINTF_FLOATING_POINT should be CYGSEM_LIBC_STDIO_SCANF_FLOATING_POINT Fix for PR 18786 * src/string/strtok.cxx: * src/stdio/common/stdiofiles.cxx: * src/errno/errno.cxx: * src/stdlib/rand.cxx: Give mutex protection objects a libc constructor priority * src/support/invokemain.cxx: Add prototype for cyg_hal_invoke_constructors() * src/support/mainthread.cxx: Give cyg_libc_dummy_constructor_obj a libc constructor priority, and make its class have a public constructor * src/stdio/common/stderr.cxx: * src/stdio/common/stdout.cxx: * src/stdio/common/stdin.cxx: Give cyg_libc_stdio_stdin/out/err static objects a libc constructor priority * src/clibincl/streambuf.hxx (class Cyg_StdioStreamBuffer): * src/clibincl/stream.hxx (class Cyg_StdioStream): Remove private copy constructor. Needed to make prioritised static constructors work. Fix for PR 188981999-01-22 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/errno/errno.cxx: Include pkgconf/kernel.h otherwise it fails with per-thread errno enabled * include/pkgconf/libc.h: Enable per-thread errno by default since that is what POSIX would want * tests/time/clock.c (test): Placate compiler by initializing clock_first/second/third anyway, even though they won't be in practice. This is only a test program so adding an extra instruction doesn't matter. * src/i18n/locale.cxx (_setlocale): Placate compiler, since it is dumb, by nesting, not serializing, if's This is an idempotent change, but screws up the formatting :-(. * src/string/strpbrk.cxx (_strpbrk): Change while loop to do loop to placate compiler. It'll even save an instruction too (wow!) 1999-01-22 John Dallaway <jld@cygnus.co.uk> * include/pkgconf/libc.h: Add closing curly brace to CYGPKG_LIBC_STRING_STRTOK definition1999-01-21 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/errno.h: Tidy up and add to header description Change cyg_get_errno_p() to cyg_libc_get_errno_p() Remove ifdef CYGPKG_LIBC * include/sys/file_if.h: Remove - move contents to stdio.h * include/stdio.h: Tidy up header description Move FILE typedef here from sys/file_if.h SEEK_SET, SEEK_CUR, SEEK_END defined to 0, 1, 2 respectively for backwards compatibility with old UNIX Change definitions of stdin/out/err to be addresses of FILE globals - even though they're actually Cyg_StdioStream it'll work * include/pkgconf/libc.h: Make CYGPRI_LIBC_WEAK et al macros depend on new ones in infra Reorganise trace options under the individual components they are associated with. Reorganise thread-safety options under the individual components they are associated with. Add new CYGSEM_LIBC_INVOKE_DEFAULT_STATIC_CONSTRUCTORS option Misc. reformatting Remove dependency on pkgconf/kernel.h - Configuration Tool will generate check macros anyway. Remove CYGPKG_LIBC_TRACE, CYGFUN_LIBC_strtok, CYGPKG_LIBC_RAND options Tidy up description header * src/clibincl/clibdata.hxx: * src/clibincl/clibdata.inl: * src/support/clibdata.cxx: Remove and instead rely on each component to initialise its own data * src/clibincl/stdiofiles.hxx, src/clibincl/stdiofiles.inl: New files to contain global file list and lock (if applicable). Implemented as class with member access functions * src/errno/errno.cxx: Reorganise with self-contained per-thread data, if applicable Remove ifdef CYGPKG_LIBC Tidy up description header Rename cyg_get_errno_p() to cyg_libc_get_errno_p() * src/stdio/common/fclose.cxx: * src/stdio/common/fflush.cxx: * src/stdio/common/fopen.cxx: * src/stdio/common/freopen.cxx: Remove ifdef CYGPKG_LIBC Use new global file access method from stdiofiles.hxx Tidy up description header Use new CYGBLD_ATTRIB_WEAK_ALIAS Access errno "normally" rather than clibdata way * src/stdio/common/stdin.cxx: * src/stdio/common/stdout.cxx * src/stdio/common/stderr.cxx: New files. Implement Cyg_StdioStream objects for each stream. In separate self-contained files so using one doesn't bring in the others * src/stdio/common/stdiofiles.cxx: New file. Implements global files array and lock * src/stdlib/_exit.cxx: Tidy up description header Remove ifdef CYGPKG_LIBC Use infra CYGBLD* macros * src/stdlib/malloc.cxx: Tidy up description header Remove ifdef CYGPKG_LIBC Add pkgconf/kernel.h now that pkgconf/libc.h doesn't have it Use infra CYGBLD* macros Make pool visible externally with weak attribute and new name cyg_libc_malloc_memorypool * src/stdlib/rand.cxx: * src/stdlib/strtok.cxx: Reorganise with self-contained per-thread data, if applicable Remove ifdef CYGPKG_LIBC Tidy up description header Use infra CYGBLD* macros * src/support/cstartup.cxx: Split into smaller files to make selective linking work better, fix i386 port problem and make GDB happy * src/support/environ.cxx: * src/support/invokemain.cxx: * src/support/main.cxx: * src/support/mainthread.cxx: New files from bits of the old cstartup.cxx Add support for CYGSEM_HAL_STOP_CONSTRUCTORS_ON_FLAG * src/PKGconf.mak: Update to reflect file additions/deletion * tests/stdlib/rand1.c: * tests/stdlib/rand2.c: * tests/stdlib/rand3.c: * tests/stdlib/srand.c: Make conform to coding standards Remove ifdef CYGPKG_LIBC_RAND Tidy up description header * tests/string/strtok.c: Make conform to coding standards Remove ifdef CYGFUN_LIBC_strtok Tidy up description header1999-01-15 Mark Galassi <rosalia@cygnus.com> * tests/stdlib/getenv.c (main): added tests for the case in which the user does not supply environ and in which the user supplies a NULL environ.1999-01-15 Jesper Skov <jskov@cygnus.co.uk> * src/support/cstartup.cxx: Added workaround for weak aliasing problem in i386 gcc.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -