acadia-newlib/newlib/libc/stdlib
Jeff Johnston c2bbc54a62 Fix atexit logic to honor _ATEXIT_DYNAMIC_ALLOC setting.
If small reent is enabled (_REENT_SMALL is defined) then malloc() was
used in __register_exitproc() even if user requested it to be disabled
(_ATEXIT_DYNAMIC_ALLOC is defined). With this fix, function fails when
_ATEXIT_DYNAMIC_ALLOC is defined and whole static storage is already
used.

2015-12-21  Freddie Chopin  <freddie.chopin@gmail.com>

        * libc/stdlib/__atexit.c (__register_exitproc): Fix for
        _ATEXIT_DYNAMIC_ALLOC.
2015-12-21 11:53:14 -05:00
..
Makefile.am
Makefile.in
_Exit.c
__adjust.c
__atexit.c Fix atexit logic to honor _ATEXIT_DYNAMIC_ALLOC setting. 2015-12-21 11:53:14 -05:00
__call_atexit.c
__exp10.c
__ten_mu.c
a64l.c
abort.c
abs.c
aligned_alloc.c
assert.c
atexit.c
atexit.h
atof.c
atoff.c
atoi.c
atol.c
atoll.c
btowc.c
calloc.c
cxa_atexit.c
cxa_finalize.c
div.c
drand48.c
dtoa.c
dtoastub.c
ecvtbuf.c
efgcvt.c
environ.c
envlock.c
eprintf.c
erand48.c
exit.c
gd_qnan.h
gdtoa-gethex.c
gdtoa-hexnan.c
gdtoa.h
getenv.c
getenv_r.c
getopt.c
getsubopt.3
getsubopt.c
itoa.c
jrand48.c
l64a.c
labs.c
lcong48.c
ldiv.c
ldtoa.c
llabs.c
lldiv.c
local.h
lrand48.c
malign.c
malloc.c
mallocr.c
mbctype.h
mblen.c
mblen_r.c
mbrlen.c
mbrtowc.c
mbsinit.c
mbsnrtowcs.c
mbsrtowcs.c
mbstowcs.c
mbstowcs_r.c
mbtowc.c
mbtowc_r.c
mlock.c
mprec.c
mprec.h
mrand48.c
msize.c
mstats.c
mtrim.c
nano-mallocr.c
nrand48.c
on_exit.c
on_exit_args.c
on_exit_args.h
putenv.c
putenv_r.c
quick_exit.c
rand.c
rand48.c
rand48.h
rand_r.c
realloc.c
reallocf.c
rpmatch.c
sb_charsets.c
seed48.c
setenv.c
setenv_r.c
srand48.c
std.h
stdlib.tex
strtod.c
strtodg.c
strtol.c
strtold.c
strtoll.c
strtoll_r.c
strtorx.c
strtoul.c
strtoull.c
strtoull_r.c
system.c
utoa.c
valloc.c
wcrtomb.c
wcsnrtombs.c
wcsrtombs.c
wcstod.c
wcstol.c
wcstold.c
wcstoll.c
wcstoll_r.c
wcstombs.c
wcstombs_r.c
wcstoul.c
wcstoull.c
wcstoull_r.c
wctob.c
wctomb.c
wctomb_r.c