From 0950889b810736fe7ad340a13a5ecf76672e1a84 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 2 Aug 2002 01:27:46 +0000 Subject: (public_cALLOc): Check for overflow on multiplication. --- linuxthreads/sysdeps/i386/pspinlock.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'linuxthreads') diff --git a/linuxthreads/sysdeps/i386/pspinlock.c b/linuxthreads/sysdeps/i386/pspinlock.c index 5d242388aa..bd7c55b2f4 100644 --- a/linuxthreads/sysdeps/i386/pspinlock.c +++ b/linuxthreads/sysdeps/i386/pspinlock.c @@ -1,5 +1,5 @@ /* POSIX spinlock implementation. x86 version. - Copyright (C) 2000 Free Software Foundation, Inc. + Copyright (C) 2000, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -20,6 +20,8 @@ #include #include #include "internals.h" +#include "kernel-features.h" + /* This implementation is similar to the one used in the Linux kernel. But the kernel is byte instructions for the memory access. This is @@ -95,3 +97,7 @@ __pthread_spin_destroy (pthread_spinlock_t *lock) return 0; } weak_alias (__pthread_spin_destroy, pthread_spin_destroy) + +#ifndef __ASSUME_SET_THREAD_AREA_SYSCALL +int __have_no_set_thread_area; +#endif -- cgit 1.4.1