gthr-posix.c (pthread_cancel): Define.

* gthr-posix.c (pthread_cancel): Define.
	(pthread_mutexattr_init): Likewise.
	(pthread_mutexattr_settype): Likewise.
	(pthread_mutexattr_destroy): Likewise.

From-SVN: r98206
This commit is contained in:
Rainer Orth 2005-04-15 19:57:12 +00:00 committed by Rainer Orth
parent 4e9856298f
commit 35205e8f05
2 changed files with 33 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2005-04-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* gthr-posix.c (pthread_cancel): Define.
(pthread_mutexattr_init): Likewise.
(pthread_mutexattr_settype): Likewise.
(pthread_mutexattr_destroy): Likewise.
2005-04-15 David S. Miller <davem@davemloft.net>
PR target/20673

View File

@ -1,6 +1,6 @@
/* POSIX threads dummy routines for systems without weak definitions. */
/* Compile this one with gcc. */
/* Copyright (C) 2003, 2004 Free Software Foundation, Inc.
/* Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of GCC.
@ -74,6 +74,12 @@ pthread_create (pthread_t *thread ATTRIBUTE_UNUSED,
return 0;
}
int
pthread_cancel(pthread_t thread ATTRIBUTE_UNUSED)
{
return 0;
}
int
pthread_mutex_lock (pthread_mutex_t *mutex ATTRIBUTE_UNUSED)
{
@ -92,6 +98,25 @@ pthread_mutex_unlock (pthread_mutex_t *mutex ATTRIBUTE_UNUSED)
return 0;
}
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)
{