summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorgfleury <gfleury@disroot.org>2025-01-03 12:37:46 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-01-29 02:32:36 +0100
commit2ebc2d8e24976ae9779d1d78ba8a1ed9b7b1ded7 (patch)
treecc7c81930705da35c289bcf9e8dab504e034918f /hurd
parente892a930736ba8f3c19a47dc0f46fec87da38313 (diff)
htl: move pthread_mutex_{lock, unlock, trylock, timedlock, clocklock}
I haven't exposed _pthread_mutex_lock, _pthread_mutex_trylock and _pthread_mutex_unlock in GLIBC_PRIVATE since there aren't used in any code in libpthread Message-ID: <20250103103750.870897-3-gfleury@disroot.org>
Diffstat (limited to 'hurd')
-rw-r--r--hurd/hurdlock.c6
-rw-r--r--hurd/hurdlock.h5
2 files changed, 11 insertions, 0 deletions
diff --git a/hurd/hurdlock.c b/hurd/hurdlock.c
index 374e4d107a..c771662e84 100644
--- a/hurd/hurdlock.c
+++ b/hurd/hurdlock.c
@@ -99,6 +99,7 @@ __lll_abstimed_lock (void *ptr,
return ETIMEDOUT;
}
}
+libc_hidden_def (__lll_abstimed_lock)
/* Robust locks. */
@@ -157,6 +158,7 @@ __lll_robust_lock (void *ptr, int flags)
}
}
}
+libc_hidden_def (__lll_robust_lock)
int
__lll_robust_abstimed_lock (void *ptr,
@@ -206,6 +208,7 @@ __lll_robust_abstimed_lock (void *ptr,
}
}
}
+libc_hidden_def (__lll_robust_abstimed_lock)
int
__lll_robust_trylock (void *ptr)
@@ -225,6 +228,7 @@ __lll_robust_trylock (void *ptr)
return EBUSY;
}
+libc_hidden_def (__lll_robust_trylock)
void
__lll_robust_unlock (void *ptr, int flags)
@@ -241,3 +245,5 @@ __lll_robust_unlock (void *ptr, int flags)
break;
}
}
+
+libc_hidden_def (__lll_robust_unlock)
diff --git a/hurd/hurdlock.h b/hurd/hurdlock.h
index c013c5994c..0cfccc562c 100644
--- a/hurd/hurdlock.h
+++ b/hurd/hurdlock.h
@@ -68,23 +68,27 @@ extern int __lll_abstimed_xwait (void *__ptr, int __lo, int __hi,
using clock CLK. */
extern int __lll_abstimed_lock (void *__ptr,
const struct timespec *__tsp, int __flags, int __clk);
+libc_hidden_proto (__lll_abstimed_lock)
/* Acquire the lock at PTR, but return with an error if
the process containing the owner thread dies. */
extern int __lll_robust_lock (void *__ptr, int __flags);
#define lll_robust_lock(var, flags) \
__lll_robust_lock (&(var), flags)
+libc_hidden_proto (__lll_robust_lock)
/* Same as '__lll_robust_lock', but only block until TSP
elapses, using clock CLK. */
extern int __lll_robust_abstimed_lock (void *__ptr,
const struct timespec *__tsp, int __flags, int __clk);
+libc_hidden_proto (__lll_robust_abstimed_lock)
/* Same as '__lll_robust_lock', but return with an error
if the lock cannot be acquired without blocking. */
extern int __lll_robust_trylock (void *__ptr);
#define lll_robust_trylock(var) \
__lll_robust_trylock (&(var))
+libc_hidden_proto (__lll_robust_trylock)
/* Wake one or more threads waiting on address PTR,
setting its value to VAL before doing so. */
@@ -96,6 +100,7 @@ extern int __lll_robust_trylock (void *__ptr);
extern void __lll_robust_unlock (void *__ptr, int __flags);
#define lll_robust_unlock(var, flags) \
__lll_robust_unlock (&(var), flags)
+libc_hidden_proto (__lll_robust_unlock)
/* Rearrange threads waiting on address SRC to instead wait on
DST, waking one of them if WAIT_ONE is non-zero. */