diff options
author | Alexander Kabaev <kan@FreeBSD.org> | 2007-05-19 01:19:51 +0000 |
---|---|---|
committer | Alexander Kabaev <kan@FreeBSD.org> | 2007-05-19 01:19:51 +0000 |
commit | 6b834ef156bcf24dcf0e281f57ee5bde03ca07cf (patch) | |
tree | 0cb530c9c38af219e6dda2994c078b6b2b9ad853 /contrib/gcc/gthr-posix.c | |
parent | 9ba78bf6b1135ae200742b2a97ae5bc71c9fd265 (diff) | |
download | src-6b834ef156bcf24dcf0e281f57ee5bde03ca07cf.tar.gz src-6b834ef156bcf24dcf0e281f57ee5bde03ca07cf.zip |
GCC 4.2.0 release.
Notes
Notes:
svn path=/vendor/gcc/dist/; revision=169689
Diffstat (limited to 'contrib/gcc/gthr-posix.c')
-rw-r--r-- | contrib/gcc/gthr-posix.c | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/contrib/gcc/gthr-posix.c b/contrib/gcc/gthr-posix.c index 56bbad283011..a8922c0c16bb 100644 --- a/contrib/gcc/gthr-posix.c +++ b/contrib/gcc/gthr-posix.c @@ -1,6 +1,6 @@ /* POSIX threads dummy routines for systems without weak definitions. */ /* Compile this one with gcc. */ -/* Copyright (C) 2003 Free Software Foundation, Inc. +/* Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GCC. @@ -16,8 +16,8 @@ for more details. You should have received a copy of the GNU General Public License along with GCC; see the file COPYING. If not, write to the Free -Software Foundation, 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. */ +Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301, USA. */ /* As a special exception, if you link this library with other files, some of which are compiled with GCC, to produce an executable, @@ -75,6 +75,12 @@ pthread_create (pthread_t *thread ATTRIBUTE_UNUSED, } int +pthread_cancel(pthread_t thread ATTRIBUTE_UNUSED) +{ + return 0; +} + +int pthread_mutex_lock (pthread_mutex_t *mutex ATTRIBUTE_UNUSED) { return 0; @@ -93,6 +99,25 @@ pthread_mutex_unlock (pthread_mutex_t *mutex ATTRIBUTE_UNUSED) } int +pthread_mutexattr_init (pthread_mutexattr_t *attr ATTRIBUTE_UNUSED) +{ + return 0; +} + +int +pthread_mutexattr_settype (pthread_mutexattr_t *attr ATTRIBUTE_UNUSED, + int type ATTRIBUTE_UNUSED) +{ + return 0; +} + +int +pthread_mutexattr_destroy (pthread_mutexattr_t *attr ATTRIBUTE_UNUSED) +{ + return 0; +} + +int pthread_cond_broadcast (pthread_cond_t *cond ATTRIBUTE_UNUSED) { return 0; @@ -147,7 +172,7 @@ pthread_self (void) { return (pthread_t) 0; } - +#ifdef _POSIX_PRIORITY_SCHEDULING #ifdef _POSIX_THREAD_PRIORITY_SCHEDULING int sched_get_priority_max (int policy ATTRIBUTE_UNUSED) @@ -161,6 +186,7 @@ sched_get_priority_min (int policy ATTRIBUTE_UNUSED) return 0; } #endif /* _POSIX_THREAD_PRIORITY_SCHEDULING */ +#endif /* _POSIX_PRIORITY_SCHEDULING */ int sched_yield (void) |