projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
avoid unbounded strlen in gettext functions
[oweals/musl.git]
/
src
/
sched
/
sched_setscheduler.c
diff --git
a/src/sched/sched_setscheduler.c
b/src/sched/sched_setscheduler.c
index acf5dc254625fd53597b5f3650cd612993acc48d..4435f2164671fd5bfc5bb0fc135ddbd4aeb157ea 100644
(file)
--- a/
src/sched/sched_setscheduler.c
+++ b/
src/sched/sched_setscheduler.c
@@
-1,8
+1,8
@@
#include <sched.h>
#include <sched.h>
+#include <errno.h>
#include "syscall.h"
int sched_setscheduler(pid_t pid, int sched, const struct sched_param *param)
{
#include "syscall.h"
int sched_setscheduler(pid_t pid, int sched, const struct sched_param *param)
{
- static const struct sched_param def;
- return syscall(SYS_sched_setscheduler, pid, sched, &def);
+ return __syscall_ret(-ENOSYS);
}
}