📄 changelog.libc
字号:
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 improvements
1999-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 files
1999-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 18898
1999-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 definition
1999-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 header
1999-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.
1999-01-15 Gary Thomas <gthomas@cygnus.co.uk>
* include/pkgconf/libc.h (CYGNUM_LIBC_MAIN_STACK_SIZE):
(CYGNUM_LIBC_MALLOC_MEMPOOL_SIZE): Change defaults to be
more reasonable on small systems.
1999-01-04 Jonathan Larmour <jlarmour@cygnus.co.uk>
* src/support/clibdata.cxx:
Minor bug with environ not being initialised correctly by
default
1998-12-24 Bart Veer <bartv@cygnus.co.uk>
* src/clibincl/stream.inl (Cyg_StdioStream):
check_this() member functions should now be const
1998-12-22 Jonathan Larmour <jlarmour@cygnus.co.uk>
* src/string/memchr.cxx (_memchr):
treat search value parameter to memchr as an unsigned byte,
not a signed int - copied fix from newlib PR 18471
1998-12-21 Jonathan Larmour <jlarmour@cygnus.co.uk>
* tests/stdlib/realloc.c:
* tests/stdlib/malloc3.c:
* tests/stdlib/malloc2.c:
Warning cleanup
1998-12-14 Jonathan Larmour <jlarmour@cygnus.co.uk>
* tests/stdlib/malloc2.c, tests/stdlib/malloc3.c,
tests/stdlib/realloc.c:
Only run these tests when we have a coalescing memory allocator
1998-12-14 Jonathan Larmour <jlarmour@cygnus.co.uk>
* src/stdio/common/stream.cxx:
Only check buffer init success if buffering
* src/stdio/common/streambuf.cxx (set_buffer):
Check for diff of requested size against buffer_size, not
get_buffer_size(), since this may return -1, which won't be
equal to size, and will cause malloc to be called
1998-12-01 Jesper Skov <jskov@cygnus.co.uk>
* tests/stdlib/getenv.c (main): Don't declare variables when they
are not used.
Thu Nov 26 17:59:12 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
* tests/string/strncpy1.c:
Fix off-by-one error since it called my_strcmp() and not
my_strncmp(), which meant in included the trailing NULL when it
shouldn't have.
1998-11-26 Jesper Skov <jskov@cygnus.co.uk>
* src/stdlib/qsort.cxx (_qsort):
* src/stdlib/rand.cxx (_srand):
Changed CYG_REPORT_FUNCNAMETYPE to CYG_REPORT_FUNCNAME in void
functions.
Mon Oct 26 18:49:00 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
* src/support/cstartup.cxx (cyg_libc_dummy_main):
Silence compiler warning with cast of char * to CYG_ADDRWORD
Wed Oct 28 17:31:21 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
* src/time/clock.cxx (_clock):
Reorder scaling expression as it was both incorrect and risked
overflow.
Fix for PR 18076
Mon Oct 19 14:40:06 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
* include/stdio.h (EOF):
Change from -64 to (-1), to allow broken code to work :-/
Also change other negative defines to be within parentheses
1998-10-19 Mark Galassi <rosalia@cygnus.com>
* include/pkgconf/libc.h: updated the doc URL
Thu Oct 15 21:33:44 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
* src/clibincl/clibdata.hxx:
Only include kernel thread headers when we're in thread-safe mode
* src/time/clock.cxx:
Only include kernel clock headers if there's a kernel with the
right functionality available
* tests/time/clock.c:
Remove unnecessary inclusion of <pkgconf/kernel.h>
Above changes are required for PR 17229
Wed Oct 14 16:38:55 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
* src/clibincl/clibdata.hxx, src/clibincl/clibdata.inl:
Conditionalise inclusion of clibincl/stdiosupp.hxx and
clibincl/stream.hxx. Tidying up PR 17502
Wed Oct 14 14:08:56 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
* include/pkgconf/libc.h:
Rename CYGPKG_LIBC_STRING_OPTIMISATIONS to
CYGPKG_LIBC_STRING_OPTIMIZATIONS to make it truely merkin.
Tue Oct 13 19:34:41 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
* include/pkgconf/libc.h (CYGDAT_LIBC_ARGUMENTS):
Add a default argv[0] of "" as many programs assume argc>0
The standard allows argv[0] to be "" if the program name
is not available
1998-09-26 Bart Veer <bartv@cygnus.co.uk>
* src/clibincl/stdiosupp.hxx:
PR 17502: this header file now does nothing if the stdio option
is disabled completely. This is the same behaviour is
clibincl/stream.hxx, although arguably the #ifdef protection
should happen wherever the header file is #include'd rather than
in the header file itself.
* src/clibincl/clibdata.hxx:
PR 17502: this header file still #include's internal stdio-related
header files and references the FILE structure, even if stdio is
disabled. There were some #ifdef's for CYGPKG_LIBC_STDIO already.
One more has been added for _fopen() and _fclose().
1998-09-25 Bart Veer <bartv@cygnus.co.uk>
* src/clibincl/streambuf.inl (Cyg_StdioStreamBuffer):
PR 17487: Reorder the calls to initialize member fields, to
eliminate a compiler warning.
Fri Sep 25 19:04:29 1998 Jonathan Larmour <jlarmour@peshwari.cygnus.co.uk>
* src/errno/errno.cxx, src/stdlib/bsearch.cxx,
src/stdlib/qsort.cxx, src/stdlib/rand.cxx, src/string/strtok.cxx,
src/time/clock.cxx:
Only define tracing variable and tracing level macro when
the relevant tracing level config options are set. Otherwise
keep the tracing level fixed at 0
Fix for PR 17476
* include/pkgconf/libc.h:
Define trace levels only if parent CYGPKG_LIBC_TRACE is defined
for consistency with Configuration Tool
Fri Sep 25 17:24:45 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
* src/stdio/common/stdioinlines.cxx:
Make definition of vscanf() dependent on CYGFUN_LIBC_STDIO_ungetc
otherwise _vfscanf() won't be compiled. This therefore would
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -