1 2 USR_LIBC_FUNC_DEF(int, pthread_attr_init, pthread_attr_t *attr) 3 USR_LIBC_FUNC_DEF(int, pthread_attr_destroy, pthread_attr_t *attr) 4 USR_LIBC_FUNC_DEF(int, pthread_attr_setdetachstate, pthread_attr_t *attr, int detachState) 5 USR_LIBC_FUNC_DEF(int, pthread_attr_getdetachstate, const pthread_attr_t *attr, int *detachState) 6 USR_LIBC_FUNC_DEF(int, pthread_attr_setscope, pthread_attr_t *attr, int scope) 7 USR_LIBC_FUNC_DEF(int, pthread_attr_getscope, const pthread_attr_t *attr, int *scope) 8 USR_LIBC_FUNC_DEF(int, pthread_attr_setinheritsched, pthread_attr_t *attr, int inherit) 9 USR_LIBC_FUNC_DEF(int, pthread_attr_getinheritsched, const pthread_attr_t *attr, int *inherit) 10 USR_LIBC_FUNC_DEF(int, pthread_attr_setschedpolicy, pthread_attr_t *attr, int policy) 11 USR_LIBC_FUNC_DEF(int, pthread_attr_getschedpolicy, const pthread_attr_t *attr, int *policy) 12 USR_LIBC_FUNC_DEF(int, pthread_attr_setschedparam, pthread_attr_t *attr, const struct sched_param *param) 13 USR_LIBC_FUNC_DEF(int, pthread_attr_getschedparam, const pthread_attr_t *attr, struct sched_param *param) 14 USR_LIBC_FUNC_DEF(int, pthread_attr_setstack, pthread_attr_t *a, void *addr, size_t size) 15 USR_LIBC_FUNC_DEF(int, pthread_attr_getstack, const pthread_attr_t *restrict a, void **restrict addr, size_t *restrict size) 16 USR_LIBC_FUNC_DEF(int, pthread_attr_setstacksize, pthread_attr_t *attr, size_t stackSize) 17 USR_LIBC_FUNC_DEF(int, pthread_attr_getstacksize, const pthread_attr_t *attr, size_t *stackSize) 18 //USR_LIBC_FUNC_DEF(int, sched_get_priority_min, int policy) 19 //USR_LIBC_FUNC_DEF(int, sched_get_priority_max, int policy) 20 USR_LIBC_FUNC_DEF(int, pthread_create, pthread_t *thread, const pthread_attr_t *attr, void *(*startRoutine)(void *), void *arg) 21 USR_LIBC_FUNC_DEF(int, pthread_setschedparam, pthread_t thread, int policy, const struct sched_param *param) 22 USR_LIBC_FUNC_DEF(int, pthread_getschedparam, pthread_t thread, int *policy, struct sched_param *param) 23 USR_LIBC_FUNC_DEF(pthread_t, pthread_self, void) 24 USR_LIBC_FUNC_DEF(int, pthread_cancel, pthread_t thread) 25 USR_LIBC_FUNC_DEF(int, pthread_join, pthread_t thread, void **retval) 26 USR_LIBC_FUNC_DEF(int, pthread_detach, pthread_t thread) 27 USR_LIBC_FUNC_DEF(void, pthread_exit, void *retVal) 28 //USR_LIBC_FUNC_DEF(int, pthread_setname_np,pthread_t thread, const char *name) 29 //USR_LIBC_FUNC_DEF(int, pthread_getname_np,pthread_t thread, char *buf, size_t buflen) 30 USR_LIBC_FUNC_DEF(int, memcmp, const void *vl, const void *vr, size_t n) 31 USR_LIBC_FUNC_DEF(void *, memcpy, void *restrict dest, const void *restrict src, size_t n) 32 USR_LIBC_FUNC_DEF(void *, memset, void *dest, int c, size_t n) 33 USR_LIBC_FUNC_DEF(int, strcmp, const char *l, const char *r) 34 USR_LIBC_FUNC_DEF(size_t, strlen, const char *s) 35