From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42270 invoked by alias); 19 Feb 2020 17:50:52 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 42180 invoked by uid 89); 19 Feb 2020 17:50:51 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mail-qk1-f194.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:from:autocrypt:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=zWlTlXUs1gD5AWHQclQhAoiM7nvMKBl/9ri5PFSQtsQ=; b=qLTApKPThswn7URRBNuAVk9HD3yH3BhfUQk9BGeKEkdOqXbSlAGyPBTGO8gfxsoI/P 8xZ97/+x/I1QIYjpBEPtv04Svbb3GgiY6APAeKtdnN7rr5Tsxmm11Fz7J5N88KkALSw7 oFWRZlWtXsVWK8fq/uouWc3Y1DyyZXLVWy5vkH4SxdfmraHBOE0Z+3Q8SQAt5LyTmcyF v6PvYy6E3R8u5Bycj6e7cCo7noJbi5+6cc1C9TggGbpplaJVX5o1kJiKY84Wn8vlI2je yLHWCX7t6VG6ZudXyZEknqpPqm55VbKsi7gr8ZQFoBA+61ECDDZMJwIZ5Ei1vYNNOzUl zBmg== Return-Path: Subject: Re: [PATCH 11/13] Add hidden prototypes for __sched_getparam, __sched_getscheduler To: libc-alpha@sourceware.org References: <296f37bf50e98512ee7783ca85f8610da96cbd25.1581418947.git.fweimer@redhat.com> From: Adhemerval Zanella Message-ID: Date: Wed, 19 Feb 2020 17:50:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <296f37bf50e98512ee7783ca85f8610da96cbd25.1581418947.git.fweimer@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2020-02/txt/msg00833.txt.bz2 On 11/02/2020 08:06, Florian Weimer wrote: > This will enable them to be used in libc.so without PLTs. LGTM, thanks. Reviewed-by: Adhemerval Zanella > --- > 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); Ok. > 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) Ok. > 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) > OK.