* libc/reent/reent.c (_wrapup_reent): Remove.

This commit is contained in:
Corinna Vinschen 2013-05-16 12:29:28 +00:00
parent dae40103a5
commit 99e87649c7
2 changed files with 4 additions and 33 deletions

View File

@ -1,3 +1,7 @@
2013-05-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libc/reent/reent.c (_wrapup_reent): Remove.
2013-05-13 DJ Delorie <dj@delorie.com>
Nick Clifton <nickc@redhat.com>

View File

@ -125,36 +125,3 @@ _DEFUN (_reclaim_reent, (ptr),
}
}
/*
* Do atexit() processing and cleanup
*
* NOTE: This is to be executed at task exit. It does not tear anything
* down which is used on a global basis.
*/
void
_DEFUN (_wrapup_reent, (ptr), struct _reent *ptr)
{
#ifndef _REENT_GLOBAL_ATEXIT
register struct _atexit *p;
#endif
register int n;
if (ptr == NULL)
ptr = _REENT;
#ifndef _REENT_GLOBAL_ATEXIT
# ifdef _REENT_SMALL
for (p = ptr->_atexit, n = p ? p->_ind : 0; --n >= 0;)
(*p->_fns[n]) ();
# else
for (p = ptr->_atexit; p; p = p->_next)
for (n = p->_ind; --n >= 0;)
(*p->_fns[n]) ();
# endif
#endif
if (ptr->__cleanup)
(*ptr->__cleanup) (ptr);
}