From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 0896D39DC4CD; Thu, 29 Jul 2021 15:46:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0896D39DC4CD Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: pthread.h: clean namespace X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: 5c4eaf45f168762008237c5ee73ad72cdd4cf47f X-Git-Newrev: 520c3a3fa237701580975a55e4f4c3bb94bb6915 Message-Id: <20210729154600.0896D39DC4CD@sourceware.org> Date: Thu, 29 Jul 2021 15:46:00 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jul 2021 15:46:00 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=520c3a3fa237701580975a55e4f4c3bb94bb6915 commit 520c3a3fa237701580975a55e4f4c3bb94bb6915 Author: Corinna Vinschen Date: Thu Jul 29 17:27:41 2021 +0200 Cygwin: pthread.h: clean namespace Signed-off-by: Corinna Vinschen 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));