about summary refs log tree commit diff
path: root/include/sched.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-02-10 10:38:37 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-02-20 08:57:01 +0100
commitc1080713adf0069c50e76278954f90c35946a988 (patch)
tree75c3688002ecafd423176fc38298098bf74eaf34 /include/sched.h
parentad96df2cd9194b84686c272257e96ea74caff72a (diff)
downloadglibc-c1080713adf0069c50e76278954f90c35946a988.tar.gz
glibc-c1080713adf0069c50e76278954f90c35946a988.tar.xz
glibc-c1080713adf0069c50e76278954f90c35946a988.zip
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>
Diffstat (limited to 'include/sched.h')
-rw-r--r--include/sched.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sched.h b/include/sched.h
index 4abc440176..b0bf971c93 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);