svn commit: trunk/uClibc/libc/stdlib
psm at uclibc.org
psm at uclibc.org
Fri Dec 16 00:45:56 UTC 2005
Author: psm
Date: 2005-12-15 16:44:04 -0800 (Thu, 15 Dec 2005)
New Revision: 12914
Log:
New hidden versions
Modified:
trunk/uClibc/libc/stdlib/abort.c
trunk/uClibc/libc/stdlib/setenv.c
Changeset:
Modified: trunk/uClibc/libc/stdlib/abort.c
===================================================================
--- trunk/uClibc/libc/stdlib/abort.c 2005-12-16 00:38:38 UTC (rev 12913)
+++ trunk/uClibc/libc/stdlib/abort.c 2005-12-16 00:44:04 UTC (rev 12914)
@@ -70,7 +70,6 @@
#ifdef __UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT__
extern void weak_function _stdio_term(void) attribute_hidden;
#endif
-extern void _exit (int __status) __attribute__ ((__noreturn__));
static int been_there_done_that = 0;
/* Be prepared in case multiple threads try to abort() */
@@ -81,10 +80,12 @@
#define LOCK __pthread_mutex_lock(&mylock)
#define UNLOCK __pthread_mutex_unlock(&mylock)
+extern int __raise (int __sig) __THROW attribute_hidden;
-extern int __raise (int __sig) __THROW attribute_hidden;
/* Cause an abnormal program termination with core-dump */
-void abort(void)
+#undef __abort
+#undef abort
+void attribute_hidden __abort(void)
{
sigset_t sigset;
@@ -140,7 +141,7 @@
/* Still here? Try to at least exit */
if (been_there_done_that == 3) {
been_there_done_that++;
- _exit(127);
+ _exit_internal(127);
}
/* Still here? We're screwed. Sleepy time. Good night. */
@@ -149,3 +150,4 @@
ABORT_INSTRUCTION;
}
}
+strong_alias(__abort,abort)
Modified: trunk/uClibc/libc/stdlib/setenv.c
===================================================================
--- trunk/uClibc/libc/stdlib/setenv.c 2005-12-16 00:38:38 UTC (rev 12913)
+++ trunk/uClibc/libc/stdlib/setenv.c 2005-12-16 00:44:04 UTC (rev 12914)
@@ -132,10 +132,11 @@
return 0;
}
-int setenv (const char *name, const char *value, int replace)
+int attribute_hidden __setenv (const char *name, const char *value, int replace)
{
return __add_to_environ (name, value, NULL, replace);
}
+strong_alias(__setenv,setenv)
int attribute_hidden __unsetenv (const char *name)
{
More information about the uClibc-cvs
mailing list