This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] Remove _wrapup_reent()
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Cc: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- Date: Fri, 10 May 2013 10:20:28 +0200
- Subject: [PATCH] Remove _wrapup_reent()
This function is not used in Newlib. It has no declaration in a header
file. It was introduced in 1997 for RTEMS. It is not used in RTEMS any
more. If a system still needs this function it can recover its last
implementation from the version control and use a local copy if
necessary.
newlib/ChangeLog
2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libc/reent/reent.c (_wrapup_reent): Remove.
---
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 61da3b2..9f5a8c0 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);
-}
-
--
1.7.7