This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch sthibaul/hurd-builds updated. glibc-2.26.9000-1161-g6d71abd
- From: sthibaul at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 23 Jan 2018 21:59:28 -0000
- Subject: GNU C Library master sources branch sthibaul/hurd-builds updated. glibc-2.26.9000-1161-g6d71abd
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, sthibaul/hurd-builds has been updated
via 6d71abd6237178f2c40c8226bdc440a7c5ede60e (commit)
from 390f57bbbe3f0ad81d447f5c1aaa1d5827a261fa (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=6d71abd6237178f2c40c8226bdc440a7c5ede60e
commit 6d71abd6237178f2c40c8226bdc440a7c5ede60e
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Tue Jan 23 22:59:11 2018 +0100
Add missing hooks from t/extern_inline
diff --git a/mach/lock-intern.h b/mach/lock-intern.h
index 34175f5..3e9fc99 100644
--- a/mach/lock-intern.h
+++ b/mach/lock-intern.h
@@ -35,20 +35,28 @@ typedef unsigned int __spin_lock_t;
/* Initialize LOCK. */
+void __spin_lock_init (__spin_lock_t *__lock)
+
+#if defined __USE_EXTERN_INLINES && defined _LIBC
_EXTERN_INLINE void
__spin_lock_init (__spin_lock_t *__lock)
{
*__lock = LLL_INITIALIZER;
}
+#endif
/* Lock the spin lock LOCK. */
+void __spin_lock (__spin_lock_t *__lock)
+
+#if defined __USE_EXTERN_INLINES && defined _LIBC
_EXTERN_INLINE void
__spin_lock (__spin_lock_t *__lock)
{
lll_lock (__lock, 0);
}
+#endif
/* Unlock LOCK. */
void __spin_unlock (__spin_lock_t *__lock);
@@ -90,25 +98,37 @@ extern void __mutex_init (void *__lock);
/* Lock the mutex lock LOCK. */
+void __mutex_lock (void *__lock)
+
+#if defined __USE_EXTERN_INLINES && defined _LIBC
_EXTERN_INLINE void
__mutex_lock (void *__lock)
{
__spin_lock ((__spin_lock_t *)__lock);
}
+#endif
/* Unlock the mutex lock LOCK. */
+void __mutex_unlock (void *__lock)
+
+#if defined __USE_EXTERN_INLINES && defined _LIBC
_EXTERN_INLINE void
__mutex_unlock (void *__lock)
{
__spin_unlock ((__spin_lock_t *)__lock);
}
+#endif
+int __mutex_trylock (void *__lock)
+
+#if defined __USE_EXTERN_INLINES && defined _LIBC
_EXTERN_INLINE int
__mutex_trylock (void *__lock)
{
return (__spin_try_lock ((__spin_lock_t *)__lock));
}
+#endif
#endif /* lock-intern.h */
-----------------------------------------------------------------------
Summary of changes:
mach/lock-intern.h | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
hooks/post-receive
--
GNU C Library master sources