mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
Add hidden prototypes for __sched_getparam, __sched_getscheduler
This will enable them to be used in libc.so without PLTs. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
ad96df2cd9
commit
c1080713ad
@ -7,10 +7,12 @@ extern int __sched_setparam (__pid_t __pid,
|
||||
const struct sched_param *__param);
|
||||
libc_hidden_proto (__sched_setparam)
|
||||
extern int __sched_getparam (__pid_t __pid, struct sched_param *__param);
|
||||
libc_hidden_proto (__sched_getparam)
|
||||
extern int __sched_setscheduler (__pid_t __pid, int __policy,
|
||||
const struct sched_param *__param);
|
||||
libc_hidden_proto (__sched_setscheduler)
|
||||
extern int __sched_getscheduler (__pid_t __pid);
|
||||
libc_hidden_proto (__sched_getscheduler)
|
||||
extern int __sched_yield (void);
|
||||
libc_hidden_proto (__sched_yield)
|
||||
extern int __sched_get_priority_max (int __algorithm);
|
||||
|
@ -27,6 +27,7 @@ __sched_getparam (pid_t pid, struct sched_param *param)
|
||||
__set_errno (ENOSYS);
|
||||
return -1;
|
||||
}
|
||||
libc_hidden_def (__sched_getparam)
|
||||
stub_warning (sched_getparam)
|
||||
|
||||
weak_alias (__sched_getparam, sched_getparam)
|
||||
|
@ -27,6 +27,7 @@ __sched_getscheduler (pid_t pid)
|
||||
__set_errno (ENOSYS);
|
||||
return -1;
|
||||
}
|
||||
libc_hidden_def (__sched_getscheduler)
|
||||
stub_warning (sched_getscheduler)
|
||||
|
||||
weak_alias (__sched_getscheduler, sched_getscheduler)
|
||||
|
Loading…
Reference in New Issue
Block a user