get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2226307,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2226307/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/bmm.hhubrmqub2.gcc.gcc-TEST.redi.31.1.7@forge-stage.sourceware.org/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<bmm.hhubrmqub2.gcc.gcc-TEST.redi.31.1.7@forge-stage.sourceware.org>",
    "list_archive_url": null,
    "date": "2026-04-22T10:44:22",
    "name": "[v1,07/16] libstdc++: Simplify futex wrapper functions for atomic wait/notify",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "1dd4b1675c36634f6f5678295be58261d6dc425f",
    "submitter": {
        "id": 93210,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/93210/?format=api",
        "name": "Jonathan Wakely via Sourceware Forge",
        "email": "forge-bot+redi@forge-stage.sourceware.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/bmm.hhubrmqub2.gcc.gcc-TEST.redi.31.1.7@forge-stage.sourceware.org/mbox/",
    "series": [
        {
            "id": 500987,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/500987/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=500987",
            "date": "2026-04-22T10:44:17",
            "name": "atomic wait/notify ABI stabilization",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/500987/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2226307/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2226307/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)",
            "sourceware.org; dmarc=none (p=none dis=none)\n header.from=forge-stage.sourceware.org",
            "sourceware.org;\n spf=pass smtp.mailfrom=forge-stage.sourceware.org",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=38.145.34.39"
        ],
        "Received": [
            "from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0xhP64p5z1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 21:24:37 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id D9C7240A0CD5\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 11:24:35 +0000 (GMT)",
            "from forge-stage.sourceware.org (vm08.sourceware.org [38.145.34.39])\n by sourceware.org (Postfix) with ESMTPS id 6C5214015EAE\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 10:46:05 +0000 (GMT)",
            "from forge-stage.sourceware.org (localhost [IPv6:::1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256)\n (No client certificate requested)\n by forge-stage.sourceware.org (Postfix) with ESMTPS id D73CA42BB5\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 10:46:01 +0000 (UTC)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org D9C7240A0CD5",
            "OpenDKIM Filter v2.11.0 sourceware.org 6C5214015EAE"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 6C5214015EAE",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 6C5214015EAE",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776854765; cv=none;\n b=jUTn9IA0oTBfJ7KrrD/5YOXUjP5cgQApQI+0kvsmw8mLSuu9xs8TGy4mBtyPF274VJ9y/WRkdyaePurTcPRmaeWg321j6iQa9yp8WHal22j5o9ZppD/3jvzYvsNQ9lLt4W8GGvf5PPJfLaPjWIJb0u+Sh2YyxRD+/4ujVkVqZDY=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776854765; c=relaxed/simple;\n bh=9uEOxhADrbxZoSsJ+HachYw2xvmo2Ts9AkQvC6yeLHY=;\n h=From:Date:Subject:To:Message-ID;\n b=Gjvw4WzcRv1KAyTw9zQAUYZ6YpkvKzQ29hxd7zzaSy/rohYPO89w1mtNDp0vSX6apZEmkcNgU5LXZo7VIwQIgBWbeu308OFNZ/Amba9LSjGEMbeZKZRIIvjIKj4yQQG0znD+Sz7w5+f6VKEDpDm/FzKDQjdjIOVeFzMbqyHIbSg=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "From": "Jonathan Wakely via Sourceware Forge\n <forge-bot+redi@forge-stage.sourceware.org>",
        "Date": "Wed, 22 Apr 2026 10:44:22 +0000",
        "Subject": "[PATCH v1 07/16] libstdc++: Simplify futex wrapper functions for\n atomic wait/notify",
        "To": "gcc-patches mailing list <gcc-patches@gcc.gnu.org>",
        "Message-ID": "\n <bmm.hhubrmqub2.gcc.gcc-TEST.redi.31.1.7@forge-stage.sourceware.org>",
        "X-Mailer": "batrachomyomachia",
        "X-Pull-Request-Organization": "gcc",
        "X-Pull-Request-Repository": "gcc-TEST",
        "X-Pull-Request": "https://forge.sourceware.org/gcc/gcc-TEST/pulls/31",
        "References": "\n <bmm.hhubrmqub2.gcc.gcc-TEST.redi.31.1.0@forge-stage.sourceware.org>",
        "In-Reply-To": "\n <bmm.hhubrmqub2.gcc.gcc-TEST.redi.31.1.0@forge-stage.sourceware.org>",
        "X-Patch-URL": "\n https://forge.sourceware.org/redi/gcc/commit/5d795b478e99915b768db39d45c16cf91c9015bf",
        "X-BeenThere": "gcc-patches@gcc.gnu.org",
        "X-Mailman-Version": "2.1.30",
        "Precedence": "list",
        "List-Id": "Gcc-patches mailing list <gcc-patches.gcc.gnu.org>",
        "List-Unsubscribe": "<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>",
        "List-Archive": "<https://gcc.gnu.org/pipermail/gcc-patches/>",
        "List-Post": "<mailto:gcc-patches@gcc.gnu.org>",
        "List-Help": "<mailto:gcc-patches-request@gcc.gnu.org?subject=help>",
        "List-Subscribe": "<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>",
        "Reply-To": "gcc-patches mailing list <gcc-patches@gcc.gnu.org>, redi@gcc.gnu.org",
        "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"
    },
    "content": "From: Jonathan Wakely <jwakely@redhat.com>\n\nlibstdc++-v3/ChangeLog:\n\n\t* include/bits/atomic_wait.h (__platform_wait): Change function\n\ttemplate to a normal function. The parameter is always\n\t__platform_wait_t* which is just int* for this implementation of\n\tthe function.\n\t(__platform_notify): Likewise.\n---\n libstdc++-v3/include/bits/atomic_wait.h | 40 ++++++++++++-------------\n 1 file changed, 20 insertions(+), 20 deletions(-)",
    "diff": "diff --git a/libstdc++-v3/include/bits/atomic_wait.h b/libstdc++-v3/include/bits/atomic_wait.h\nindex 725ea030245d..5fd00c22565b 100644\n--- a/libstdc++-v3/include/bits/atomic_wait.h\n+++ b/libstdc++-v3/include/bits/atomic_wait.h\n@@ -108,27 +108,27 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION\n       __bitset_match_any = -1\n     };\n \n-    template<typename _Tp>\n-      void\n-      __platform_wait(const _Tp* __addr, __platform_wait_t __val) noexcept\n-      {\n-\tauto __e = syscall (SYS_futex, static_cast<const void*>(__addr),\n-\t\t\t    static_cast<int>(__futex_wait_flags::__wait_private),\n-\t\t\t    __val, nullptr);\n-\tif (!__e || errno == EAGAIN)\n-\t  return;\n-\tif (errno != EINTR)\n-\t  __throw_system_error(errno);\n-      }\n+    // If the futex *__addr is equal to __val, wait on the futex until woken.\n+    inline void\n+    __platform_wait(const int* __addr, int __val) noexcept\n+    {\n+      auto __e = syscall (SYS_futex, __addr,\n+\t\t\t  static_cast<int>(__futex_wait_flags::__wait_private),\n+\t\t\t  __val, nullptr);\n+      if (!__e || errno == EAGAIN)\n+\treturn;\n+      if (errno != EINTR)\n+\t__throw_system_error(errno);\n+    }\n \n-    template<typename _Tp>\n-      void\n-      __platform_notify(const _Tp* __addr, bool __all) noexcept\n-      {\n-\tsyscall (SYS_futex, static_cast<const void*>(__addr),\n-\t\t static_cast<int>(__futex_wait_flags::__wake_private),\n-\t\t __all ? INT_MAX : 1);\n-      }\n+    // Wake threads waiting on the futex *__addr.\n+    inline void\n+    __platform_notify(const int* __addr, bool __all) noexcept\n+    {\n+      syscall (SYS_futex, __addr,\n+\t       static_cast<int>(__futex_wait_flags::__wake_private),\n+\t       __all ? INT_MAX : 1);\n+    }\n #endif\n \n     inline void\n",
    "prefixes": [
        "v1",
        "07/16"
    ]
}