musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013年06月26日 22:02:23 -0400
committerRich Felker <dalias@aerifal.cx>2013年06月26日 22:02:23 -0400
commitb17c75a4d539d7ec5b81cc7ce7ce6b065a87e7a6 (patch)
tree4233d4e2828bf5f4c4165c9acd27a1b645b2ba1c
parent7c20a11801fd56cbadac5a6e88ddddf8656ac1bc (diff)
downloadmusl-b17c75a4d539d7ec5b81cc7ce7ce6b065a87e7a6.tar.gz
fix syscall argument bug in pthread_getschedparam
the address of the pointer to the sched param, rather than the pointer, was being passed to the kernel.
Diffstat
-rw-r--r--src/thread/pthread_getschedparam.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/pthread_getschedparam.c b/src/thread/pthread_getschedparam.c
index 7b6a95f1..3053c186 100644
--- a/src/thread/pthread_getschedparam.c
+++ b/src/thread/pthread_getschedparam.c
@@ -7,7 +7,7 @@ int pthread_getschedparam(pthread_t t, int *restrict policy, struct sched_param
if (t->dead) {
r = ESRCH;
} else {
- r = -__syscall(SYS_sched_getparam, t->tid, &param);
+ r = -__syscall(SYS_sched_getparam, t->tid, param);
if (!r) {
*policy = __syscall(SYS_sched_getscheduler, t->tid);
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月09日 14:57:08 +0000

AltStyle によって変換されたページ (->オリジナル) /