1 /* The weak pthread functions for Linux.
2 Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
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.
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.
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. */
24 extern int __pthread_return_0
__P ((void));
25 extern int __pthread_return_1
__P ((void));
26 extern void __pthread_return_void
__P ((void));
28 /* Those are pthread functions which return 0 if successful. */
29 #if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
30 weak_alias (__pthread_return_0
, __libc_pthread_attr_init_2_0
)
31 symbol_version (__libc_pthread_attr_init_2_0
, pthread_attr_init
, GLIBC_2
.0
);
32 weak_alias (__pthread_return_0
, __libc_pthread_attr_init_2_1
)
33 default_symbol_version (__libc_pthread_attr_init_2_1
, pthread_attr_init
,
36 weak_alias (__pthread_return_0
, pthread_attr_init
)
38 weak_alias (__pthread_return_0
, pthread_attr_destroy
)
39 weak_alias (__pthread_return_0
, pthread_attr_setdetachstate
)
40 weak_alias (__pthread_return_0
, pthread_attr_getdetachstate
)
41 weak_alias (__pthread_return_0
, pthread_attr_setschedparam
)
42 weak_alias (__pthread_return_0
, pthread_attr_getschedparam
)
43 weak_alias (__pthread_return_0
, pthread_attr_setschedpolicy
)
44 weak_alias (__pthread_return_0
, pthread_attr_getschedpolicy
)
45 weak_alias (__pthread_return_0
, pthread_attr_setinheritsched
)
46 weak_alias (__pthread_return_0
, pthread_attr_getinheritsched
)
47 weak_alias (__pthread_return_0
, pthread_attr_setscope
)
48 weak_alias (__pthread_return_0
, pthread_attr_getscope
)
49 weak_alias (__pthread_return_0
, pthread_mutex_init
)
50 weak_alias (__pthread_return_0
, pthread_mutex_destroy
)
51 weak_alias (__pthread_return_0
, pthread_mutex_lock
)
52 weak_alias (__pthread_return_0
, pthread_mutex_unlock
)
53 weak_alias (__pthread_return_0
, pthread_mutexattr_setkind_np
)
54 weak_alias (__pthread_return_0
, pthread_mutexattr_getkind_np
)
55 weak_alias (__pthread_return_0
, pthread_condattr_init
)
56 weak_alias (__pthread_return_0
, pthread_condattr_destroy
)
57 weak_alias (__pthread_return_0
, pthread_setschedparam
)
58 weak_alias (__pthread_return_0
, pthread_getschedparam
)
59 weak_alias (__pthread_return_0
, pthread_setcancelstate
)
60 weak_alias (__pthread_return_0
, pthread_setcanceltype
)
61 weak_alias (__pthread_return_0
, pthread_self
)
62 weak_alias (__pthread_return_0
, pthread_cond_init
)
63 weak_alias (__pthread_return_0
, pthread_cond_destroy
)
64 weak_alias (__pthread_return_0
, pthread_cond_wait
)
65 weak_alias (__pthread_return_0
, pthread_cond_signal
)
66 weak_alias (__pthread_return_0
, pthread_cond_broadcast
)
69 /* Those are pthread functions which return 1 if successful. */
70 weak_alias (__pthread_return_1
, pthread_equal
)
72 /* pthread_exit () is a special case. */
75 pthread_exit (void *retval
)
81 __pthread_return_0 (void)
87 __pthread_return_1 (void)
93 __pthread_return_void (void)