2003-09-05 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p is different for _REENT_SMALL than when using regular reent struct.
This commit is contained in:
parent
b73263e401
commit
f1b1505827
@ -1,3 +1,9 @@
|
|||||||
|
2003-09-05 Jeff Johnston <jjohnstn@redhat.com>
|
||||||
|
|
||||||
|
* libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p
|
||||||
|
is different for _REENT_SMALL than when using regular reent
|
||||||
|
struct.
|
||||||
|
|
||||||
2003-09-05 Ben Elliston <bje@wasabisystems.com>
|
2003-09-05 Ben Elliston <bje@wasabisystems.com>
|
||||||
|
|
||||||
* libc/ctype/wctype.c (_DEFUN): Remove empty default case, as
|
* libc/ctype/wctype.c (_DEFUN): Remove empty default case, as
|
||||||
|
@ -64,9 +64,8 @@ _DEFUN (exit, (code),
|
|||||||
register int n;
|
register int n;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
p = &_GLOBAL_REENT->_atexit;
|
|
||||||
|
|
||||||
#ifdef _REENT_SMALL
|
#ifdef _REENT_SMALL
|
||||||
|
p = &_GLOBAL_REENT->_atexit;
|
||||||
args = p->_on_exit_args_ptr;
|
args = p->_on_exit_args_ptr;
|
||||||
|
|
||||||
if (args == NULL)
|
if (args == NULL)
|
||||||
@ -83,6 +82,7 @@ _DEFUN (exit, (code),
|
|||||||
p->_fns[n] ();
|
p->_fns[n] ();
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
p = _GLOBAL_REENT->_atexit;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
args = & p->_on_exit_args;
|
args = & p->_on_exit_args;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user