aboutsummaryrefslogtreecommitdiff
path: root/posix
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 /posix
parentnptl: Move pthread_cond_init implementation into libc (diff)
downloadglibc-c1080713adf0069c50e76278954f90c35946a988.tar.gz
glibc-c1080713adf0069c50e76278954f90c35946a988.tar.bz2
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 'posix')
-rw-r--r--posix/sched_getp.c1
-rw-r--r--posix/sched_gets.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/posix/sched_getp.c b/posix/sched_getp.c
index 32a5087850..014ea0f7ce 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 356e2f22fe..07dd67054f 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)