get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 809326,
    "url": "http://patchwork.ozlabs.org/api/patches/809326/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/glibc/patch/20170903155209.3911-1-samuel.thibault@ens-lyon.org/",
    "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": "<20170903155209.3911-1-samuel.thibault@ens-lyon.org>",
    "list_archive_url": null,
    "date": "2017-09-03T15:52:09",
    "name": "[hurd,commited] hurd: Fix build ot misc/tst-preadvwritev2-common.c",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "fe3552568c2ffc6538722c7911c04dab8c884bfe",
    "submitter": {
        "id": 418,
        "url": "http://patchwork.ozlabs.org/api/people/418/?format=api",
        "name": "Samuel Thibault",
        "email": "samuel.thibault@ens-lyon.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/glibc/patch/20170903155209.3911-1-samuel.thibault@ens-lyon.org/mbox/",
    "series": [
        {
            "id": 1252,
            "url": "http://patchwork.ozlabs.org/api/series/1252/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/glibc/list/?series=1252",
            "date": "2017-09-03T15:52:09",
            "name": "[hurd,commited] hurd: Fix build ot misc/tst-preadvwritev2-common.c",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/1252/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/809326/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/809326/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<libc-alpha-return-84147-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-84147-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=\"Zc14+wVl\"; 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 3xlctf3y29z9s71\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon,  4 Sep 2017 01:52:26 +1000 (AEST)",
            "(qmail 32624 invoked by alias); 3 Sep 2017 15:52:19 -0000",
            "(qmail 32374 invoked by uid 89); 3 Sep 2017 15:52:18 -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:cc:subject:date:message-id; q=dns; s=\n\tdefault; b=ehkI7rHIJBS9Y5/8wPW5+zYOh1dA8hGji+4FcH9hMjEojcLXlQPK+\n\tERBo/pZIH5dBFkdgvcIQv8WFU7VhuRYaDPpwqhzTYinVMuMG5erdPVo1ARlgiPyt\n\tcFqEhophHPO1+EvT5kmVgwQ8oEOkouYb4l8gmS4pNTotQabpeEwUlE=",
        "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:cc:subject:date:message-id; s=default;\n\tbh=u1Zz9/lpshrlFCN8O0J7eyVj/LY=; b=Zc14+wVlBM0aXS8yprIhYZj8WUnz\n\ty2sFjmOl2Zx/RYpeQePYGCVqb8voQpDDGpXJbSbvp1ZJ2mrgEDtVyehBYg4ncjXa\n\tklB1rQTikA+iL7olCX46VVj2rLiSOLRLvsLkc7xp1eVZKm1MSPfBcR7z7p8QMVRk\n\t/GPcRuaxmHLI+Iw=",
        "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.1 required=5.0 tests=BAYES_00, GIT_PATCH_0,\n\tGIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS,\n\tSPF_NEUTRAL, URIBL_RED autolearn=ham version=3.3.2 spammy=",
        "X-HELO": "hera.aquilenet.fr",
        "From": "Samuel Thibault <samuel.thibault@ens-lyon.org>",
        "To": "libc-alpha@sourceware.org",
        "Cc": "Samuel Thibault <samuel.thibault@ens-lyon.org>",
        "Subject": "[hurd,commited] hurd: Fix build ot misc/tst-preadvwritev2-common.c",
        "Date": "Sun,  3 Sep 2017 17:52:09 +0200",
        "Message-Id": "<20170903155209.3911-1-samuel.thibault@ens-lyon.org>"
    },
    "content": "* misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,\n\tRWF_NOWAIT): Define to 0 if undefined already.\n\t(do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED\n\tboils down to 0.\n---\n ChangeLog                       |  4 ++++\n misc/tst-preadvwritev2-common.c | 14 +++++++++++++-\n 2 files changed, 17 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/ChangeLog b/ChangeLog\nindex 4802f7c428..824f19a272 100644\n--- a/ChangeLog\n+++ b/ChangeLog\n@@ -31,6 +31,10 @@\n \t__GI_feraiseexcept.\n \t* sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.\n \t* sysdeps/mach/hurd/x86/dl-sysdep.c: New file.\n+\t* misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,\n+\tRWF_NOWAIT): Define to 0 if undefined already.\n+\t(do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED\n+\tboils down to 0.\n \n 2017-09-01  Joseph Myers  <joseph@codesourcery.com>\n \ndiff --git a/misc/tst-preadvwritev2-common.c b/misc/tst-preadvwritev2-common.c\nindex 8abedc14d0..9d4909bdb7 100644\n--- a/misc/tst-preadvwritev2-common.c\n+++ b/misc/tst-preadvwritev2-common.c\n@@ -22,9 +22,21 @@\n static void\n do_test_with_invalid_flags (void)\n {\n+#ifndef RWF_HIPRI\n+# define RWF_HIPRI 0\n+#endif\n+#ifndef RWF_DSYNC\n+# define RWF_DSYNC 0\n+#endif\n+#ifndef RWF_SYNC\n+# define RWF_SYNC 0\n+#endif\n+#ifndef RWF_NOWAIT\n+# define RWF_NOWAIT 0\n+#endif\n #define RWF_SUPPORTED\t(RWF_HIPRI | RWF_DSYNC | RWF_SYNC | RWF_NOWAIT)\n   /* Set the next bit from the mask of all supported flags.  */\n-  int invalid_flag = __builtin_clz (RWF_SUPPORTED);\n+  int invalid_flag = RWF_SUPPORTED != 0 ? __builtin_clz (RWF_SUPPORTED) : 2;\n   invalid_flag = 0x1 << ((sizeof (int) * CHAR_BIT) - invalid_flag);\n \n   char buf[32];\n",
    "prefixes": [
        "hurd",
        "commited"
    ]
}