OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [sys/] [linux/] [linuxthreads/] [weaks.c] - Blame information for rev 207

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
/* The weak pthread functions for Linux.
2
   Copyright (C) 1996,1997,1998,1999,2000,2001 Free Software Foundation, Inc.
3
   This file is part of the GNU C Library.
4
 
5
   The GNU C Library is free software; you can redistribute it and/or
6
   modify it under the terms of the GNU Library General Public License as
7
   published by the Free Software Foundation; either version 2 of the
8
   License, or (at your option) any later version.
9
 
10
   The GNU C Library is distributed in the hope that it will be useful,
11
   but WITHOUT ANY WARRANTY; without even the implied warranty of
12
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
   Library General Public License for more details.
14
 
15
   You should have received a copy of the GNU Library General Public
16
   License along with the GNU C Library; see the file COPYING.LIB.  If not,
17
   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
   Boston, MA 02111-1307, USA.  */
19
 
20
#include <errno.h>
21
#include <limits.h>
22
#include <stdlib.h>
23
#include <shlib-compat.h>
24
#include <bp-sym.h>
25
#include "libc-symbols.h"
26
 
27
extern int __pthread_return_0 (void);
28
extern int __pthread_return_1 (void);
29
extern void __pthread_return_void (void);
30
extern void weak_function pthread_exit (void *__retval)
31
     __attribute__ ((noreturn));
32
 
33
/* Those are pthread functions which return 0 if successful. */
34
weak_alias (__pthread_return_0, BP_SYM (__libc_pthread_attr_init_2_1))
35
versioned_symbol (libpthread, BP_SYM (__libc_pthread_attr_init_2_1),
36
                  BP_SYM (pthread_attr_init), GLIBC_2_1);
37
#if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)
38
weak_alias (__pthread_return_0, BP_SYM (__libc_pthread_attr_init_2_0))
39
compat_symbol (libpthread, BP_SYM (__libc_pthread_attr_init_2_0),
40
               BP_SYM (pthread_attr_init), GLIBC_2_0);
41
#endif
42
weak_alias (__pthread_return_0, BP_SYM (pthread_attr_destroy))
43
weak_alias (__pthread_return_0, BP_SYM (pthread_attr_setdetachstate))
44
weak_alias (__pthread_return_0, BP_SYM (pthread_attr_getdetachstate))
45
weak_alias (__pthread_return_0, BP_SYM (pthread_attr_setschedparam))
46
weak_alias (__pthread_return_0, BP_SYM (pthread_attr_getschedparam))
47
weak_alias (__pthread_return_0, BP_SYM (pthread_attr_setschedpolicy))
48
weak_alias (__pthread_return_0, BP_SYM (pthread_attr_getschedpolicy))
49
weak_alias (__pthread_return_0, BP_SYM (pthread_attr_setinheritsched))
50
weak_alias (__pthread_return_0, BP_SYM (pthread_attr_getinheritsched))
51
weak_alias (__pthread_return_0, BP_SYM (pthread_attr_setscope))
52
weak_alias (__pthread_return_0, BP_SYM (pthread_attr_getscope))
53
weak_alias (__pthread_return_0, BP_SYM (pthread_attr_setstackaddr))
54
weak_alias (__pthread_return_0, BP_SYM (pthread_attr_getstackaddr))
55
weak_alias (__pthread_return_0, BP_SYM (pthread_attr_setstacksize))
56
weak_alias (__pthread_return_0, BP_SYM (pthread_attr_getstacksize))
57
weak_alias (__pthread_return_0, BP_SYM (pthread_mutex_init))
58
weak_alias (__pthread_return_0, BP_SYM (pthread_mutex_destroy))
59
weak_alias (__pthread_return_0, BP_SYM (pthread_mutex_lock))
60
weak_alias (__pthread_return_0, BP_SYM (pthread_mutex_trylock))
61
weak_alias (__pthread_return_0, BP_SYM (pthread_mutex_unlock))
62
weak_alias (__pthread_return_0, BP_SYM (pthread_mutexattr_init))
63
weak_alias (__pthread_return_0, BP_SYM (pthread_mutexattr_destroy))
64
weak_alias (__pthread_return_0, BP_SYM (pthread_mutexattr_settype))
65
weak_alias (__pthread_return_0, BP_SYM (pthread_mutexattr_gettype))
66
weak_alias (__pthread_return_0, BP_SYM (pthread_condattr_init))
67
weak_alias (__pthread_return_0, BP_SYM (pthread_condattr_destroy))
68
weak_alias (__pthread_return_0, BP_SYM (pthread_setschedparam))
69
weak_alias (__pthread_return_0, BP_SYM (pthread_getschedparam))
70
weak_alias (__pthread_return_0, BP_SYM (pthread_getcancelstate))
71
weak_alias (__pthread_return_0, BP_SYM (pthread_setcancelstate))
72
weak_alias (__pthread_return_0, BP_SYM (pthread_setcanceltype))
73
weak_alias (__pthread_return_0, pthread_setconcurrency)
74
weak_alias (__pthread_return_0, pthread_getconcurrency)
75
weak_alias (__pthread_return_0, pthread_self)
76
weak_alias (__pthread_return_0, BP_SYM (pthread_cond_init))
77
weak_alias (__pthread_return_0, BP_SYM (pthread_cond_destroy))
78
weak_alias (__pthread_return_0, BP_SYM (pthread_cond_wait))
79
weak_alias (__pthread_return_0, BP_SYM (pthread_cond_timedwait))
80
weak_alias (__pthread_return_0, BP_SYM (pthread_cond_signal))
81
weak_alias (__pthread_return_0, BP_SYM (pthread_cond_broadcast))
82
weak_alias (__pthread_return_0, BP_SYM (pthread_rwlock_init))
83
weak_alias (__pthread_return_0, BP_SYM (pthread_rwlock_destroy))
84
weak_alias (__pthread_return_0, BP_SYM (pthread_rwlock_rdlock))
85
weak_alias (__pthread_return_0, BP_SYM (pthread_rwlock_wrlock))
86
weak_alias (__pthread_return_0, BP_SYM (pthread_rwlock_tryrdlock))
87
weak_alias (__pthread_return_0, BP_SYM (pthread_rwlock_trywrlock))
88
weak_alias (__pthread_return_0, BP_SYM (pthread_rwlock_unlock))
89
weak_alias (__pthread_return_0, BP_SYM (pthread_rwlockattr_init))
90
weak_alias (__pthread_return_0, BP_SYM (pthread_rwlockattr_destroy))
91
weak_alias (__pthread_return_0, BP_SYM (pthread_rwlockattr_setpshared))
92
weak_alias (__pthread_return_0, BP_SYM (pthread_rwlockattr_getpshared))
93
 
94
 
95
/* Those are pthread functions which return 1 if successful. */
96
weak_alias (__pthread_return_1, pthread_equal)
97
 
98
/* pthread_exit () is a special case. */
99
void
100
weak_function
101
pthread_exit (void *retval)
102
{
103
  exit (EXIT_SUCCESS);
104
}
105
 
106
int
107
__pthread_return_0 (void)
108
{
109
  return 0;
110
}
111
 
112
int
113
__pthread_return_1 (void)
114
{
115
  return 1;
116
}
117
 
118
void
119
__pthread_return_void (void)
120
{
121
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.