get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 810866,
    "url": "http://patchwork.ozlabs.org/api/patches/810866/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/3cbc1a38-0c68-f99d-78b0-55fe18566842@ubuntu.com/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/projects/17/?format=api",
        "name": "GNU Compiler Collection",
        "link_name": "gcc",
        "list_id": "gcc-patches.gcc.gnu.org",
        "list_email": "gcc-patches@gcc.gnu.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<3cbc1a38-0c68-f99d-78b0-55fe18566842@ubuntu.com>",
    "list_archive_url": null,
    "date": "2017-09-07T07:01:30",
    "name": "[5/6] fix libjava build failure with glibc-2.26",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "058b86e4dc812d7202fa30029dd61d33e27fc8a3",
    "submitter": {
        "id": 4404,
        "url": "http://patchwork.ozlabs.org/api/people/4404/?format=api",
        "name": "Matthias Klose",
        "email": "doko@ubuntu.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/3cbc1a38-0c68-f99d-78b0-55fe18566842@ubuntu.com/mbox/",
    "series": [
        {
            "id": 1918,
            "url": "http://patchwork.ozlabs.org/api/series/1918/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=1918",
            "date": "2017-09-07T07:01:30",
            "name": null,
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/1918/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/810866/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/810866/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<gcc-patches-return-461653-incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "mailing list gcc-patches@gcc.gnu.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=gcc-patches-return-461653-incoming=patchwork.ozlabs.org@gcc.gnu.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org\n\theader.b=\"wYiAM9+r\"; 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 3xnrwb38C7z9sCZ\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu,  7 Sep 2017 17:01:46 +1000 (AEST)",
            "(qmail 130907 invoked by alias); 7 Sep 2017 07:01:35 -0000",
            "(qmail 130627 invoked by uid 89); 7 Sep 2017 07:01:35 -0000",
            "from einhorn-mail.in-berlin.de (HELO einhorn-mail.in-berlin.de)\n\t(217.197.80.20) by sourceware.org\n\t(qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tThu, 07 Sep 2017 07:01:34 +0000",
            "from [192.168.178.30] (ip5f5bd68d.dynamic.kabel-deutschland.de\n\t[95.91.214.141])\t(authenticated bits=0)\tby\n\teinhorn.in-berlin.de (8.14.4/8.14.4/Debian-8+deb8u2) with\n\tESMTP id v8771Un6006010\t(version=TLSv1/SSLv3\n\tcipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tThu, 7 Sep 2017 09:01:31 +0200"
        ],
        "DomainKey-Signature": "a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:to\n\t:from:subject:message-id:date:mime-version:content-type; q=dns;\n\ts=default; b=nEIFxeaEjltJ/z3JqoAAIR6yEPUyTbAvh+U2Fhe+PBKPfM8qpq\n\tQJ8vdBGv2AWNAwae8vyHRk9MA0IVr4ZtmZKQpJNE8vfSeXqmf2bYW56rGVV8HnSO\n\tsHtHz+oVnqzV2NgOa/GLiGSY0azJ1dZs358+KE27FGODLcVyMHdl2JdaM=",
        "DKIM-Signature": "v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:to\n\t:from:subject:message-id:date:mime-version:content-type; s=\n\tdefault; bh=sLBdZ/yK/D4YRoeErDWfkfenGII=; b=wYiAM9+r6q77A/5o+GJ2\n\tK3asiLhN+l2xA+/Atyv7FzuS3z+1WW1Ra3WqAXVbTnlNL/kV8cLVZixK+2iFwHZW\n\tVYfGkXPJu16GYm4heF/2IeT+UkqHLbI22Jn8A8gQYSHORnR7swsjNqGBS5E2gRv+\n\t6wt7T/qa4SiM255CtXjctFo=",
        "Mailing-List": "contact gcc-patches-help@gcc.gnu.org; run by ezmlm",
        "Precedence": "bulk",
        "List-Id": "<gcc-patches.gcc.gnu.org>",
        "List-Unsubscribe": "<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "List-Archive": "<http://gcc.gnu.org/ml/gcc-patches/>",
        "List-Post": "<mailto:gcc-patches@gcc.gnu.org>",
        "List-Help": "<mailto:gcc-patches-help@gcc.gnu.org>",
        "Sender": "gcc-patches-owner@gcc.gnu.org",
        "X-Virus-Found": "No",
        "X-Spam-SWARE-Status": "No, score=-12.6 required=5.0 tests=BAYES_00, GIT_PATCH_2,\n\tGIT_PATCH_3,\n\tRCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2\n\tspammy=HTo:U*java-patches, H*MI:ubuntu,\n\tHx-spam-relays-external:sk:ip5f5bd, H*RU:sk:ip5f5bd",
        "X-Spam-User": "qpsmtpd, 2 recipients",
        "X-HELO": "einhorn-mail.in-berlin.de",
        "X-Envelope-From": "doko@ubuntu.com",
        "To": "GCC Patches <gcc-patches@gcc.gnu.org>,\n\tGCJ-patches <java-patches@gcc.gnu.org>",
        "From": "Matthias Klose <doko@ubuntu.com>",
        "Subject": "[patch] [5/6] fix libjava build failure with glibc-2.26",
        "Message-ID": "<3cbc1a38-0c68-f99d-78b0-55fe18566842@ubuntu.com>",
        "Date": "Thu, 7 Sep 2017 09:01:30 +0200",
        "User-Agent": "Mozilla/5.0 (X11; Linux x86_64;\n\trv:52.0) Gecko/20100101 Thunderbird/52.2.1",
        "MIME-Version": "1.0",
        "Content-Type": "multipart/mixed;\n\tboundary=\"------------CDA970A60A9E99908862724F\""
    },
    "content": "Fix libjava build failure with glibc-2.26, replacing 'struct ucontext' with\nucontext_t.  Ok for the gcc-5 and gcc-6 branches?  Doesn't apply to 7 and trunk,\nbecause libjava is removed.\n\nMatthias\n\n\t* include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Replace\n\t'struct ucontext' with ucontext_t.\n\t* include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Likewise.\n\t* include/s390-signal.h (HANDLE_DIVIDE_OVERFLOW): Likewise.",
    "diff": "# DP: Fix libjava build failure with glibc-2.26\n\n--- a/src/libjava/include/x86_64-signal.h\n+++ a/src/libjava/include/x86_64-signal.h\n@@ -28,7 +28,7 @@\n #define HANDLE_DIVIDE_OVERFLOW\t\t\t\t\t\t\\\n do\t\t\t\t\t\t\t\t\t\\\n {\t\t\t\t\t\t\t\t\t\\\n-  struct ucontext *_uc = (struct ucontext *)_p;\t\t\t\t\\\n+  ucontext_t *_uc = (ucontext_t *)_p;\t\t\t\t\t\\\n   gregset_t &_gregs = _uc->uc_mcontext.gregs;\t\t\t\t\\\n   unsigned char *_rip = (unsigned char *)_gregs[REG_RIP];\t\t\\\n \t\t\t\t\t\t\t\t\t\\\n--- a/src/libjava/include/i386-signal.h\n+++ a/src/libjava/include/i386-signal.h\n@@ -29,7 +29,7 @@\n #define HANDLE_DIVIDE_OVERFLOW\t\t\t\t\t\t\\\n do\t\t\t\t\t\t\t\t\t\\\n {\t\t\t\t\t\t\t\t\t\\\n-  struct ucontext *_uc = (struct ucontext *)_p;\t\t\t\t\\\n+  ucontext_t *_uc = (ucontext_t *)_p;\t\t\t\t\t\\\n   gregset_t &_gregs = _uc->uc_mcontext.gregs;\t\t\t\t\\\n   unsigned char *_eip = (unsigned char *)_gregs[REG_EIP];\t\t\\\n \t\t\t\t\t\t\t\t\t\\\n--- a/src/libjava/include/s390-signal.h\n+++ a/src/libjava/include/s390-signal.h\n@@ -51,7 +51,7 @@\n   struct                                                                \\\n   {                                                                     \\\n     unsigned long int uc_flags;                                         \\\n-    struct ucontext *uc_link;                                           \\\n+    ucontext_t *uc_link;                                                \\\n     stack_t uc_stack;                                                   \\\n     mcontext_t uc_mcontext;                                             \\\n     unsigned long sigmask[2];                                           \\\n",
    "prefixes": [
        "5/6"
    ]
}