https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=520c3a3fa237701580975a55e4f4c3bb94bb6915
commit 520c3a3fa237701580975a55e4f4c3bb94bb6915 Author: Corinna Vinschen <[email protected]> Date: Thu Jul 29 17:27:41 2021 +0200 Cygwin: pthread.h: clean namespace Signed-off-by: Corinna Vinschen <[email protected]> Diff: --- winsup/cygwin/include/pthread.h | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/winsup/cygwin/include/pthread.h b/winsup/cygwin/include/pthread.h index a55be5d40..6b7b6dde5 100644 --- a/winsup/cygwin/include/pthread.h +++ b/winsup/cygwin/include/pthread.h @@ -196,22 +196,19 @@ int pthread_spin_unlock (pthread_spinlock_t *); /* RW Locks */ #if __XSI_VISIBLE >= 500 || __POSIX_VISIBLE >= 200112 || __cplusplus >= 201402L -int pthread_rwlock_destroy (pthread_rwlock_t *rwlock); -int pthread_rwlock_init (pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr); -int pthread_rwlock_rdlock (pthread_rwlock_t *rwlock); -int pthread_rwlock_timedrdlock (pthread_rwlock_t *rwlock, - const struct timespec *abstime); -int pthread_rwlock_tryrdlock (pthread_rwlock_t *rwlock); -int pthread_rwlock_wrlock (pthread_rwlock_t *rwlock); -int pthread_rwlock_timedwrlock (pthread_rwlock_t *rwlock, - const struct timespec *abstime); -int pthread_rwlock_trywrlock (pthread_rwlock_t *rwlock); -int pthread_rwlock_unlock (pthread_rwlock_t *rwlock); -int pthread_rwlockattr_init (pthread_rwlockattr_t *rwlockattr); -int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t *attr, - int *pshared); -int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *attr, int pshared); -int pthread_rwlockattr_destroy (pthread_rwlockattr_t *rwlockattr); +int pthread_rwlock_destroy (pthread_rwlock_t *); +int pthread_rwlock_init (pthread_rwlock_t *, const pthread_rwlockattr_t *); +int pthread_rwlock_rdlock (pthread_rwlock_t *); +int pthread_rwlock_timedrdlock (pthread_rwlock_t *, const struct timespec *); +int pthread_rwlock_tryrdlock (pthread_rwlock_t *); +int pthread_rwlock_wrlock (pthread_rwlock_t *); +int pthread_rwlock_timedwrlock (pthread_rwlock_t *, const struct timespec *); +int pthread_rwlock_trywrlock (pthread_rwlock_t *); +int pthread_rwlock_unlock (pthread_rwlock_t *); +int pthread_rwlockattr_init (pthread_rwlockattr_t *); +int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t *, int *); +int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *, int); +int pthread_rwlockattr_destroy (pthread_rwlockattr_t *); #endif int pthread_once (pthread_once_t *, void (*)(void));
