sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 1 | |
sewardj | 439d45e | 2002-05-03 20:43:10 +0000 | [diff] [blame] | 2 | /*--------------------------------------------------------------------*/ |
| 3 | /*--- Give dummy bindings for everything the real libpthread.so ---*/ |
| 4 | /*--- binds. vg_libpthread_unimp.c ---*/ |
| 5 | /*--------------------------------------------------------------------*/ |
| 6 | |
| 7 | /* |
| 8 | This file is part of Valgrind, an x86 protected-mode emulator |
| 9 | designed for debugging and profiling binaries on x86-Unixes. |
| 10 | |
| 11 | Copyright (C) 2000-2002 Julian Seward |
| 12 | jseward@acm.org |
| 13 | |
| 14 | This program is free software; you can redistribute it and/or |
| 15 | modify it under the terms of the GNU General Public License as |
| 16 | published by the Free Software Foundation; either version 2 of the |
| 17 | License, or (at your option) any later version. |
| 18 | |
| 19 | This program is distributed in the hope that it will be useful, but |
| 20 | WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 22 | General Public License for more details. |
| 23 | |
| 24 | You should have received a copy of the GNU General Public License |
| 25 | along with this program; if not, write to the Free Software |
| 26 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
| 27 | 02111-1307, USA. |
| 28 | |
| 29 | The GNU General Public License is contained in the file LICENSE. |
| 30 | */ |
| 31 | |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 32 | /* --------------------------------------------------------------------- |
sewardj | 439d45e | 2002-05-03 20:43:10 +0000 | [diff] [blame] | 33 | ALL THIS CODE RUNS ON THE SIMULATED CPU. |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 34 | Give a binding for everything the real libpthread.so binds. |
| 35 | ------------------------------------------------------------------ */ |
| 36 | |
| 37 | extern void vgPlain_unimp ( char* ); |
| 38 | #define unimp(str) vgPlain_unimp(str) |
| 39 | |
| 40 | //void _IO_flockfile ( void ) { unimp("_IO_flockfile"); } |
| 41 | void _IO_ftrylockfile ( void ) { unimp("_IO_ftrylockfile"); } |
| 42 | //void _IO_funlockfile ( void ) { unimp("_IO_funlockfile"); } |
| 43 | //void __close ( void ) { unimp("__close"); } |
| 44 | //void __connect ( void ) { unimp("__connect"); } |
| 45 | //void __errno_location ( void ) { unimp("__errno_location"); } |
| 46 | //void __fcntl ( void ) { unimp("__fcntl"); } |
sewardj | 853f55d | 2002-04-26 00:27:53 +0000 | [diff] [blame] | 47 | //void __fork ( void ) { unimp("__fork"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 48 | //void __h_errno_location ( void ) { unimp("__h_errno_location"); } |
| 49 | void __libc_allocate_rtsig ( void ) { unimp("__libc_allocate_rtsig"); } |
| 50 | void __libc_current_sigrtmax ( void ) { unimp("__libc_current_sigrtmax"); } |
| 51 | void __libc_current_sigrtmin ( void ) { unimp("__libc_current_sigrtmin"); } |
sewardj | 5905fae | 2002-04-26 13:25:00 +0000 | [diff] [blame] | 52 | //void __lseek ( void ) { unimp("__lseek"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 53 | //void __open ( void ) { unimp("__open"); } |
| 54 | //void __open64 ( void ) { unimp("__open64"); } |
| 55 | void __pread64 ( void ) { unimp("__pread64"); } |
sewardj | 853f55d | 2002-04-26 00:27:53 +0000 | [diff] [blame] | 56 | //void __pthread_atfork ( void ) { unimp("__pthread_atfork"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 57 | //void __pthread_getspecific ( void ) { unimp("__pthread_getspecific"); } |
| 58 | //void __pthread_key_create ( void ) { unimp("__pthread_key_create"); } |
sewardj | 853f55d | 2002-04-26 00:27:53 +0000 | [diff] [blame] | 59 | //void __pthread_kill_other_threads_np ( void ) { unimp("__pthread_kill_other_threads_np"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 60 | //void __pthread_mutex_destroy ( void ) { unimp("__pthread_mutex_destroy"); } |
| 61 | //void __pthread_mutex_init ( void ) { unimp("__pthread_mutex_init"); } |
| 62 | //void __pthread_mutex_lock ( void ) { unimp("__pthread_mutex_lock"); } |
sewardj | 853f55d | 2002-04-26 00:27:53 +0000 | [diff] [blame] | 63 | //void __pthread_mutex_trylock ( void ) { unimp("__pthread_mutex_trylock"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 64 | //void __pthread_mutex_unlock ( void ) { unimp("__pthread_mutex_unlock"); } |
| 65 | //void __pthread_mutexattr_destroy ( void ) { unimp("__pthread_mutexattr_destroy"); } |
| 66 | //void __pthread_mutexattr_init ( void ) { unimp("__pthread_mutexattr_init"); } |
| 67 | //void __pthread_mutexattr_settype ( void ) { unimp("__pthread_mutexattr_settype"); } |
| 68 | //void __pthread_once ( void ) { unimp("__pthread_once"); } |
| 69 | //void __pthread_setspecific ( void ) { unimp("__pthread_setspecific"); } |
| 70 | void __pwrite64 ( void ) { unimp("__pwrite64"); } |
| 71 | //void __read ( void ) { unimp("__read"); } |
| 72 | //void __res_state ( void ) { unimp("__res_state"); } |
sewardj | 5905fae | 2002-04-26 13:25:00 +0000 | [diff] [blame] | 73 | //void __send ( void ) { unimp("__send"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 74 | //void __sigaction ( void ) { unimp("__sigaction"); } |
| 75 | void __vfork ( void ) { unimp("__vfork"); } |
sewardj | 5905fae | 2002-04-26 13:25:00 +0000 | [diff] [blame] | 76 | //void __wait ( void ) { unimp("__wait"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 77 | //void __write ( void ) { unimp("__write"); } |
sewardj | 60e3842 | 2002-05-08 14:08:22 +0000 | [diff] [blame] | 78 | //void _pthread_cleanup_pop ( void ) { unimp("_pthread_cleanup_pop"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 79 | //void _pthread_cleanup_pop_restore ( void ) { unimp("_pthread_cleanup_pop_restore"); } |
sewardj | 60e3842 | 2002-05-08 14:08:22 +0000 | [diff] [blame] | 80 | //void _pthread_cleanup_push ( void ) { unimp("_pthread_cleanup_push"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 81 | //void _pthread_cleanup_push_defer ( void ) { unimp("_pthread_cleanup_push_defer"); } |
| 82 | //void longjmp ( void ) { unimp("longjmp"); } |
sewardj | 853f55d | 2002-04-26 00:27:53 +0000 | [diff] [blame] | 83 | //void pthread_atfork ( void ) { unimp("pthread_atfork"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 84 | //void pthread_attr_destroy ( void ) { unimp("pthread_attr_destroy"); } |
| 85 | void pthread_attr_getdetachstate ( void ) { unimp("pthread_attr_getdetachstate"); } |
| 86 | void pthread_attr_getinheritsched ( void ) { unimp("pthread_attr_getinheritsched"); } |
| 87 | //void pthread_attr_getschedparam ( void ) { unimp("pthread_attr_getschedparam"); } |
| 88 | void pthread_attr_getschedpolicy ( void ) { unimp("pthread_attr_getschedpolicy"); } |
| 89 | void pthread_attr_getscope ( void ) { unimp("pthread_attr_getscope"); } |
| 90 | |
| 91 | //void pthread_attr_setdetachstate ( void ) { unimp("pthread_attr_setdetachstate"); } |
| 92 | //void pthread_attr_setinheritsched ( void ) { unimp("pthread_attr_setinheritsched"); } |
| 93 | //void pthread_attr_setschedparam ( void ) { unimp("pthread_attr_setschedparam"); } |
| 94 | void pthread_attr_setschedpolicy ( void ) { unimp("pthread_attr_setschedpolicy"); } |
| 95 | void pthread_attr_setscope ( void ) { unimp("pthread_attr_setscope"); } |
| 96 | void pthread_barrier_destroy ( void ) { unimp("pthread_barrier_destroy"); } |
| 97 | void pthread_barrier_init ( void ) { unimp("pthread_barrier_init"); } |
| 98 | void pthread_barrier_wait ( void ) { unimp("pthread_barrier_wait"); } |
| 99 | void pthread_barrierattr_destroy ( void ) { unimp("pthread_barrierattr_destroy"); } |
| 100 | void pthread_barrierattr_init ( void ) { unimp("pthread_barrierattr_init"); } |
| 101 | void pthread_barrierattr_setpshared ( void ) { unimp("pthread_barrierattr_setpshared"); } |
| 102 | //void pthread_cancel ( void ) { unimp("pthread_cancel"); } |
| 103 | //void pthread_cond_broadcast ( void ) { unimp("pthread_cond_broadcast"); } |
| 104 | //void pthread_cond_destroy ( void ) { unimp("pthread_cond_destroy"); } |
| 105 | //void pthread_cond_init ( void ) { unimp("pthread_cond_init"); } |
| 106 | //void pthread_cond_signal ( void ) { unimp("pthread_cond_signal"); } |
| 107 | //void pthread_cond_timedwait ( void ) { unimp("pthread_cond_timedwait"); } |
| 108 | //void pthread_cond_wait ( void ) { unimp("pthread_cond_wait"); } |
| 109 | //void pthread_condattr_destroy ( void ) { unimp("pthread_condattr_destroy"); } |
| 110 | void pthread_condattr_getpshared ( void ) { unimp("pthread_condattr_getpshared"); } |
| 111 | //void pthread_condattr_init ( void ) { unimp("pthread_condattr_init"); } |
| 112 | void pthread_condattr_setpshared ( void ) { unimp("pthread_condattr_setpshared"); } |
sewardj | 853f55d | 2002-04-26 00:27:53 +0000 | [diff] [blame] | 113 | //void pthread_detach ( void ) { unimp("pthread_detach"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 114 | //void pthread_equal ( void ) { unimp("pthread_equal"); } |
| 115 | //void pthread_exit ( void ) { unimp("pthread_exit"); } |
| 116 | void pthread_getattr_np ( void ) { unimp("pthread_getattr_np"); } |
| 117 | void pthread_getcpuclockid ( void ) { unimp("pthread_getcpuclockid"); } |
| 118 | //void pthread_getschedparam ( void ) { unimp("pthread_getschedparam"); } |
| 119 | //void pthread_getspecific ( void ) { unimp("pthread_getspecific"); } |
| 120 | //void pthread_join ( void ) { unimp("pthread_join"); } |
| 121 | //void pthread_key_create ( void ) { unimp("pthread_key_create"); } |
| 122 | //void pthread_key_delete ( void ) { unimp("pthread_key_delete"); } |
sewardj | 018f762 | 2002-05-15 21:13:39 +0000 | [diff] [blame] | 123 | //void pthread_kill ( void ) { unimp("pthread_kill"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 124 | //void pthread_mutex_destroy ( void ) { unimp("pthread_mutex_destroy"); } |
| 125 | //void pthread_mutex_init ( void ) { unimp("pthread_mutex_init"); } |
| 126 | //void pthread_mutex_lock ( void ) { unimp("pthread_mutex_lock"); } |
| 127 | void pthread_mutex_timedlock ( void ) { unimp("pthread_mutex_timedlock"); } |
| 128 | //void pthread_mutex_trylock ( void ) { unimp("pthread_mutex_trylock"); } |
| 129 | //void pthread_mutex_unlock ( void ) { unimp("pthread_mutex_unlock"); } |
| 130 | //void pthread_mutexattr_destroy ( void ) { unimp("pthread_mutexattr_destroy"); } |
| 131 | //void pthread_mutexattr_init ( void ) { unimp("pthread_mutexattr_init"); } |
| 132 | //void pthread_once ( void ) { unimp("pthread_once"); } |
| 133 | void pthread_rwlock_destroy ( void ) { unimp("pthread_rwlock_destroy"); } |
| 134 | void pthread_rwlock_init ( void ) { unimp("pthread_rwlock_init"); } |
sewardj | 5716dbb | 2002-04-26 03:28:18 +0000 | [diff] [blame] | 135 | //void pthread_rwlock_rdlock ( void ) { unimp("pthread_rwlock_rdlock"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 136 | void pthread_rwlock_timedrdlock ( void ) { unimp("pthread_rwlock_timedrdlock"); } |
| 137 | void pthread_rwlock_timedwrlock ( void ) { unimp("pthread_rwlock_timedwrlock"); } |
| 138 | void pthread_rwlock_tryrdlock ( void ) { unimp("pthread_rwlock_tryrdlock"); } |
| 139 | void pthread_rwlock_trywrlock ( void ) { unimp("pthread_rwlock_trywrlock"); } |
sewardj | 5716dbb | 2002-04-26 03:28:18 +0000 | [diff] [blame] | 140 | //void pthread_rwlock_unlock ( void ) { unimp("pthread_rwlock_unlock"); } |
sewardj | 060b04f | 2002-04-26 21:01:13 +0000 | [diff] [blame] | 141 | //void pthread_rwlock_wrlock ( void ) { unimp("pthread_rwlock_wrlock"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 142 | void pthread_rwlockattr_destroy ( void ) { unimp("pthread_rwlockattr_destroy"); } |
| 143 | void pthread_rwlockattr_getkind_np ( void ) { unimp("pthread_rwlockattr_getkind_np"); } |
| 144 | void pthread_rwlockattr_getpshared ( void ) { unimp("pthread_rwlockattr_getpshared"); } |
| 145 | void pthread_rwlockattr_init ( void ) { unimp("pthread_rwlockattr_init"); } |
| 146 | void pthread_rwlockattr_setkind_np ( void ) { unimp("pthread_rwlockattr_setkind_np"); } |
| 147 | void pthread_rwlockattr_setpshared ( void ) { unimp("pthread_rwlockattr_setpshared"); } |
| 148 | //void pthread_self ( void ) { unimp("pthread_self"); } |
sewardj | 853f55d | 2002-04-26 00:27:53 +0000 | [diff] [blame] | 149 | //void pthread_setcancelstate ( void ) { unimp("pthread_setcancelstate"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 150 | //void pthread_setcanceltype ( void ) { unimp("pthread_setcanceltype"); } |
| 151 | //void pthread_setschedparam ( void ) { unimp("pthread_setschedparam"); } |
| 152 | //void pthread_setspecific ( void ) { unimp("pthread_setspecific"); } |
sewardj | b48e500 | 2002-05-13 00:16:03 +0000 | [diff] [blame] | 153 | //void pthread_sigmask ( void ) { unimp("pthread_sigmask"); } |
sewardj | 853f55d | 2002-04-26 00:27:53 +0000 | [diff] [blame] | 154 | //void pthread_testcancel ( void ) { unimp("pthread_testcancel"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 155 | void raise ( void ) { unimp("raise"); } |
| 156 | void sem_close ( void ) { unimp("sem_close"); } |
| 157 | void sem_open ( void ) { unimp("sem_open"); } |
| 158 | void sem_timedwait ( void ) { unimp("sem_timedwait"); } |
| 159 | void sem_unlink ( void ) { unimp("sem_unlink"); } |
| 160 | //void sigaction ( void ) { unimp("sigaction"); } |
| 161 | void siglongjmp ( void ) { unimp("siglongjmp"); } |
sewardj | b48e500 | 2002-05-13 00:16:03 +0000 | [diff] [blame] | 162 | //void sigwait ( void ) { unimp("sigwait"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 163 | |
| 164 | #if 0 |
| 165 | void pthread_create@@GLIBC_2.1 ( void ) { unimp("pthread_create@@GLIBC_2.1"); } |
| 166 | void pthread_create@GLIBC_2.0 ( void ) { unimp("pthread_create@GLIBC_2.0"); } |
| 167 | |
| 168 | void sem_wait@@GLIBC_2.1 ( void ) { unimp("sem_wait@@GLIBC_2.1"); } |
| 169 | void sem_wait@GLIBC_2.0 ( void ) { unimp("sem_wait@GLIBC_2.0"); } |
| 170 | |
| 171 | void sem_trywait@@GLIBC_2.1 ( void ) { unimp("sem_trywait@@GLIBC_2.1"); } |
| 172 | void sem_trywait@GLIBC_2.0 ( void ) { unimp("sem_trywait@GLIBC_2.0"); } |
| 173 | |
| 174 | void sem_post@@GLIBC_2.1 ( void ) { unimp("sem_post@@GLIBC_2.1"); } |
| 175 | void sem_post@GLIBC_2.0 ( void ) { unimp("sem_post@GLIBC_2.0"); } |
| 176 | |
| 177 | void sem_destroy@@GLIBC_2.1 ( void ) { unimp("sem_destroy@@GLIBC_2.1"); } |
| 178 | void sem_destroy@GLIBC_2.0 ( void ) { unimp("sem_destroy@GLIBC_2.0"); } |
| 179 | void sem_getvalue@@GLIBC_2.1 ( void ) { unimp("sem_getvalue@@GLIBC_2.1"); } |
| 180 | void sem_getvalue@GLIBC_2.0 ( void ) { unimp("sem_getvalue@GLIBC_2.0"); } |
| 181 | void sem_init@@GLIBC_2.1 ( void ) { unimp("sem_init@@GLIBC_2.1"); } |
| 182 | void sem_init@GLIBC_2.0 ( void ) { unimp("sem_init@GLIBC_2.0"); } |
| 183 | |
| 184 | void pthread_attr_init@@GLIBC_2.1 ( void ) { unimp("pthread_attr_init@@GLIBC_2.1"); } |
| 185 | void pthread_attr_init@GLIBC_2.0 ( void ) { unimp("pthread_attr_init@GLIBC_2.0"); } |
| 186 | #endif |
sewardj | 5716dbb | 2002-04-26 03:28:18 +0000 | [diff] [blame] | 187 | |
sewardj | 5905fae | 2002-04-26 13:25:00 +0000 | [diff] [blame] | 188 | |
| 189 | |
| 190 | # define strong_alias(name, aliasname) \ |
| 191 | extern __typeof (name) aliasname __attribute__ ((alias (#name))); |
| 192 | |
| 193 | # define weak_alias(name, aliasname) \ |
| 194 | extern __typeof (name) aliasname __attribute__ ((weak, alias (#name))); |
| 195 | |
| 196 | weak_alias (__pread64, pread64) |
| 197 | weak_alias (__pwrite64, pwrite64) |
| 198 | |
| 199 | weak_alias(pthread_rwlock_destroy, __pthread_rwlock_destroy) |
| 200 | weak_alias(pthread_rwlock_init, __pthread_rwlock_init) |
| 201 | weak_alias(pthread_rwlock_tryrdlock, __pthread_rwlock_tryrdlock) |
| 202 | weak_alias(pthread_rwlock_trywrlock, __pthread_rwlock_trywrlock) |
sewardj | 060b04f | 2002-04-26 21:01:13 +0000 | [diff] [blame] | 203 | //weak_alias(pthread_rwlock_wrlock, __pthread_rwlock_wrlock) |
sewardj | 5905fae | 2002-04-26 13:25:00 +0000 | [diff] [blame] | 204 | weak_alias(_IO_ftrylockfile, ftrylockfile) |
| 205 | |
| 206 | __attribute__((weak)) void pread ( void ) { vgPlain_unimp("pread"); } |
sewardj | 436e058 | 2002-04-26 14:31:40 +0000 | [diff] [blame] | 207 | __attribute__((weak)) void pwrite ( void ) { vgPlain_unimp("pwrite"); } |
sewardj | 5905fae | 2002-04-26 13:25:00 +0000 | [diff] [blame] | 208 | __attribute__((weak)) void msync ( void ) { vgPlain_unimp("msync"); } |
| 209 | __attribute__((weak)) void pause ( void ) { vgPlain_unimp("pause"); } |
| 210 | __attribute__((weak)) void recvfrom ( void ) { vgPlain_unimp("recvfrom"); } |
| 211 | __attribute__((weak)) void recvmsg ( void ) { vgPlain_unimp("recvmsg"); } |
| 212 | __attribute__((weak)) void sendmsg ( void ) { vgPlain_unimp("sendmsg"); } |
| 213 | __attribute__((weak)) void tcdrain ( void ) { vgPlain_unimp("tcdrain"); } |
| 214 | __attribute__((weak)) void vfork ( void ) { vgPlain_unimp("vfork"); } |
sewardj | 436e058 | 2002-04-26 14:31:40 +0000 | [diff] [blame] | 215 | |
| 216 | __attribute__((weak)) void pthread_attr_getguardsize ( void ) |
| 217 | { vgPlain_unimp("pthread_attr_getguardsize"); } |
| 218 | __attribute__((weak)) void pthread_attr_getstack ( void ) |
| 219 | { vgPlain_unimp("pthread_attr_getstack"); } |
| 220 | __attribute__((weak)) void pthread_attr_getstackaddr ( void ) |
| 221 | { vgPlain_unimp("pthread_attr_getstackaddr"); } |
| 222 | __attribute__((weak)) void pthread_attr_getstacksize ( void ) |
| 223 | { vgPlain_unimp("pthread_attr_getstacksize"); } |
| 224 | __attribute__((weak)) void pthread_attr_setguardsize ( void ) |
| 225 | { vgPlain_unimp("pthread_attr_setguardsize"); } |
| 226 | __attribute__((weak)) void pthread_attr_setstack ( void ) |
| 227 | { vgPlain_unimp("pthread_attr_setstack"); } |
| 228 | __attribute__((weak)) void pthread_attr_setstackaddr ( void ) |
| 229 | { vgPlain_unimp("pthread_attr_setstackaddr"); } |
| 230 | __attribute__((weak)) void pthread_attr_setstacksize ( void ) |
| 231 | { vgPlain_unimp("pthread_attr_setstacksize"); } |
| 232 | __attribute__((weak)) void pthread_getconcurrency ( void ) |
| 233 | { vgPlain_unimp("pthread_getconcurrency"); } |
| 234 | __attribute__((weak)) void pthread_kill_other_threads_np ( void ) |
| 235 | { vgPlain_unimp("pthread_kill_other_threads_np"); } |
| 236 | __attribute__((weak)) void pthread_mutexattr_getkind_np ( void ) |
| 237 | { vgPlain_unimp("pthread_mutexattr_getkind_np"); } |
| 238 | __attribute__((weak)) void pthread_mutexattr_getpshared ( void ) |
| 239 | { vgPlain_unimp("pthread_mutexattr_getpshared"); } |
| 240 | __attribute__((weak)) void pthread_mutexattr_gettype ( void ) |
| 241 | { vgPlain_unimp("pthread_mutexattr_gettype"); } |
| 242 | __attribute__((weak)) void pthread_mutexattr_setkind_np ( void ) |
| 243 | { vgPlain_unimp("pthread_mutexattr_setkind_np"); } |
| 244 | __attribute__((weak)) void pthread_mutexattr_setpshared ( void ) |
| 245 | { vgPlain_unimp("pthread_mutexattr_setpshared"); } |
| 246 | __attribute__((weak)) void pthread_setconcurrency ( void ) |
| 247 | { vgPlain_unimp("pthread_setconcurrency"); } |
| 248 | __attribute__((weak)) void pthread_spin_destroy ( void ) |
| 249 | { vgPlain_unimp("pthread_spin_destroy"); } |
| 250 | __attribute__((weak)) void pthread_spin_init ( void ) |
| 251 | { vgPlain_unimp("pthread_spin_init"); } |
| 252 | __attribute__((weak)) void pthread_spin_lock ( void ) |
| 253 | { vgPlain_unimp("pthread_spin_lock"); } |
| 254 | __attribute__((weak)) void pthread_spin_trylock ( void ) |
| 255 | { vgPlain_unimp("pthread_spin_trylock"); } |
| 256 | __attribute__((weak)) void pthread_spin_unlock ( void ) |
| 257 | { vgPlain_unimp("pthread_spin_unlock"); } |
| 258 | __attribute__((weak)) void pthread_yield ( void ) |
| 259 | { vgPlain_unimp("pthread_yield"); } |
| 260 | |
sewardj | 439d45e | 2002-05-03 20:43:10 +0000 | [diff] [blame] | 261 | |
| 262 | /*--------------------------------------------------------------------*/ |
| 263 | /*--- end vg_libpthread_unimp.c ---*/ |
| 264 | /*--------------------------------------------------------------------*/ |