get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/808876/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 808876,
    "url": "http://patchwork.ozlabs.org/api/patches/808876/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/glibc/patch/20170901180029.9527-59-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-59-hjl.tools@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-01T18:00:29",
    "name": "[58/58] Hide internal fadvise64/fallocate64 functions [BZ #18822]",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "854c6cf79f896d707a5b0478192a285dc4a5acfb",
    "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-59-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/808876/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/808876/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<libc-alpha-return-84069-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-84069-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=\"GdW0uYKh\"; 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 3xkRwq2ylhz9s3w\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat,  2 Sep 2017 04:05:15 +1000 (AEST)",
            "(qmail 86464 invoked by alias); 1 Sep 2017 18:00:56 -0000",
            "(qmail 86404 invoked by uid 89); 1 Sep 2017 18:00:56 -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=qJfPqhyuwPLqGQNn5W/S/K0F+T8BvRo\n\tLSPArF2S96tg3BSyU/zrFqiotSU+PyGo3iU5ZhAHsQ6QyrcdpcvLbnqJqLRpmFZy\n\tTrcTixddKMY80qwGX3IMyW8UC82qJCa3uQ1zAX27Nnq4pAuvNWaktTO1NXRLsxmV\n\t/hlAOehTPh5Q=",
        "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=a4hzsM+LDaz/yvx5id0j5gdIrkc=; b=GdW0u\n\tYKhIUTHl0EekwfDQwUXHNiOqqDIHdYwbaTxo12vv3bRZp3MdlyF4SbBmnsJBVdFs\n\tPGmBnIe+6SRE1qifNQK/R6WIFlOGlKxM1XGnoAdTI0OTHYiwP5F904lj3UB8cOSD\n\tPLM7/kxJgqRYfkJPSToclmhOTeHSFdqHoIJmMk=",
        "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": "mga06.intel.com",
        "X-ExtLoop1": "1",
        "From": "\"H.J. Lu\" <hjl.tools@gmail.com>",
        "To": "libc-alpha@sourceware.org",
        "Subject": "[PATCH 58/58] Hide internal fadvise64/fallocate64 functions [BZ\n\t#18822]",
        "Date": "Fri,  1 Sep 2017 11:00:29 -0700",
        "Message-Id": "<20170901180029.9527-59-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 fadvise64/fallocate64 functions to allow direct access\nwithin libc.so and libc.a without using GOT nor PLT.\n\n\t[BZ #18822]\n\t* sysdeps/unix/sysv/linux/posix_fadvise64.c\n\t(__posix_fadvise64_l64): Add Add libc_hidden_proto and\n\tlibc_hidden_def.\n\t* sysdeps/unix/sysv/linux/posix_fallocate64.c\n\t(__posix_fallocate64_l64): Likewise.\n---\n sysdeps/unix/sysv/linux/posix_fadvise64.c   | 2 ++\n sysdeps/unix/sysv/linux/posix_fallocate64.c | 2 ++\n 2 files changed, 4 insertions(+)",
    "diff": "diff --git a/sysdeps/unix/sysv/linux/posix_fadvise64.c b/sysdeps/unix/sysv/linux/posix_fadvise64.c\nindex aaee60add7..6dee86c833 100644\n--- a/sysdeps/unix/sysv/linux/posix_fadvise64.c\n+++ b/sysdeps/unix/sysv/linux/posix_fadvise64.c\n@@ -20,6 +20,7 @@\n #include <shlib-compat.h>\n \n int __posix_fadvise64_l64 (int fd, off64_t offset, off64_t len, int advise);\n+libc_hidden_proto (__posix_fadvise64_l64)\n \n /* Both arm and powerpc implements fadvise64_64 with last 'advise' argument\n    just after 'fd' to avoid the requirement of implementing 7-arg syscalls.\n@@ -83,3 +84,4 @@ weak_alias (__posix_fadvise64_l64, posix_fadvise64);\n weak_alias (__posix_fadvise64_l64, posix_fadvise64);\n strong_alias (__posix_fadvise64_l64, posix_fadvise);\n #endif\n+libc_hidden_def (__posix_fadvise64_l64)\ndiff --git a/sysdeps/unix/sysv/linux/posix_fallocate64.c b/sysdeps/unix/sysv/linux/posix_fallocate64.c\nindex eb05f7c5d0..76cf27a616 100644\n--- a/sysdeps/unix/sysv/linux/posix_fallocate64.c\n+++ b/sysdeps/unix/sysv/linux/posix_fallocate64.c\n@@ -19,6 +19,7 @@\n #include <sysdep.h>\n \n extern int __posix_fallocate64_l64 (int fd, __off64_t offset, __off64_t len);\n+libc_hidden_proto (__posix_fallocate64_l64)\n #define __posix_fallocate64_l64 static internal_fallocate64\n #include <sysdeps/posix/posix_fallocate64.c>\n #undef __posix_fallocate64_l64\n@@ -42,3 +43,4 @@ __posix_fallocate64_l64 (int fd, __off64_t offset, __off64_t len)\n     return INTERNAL_SYSCALL_ERRNO (res, err);\n   return internal_fallocate64 (fd, offset, len);\n }\n+libc_hidden_def (__posix_fallocate64_l64)\n",
    "prefixes": [
        "58/58"
    ]
}