unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: libc-alpha@sourceware.org
Subject: [PATCH 11/13] Add hidden prototypes for __sched_getparam, __sched_getscheduler
Date: Tue, 11 Feb 2020 12:06:48 +0100	[thread overview]
Message-ID: <296f37bf50e98512ee7783ca85f8610da96cbd25.1581418947.git.fweimer@redhat.com> (raw)
In-Reply-To: <cover.1581418947.git.fweimer@redhat.com>

This will enable them to be used in libc.so without PLTs.
---
 include/sched.h    | 2 ++
 posix/sched_getp.c | 1 +
 posix/sched_gets.c | 1 +
 3 files changed, 4 insertions(+)

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);
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)
-- 
2.24.1



  parent reply	other threads:[~2020-02-11 11:08 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-11 11:05 [PATCH 00/13] nptl: Move more functions from libpthread to libc Florian Weimer
2020-02-11 11:06 ` [PATCH 01/13] nptl: Use .NOTPARALLEL in Makefile only if actually running tests Florian Weimer
2020-02-19 17:28   ` Adhemerval Zanella
2020-02-11 11:06 ` [PATCH 02/13] nptl: Sort routines list in Makefile alphabetically Florian Weimer
2020-02-19 17:34   ` Adhemerval Zanella
2020-02-20  7:54     ` Florian Weimer
2020-02-11 11:06 ` [PATCH 03/13] nptl: Move pthread_attr_getschedpolicy implementation into libc Florian Weimer
2020-02-19 17:38   ` Adhemerval Zanella
2020-02-11 11:06 ` [PATCH 04/13] nptl: Move pthread_attr_setschedpolicy " Florian Weimer
2020-02-19 17:39   ` Adhemerval Zanella
2020-02-11 11:06 ` [PATCH 05/13] nptl: Move pthread_attr_getscope " Florian Weimer
2020-02-19 17:40   ` Adhemerval Zanella
2020-02-11 11:06 ` [PATCH 06/13] nptl: Move pthread_attr_setscope " Florian Weimer
2020-02-19 17:41   ` Adhemerval Zanella
2020-02-11 11:06 ` [PATCH 07/13] nptl: Move pthread_condattr_destroy " Florian Weimer
2020-02-19 17:42   ` Adhemerval Zanella
2020-02-11 11:06 ` [PATCH 08/13] nptl: Move pthread_condattr_init " Florian Weimer
2020-02-19 17:42   ` Adhemerval Zanella
2020-02-11 11:06 ` [PATCH 09/13] nptl: Move pthread_cond_destroy " Florian Weimer
2020-02-19 17:48   ` Adhemerval Zanella
2020-02-11 11:06 ` [PATCH 10/13] nptl: Move pthread_cond_init " Florian Weimer
2020-02-19 17:50   ` Adhemerval Zanella
2020-02-11 11:06 ` Florian Weimer [this message]
2020-02-19 17:50   ` [PATCH 11/13] Add hidden prototypes for __sched_getparam, __sched_getscheduler Adhemerval Zanella
2020-02-11 11:06 ` [PATCH 12/13] nptl: Move pthread_getschedparam implementation into libc Florian Weimer
2020-02-19 17:51   ` Adhemerval Zanella
2020-02-11 11:06 ` [PATCH 13/13] nptl: Move pthread_setschedparam " Florian Weimer
2020-02-19 17:52   ` Adhemerval Zanella

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/libc/involved.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=296f37bf50e98512ee7783ca85f8610da96cbd25.1581418947.git.fweimer@redhat.com \
    --to=fweimer@redhat.com \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).