📄 changelog
字号:
* tests/i18n/setlocale.c: New tests for setlocale() * tests/PKGconf.mak: Update to build setlocale.c test * src/support/cstartup.cxx: Don't actually call system default main() "main" otherwise GDB gets confused and thinks its the entry point. Instead make a weak alias and call the real function something different.Tue Sep 1 18:31:42 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/i18n/locale.cxx (_setlocale): Fix tracing macro name and remove "str maybe used before initialised" warning * tests/stdlib/qsort.c: Correct file description headerTue Sep 1 17:04:32 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/locale.h, src/clibincl/i18nsupp.hxx, src/i18n/locale.cxx: New files to add support for locales as defined by the ISO C standard. i.e. setlocale() and localeconv() functions and some other bits * include/pkgconf/libc.h: Add CYGNUM_LIBC_MAX_LOCALE_NAME_SIZE config option for locale support * src/PKGconf.mak: build locale.cxx * include/errno.h, src/clibincl/ctypesupp.hxx: Tidy up to 76 columnsTue Sep 1 00:24:22 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/pkgconf/libc.h: Move environment-related options from stdlib into new CYGPKG_LIBC_STARTUP component. Also add options for main()'s arguments (CYGPKG_LIBC_ARGUMENTS), main()'s default stack size (CYGNUM_LIBC_MAIN_STACK_SIZE), number of atexit handlers (CYGNUM_LIBC_ATEXIT_HANDLERS), and whether _exit() stops the system (CYGSEM_LIBC_EXIT_STOPS_SYSTEM). * src/clibincl/stdlibsupp.hxx: Fix a few comment bugs, and add new cyg_libc_invoke_atexit_handlers() function prototype * src/stdlib/_exit.cxx, src/stdlib/atexit.cxx, src/stdlib/exit.cxx: Implement exit(), atexit() and _exit() correctly now. Also includes cyg_libc_invoke_atexit_handlers() in atexit.cxx. Now we get the correct behaviour of atexit(), and exit() invokes the atexit handlers and fflushs all the stdio streams. Add plenty of tracing of asserts too. * src/support/cstartup.cxx: Make main_thread object an exported global. Allow user-settable arguments. Add MUCH more tracing and asserts. Improve comments. Tidy up to 76 columns * tests/stdlib/atexit.c: Add simple test for atexit() and it calling registered functions * tests/PKGconf.mak: Build atexit.c testMon Aug 31 18:54:48 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/stdlib/getenv.cxx, tests/stdlib/getenv.c: Add support for getenv(), and some tests to ensure it works * src/PKGconf.mak, tests/PKGconf.mak: Update to include getenv.cxx and getenv.c test * src/clibincl/clibdata.hxx: remove prototype for environ - we expect files needing it to define it themselves * src/support/clibdata.cxx: Tidy up to 76 columns and add definition of char **environ, but with a configurable initialiser (see libc.h below) * tests/stdlib/abs.c (main): Tidy up to 76 columns * src/stdlib/malloc.cxx: Tidy up to 76 columns and remove warning for undefined _memcpy() by changing to memcpy(), and casting away signedness * include/pkgconf/libc.h: Add CYGPKG_LIBC_ENVIRONMENT and CYGDAT_LIBC_DEFAULT_ENVIRONMENT configuration options * include/pkgconf/libc.h, src/clibincl/clibdata.hxx: Tidy up to 76 columns * include/stdlib.h: Add getenv() prototype and tidy up to 76 columns * src/clibincl/stdlibsupp.hxx: Add _getenv() prototype Mon Aug 31 13:37:08 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/stdlib/malloc.cxx: Add realloc() * tests/stdlib/realloc.c: Add this file to test new realloc() functionality * tests/PKGconf.mak: Build realloc test * tests/stdlib/malloc3.c (main), tests/stdlib/malloc2.c (main), tests/stdlib/malloc1.c (main): Conditionalise local vars to prevent warnings * tests/stdlib/malloc3.c (fill_with_data): Move '{' into "verb" line * include/pkgconf/libc.h: Require infra tracing support to allow tracing * include/stdlib.h: Add realloc() * src/clibincl/stdlibsupp.hxx: Update the commented argument names from stdlib.h, including realloc()1998-08-28 Bart Veer <bartv@cygnus.co.uk> * include/pkgconf/libc.h: * src/clibincl/clibdata.hxx, src/time/clock.cxx: Updated for new kernel configuration option symbol namesFri Aug 28 19:18:25 1998 Hugo Tyson <hmt@cygnus.co.uk> Changed the entry below to sat "tx39" instead of "mn10300". It's been a long week.Fri Aug 28 18:59:20 1998 Hugo Tyson <hmt@cygnus.co.uk> * src/support/cstartup.cxx: Add a weakly named main to allow the default configuration to link on the tx39 which has no scalextric linking yet. The static Cyg_Thread main_thread object below continues to exist, though unreferenced, so all its descendants must exist too.Fri Aug 28 08:54:29 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/stdlib.h: Add commented argument names Add exit(), and atexit(). And move these along with abort() and _exit() to a new section. * src/stdlib/atexit.cxx, src/stdlib/exit.cxx: Add trivial versions of atexit() and exit() * include/pkgconf/libc.h: Add CYGNUM_LIBC_MAIN_STACK_SIZE config option * include/sys/cstartup.h, src/support/cstartup.cxx, src/PKGconf.mak: New files to provide a new function cyg_iso_c_support(), which invokes main "correctly". * tests/ctype/ctype.c, tests/setjmp/setjmp.c, tests/stdio/sprintf1.c, tests/stdio/sprintf2.c, tests/stdio/sscanf.c, tests/stdlib/abs.c, tests/stdlib/atoi.c, tests/stdlib/atol.c, tests/stdlib/bsearch.c, tests/stdlib/div.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/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/strcoll2.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: Modify all tests to use new startup mechanism, and cyg_iso_c_start()Fri Aug 28 00:29:38 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/stdio/common/stream.cxx: Add #ifdef CYGSEM_LIBC_STDIO_WANT_BUFFERED_IO around all accesses to flags.last_buffer_op_was_read. Fix for PR 16997Thu Aug 27 01:12:42 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/sys/file_if.h: Fix comments and remove cyg_get_file_star()Wed Aug 26 20:24:32 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/pkgconf/libc.h: Remove #define CYGPKG_LIBC is that is meant to live in <pkgconf/system.h> after allWed Aug 26 19:39:23 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/pkgconf/libc.h: More fixes to CDL stuff to make it work better, and look better on the screenTue Aug 25 20:21:41 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/pkgconf/libc.h: Make some fixes after running the ConfigToolTue Aug 25 16:46:28 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/pkgconf/libc.h (CYGNUM_LIBC_STDIO_BUFSIZE): Fix typo of CYGNUM_LIBC_STDIO_BUFSIZETue Aug 25 15:10:57 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/pkgconf/libc.h: Tidy up CDL stuff a bit more, prior to checking it actually works.Tue Aug 25 11:38:52 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * tests/stdlib/malloc2.c (main): Prevent calls to CYG_TEST_STILL_ALIVE for nowTue Aug 25 05:39:28 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/pkgconf/libc.h: Change cosmetic paragraph alignment. Tue Aug 25 03:11:34 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/support/clibdata.cxx: Make stderr initialise with buffer size 0. For PR 16955Mon Aug 24 17:38:46 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * include/pkgconf/libc.h: First pass at CDL-ifying the C library configuration. Currently deliberately disabled as there a few outstanding issues.Mon Aug 24 16:14:22 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/stdio/output/vfnprintf.cxx (_vfnprintf): clear up warning for unused argument * tests/stdlib/malloc2.c (NUM_ITERATIONS): Lower to 100 from 50000 so it won't take too long under the simulatorThu Aug 20 17:48:43 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/stdlib/malloc.cxx: Remove now unnecessary inclusion of kernel/ktypes.hWed Aug 19 19:19:14 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * tests/stdio/sprintf1.c, tests/stdio/sprintf2.c, tests/stdio/sscanf.c, tests/stdlib/atoi.c, tests/stdlib/atol.c, tests/stdlib/rand1.c, tests/stdlib/rand2.c, tests/stdlib/rand3.c, tests/stdlib/srand.c, tests/stdlib/strtol.c, tests/stdlib/strtoul.c, tests/string/strtok.c, tests/time/clock.c: Add parameters to "main()" to silence warningsWed Aug 19 18:52:59 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/stdio/common/stream.cxx (refill_read_buffer): Put conditional error check into same #ifdef and if as what was being checked in the first place!Wed Aug 19 18:49:19 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/clibincl/stream.inl: Reorder Cyg_StdioStream::check_this() to be first to silence warningsTue Aug 18 16:10:03 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * ecc/language/c/libc/current/src/clibincl/clibdata.hxx, ecc/language/c/libc/current/src/errno/errno.cxx, ecc/language/c/libc/current/src/stdio/common/fopen.cxx, ecc/language/c/libc/current/src/stdlib/rand.cxx, ecc/language/c/libc/current/src/string/strtok.cxx: Rename CYGIMP_LIBC_INTERNAL_DATA_PREAMBLE, CYGIMP_LIBC_INTERNAL_DATA_ALLOC_CHECK_PREAMBLE, CYGVAR_LIBC_INTERNAL_DATA, and CYGIMP_LIBC_INTERNAL_DATA_CHECK to all have CYGPRI_ prefix instead as recommended by the config name rulesTue Aug 18 14:31:19 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/stdio/common/setvbuf.cxx (_setvbuf): Rename variable names in assert line, otherwise doesn't build with asserts on!Sun Aug 16 18:15:12 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/stdio/input/vfscanf.cxx (_vfscanf): Fix some bugs, although there are some left to fix still. Unrelated to the rest of the checkins, so I will check the partial fix in now. * src/clibincl/stream.hxx, src/clibincl/stream.inl, src/stdio/common/stream.cxx: Add parameters to constructor to allow more things to be done at construction time. Now we have "new", remove separate "construct" method Add more documentation on constructor As requested by code review, where possible, move boolean flags into separate packed bitfield structure for space efficiency Make readbuf_char be usable all the time rather than when configured not to be buffering, as it is also needed for non-buffered mode i.e. _IONBF * src/stdio/common/fopen.cxx: Change to use new method of construction from above, using new Use thread-specific data, rather than global. And so change errnos to access errno entry specifically Make process_mode() check for append mode too Reformat for coding standards to have { in same line as "verb" * src/stdio/common/setvbuf.cxx: Change to cope with different way of dealing with buffering policy flags etc. in Cyg_StdioStream * src/stdio/common/vsnprintf.cxx, src/stdio/common/vsscanf.cxx, src/support/clibdata.cxx: Change construction of streams to use new parameters added above, and change to use _IONBF mode for string stdio functions, otherwise its a waste of memory. And use _IONBF for stderr as the ISO standard tells us to! Reformat for coding standards to have { in same line as "verb" * src/clibincl/streambuf.hxx, src/clibincl/streambuf.inl: Change constructor so that it can be set with default size and dynamic buffer (if applicable) Fix minor bug in destructor - should only call free when allocated dynamically Change get_buffer_size to return -1 if the buffer was not allowed to be set up * src/stdio/common/streambuf.cxx: Remove unnecessary stdio.h include and add extra comment to whether to free bit in set_buffer() * src/stdio/common/freopen.cxx: Change @@@ to standard fix me string * src/stdio/output/fputc.cxx: Remove unnecessary "written" variableThu Aug 13 15:37:28 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/stdlib/_exit.cxx: Included use of "fix me" line to ensure this is discussed before release * include/stdlib.h, src/stdlib/abort.cxx, src/PKGconf.mak: Add abort.cxx to implement abort(), albeit naivelyThu Jul 30 18:03:09 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> * src/stdio/common/vsscanf.cxx (_vsscanf), src/stdio/common/vsnprintf.cxx (_vsnprintf): Fix initialiser of pseudo string device table that didn't get updated when the table changed (Bad proven, no biscuit). * src/clibincl/stream.inl (~Cyg_StdioStream):
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -