From f10d3487709cba8fc9c90800b09966a8c86600d4 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 17 Dec 2009 19:22:23 +0000 Subject: 2009-12-17 Ralf Corsepius * libc/include/pthread.h: Add pthread_atfork, pthread_rwlock_unlock * libc/include/sys/stat.h: Use struct timespec st_*tim, blksize_t st_blksize, blkcnt_t st_blocks. Add st_*time compatibility macros. --- newlib/libc/include/pthread.h | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'newlib/libc/include/pthread.h') diff --git a/newlib/libc/include/pthread.h b/newlib/libc/include/pthread.h index 8dc787244..f5af16408 100644 --- a/newlib/libc/include/pthread.h +++ b/newlib/libc/include/pthread.h @@ -33,21 +33,10 @@ extern "C" { #include #include -/* Register Fork Handlers, P1003.1c/Draft 10, P1003.1c/Draft 10, p. 27 - - If an OS does not support processes, then it falls under this provision - and may not provide pthread_atfork(): - - "Either the implementation shall support the pthread_atfork() function - as described above or the pthread_atfork() funciton shall not be - provided." - - NOTE: RTEMS does not provide pthread_atfork(). */ - -#if !defined(__rtems__) && !defined(__XMK__) -#warning "Add pthread_atfork() prototype" -#endif - +/* Register Fork Handlers */ +int _EXFUN(pthread_atfork,(void (*prepare)(void), void (*parent)(void), + void (*child)(void))); + /* Mutex Initialization Attributes, P1003.1c/Draft 10, p. 81 */ int _EXFUN(pthread_mutexattr_init, (pthread_mutexattr_t *__attr)); @@ -345,6 +334,7 @@ int _EXFUN(pthread_rwlock_rdlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_tryrdlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_timedrdlock, (pthread_rwlock_t *__rwlock, _CONST struct timespec *__abstime)); +int _EXFUN(pthread_rwlock_unlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_wrlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_trywrlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_timedwrlock, -- cgit v1.2.3