From: Florian Weimer Date: Mon, 10 Feb 2020 09:38:37 +0000 (+0100) Subject: Add hidden prototypes for __sched_getparam, __sched_getscheduler X-Git-Tag: upstream/2.34~2190 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1080713adf0069c50e76278954f90c35946a988;p=platform%2Fupstream%2Fglibc.git Add hidden prototypes for __sched_getparam, __sched_getscheduler This will enable them to be used in libc.so without PLTs. Reviewed-by: Adhemerval Zanella --- diff --git a/include/sched.h b/include/sched.h index 4abc440..b0bf971 100644 --- a/include/sched.h +++ b/include/sched.h @@ -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); diff --git a/posix/sched_getp.c b/posix/sched_getp.c index 32a5087..014ea0f 100644 --- a/posix/sched_getp.c +++ b/posix/sched_getp.c @@ -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) diff --git a/posix/sched_gets.c b/posix/sched_gets.c index 356e2f2..07dd670 100644 --- a/posix/sched_gets.c +++ b/posix/sched_gets.c @@ -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)