summaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authorMarco S Hyman <marc@cvs.openbsd.org>2002-10-11 19:08:42 +0000
committerMarco S Hyman <marc@cvs.openbsd.org>2002-10-11 19:08:42 +0000
commitc816df77cc0c7069e075e3cfc9e56b8e45f11eab (patch)
tree045a592a11da5ea06ea8423e7bb4631d70c8b17f /lib/libpthread
parenta505f0baf2f6f87806f2148c8ba3ac08b6abdf79 (diff)
remove unused/unreferenced code.
ok fgs@
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/arch/alpha/_atomic_lock.c11
-rw-r--r--lib/libpthread/arch/hppa/_atomic_lock.c8
-rw-r--r--lib/libpthread/arch/i386/_atomic_lock.c10
-rw-r--r--lib/libpthread/arch/m68k/_atomic_lock.c9
-rw-r--r--lib/libpthread/arch/m88k/_atomic_lock.c9
-rw-r--r--lib/libpthread/arch/mips/_atomic_lock.c13
-rw-r--r--lib/libpthread/arch/powerpc/_atomic_lock.c9
-rw-r--r--lib/libpthread/arch/sparc/_atomic_lock.c9
-rw-r--r--lib/libpthread/arch/sparc64/_atomic_lock.c9
-rw-r--r--lib/libpthread/arch/vax/_atomic_lock.c9
10 files changed, 10 insertions, 86 deletions
diff --git a/lib/libpthread/arch/alpha/_atomic_lock.c b/lib/libpthread/arch/alpha/_atomic_lock.c
index 912d7c97709..5de2960abdc 100644
--- a/lib/libpthread/arch/alpha/_atomic_lock.c
+++ b/lib/libpthread/arch/alpha/_atomic_lock.c
@@ -1,15 +1,6 @@
-/* $OpenBSD: _atomic_lock.c,v 1.6 2002/06/06 15:43:04 art Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.7 2002/10/11 19:08:41 marc Exp $ */
/*
* Atomi lock for alpha.
*/
-#include "spinlock.h"
-
/* _atomic lock is implemented in assembler. */
-
-int
-_atomic_is_locked(volatile _spinlock_lock_t * lock)
-{
-
- return (*lock != _SPINLOCK_UNLOCKED);
-}
diff --git a/lib/libpthread/arch/hppa/_atomic_lock.c b/lib/libpthread/arch/hppa/_atomic_lock.c
index be47bb99afa..9882303e388 100644
--- a/lib/libpthread/arch/hppa/_atomic_lock.c
+++ b/lib/libpthread/arch/hppa/_atomic_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: _atomic_lock.c,v 1.1 1998/12/21 22:54:55 mickey Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.2 2002/10/11 19:08:41 marc Exp $ */
/*
* Atomic lock for hppa
*/
@@ -13,9 +13,3 @@ _atomic_lock(volatile register_t *lock)
return (old == _SPINLOCK_LOCKED);
}
-
-int
-_atomic_is_locked(volatile register_t *lock)
-{
- return (*lock == _SPINLOCK_LOCKED);
-}
diff --git a/lib/libpthread/arch/i386/_atomic_lock.c b/lib/libpthread/arch/i386/_atomic_lock.c
index 87d3d62ce4c..8e97ec7c3e9 100644
--- a/lib/libpthread/arch/i386/_atomic_lock.c
+++ b/lib/libpthread/arch/i386/_atomic_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: _atomic_lock.c,v 1.6 2001/03/13 00:05:51 d Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.7 2002/10/11 19:08:41 marc Exp $ */
/* David Leonard, <d@csee.uq.edu.au>. Public domain. */
/*
@@ -23,11 +23,3 @@ _atomic_lock(volatile _spinlock_lock_t *lock)
return (old != _SPINLOCK_UNLOCKED);
}
-
-int
-_atomic_is_locked(volatile _spinlock_lock_t *lock)
-{
-
- /* Return true if the lock is locked (i.e., is not unlocked). */
- return (*lock != _SPINLOCK_UNLOCKED);
-}
diff --git a/lib/libpthread/arch/m68k/_atomic_lock.c b/lib/libpthread/arch/m68k/_atomic_lock.c
index c91b11ce26e..af162f36091 100644
--- a/lib/libpthread/arch/m68k/_atomic_lock.c
+++ b/lib/libpthread/arch/m68k/_atomic_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: _atomic_lock.c,v 1.5 1999/03/10 09:32:01 d Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.6 2002/10/11 19:08:41 marc Exp $ */
/*
* Atomic lock for m68k
*/
@@ -34,10 +34,3 @@ _atomic_lock(volatile _spinlock_lock_t *lock)
: "cc");
return (old != _SPINLOCK_UNLOCKED);
}
-
-int
-_atomic_is_locked(volatile _spinlock_lock_t *lock)
-{
-
- return (*lock != _SPINLOCK_UNLOCKED);
-}
diff --git a/lib/libpthread/arch/m88k/_atomic_lock.c b/lib/libpthread/arch/m88k/_atomic_lock.c
index a6ca8e7f71f..8d4d0ba2182 100644
--- a/lib/libpthread/arch/m88k/_atomic_lock.c
+++ b/lib/libpthread/arch/m88k/_atomic_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: _atomic_lock.c,v 1.1 1999/03/03 06:00:10 smurph Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.2 2002/10/11 19:08:41 marc Exp $ */
/*
* Atomic lock for m68k
*/
@@ -10,10 +10,3 @@ _atomic_lock(volatile _spinlock_lock_t *lock)
{
return (_thread_slow_atomic_lock(lock));
}
-
-int
-_atomic_is_locked(volatile _spinlock_lock_t *lock)
-{
-
- return (*lock != _SPINLOCK_UNLOCKED);
-}
diff --git a/lib/libpthread/arch/mips/_atomic_lock.c b/lib/libpthread/arch/mips/_atomic_lock.c
index 7c075f95e14..8eec2084c82 100644
--- a/lib/libpthread/arch/mips/_atomic_lock.c
+++ b/lib/libpthread/arch/mips/_atomic_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: _atomic_lock.c,v 1.6 1999/02/02 01:36:00 imp Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.7 2002/10/11 19:08:41 marc Exp $ */
/*
* Atomic lock for mips
*/
@@ -53,14 +53,3 @@ _atomic_lock(volatile _spinlock_lock_t *lock)
return (_thread_slow_atomic_lock(lock));
#endif
}
-
-int
-_atomic_is_locked(volatile _spinlock_lock_t *lock)
-{
-
-#if __mips >= 2
- return (*lock != _SPINLOCK_UNLOCKED);
-#else
- return (_thread_slow_atomic_is_locked(lock));
-#endif
-}
diff --git a/lib/libpthread/arch/powerpc/_atomic_lock.c b/lib/libpthread/arch/powerpc/_atomic_lock.c
index e3eb2aab290..0d6099bbfed 100644
--- a/lib/libpthread/arch/powerpc/_atomic_lock.c
+++ b/lib/libpthread/arch/powerpc/_atomic_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: _atomic_lock.c,v 1.3 2002/07/10 20:30:13 jsyn Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.4 2002/10/11 19:08:41 marc Exp $ */
/*
* Atomic lock for powerpc
*/
@@ -34,10 +34,3 @@ _atomic_lock(volatile _spinlock_lock_t *lock)
* processors.
*/
}
-
-int
-_atomic_is_locked(volatile _spinlock_lock_t *lock)
-{
-
- return (*lock != _SPINLOCK_UNLOCKED);
-}
diff --git a/lib/libpthread/arch/sparc/_atomic_lock.c b/lib/libpthread/arch/sparc/_atomic_lock.c
index d0974017de4..09ef32393eb 100644
--- a/lib/libpthread/arch/sparc/_atomic_lock.c
+++ b/lib/libpthread/arch/sparc/_atomic_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: _atomic_lock.c,v 1.6 1999/03/10 09:30:53 d Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.7 2002/10/11 19:08:41 marc Exp $ */
/*
* Atomic lock for sparc
*/
@@ -39,10 +39,3 @@ _atomic_lock(volatile _spinlock_lock_t * lock)
return (old == _SPINLOCK_LOCKED);
}
-
-int
-_atomic_is_locked(volatile _spinlock_lock_t * lock)
-{
-
- return (*lock == _SPINLOCK_LOCKED);
-}
diff --git a/lib/libpthread/arch/sparc64/_atomic_lock.c b/lib/libpthread/arch/sparc64/_atomic_lock.c
index f14f9f51ba0..5e4115cf0fb 100644
--- a/lib/libpthread/arch/sparc64/_atomic_lock.c
+++ b/lib/libpthread/arch/sparc64/_atomic_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: _atomic_lock.c,v 1.1 2001/09/10 20:00:14 jason Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.2 2002/10/11 19:08:41 marc Exp $ */
/*
* Atomic lock for sparc
*/
@@ -39,10 +39,3 @@ _atomic_lock(volatile _spinlock_lock_t * lock)
return (old == _SPINLOCK_LOCKED);
}
-
-int
-_atomic_is_locked(volatile _spinlock_lock_t * lock)
-{
-
- return (*lock == _SPINLOCK_LOCKED);
-}
diff --git a/lib/libpthread/arch/vax/_atomic_lock.c b/lib/libpthread/arch/vax/_atomic_lock.c
index 22f95ffe38c..aedbb86c1dd 100644
--- a/lib/libpthread/arch/vax/_atomic_lock.c
+++ b/lib/libpthread/arch/vax/_atomic_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: _atomic_lock.c,v 1.1 2001/01/27 21:23:56 hugh Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.2 2002/10/11 19:08:41 marc Exp $ */
/*
* Atomic lock for vax
@@ -11,10 +11,3 @@ _atomic_lock(volatile _spinlock_lock_t *lock)
{
return (_thread_slow_atomic_lock(lock));
}
-
-int
-_atomic_is_locked(volatile _spinlock_lock_t *lock)
-{
-
- return (*lock != _SPINLOCK_UNLOCKED);
-}