소스 검색

use internal versions of exit/memcpy

Peter S. Mazinger 20 년 전
부모
커밋
5fa64b8388
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      libc/misc/wchar/wchar.c
  2. 1 1
      libpthread/linuxthreads.old/forward.c
  3. 1 1
      libpthread/linuxthreads.old/libc_pthread_init.c

+ 1 - 1
libc/misc/wchar/wchar.c

@@ -1581,7 +1581,7 @@ static void error_msg(const char *fmt, ...)
 		va_end(arg);
 	}
 
-	exit(EXIT_FAILURE);
+	__exit(EXIT_FAILURE);
 }
 
 int main(int argc, char **argv)

+ 1 - 1
libpthread/linuxthreads.old/forward.c

@@ -101,7 +101,7 @@ FORWARD (pthread_equal, (pthread_t thread1, pthread_t thread2),
 
 
 /* Use an alias to avoid warning, as pthread_exit is declared noreturn.  */
-FORWARD2 (__pthread_exit, void, (void *retval), (retval), exit (EXIT_SUCCESS))
+FORWARD2 (__pthread_exit, void, (void *retval), (retval), __exit (EXIT_SUCCESS))
 strong_alias (__pthread_exit, pthread_exit);
 
 

+ 1 - 1
libpthread/linuxthreads.old/libc_pthread_init.c

@@ -34,7 +34,7 @@ __libc_pthread_init (functions)
   /* We copy the content of the variable pointed to by the FUNCTIONS
      parameter to one in libc.so since this means access to the array
      can be done with one memory access instead of two.  */
-  memcpy (&__libc_pthread_functions, functions,
+  __memcpy (&__libc_pthread_functions, functions,
 	  sizeof (__libc_pthread_functions));
 #endif