diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-05-16 12:29:28 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-05-16 12:29:28 +0000 |
commit | 99e87649c7c5840ad9f1304b2ceb06a02fd40b3a (patch) | |
tree | df4bdb8f89f9962a43de46b86530ed265c214ba3 /newlib/libc | |
parent | dae40103a5e4430cb836c731c8b5aee0ca115d3b (diff) | |
download | cygnal-99e87649c7c5840ad9f1304b2ceb06a02fd40b3a.tar.gz cygnal-99e87649c7c5840ad9f1304b2ceb06a02fd40b3a.tar.bz2 cygnal-99e87649c7c5840ad9f1304b2ceb06a02fd40b3a.zip |
* libc/reent/reent.c (_wrapup_reent): Remove.
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/reent/reent.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/newlib/libc/reent/reent.c b/newlib/libc/reent/reent.c index 61da3b2ba..9f5a8c0d3 100644 --- a/newlib/libc/reent/reent.c +++ b/newlib/libc/reent/reent.c @@ -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); -} - |