diff options
Diffstat (limited to 'libc/include')
-rw-r--r-- | libc/include/pthread.h | 2 | ||||
-rw-r--r-- | libc/include/unistd.h | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libc/include/pthread.h b/libc/include/pthread.h index 6603b3f..c0aa4b9 100644 --- a/libc/include/pthread.h +++ b/libc/include/pthread.h @@ -226,6 +226,8 @@ int pthread_getcpuclockid(pthread_t tid, clockid_t *clockid); int pthread_once(pthread_once_t *once_control, void (*init_routine)(void)); +int pthread_setname_np(pthread_t thid, const char *thname); + typedef void (*__pthread_cleanup_func_t)(void*); typedef struct __pthread_cleanup_t { diff --git a/libc/include/unistd.h b/libc/include/unistd.h index 1ada37e..73b7f41 100644 --- a/libc/include/unistd.h +++ b/libc/include/unistd.h @@ -185,6 +185,12 @@ extern int cacheflush(long start, long end, long flags); extern pid_t tcgetpgrp(int fd); extern int tcsetpgrp(int fd, pid_t _pid); +#define TEMP_FAILURE_RETRY(expr) \ + ({ long int __ret; \ + do __ret = (long int)(expr); \ + while (__ret == -1L && errno == EINTR); \ + __ret; }) + __END_DECLS #endif /* _UNISTD_H_ */ |