about summary refs log tree commit diff
path: root/nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-13 01:51:12 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-13 01:51:12 +0000
commit7588880f50f551cb60a99e2dd2068fdc170e5435 (patch)
tree9d1a5e21e3289c84973ff351b40172c08f2d4967 /nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c
parent959c5bbfeee074dbd3dcef98acd41b2e53d14cec (diff)
downloadglibc-7588880f50f551cb60a99e2dd2068fdc170e5435.tar.gz
glibc-7588880f50f551cb60a99e2dd2068fdc170e5435.tar.xz
glibc-7588880f50f551cb60a99e2dd2068fdc170e5435.zip
Update.
	* sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
	libc_multiple_threads.
	* sysdeps/unix/sysv/linux/libc_pthread_init.c: Move definition of
	__libc_multiple_threads to...
	* sysdeps/unix/sysv/linux/libc_multiple_threads.c: ...here.  New file.

	* sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove unnecessary
	versioning.
	* sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.

	* sysdeps/unix/sysv/linux/x86_64/pthread_once.S
	(__pthread_once_internal): Define.

	* sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Use shlib-compat.h
	macros instead of .symver directly.
	* sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
	* sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c')
-rw-r--r--nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c b/nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c
new file mode 100644
index 0000000000..a96f174900
--- /dev/null
+++ b/nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c
@@ -0,0 +1,26 @@
+/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+   Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+   02111-1307 USA.  */
+
+#include <pthreadP.h>
+
+#ifndef NOT_IN_libc
+# ifndef TLS_MULTIPLE_THREADS_IN_TCB
+int __libc_multiple_threads attribute_hidden;
+# endif
+#endif