From a22cad65ccb9cfd81c057db83cc2c7c2cb5ae79d Mon Sep 17 00:00:00 2001 From: kan Date: Fri, 30 May 2003 00:21:52 +0000 Subject: Attempt to eliminate PLT relocations from rwlock aquire/release path, making them suitable for direct use by the dynamic loader. Register libpthread-specific locking API with rtld on startup. This still has some rough edges with signals which should be addresses later. Approved by: re (scottl) --- lib/libpthread/thread/thr_exit.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'lib/libpthread/thread/thr_exit.c') diff --git a/lib/libpthread/thread/thr_exit.c b/lib/libpthread/thread/thr_exit.c index 22f187b..6dbef07 100644 --- a/lib/libpthread/thread/thr_exit.c +++ b/lib/libpthread/thread/thr_exit.c @@ -47,16 +47,12 @@ __weak_reference(_pthread_exit, pthread_exit); void _thr_exit(char *fname, int lineno, char *msg) { - char s[256]; - /* Prepare an error message string: */ - snprintf(s, sizeof(s), + /* Write an error message to the standard error file descriptor: */ + _thread_printf(2, "Fatal error '%s' at line %d in file %s (errno = %d)\n", msg, lineno, fname, errno); - /* Write the string to the standard error file descriptor: */ - __sys_write(2, s, strlen(s)); - abort(); } -- cgit v1.1