aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-05-05 21:46:30 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-05-05 21:46:30 +0000
commitf1daac6f220fd732b659b648fcccc648b062e304 (patch)
tree72937ddbba954835fe5662ffdbc24552be4318cb /lib/libc
parenta8f00855a1d177ca54f2a1a83841ecf20a066ace (diff)
downloadsrc-f1daac6f220fd732b659b648fcccc648b062e304.tar.gz
src-f1daac6f220fd732b659b648fcccc648b062e304.zip
In a threaded library, expect the lock field to be declared volatile,
so provide function prototypes that respect that, avoiding a gcc warning that `volatile' is being thrown away.
Notes
Notes: svn path=/head/; revision=35753
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/include/spinlock.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/include/spinlock.h b/lib/libc/include/spinlock.h
index 5c6426448f29..50843ceac498 100644
--- a/lib/libc/include/spinlock.h
+++ b/lib/libc/include/spinlock.h
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: spinlock.h,v 1.1 1998/03/09 05:05:32 jb Exp $
*
* Lock definitions used in both libc and libpthread.
*
@@ -43,10 +43,10 @@
* Thread function prototype definitions:
*/
__BEGIN_DECLS
-long _atomic_lock __P((long *, long));
-long _atomic_unlock __P((long *));
-void _spinlock __P((long *));
-void _spinunlock __P((long *));
+long _atomic_lock __P((volatile long *, long));
+long _atomic_unlock __P((volatile long *));
+void _spinlock __P((volatile long *));
+void _spinunlock __P((volatile long *));
__END_DECLS
#endif /* _SPINLOCK_H_ */