diff options
author | M Joonas Pihlaja <jpihlaja@cc.helsinki.fi> | 2010-03-04 04:23:13 +0200 |
---|---|---|
committer | M Joonas Pihlaja <jpihlaja@cc.helsinki.fi> | 2010-03-04 04:23:13 +0200 |
commit | c20800e1def8f08274c67f07813618803bd87635 (patch) | |
tree | 08e997f27c0917157f076a675264343369c037cd | |
parent | e37b92aa729ec09c7b859e219ba62af93ecc1381 (diff) |
Sort the list of functions by name.
-rw-r--r-- | list.txt | 22 | ||||
-rw-r--r-- | stubs.c | 104 |
2 files changed, 63 insertions, 63 deletions
@@ -1,15 +1,15 @@ -alias("zero", [[pthread_self]]) -alias("zero", [[pthread_mutex_init]]) -alias("zero", [[pthread_mutex_destroy]]) -alias("zero", [[pthread_mutex_lock]]) -alias("zero", [[pthread_mutex_unlock]]) -alias("zero", [[pthread_cond_init]]) -alias("zero", [[pthread_cond_destroy]]) -alias("zero", [[pthread_condattr_init]]) alias("zero", [[pthread_condattr_destroy]]) -alias("abort", [[pthread_cond_wait]]) -alias("abort", [[pthread_cond_timedwait]]) -alias("zero", [[pthread_cond_signal]]) +alias("zero", [[pthread_condattr_init]]) alias("zero", [[pthread_cond_broadcast]]) +alias("zero", [[pthread_cond_destroy]]) +alias("zero", [[pthread_cond_init]]) +alias("zero", [[pthread_cond_signal]]) +alias("abort", [[pthread_cond_timedwait]]) +alias("abort", [[pthread_cond_wait]]) alias("equal", [[pthread_equal]]) alias("exit", [[pthread_exit]]) +alias("zero", [[pthread_mutex_destroy]]) +alias("zero", [[pthread_mutex_init]]) +alias("zero", [[pthread_mutex_lock]]) +alias("zero", [[pthread_mutex_unlock]]) +alias("zero", [[pthread_self]]) @@ -30,138 +30,138 @@ #include <stdlib.h> #include "config.h" -#ifndef HAVE_PTHREAD_SELF +#ifndef HAVE_PTHREAD_CONDATTR_DESTROY #define NEED_ZERO_STUB # ifdef SUPPORT_ATTRIBUTE_ALIAS -int pthread_self() __attribute__ ((weak, alias ("__pthread_zero_stub"))); +int pthread_condattr_destroy() __attribute__ ((weak, alias ("__pthread_zero_stub"))); # else -# pragma weak pthread_self = __pthread_zero_stub +# pragma weak pthread_condattr_destroy = __pthread_zero_stub # endif #endif -#ifndef HAVE_PTHREAD_MUTEX_INIT +#ifndef HAVE_PTHREAD_CONDATTR_INIT #define NEED_ZERO_STUB # ifdef SUPPORT_ATTRIBUTE_ALIAS -int pthread_mutex_init() __attribute__ ((weak, alias ("__pthread_zero_stub"))); +int pthread_condattr_init() __attribute__ ((weak, alias ("__pthread_zero_stub"))); # else -# pragma weak pthread_mutex_init = __pthread_zero_stub +# pragma weak pthread_condattr_init = __pthread_zero_stub # endif #endif -#ifndef HAVE_PTHREAD_MUTEX_DESTROY +#ifndef HAVE_PTHREAD_COND_BROADCAST #define NEED_ZERO_STUB # ifdef SUPPORT_ATTRIBUTE_ALIAS -int pthread_mutex_destroy() __attribute__ ((weak, alias ("__pthread_zero_stub"))); +int pthread_cond_broadcast() __attribute__ ((weak, alias ("__pthread_zero_stub"))); # else -# pragma weak pthread_mutex_destroy = __pthread_zero_stub +# pragma weak pthread_cond_broadcast = __pthread_zero_stub # endif #endif -#ifndef HAVE_PTHREAD_MUTEX_LOCK +#ifndef HAVE_PTHREAD_COND_DESTROY #define NEED_ZERO_STUB # ifdef SUPPORT_ATTRIBUTE_ALIAS -int pthread_mutex_lock() __attribute__ ((weak, alias ("__pthread_zero_stub"))); +int pthread_cond_destroy() __attribute__ ((weak, alias ("__pthread_zero_stub"))); # else -# pragma weak pthread_mutex_lock = __pthread_zero_stub +# pragma weak pthread_cond_destroy = __pthread_zero_stub # endif #endif -#ifndef HAVE_PTHREAD_MUTEX_UNLOCK +#ifndef HAVE_PTHREAD_COND_INIT #define NEED_ZERO_STUB # ifdef SUPPORT_ATTRIBUTE_ALIAS -int pthread_mutex_unlock() __attribute__ ((weak, alias ("__pthread_zero_stub"))); +int pthread_cond_init() __attribute__ ((weak, alias ("__pthread_zero_stub"))); # else -# pragma weak pthread_mutex_unlock = __pthread_zero_stub +# pragma weak pthread_cond_init = __pthread_zero_stub # endif #endif -#ifndef HAVE_PTHREAD_COND_INIT +#ifndef HAVE_PTHREAD_COND_SIGNAL #define NEED_ZERO_STUB # ifdef SUPPORT_ATTRIBUTE_ALIAS -int pthread_cond_init() __attribute__ ((weak, alias ("__pthread_zero_stub"))); +int pthread_cond_signal() __attribute__ ((weak, alias ("__pthread_zero_stub"))); # else -# pragma weak pthread_cond_init = __pthread_zero_stub +# pragma weak pthread_cond_signal = __pthread_zero_stub # endif #endif -#ifndef HAVE_PTHREAD_COND_DESTROY -#define NEED_ZERO_STUB +#ifndef HAVE_PTHREAD_COND_TIMEDWAIT +#define NEED_ABORT_STUB # ifdef SUPPORT_ATTRIBUTE_ALIAS -int pthread_cond_destroy() __attribute__ ((weak, alias ("__pthread_zero_stub"))); +int pthread_cond_timedwait() __attribute__ ((weak, alias ("__pthread_abort_stub"))); # else -# pragma weak pthread_cond_destroy = __pthread_zero_stub +# pragma weak pthread_cond_timedwait = __pthread_abort_stub # endif #endif -#ifndef HAVE_PTHREAD_CONDATTR_INIT -#define NEED_ZERO_STUB +#ifndef HAVE_PTHREAD_COND_WAIT +#define NEED_ABORT_STUB # ifdef SUPPORT_ATTRIBUTE_ALIAS -int pthread_condattr_init() __attribute__ ((weak, alias ("__pthread_zero_stub"))); +int pthread_cond_wait() __attribute__ ((weak, alias ("__pthread_abort_stub"))); # else -# pragma weak pthread_condattr_init = __pthread_zero_stub +# pragma weak pthread_cond_wait = __pthread_abort_stub # endif #endif -#ifndef HAVE_PTHREAD_CONDATTR_DESTROY -#define NEED_ZERO_STUB +#ifndef HAVE_PTHREAD_EQUAL +#define NEED_EQUAL_STUB # ifdef SUPPORT_ATTRIBUTE_ALIAS -int pthread_condattr_destroy() __attribute__ ((weak, alias ("__pthread_zero_stub"))); +int pthread_equal() __attribute__ ((weak, alias ("__pthread_equal_stub"))); # else -# pragma weak pthread_condattr_destroy = __pthread_zero_stub +# pragma weak pthread_equal = __pthread_equal_stub # endif #endif -#ifndef HAVE_PTHREAD_COND_WAIT -#define NEED_ABORT_STUB +#ifndef HAVE_PTHREAD_EXIT +#define NEED_EXIT_STUB # ifdef SUPPORT_ATTRIBUTE_ALIAS -int pthread_cond_wait() __attribute__ ((weak, alias ("__pthread_abort_stub"))); +void pthread_exit() __attribute__ ((weak, alias ("__pthread_exit_stub"))); # else -# pragma weak pthread_cond_wait = __pthread_abort_stub +# pragma weak pthread_exit = __pthread_exit_stub # endif #endif -#ifndef HAVE_PTHREAD_COND_TIMEDWAIT -#define NEED_ABORT_STUB +#ifndef HAVE_PTHREAD_MUTEX_DESTROY +#define NEED_ZERO_STUB # ifdef SUPPORT_ATTRIBUTE_ALIAS -int pthread_cond_timedwait() __attribute__ ((weak, alias ("__pthread_abort_stub"))); +int pthread_mutex_destroy() __attribute__ ((weak, alias ("__pthread_zero_stub"))); # else -# pragma weak pthread_cond_timedwait = __pthread_abort_stub +# pragma weak pthread_mutex_destroy = __pthread_zero_stub # endif #endif -#ifndef HAVE_PTHREAD_COND_SIGNAL +#ifndef HAVE_PTHREAD_MUTEX_INIT #define NEED_ZERO_STUB # ifdef SUPPORT_ATTRIBUTE_ALIAS -int pthread_cond_signal() __attribute__ ((weak, alias ("__pthread_zero_stub"))); +int pthread_mutex_init() __attribute__ ((weak, alias ("__pthread_zero_stub"))); # else -# pragma weak pthread_cond_signal = __pthread_zero_stub +# pragma weak pthread_mutex_init = __pthread_zero_stub # endif #endif -#ifndef HAVE_PTHREAD_COND_BROADCAST +#ifndef HAVE_PTHREAD_MUTEX_LOCK #define NEED_ZERO_STUB # ifdef SUPPORT_ATTRIBUTE_ALIAS -int pthread_cond_broadcast() __attribute__ ((weak, alias ("__pthread_zero_stub"))); +int pthread_mutex_lock() __attribute__ ((weak, alias ("__pthread_zero_stub"))); # else -# pragma weak pthread_cond_broadcast = __pthread_zero_stub +# pragma weak pthread_mutex_lock = __pthread_zero_stub # endif #endif -#ifndef HAVE_PTHREAD_EQUAL -#define NEED_EQUAL_STUB +#ifndef HAVE_PTHREAD_MUTEX_UNLOCK +#define NEED_ZERO_STUB # ifdef SUPPORT_ATTRIBUTE_ALIAS -int pthread_equal() __attribute__ ((weak, alias ("__pthread_equal_stub"))); +int pthread_mutex_unlock() __attribute__ ((weak, alias ("__pthread_zero_stub"))); # else -# pragma weak pthread_equal = __pthread_equal_stub +# pragma weak pthread_mutex_unlock = __pthread_zero_stub # endif #endif -#ifndef HAVE_PTHREAD_EXIT -#define NEED_EXIT_STUB +#ifndef HAVE_PTHREAD_SELF +#define NEED_ZERO_STUB # ifdef SUPPORT_ATTRIBUTE_ALIAS -void pthread_exit() __attribute__ ((weak, alias ("__pthread_exit_stub"))); +int pthread_self() __attribute__ ((weak, alias ("__pthread_zero_stub"))); # else -# pragma weak pthread_exit = __pthread_exit_stub +# pragma weak pthread_self = __pthread_zero_stub # endif #endif |