aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-10-01 06:25:58 +0000
committerUlrich Drepper <drepper@redhat.com>2003-10-01 06:25:58 +0000
commitc1384d107715df7091b40233e252ec327b586bc2 (patch)
treef383b12be1fa58f67a914e16e2dafab377096460 /linuxthreads/sysdeps
parentf556dbfa418a6898f3be215586ee73411f50afa8 (diff)
downloadglibc-c1384d107715df7091b40233e252ec327b586bc2.tar
glibc-c1384d107715df7091b40233e252ec327b586bc2.tar.gz
glibc-c1384d107715df7091b40233e252ec327b586bc2.tar.bz2
glibc-c1384d107715df7091b40233e252ec327b586bc2.zip
Update.
Diffstat (limited to 'linuxthreads/sysdeps')
-rw-r--r--linuxthreads/sysdeps/pthread/malloc-machine.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/linuxthreads/sysdeps/pthread/malloc-machine.h b/linuxthreads/sysdeps/pthread/malloc-machine.h
index 7eff836285..5191f8c779 100644
--- a/linuxthreads/sysdeps/pthread/malloc-machine.h
+++ b/linuxthreads/sysdeps/pthread/malloc-machine.h
@@ -28,8 +28,6 @@
__libc_lock_define (typedef, mutex_t)
-#if defined(__libc_maybe_call2)
-
#define mutex_init(m) \
__libc_maybe_call2 (pthread_mutex_init, (m, NULL), (*(int *)(m) = 0))
#define mutex_lock(m) \
@@ -40,20 +38,6 @@ __libc_lock_define (typedef, mutex_t)
#define mutex_unlock(m) \
__libc_maybe_call2 (pthread_mutex_unlock, (m), (*(int *)(m) = 0))
-#else
-
-#define mutex_init(m) \
- __libc_maybe_call (__pthread_mutex_init, (m, NULL), (*(int *)(m) = 0))
-#define mutex_lock(m) \
- __libc_maybe_call (__pthread_mutex_lock, (m), ((*(int *)(m) = 1), 0))
-#define mutex_trylock(m) \
- __libc_maybe_call (__pthread_mutex_trylock, (m), \
- (*(int *)(m) ? 1 : ((*(int *)(m) = 1), 0)))
-#define mutex_unlock(m) \
- __libc_maybe_call (__pthread_mutex_unlock, (m), (*(int *)(m) = 0))
-
-#endif
-
/* This is defined by newer gcc version unique for each module. */
extern void *__dso_handle __attribute__ ((__weak__));