Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/808914/?format=api
{ "id": 808914, "url": "http://patchwork.ozlabs.org/api/patches/808914/?format=api", "web_url": "http://patchwork.ozlabs.org/project/glibc/patch/20170901180029.9527-46-hjl.tools@gmail.com/", "project": { "id": 41, "url": "http://patchwork.ozlabs.org/api/projects/41/?format=api", "name": "GNU C Library", "link_name": "glibc", "list_id": "libc-alpha.sourceware.org", "list_email": "libc-alpha@sourceware.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170901180029.9527-46-hjl.tools@gmail.com>", "list_archive_url": null, "date": "2017-09-01T18:00:16", "name": "[45/58] Hide internal __sched_setparam function [BZ #18822]", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "e7d068f438afee6334edfe1a9208d5e05e89212c", "submitter": { "id": 4387, "url": "http://patchwork.ozlabs.org/api/people/4387/?format=api", "name": "H.J. Lu", "email": "hjl.tools@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/glibc/patch/20170901180029.9527-46-hjl.tools@gmail.com/mbox/", "series": [ { "id": 1088, "url": "http://patchwork.ozlabs.org/api/series/1088/?format=api", "web_url": "http://patchwork.ozlabs.org/project/glibc/list/?series=1088", "date": "2017-09-01T18:00:21", "name": "Hide internal functions in libc.so", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/1088/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/808914/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/808914/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<libc-alpha-return-84101-incoming=patchwork.ozlabs.org@sourceware.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "mailing list libc-alpha@sourceware.org" ], "Authentication-Results": [ "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84101-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"rybQtKw5\"; dkim-atps=neutral", "sourceware.org; auth=none" ], "Received": [ "from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xkS2X4Wrqz9s06\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 2 Sep 2017 04:10:12 +1000 (AEST)", "(qmail 91591 invoked by alias); 1 Sep 2017 18:01:28 -0000", "(qmail 91565 invoked by uid 89); 1 Sep 2017 18:01:27 -0000" ], "DomainKey-Signature": "a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:from:to:subject:date:message-id:in-reply-to\n\t:references; q=dns; s=default; b=fsC3MZsZJpTSJ7l68ozWxAkispTJEEE\n\tO9JSdAYs+iAEymSOgNdAFBwnwJKcNSW15ysMlJbuG4j3WBiuLxs53KbKkhO0SMNI\n\t62NiVhSFOSXgoZ3P+Xv4C4ibuzqCOn6EesGWald+tg7oLlTo/YoHZnOHadt5Ge4l\n\tg7AyrPscDRLY=", "DKIM-Signature": "v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:from:to:subject:date:message-id:in-reply-to\n\t:references; s=default; bh=zognzR2GLlfokffDwNgmBLLqhWU=; b=rybQt\n\tKw58ejwmAqAeHQKaaPvCZo9x+WW1z3AJo2z/c5f+ejozLQwpjno3Ncoux1+eZKrG\n\t9AhsBwpH/BsqzgsHFU1ZZFDwJa35rtalXKDxIKUONSAH5BYHn/OpzKoU59LqtQNb\n\th5dSZQteCZAp0TFoVCToF0ZG2VvCO6MdCz0/j4=", "Mailing-List": "contact libc-alpha-help@sourceware.org; run by ezmlm", "Precedence": "bulk", "List-Id": "<libc-alpha.sourceware.org>", "List-Unsubscribe": "<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>", "List-Subscribe": "<mailto:libc-alpha-subscribe@sourceware.org>", "List-Archive": "<http://sourceware.org/ml/libc-alpha/>", "List-Post": "<mailto:libc-alpha@sourceware.org>", "List-Help": "<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>", "Sender": "libc-alpha-owner@sourceware.org", "X-Virus-Found": "No", "X-Spam-SWARE-Status": "No, score=-26.2 required=5.0 tests=BAYES_00,\n\tFREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2,\n\tGIT_PATCH_3,\n\tSPF_SOFTFAIL autolearn=ham version=3.3.2 spammy=H*m:gmail", "X-HELO": "mga02.intel.com", "X-ExtLoop1": "1", "From": "\"H.J. Lu\" <hjl.tools@gmail.com>", "To": "libc-alpha@sourceware.org", "Subject": "[PATCH 45/58] Hide internal __sched_setparam function [BZ #18822]", "Date": "Fri, 1 Sep 2017 11:00:16 -0700", "Message-Id": "<20170901180029.9527-46-hjl.tools@gmail.com>", "In-Reply-To": "<20170901180029.9527-1-hjl.tools@gmail.com>", "References": "<20170901180029.9527-1-hjl.tools@gmail.com>" }, "content": "Hide internal __sched_setparam function to allow direct access within\nlibc.so and libc.a without using GOT nor PLT.\n\n__GI___sched_setparam is defined when sysdeps/unix/syscalls.list is\nused to generate sched_setparam. Otherwise libc_hidden_def is needed\nexplicitly.\n\n\t[BZ #18822]\n\t* include/sched.h (__sched_setparam): Add libc_hidden_proto.\n\t* posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.\n---\n include/sched.h | 1 +\n posix/sched_setp.c | 1 +\n 2 files changed, 2 insertions(+)", "diff": "diff --git a/include/sched.h b/include/sched.h\nindex f75faed4ce..b698f78666 100644\n--- a/include/sched.h\n+++ b/include/sched.h\n@@ -5,6 +5,7 @@\n /* Now define the internal interfaces. */\n extern int __sched_setparam (__pid_t __pid,\n \t\t\t const struct sched_param *__param);\n+libc_hidden_proto (__sched_setparam)\n extern int __sched_getparam (__pid_t __pid, struct sched_param *__param);\n extern int __sched_setscheduler (__pid_t __pid, int __policy,\n \t\t\t\t const struct sched_param *__param);\ndiff --git a/posix/sched_setp.c b/posix/sched_setp.c\nindex 17c3af322a..ad50d5abe7 100644\n--- a/posix/sched_setp.c\n+++ b/posix/sched_setp.c\n@@ -29,4 +29,5 @@ __sched_setparam (pid_t pid, const struct sched_param *param)\n }\n stub_warning (sched_setparam)\n \n+libc_hidden_def (__sched_setparam)\n weak_alias (__sched_setparam, sched_setparam)\n", "prefixes": [ "45/58" ] }