Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static struct _hook hooks[] = {
- {"property_get", property_get },
- {"property_set", property_set },
- {"printf", printf },
- {"malloc", malloc },
- {"free", free },
- {"calloc", calloc },
- {"cfree", cfree },
- {"realloc", realloc },
- {"memalign", memalign },
- {"valloc", valloc },
- {"pvalloc", pvalloc },
- /* string.h */
- {"memccpy",memccpy},
- {"memchr",memchr},
- {"memrchr",memrchr},
- {"memcmp",memcmp},
- {"memcpy",memcpy},
- {"memmove",memmove},
- {"memset",memset},
- {"memmem",memmem},
- // {"memswap",memswap},
- {"index",index},
- {"rindex",rindex},
- {"strchr",strchr},
- {"strrchr",strrchr},
- {"strlen",strlen},
- {"strcmp",strcmp},
- {"strcpy",strcpy},
- {"strcat",strcat},
- {"strcasecmp",strcasecmp},
- {"strncasecmp",strncasecmp},
- {"strdup",strdup},
- {"strstr",strstr},
- {"strcasestr",strcasestr},
- {"strtok",strtok},
- {"strtok_r",strtok_r},
- {"strerror",strerror},
- {"strerror_r",strerror_r},
- {"strnlen",strnlen},
- {"strncat",strncat},
- {"strndup",strndup},
- {"strncmp",strncmp},
- {"strncpy",strncpy},
- // {"strlcat",strlcat},
- // {"strlcpy",strlcpy},
- {"strcspn",strcspn},
- {"strpbrk",strpbrk},
- {"strsep",strsep},
- {"strspn",strspn},
- {"strsignal",strsignal},
- {"strcoll",strcoll},
- {"strxfrm",strxfrm},
- /* strings.h */
- {"bcmp",bcmp},
- {"bcopy",bcopy},
- {"bzero",bzero},
- {"ffs",ffs},
- {"index",index},
- {"rindex",rindex},
- {"strcasecmp",strcasecmp},
- {"strncasecmp",strncasecmp},
- /* pthread.h */
- {"pthread_create", pthread_create},
- {"pthread_exit", pthread_exit},
- {"pthread_join", pthread_join},
- {"pthread_detach", pthread_detach},
- {"pthread_self", pthread_self},
- {"pthread_equal", pthread_equal},
- {"pthread_mutex_init", my_pthread_mutex_init },
- {"pthread_mutex_lock", my_pthread_mutex_lock },
- {"pthread_mutex_unlock", my_pthread_mutex_unlock },
- {"pthread_mutex_destroy", my_pthread_mutex_destroy },
- {"pthread_once", pthread_once},
- {"pthread_mutexattr_init", pthread_mutexattr_init},
- {"pthread_mutexattr_settype", pthread_mutexattr_settype},
- {"pthread_mutex_trylock", my_pthread_mutex_trylock},
- {"pthread_key_create", pthread_key_create},
- {"pthread_setspecific", pthread_setspecific},
- {"pthread_getspecific", pthread_getspecific},
- {"pthread_cond_init", my_pthread_cond_init},
- {"pthread_cond_broadcast", my_pthread_cond_broadcast},
- {"pthread_cond_destroy", my_pthread_cond_destroy},
- {"pthread_cond_signal", my_pthread_cond_signal},
- {"pthread_cond_wait", my_pthread_cond_wait},
- {"pthread_cond_timedwait", my_pthread_cond_timedwait},
- {"pthread_attr_setstacksize", my_pthread_attr_setstacksize},
- {"pthread_attr_destroy", my_pthread_attr_destroy},
- {"pthread_attr_setdetachstate", my_pthread_attr_setdetachstate},
- {"pthread_attr_init", my_pthread_attr_init},
- {NULL, NULL},
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement