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 | /* |
njn | c953984 | 2002-10-02 13:26:35 +0000 | [diff] [blame] | 8 | This file is part of Valgrind, an extensible x86 protected-mode |
| 9 | emulator for monitoring program execution on x86-Unixes. |
sewardj | 439d45e | 2002-05-03 20:43:10 +0000 | [diff] [blame] | 10 | |
nethercote | bb1c991 | 2004-01-04 16:43:23 +0000 | [diff] [blame] | 11 | Copyright (C) 2000-2004 Julian Seward |
sewardj | 439d45e | 2002-05-03 20:43:10 +0000 | [diff] [blame] | 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 | |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 29 | The GNU General Public License is contained in the file COPYING. |
sewardj | 439d45e | 2002-05-03 20:43:10 +0000 | [diff] [blame] | 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 | |
thughes | 8d00196 | 2004-08-15 14:11:12 +0000 | [diff] [blame] | 37 | # define strong_alias(name, aliasname) \ |
| 38 | extern __typeof (name) aliasname __attribute__ ((alias (#name))); |
| 39 | |
| 40 | # define weak_alias(name, aliasname) \ |
| 41 | extern __typeof (name) aliasname __attribute__ ((weak, alias (#name))); |
| 42 | |
| 43 | # define symbol_version(real, name, version) \ |
| 44 | __asm__(".symver " #real "," #name "@" #version) |
| 45 | |
| 46 | # define default_symbol_version(real, name, version) \ |
| 47 | __asm__(".symver " #real "," #name "@@" #version) |
sewardj | 08c7f01 | 2002-10-07 23:56:55 +0000 | [diff] [blame] | 48 | |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 49 | extern void vgPlain_unimp ( char* ); |
| 50 | #define unimp(str) vgPlain_unimp(str) |
| 51 | |
| 52 | //void _IO_flockfile ( void ) { unimp("_IO_flockfile"); } |
| 53 | void _IO_ftrylockfile ( void ) { unimp("_IO_ftrylockfile"); } |
| 54 | //void _IO_funlockfile ( void ) { unimp("_IO_funlockfile"); } |
| 55 | //void __close ( void ) { unimp("__close"); } |
| 56 | //void __connect ( void ) { unimp("__connect"); } |
| 57 | //void __errno_location ( void ) { unimp("__errno_location"); } |
| 58 | //void __fcntl ( void ) { unimp("__fcntl"); } |
sewardj | 853f55d | 2002-04-26 00:27:53 +0000 | [diff] [blame] | 59 | //void __fork ( void ) { unimp("__fork"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 60 | //void __h_errno_location ( void ) { unimp("__h_errno_location"); } |
sewardj | 262b5be | 2003-04-26 21:19:53 +0000 | [diff] [blame] | 61 | //void __libc_allocate_rtsig ( void ) { unimp("__libc_allocate_rtsig"); } |
| 62 | //void __libc_current_sigrtmax ( void ) { unimp("__libc_current_sigrtmax"); } |
| 63 | //void __libc_current_sigrtmin ( void ) { unimp("__libc_current_sigrtmin"); } |
sewardj | 5905fae | 2002-04-26 13:25:00 +0000 | [diff] [blame] | 64 | //void __lseek ( void ) { unimp("__lseek"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 65 | //void __open ( void ) { unimp("__open"); } |
| 66 | //void __open64 ( void ) { unimp("__open64"); } |
sewardj | 726c412 | 2002-05-16 23:39:10 +0000 | [diff] [blame] | 67 | //void __pread64 ( void ) { unimp("__pread64"); } |
sewardj | 853f55d | 2002-04-26 00:27:53 +0000 | [diff] [blame] | 68 | //void __pthread_atfork ( void ) { unimp("__pthread_atfork"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 69 | //void __pthread_getspecific ( void ) { unimp("__pthread_getspecific"); } |
| 70 | //void __pthread_key_create ( void ) { unimp("__pthread_key_create"); } |
sewardj | 853f55d | 2002-04-26 00:27:53 +0000 | [diff] [blame] | 71 | //void __pthread_kill_other_threads_np ( void ) { unimp("__pthread_kill_other_threads_np"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 72 | //void __pthread_mutex_destroy ( void ) { unimp("__pthread_mutex_destroy"); } |
| 73 | //void __pthread_mutex_init ( void ) { unimp("__pthread_mutex_init"); } |
| 74 | //void __pthread_mutex_lock ( void ) { unimp("__pthread_mutex_lock"); } |
sewardj | 853f55d | 2002-04-26 00:27:53 +0000 | [diff] [blame] | 75 | //void __pthread_mutex_trylock ( void ) { unimp("__pthread_mutex_trylock"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 76 | //void __pthread_mutex_unlock ( void ) { unimp("__pthread_mutex_unlock"); } |
| 77 | //void __pthread_mutexattr_destroy ( void ) { unimp("__pthread_mutexattr_destroy"); } |
| 78 | //void __pthread_mutexattr_init ( void ) { unimp("__pthread_mutexattr_init"); } |
| 79 | //void __pthread_mutexattr_settype ( void ) { unimp("__pthread_mutexattr_settype"); } |
| 80 | //void __pthread_once ( void ) { unimp("__pthread_once"); } |
| 81 | //void __pthread_setspecific ( void ) { unimp("__pthread_setspecific"); } |
sewardj | a18e210 | 2002-05-18 10:43:22 +0000 | [diff] [blame] | 82 | //void __pwrite64 ( void ) { unimp("__pwrite64"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 83 | //void __read ( void ) { unimp("__read"); } |
| 84 | //void __res_state ( void ) { unimp("__res_state"); } |
sewardj | 5905fae | 2002-04-26 13:25:00 +0000 | [diff] [blame] | 85 | //void __send ( void ) { unimp("__send"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 86 | //void __sigaction ( void ) { unimp("__sigaction"); } |
sewardj | 7f6456d | 2002-05-21 00:51:21 +0000 | [diff] [blame] | 87 | //--//void __vfork ( void ) { unimp("__vfork"); } |
sewardj | 5905fae | 2002-04-26 13:25:00 +0000 | [diff] [blame] | 88 | //void __wait ( void ) { unimp("__wait"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 89 | //void __write ( void ) { unimp("__write"); } |
sewardj | 60e3842 | 2002-05-08 14:08:22 +0000 | [diff] [blame] | 90 | //void _pthread_cleanup_pop ( void ) { unimp("_pthread_cleanup_pop"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 91 | //void _pthread_cleanup_pop_restore ( void ) { unimp("_pthread_cleanup_pop_restore"); } |
sewardj | 60e3842 | 2002-05-08 14:08:22 +0000 | [diff] [blame] | 92 | //void _pthread_cleanup_push ( void ) { unimp("_pthread_cleanup_push"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 93 | //void _pthread_cleanup_push_defer ( void ) { unimp("_pthread_cleanup_push_defer"); } |
| 94 | //void longjmp ( void ) { unimp("longjmp"); } |
sewardj | 853f55d | 2002-04-26 00:27:53 +0000 | [diff] [blame] | 95 | //void pthread_atfork ( void ) { unimp("pthread_atfork"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 96 | //void pthread_attr_destroy ( void ) { unimp("pthread_attr_destroy"); } |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 97 | //void pthread_attr_getdetachstate ( void ) { unimp("pthread_attr_getdetachstate"); } |
thughes | 4750181 | 2004-10-16 14:24:43 +0000 | [diff] [blame] | 98 | //void pthread_attr_getinheritsched ( void ) { unimp("pthread_attr_getinheritsched"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 99 | //void pthread_attr_getschedparam ( void ) { unimp("pthread_attr_getschedparam"); } |
sewardj | a3be12f | 2002-06-17 12:19:44 +0000 | [diff] [blame] | 100 | //void pthread_attr_getschedpolicy ( void ) { unimp("pthread_attr_getschedpolicy"); } |
sewardj | 0d84423 | 2002-06-02 09:29:31 +0000 | [diff] [blame] | 101 | //void pthread_attr_getscope ( void ) { unimp("pthread_attr_getscope"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 102 | |
| 103 | //void pthread_attr_setdetachstate ( void ) { unimp("pthread_attr_setdetachstate"); } |
| 104 | //void pthread_attr_setinheritsched ( void ) { unimp("pthread_attr_setinheritsched"); } |
| 105 | //void pthread_attr_setschedparam ( void ) { unimp("pthread_attr_setschedparam"); } |
sewardj | a3be12f | 2002-06-17 12:19:44 +0000 | [diff] [blame] | 106 | //void pthread_attr_setschedpolicy ( void ) { unimp("pthread_attr_setschedpolicy"); } |
sewardj | 0d84423 | 2002-06-02 09:29:31 +0000 | [diff] [blame] | 107 | //void pthread_attr_setscope ( void ) { unimp("pthread_attr_setscope"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 108 | void pthread_barrier_destroy ( void ) { unimp("pthread_barrier_destroy"); } |
| 109 | void pthread_barrier_init ( void ) { unimp("pthread_barrier_init"); } |
| 110 | void pthread_barrier_wait ( void ) { unimp("pthread_barrier_wait"); } |
| 111 | void pthread_barrierattr_destroy ( void ) { unimp("pthread_barrierattr_destroy"); } |
| 112 | void pthread_barrierattr_init ( void ) { unimp("pthread_barrierattr_init"); } |
| 113 | void pthread_barrierattr_setpshared ( void ) { unimp("pthread_barrierattr_setpshared"); } |
| 114 | //void pthread_cancel ( void ) { unimp("pthread_cancel"); } |
| 115 | //void pthread_cond_broadcast ( void ) { unimp("pthread_cond_broadcast"); } |
| 116 | //void pthread_cond_destroy ( void ) { unimp("pthread_cond_destroy"); } |
| 117 | //void pthread_cond_init ( void ) { unimp("pthread_cond_init"); } |
| 118 | //void pthread_cond_signal ( void ) { unimp("pthread_cond_signal"); } |
| 119 | //void pthread_cond_timedwait ( void ) { unimp("pthread_cond_timedwait"); } |
| 120 | //void pthread_cond_wait ( void ) { unimp("pthread_cond_wait"); } |
| 121 | //void pthread_condattr_destroy ( void ) { unimp("pthread_condattr_destroy"); } |
thughes | 5d97507 | 2004-10-29 18:22:38 +0000 | [diff] [blame] | 122 | //void pthread_condattr_getpshared ( void ) { unimp("pthread_condattr_getpshared"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 123 | //void pthread_condattr_init ( void ) { unimp("pthread_condattr_init"); } |
thughes | 5d97507 | 2004-10-29 18:22:38 +0000 | [diff] [blame] | 124 | //void pthread_condattr_setpshared ( void ) { unimp("pthread_condattr_setpshared"); } |
sewardj | 853f55d | 2002-04-26 00:27:53 +0000 | [diff] [blame] | 125 | //void pthread_detach ( void ) { unimp("pthread_detach"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 126 | //void pthread_equal ( void ) { unimp("pthread_equal"); } |
| 127 | //void pthread_exit ( void ) { unimp("pthread_exit"); } |
sewardj | 64039bb | 2002-06-03 00:58:18 +0000 | [diff] [blame] | 128 | //void pthread_getattr_np ( void ) { unimp("pthread_getattr_np"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 129 | void pthread_getcpuclockid ( void ) { unimp("pthread_getcpuclockid"); } |
| 130 | //void pthread_getschedparam ( void ) { unimp("pthread_getschedparam"); } |
| 131 | //void pthread_getspecific ( void ) { unimp("pthread_getspecific"); } |
| 132 | //void pthread_join ( void ) { unimp("pthread_join"); } |
| 133 | //void pthread_key_create ( void ) { unimp("pthread_key_create"); } |
| 134 | //void pthread_key_delete ( void ) { unimp("pthread_key_delete"); } |
sewardj | 018f762 | 2002-05-15 21:13:39 +0000 | [diff] [blame] | 135 | //void pthread_kill ( void ) { unimp("pthread_kill"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 136 | //void pthread_mutex_destroy ( void ) { unimp("pthread_mutex_destroy"); } |
| 137 | //void pthread_mutex_init ( void ) { unimp("pthread_mutex_init"); } |
| 138 | //void pthread_mutex_lock ( void ) { unimp("pthread_mutex_lock"); } |
thughes | e321d49 | 2004-10-17 15:00:20 +0000 | [diff] [blame] | 139 | //void pthread_mutex_timedlock ( void ) { unimp("pthread_mutex_timedlock"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 140 | //void pthread_mutex_trylock ( void ) { unimp("pthread_mutex_trylock"); } |
| 141 | //void pthread_mutex_unlock ( void ) { unimp("pthread_mutex_unlock"); } |
| 142 | //void pthread_mutexattr_destroy ( void ) { unimp("pthread_mutexattr_destroy"); } |
| 143 | //void pthread_mutexattr_init ( void ) { unimp("pthread_mutexattr_init"); } |
| 144 | //void pthread_once ( void ) { unimp("pthread_once"); } |
sewardj | a1ac5cb | 2002-05-27 13:00:05 +0000 | [diff] [blame] | 145 | //void pthread_rwlock_destroy ( void ) { unimp("pthread_rwlock_destroy"); } |
| 146 | //void pthread_rwlock_init ( void ) { unimp("pthread_rwlock_init"); } |
sewardj | 5716dbb | 2002-04-26 03:28:18 +0000 | [diff] [blame] | 147 | //void pthread_rwlock_rdlock ( void ) { unimp("pthread_rwlock_rdlock"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 148 | void pthread_rwlock_timedrdlock ( void ) { unimp("pthread_rwlock_timedrdlock"); } |
| 149 | void pthread_rwlock_timedwrlock ( void ) { unimp("pthread_rwlock_timedwrlock"); } |
sewardj | a1ac5cb | 2002-05-27 13:00:05 +0000 | [diff] [blame] | 150 | //void pthread_rwlock_tryrdlock ( void ) { unimp("pthread_rwlock_tryrdlock"); } |
| 151 | //void pthread_rwlock_trywrlock ( void ) { unimp("pthread_rwlock_trywrlock"); } |
sewardj | 5716dbb | 2002-04-26 03:28:18 +0000 | [diff] [blame] | 152 | //void pthread_rwlock_unlock ( void ) { unimp("pthread_rwlock_unlock"); } |
sewardj | 060b04f | 2002-04-26 21:01:13 +0000 | [diff] [blame] | 153 | //void pthread_rwlock_wrlock ( void ) { unimp("pthread_rwlock_wrlock"); } |
sewardj | 5706bfa | 2002-12-08 23:42:17 +0000 | [diff] [blame] | 154 | //void pthread_rwlockattr_destroy ( void ) { unimp("pthread_rwlockattr_destroy"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 155 | void pthread_rwlockattr_getkind_np ( void ) { unimp("pthread_rwlockattr_getkind_np"); } |
| 156 | void pthread_rwlockattr_getpshared ( void ) { unimp("pthread_rwlockattr_getpshared"); } |
sewardj | 47e4e31 | 2002-06-18 09:24:34 +0000 | [diff] [blame] | 157 | //void pthread_rwlockattr_init ( void ) { unimp("pthread_rwlockattr_init"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 158 | void pthread_rwlockattr_setkind_np ( void ) { unimp("pthread_rwlockattr_setkind_np"); } |
sewardj | fe18eb8 | 2002-07-13 12:58:44 +0000 | [diff] [blame] | 159 | //void pthread_rwlockattr_setpshared ( void ) { unimp("pthread_rwlockattr_setpshared"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 160 | //void pthread_self ( void ) { unimp("pthread_self"); } |
sewardj | 853f55d | 2002-04-26 00:27:53 +0000 | [diff] [blame] | 161 | //void pthread_setcancelstate ( void ) { unimp("pthread_setcancelstate"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 162 | //void pthread_setcanceltype ( void ) { unimp("pthread_setcanceltype"); } |
| 163 | //void pthread_setschedparam ( void ) { unimp("pthread_setschedparam"); } |
| 164 | //void pthread_setspecific ( void ) { unimp("pthread_setspecific"); } |
sewardj | b48e500 | 2002-05-13 00:16:03 +0000 | [diff] [blame] | 165 | //void pthread_sigmask ( void ) { unimp("pthread_sigmask"); } |
sewardj | 853f55d | 2002-04-26 00:27:53 +0000 | [diff] [blame] | 166 | //void pthread_testcancel ( void ) { unimp("pthread_testcancel"); } |
sewardj | 3665ded | 2002-05-16 16:57:25 +0000 | [diff] [blame] | 167 | //void raise ( void ) { unimp("raise"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 168 | void sem_close ( void ) { unimp("sem_close"); } |
| 169 | void sem_open ( void ) { unimp("sem_open"); } |
sewardj | 9ad92d9 | 2002-10-16 19:45:06 +0000 | [diff] [blame] | 170 | //void sem_timedwait ( void ) { unimp("sem_timedwait"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 171 | void sem_unlink ( void ) { unimp("sem_unlink"); } |
| 172 | //void sigaction ( void ) { unimp("sigaction"); } |
sewardj | 436c2db | 2002-06-18 09:07:54 +0000 | [diff] [blame] | 173 | //void siglongjmp ( void ) { unimp("siglongjmp"); } |
sewardj | b48e500 | 2002-05-13 00:16:03 +0000 | [diff] [blame] | 174 | //void sigwait ( void ) { unimp("sigwait"); } |
sewardj | 3b13f0e | 2002-04-25 20:17:29 +0000 | [diff] [blame] | 175 | |
thughes | 8d00196 | 2004-08-15 14:11:12 +0000 | [diff] [blame] | 176 | void __pthread_clock_gettime_private ( void ) { unimp("__pthread_clock_gettime"); } |
| 177 | void __pthread_clock_settime_private ( void ) { unimp("__pthread_clock_settime"); } |
| 178 | strong_alias(__pthread_clock_gettime_private, __pthread_clock_gettime_223); |
| 179 | strong_alias(__pthread_clock_settime_private, __pthread_clock_settime_223); |
| 180 | symbol_version(__pthread_clock_gettime_223, __pthread_clock_gettime, GLIBC_2.2.3); |
| 181 | symbol_version(__pthread_clock_settime_223, __pthread_clock_settime, GLIBC_2.2.3); |
| 182 | default_symbol_version(__pthread_clock_gettime_private, __pthread_clock_gettime, GLIBC_PRIVATE); |
| 183 | default_symbol_version(__pthread_clock_settime_private, __pthread_clock_settime, GLIBC_PRIVATE); |
sewardj | 08c7f01 | 2002-10-07 23:56:55 +0000 | [diff] [blame] | 184 | |
sewardj | cbd1b5d | 2002-06-03 23:12:58 +0000 | [diff] [blame] | 185 | |
sewardj | 5905fae | 2002-04-26 13:25:00 +0000 | [diff] [blame] | 186 | |
sewardj | a1ac5cb | 2002-05-27 13:00:05 +0000 | [diff] [blame] | 187 | //weak_alias(pthread_rwlock_destroy, __pthread_rwlock_destroy) |
| 188 | //weak_alias(pthread_rwlock_init, __pthread_rwlock_init) |
| 189 | //weak_alias(pthread_rwlock_tryrdlock, __pthread_rwlock_tryrdlock) |
| 190 | //weak_alias(pthread_rwlock_trywrlock, __pthread_rwlock_trywrlock) |
sewardj | 060b04f | 2002-04-26 21:01:13 +0000 | [diff] [blame] | 191 | //weak_alias(pthread_rwlock_wrlock, __pthread_rwlock_wrlock) |
sewardj | 5905fae | 2002-04-26 13:25:00 +0000 | [diff] [blame] | 192 | weak_alias(_IO_ftrylockfile, ftrylockfile) |
| 193 | |
sewardj | 39b93b1 | 2002-05-18 10:56:27 +0000 | [diff] [blame] | 194 | //__attribute__((weak)) void pread ( void ) { vgPlain_unimp("pread"); } |
| 195 | //__attribute__((weak)) void pwrite ( void ) { vgPlain_unimp("pwrite"); } |
sewardj | 67f1d58 | 2002-05-24 02:11:32 +0000 | [diff] [blame] | 196 | //__attribute__((weak)) void msync ( void ) { vgPlain_unimp("msync"); } |
sewardj | 9a2224b | 2002-06-19 10:17:40 +0000 | [diff] [blame] | 197 | //__attribute__((weak)) void pause ( void ) { vgPlain_unimp("pause"); } |
sewardj | 59da27a | 2002-06-06 08:33:54 +0000 | [diff] [blame] | 198 | //__attribute__((weak)) void recvfrom ( void ) { vgPlain_unimp("recvfrom"); } |
| 199 | //__attribute__((weak)) void recvmsg ( void ) { vgPlain_unimp("recvmsg"); } |
sewardj | 3665ded | 2002-05-16 16:57:25 +0000 | [diff] [blame] | 200 | //__attribute__((weak)) void sendmsg ( void ) { vgPlain_unimp("sendmsg"); } |
thughes | d27c7f5 | 2004-03-31 15:23:13 +0000 | [diff] [blame] | 201 | //__attribute__((weak)) void tcdrain ( void ) { vgPlain_unimp("tcdrain"); } |
sewardj | 7f6456d | 2002-05-21 00:51:21 +0000 | [diff] [blame] | 202 | //--//__attribute__((weak)) void vfork ( void ) { vgPlain_unimp("vfork"); } |
sewardj | 436e058 | 2002-04-26 14:31:40 +0000 | [diff] [blame] | 203 | |
sewardj | 111b14c | 2002-10-20 16:22:57 +0000 | [diff] [blame] | 204 | //__attribute__((weak)) void pthread_attr_getguardsize ( void ) |
| 205 | // { vgPlain_unimp("pthread_attr_getguardsize"); } |
thughes | daa3456 | 2004-06-27 12:48:53 +0000 | [diff] [blame] | 206 | //__attribute__((weak)) void pthread_attr_getstack ( void ) |
| 207 | // { vgPlain_unimp("pthread_attr_getstack"); } |
sewardj | 436e058 | 2002-04-26 14:31:40 +0000 | [diff] [blame] | 208 | __attribute__((weak)) void pthread_attr_getstackaddr ( void ) |
| 209 | { vgPlain_unimp("pthread_attr_getstackaddr"); } |
| 210 | __attribute__((weak)) void pthread_attr_getstacksize ( void ) |
| 211 | { vgPlain_unimp("pthread_attr_getstacksize"); } |
sewardj | 111b14c | 2002-10-20 16:22:57 +0000 | [diff] [blame] | 212 | //__attribute__((weak)) void pthread_attr_setguardsize ( void ) |
| 213 | // { vgPlain_unimp("pthread_attr_setguardsize"); } |
sewardj | 436e058 | 2002-04-26 14:31:40 +0000 | [diff] [blame] | 214 | __attribute__((weak)) void pthread_attr_setstack ( void ) |
| 215 | { vgPlain_unimp("pthread_attr_setstack"); } |
| 216 | __attribute__((weak)) void pthread_attr_setstackaddr ( void ) |
| 217 | { vgPlain_unimp("pthread_attr_setstackaddr"); } |
sewardj | 0286dd5 | 2002-05-16 20:51:15 +0000 | [diff] [blame] | 218 | //__attribute__((weak)) void pthread_attr_setstacksize ( void ) |
| 219 | // { vgPlain_unimp("pthread_attr_setstacksize"); } |
sewardj | ab2e123 | 2002-12-26 12:16:11 +0000 | [diff] [blame] | 220 | //__attribute__((weak)) void pthread_getconcurrency ( void ) |
| 221 | // { vgPlain_unimp("pthread_getconcurrency"); } |
sewardj | f0b0645 | 2002-06-04 08:38:04 +0000 | [diff] [blame] | 222 | //__attribute__((weak)) void pthread_kill_other_threads_np ( void ) |
| 223 | // { vgPlain_unimp("pthread_kill_other_threads_np"); } |
sewardj | 436e058 | 2002-04-26 14:31:40 +0000 | [diff] [blame] | 224 | __attribute__((weak)) void pthread_mutexattr_getkind_np ( void ) |
| 225 | { vgPlain_unimp("pthread_mutexattr_getkind_np"); } |
| 226 | __attribute__((weak)) void pthread_mutexattr_getpshared ( void ) |
| 227 | { vgPlain_unimp("pthread_mutexattr_getpshared"); } |
thughes | cca9725 | 2004-10-13 18:29:54 +0000 | [diff] [blame] | 228 | //__attribute__((weak)) void pthread_mutexattr_gettype ( void ) |
| 229 | // { vgPlain_unimp("pthread_mutexattr_gettype"); } |
sewardj | 436e058 | 2002-04-26 14:31:40 +0000 | [diff] [blame] | 230 | __attribute__((weak)) void pthread_mutexattr_setkind_np ( void ) |
| 231 | { vgPlain_unimp("pthread_mutexattr_setkind_np"); } |
sewardj | 7685cae | 2003-07-06 01:23:11 +0000 | [diff] [blame] | 232 | //__attribute__((weak)) void pthread_mutexattr_setpshared ( void ) |
| 233 | // { vgPlain_unimp("pthread_mutexattr_setpshared"); } |
sewardj | b34e4db | 2002-12-08 23:51:32 +0000 | [diff] [blame] | 234 | //__attribute__((weak)) void pthread_setconcurrency ( void ) |
| 235 | // { vgPlain_unimp("pthread_setconcurrency"); } |
sewardj | 5e657c3 | 2003-10-12 08:33:30 +0000 | [diff] [blame] | 236 | //__attribute__((weak)) void pthread_spin_destroy ( void ) |
| 237 | // { vgPlain_unimp("pthread_spin_destroy"); } |
| 238 | //__attribute__((weak)) void pthread_spin_init ( void ) |
| 239 | // { vgPlain_unimp("pthread_spin_init"); } |
| 240 | //__attribute__((weak)) void pthread_spin_lock ( void ) |
| 241 | // { vgPlain_unimp("pthread_spin_lock"); } |
| 242 | //__attribute__((weak)) void pthread_spin_trylock ( void ) |
| 243 | // { vgPlain_unimp("pthread_spin_trylock"); } |
| 244 | //__attribute__((weak)) void pthread_spin_unlock ( void ) |
| 245 | // { vgPlain_unimp("pthread_spin_unlock"); } |
sewardj | 436e058 | 2002-04-26 14:31:40 +0000 | [diff] [blame] | 246 | |
sewardj | 439d45e | 2002-05-03 20:43:10 +0000 | [diff] [blame] | 247 | |
| 248 | /*--------------------------------------------------------------------*/ |
| 249 | /*--- end vg_libpthread_unimp.c ---*/ |
| 250 | /*--------------------------------------------------------------------*/ |