get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2218554,
    "url": "http://patchwork.ozlabs.org/api/patches/2218554/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/glibc/patch/20260401122140.1849865-1-lucas.chollet@free.fr/",
    "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": "<20260401122140.1849865-1-lucas.chollet@free.fr>",
    "list_archive_url": null,
    "date": "2026-04-01T12:21:39",
    "name": "[v3] posix: Add POSIX aliases to some spawn functions",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "ef5eb20cbac720f28310c23403fd3687498e81a3",
    "submitter": {
        "id": 86596,
        "url": "http://patchwork.ozlabs.org/api/people/86596/?format=api",
        "name": "Lucas Chollet",
        "email": "lucas.chollet@free.fr"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/glibc/patch/20260401122140.1849865-1-lucas.chollet@free.fr/mbox/",
    "series": [
        {
            "id": 498329,
            "url": "http://patchwork.ozlabs.org/api/series/498329/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/glibc/list/?series=498329",
            "date": "2026-04-01T12:21:39",
            "name": "[v3] posix: Add POSIX aliases to some spawn functions",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/498329/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2218554/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218554/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "libc-alpha@sourceware.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "libc-alpha@sourceware.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=free.fr header.i=@free.fr header.a=rsa-sha256\n header.s=smtp-20201208 header.b=fSFhWODg;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org\n (client-ip=38.145.34.32; helo=vm01.sourceware.org;\n envelope-from=libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org;\n receiver=patchwork.ozlabs.org)",
            "sourceware.org;\n\tdkim=pass (2048-bit key,\n unprotected) header.d=free.fr header.i=@free.fr header.a=rsa-sha256\n header.s=smtp-20201208 header.b=fSFhWODg",
            "sourceware.org;\n dmarc=pass (p=quarantine dis=none) header.from=free.fr",
            "sourceware.org; spf=pass smtp.mailfrom=free.fr",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=2a01:e0c:1:1599::13"
        ],
        "Received": [
            "from vm01.sourceware.org (vm01.sourceware.org [38.145.34.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 4fm3yf1k0xz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 01 Apr 2026 23:22:18 +1100 (AEDT)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 3A2694BA23C0\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  1 Apr 2026 12:22:16 +0000 (GMT)",
            "from smtp4-g21.free.fr (smtp4-g21.free.fr\n [IPv6:2a01:e0c:1:1599::13])\n by sourceware.org (Postfix) with ESMTPS id 485EA4BA903C\n for <libc-alpha@sourceware.org>; Wed,  1 Apr 2026 12:21:54 +0000 (GMT)",
            "from itxub.fritz.box (unknown [84.254.90.136])\n (Authenticated sender: lucas.chollet@free.fr)\n by smtp4-g21.free.fr (Postfix) with ESMTPSA id 5F4A219F73C;\n Wed,  1 Apr 2026 14:21:49 +0200 (CEST)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 3A2694BA23C0",
            "OpenDKIM Filter v2.11.0 sourceware.org 485EA4BA903C"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 485EA4BA903C",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 485EA4BA903C",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1775046114; cv=none;\n b=b4TowrMN70o1AsyuyEFBzJKTXR5LrckqEYD8gGfjYAYhopzSpow1JMCiE4hgb0LcJld3PsddZNawrjHiKGKXYajQeMKywtIngKmgtFM1DdHq/Q8JLLlkcZogdetCrN8bPyMGgb/0PN31CHeFcbKHH0JI8LPxCtxr82VrMFqkzaw=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1775046114; c=relaxed/simple;\n bh=7gYsnCLRVP0fpnHEF+SmGnKP3HFZK33agK+SzlJ9abo=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=P7TITZiVMztmjWyOD88C2GkhPfihRWBD1iLIY8cfGj4U2dpa1JEZvQCbz0JIapGr6tVmleUdEOZmZTLScUoABEB3F1WhmXFgWt4gvyEaen2l7fpCXfiM4t82A4Ihd3270BlBAUhbt2P3zFr3Qpq5L3TxOdyZxdqxul1vvNoN8rk=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr;\n s=smtp-20201208; t=1775046110;\n bh=7gYsnCLRVP0fpnHEF+SmGnKP3HFZK33agK+SzlJ9abo=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=fSFhWODglbfZhcsT7z0lgMe8cjpuAZkxyMchooRvaLQYImul3xH3bolTUPPRXCDKg\n Ar3nsAqVmD0NUTzeaQqOFZTexepg4qhFpFpMPq0uSxxS5pm4uQENPcn3uDDnMFlxni\n Ho5NdsNANrIDtf903Zm6RNtTltXpNmj3Q2odwvX95CoOIrgFk8CmhZ/hTjNuEQXSTw\n TE2q/Vw2q1vXzXeuShYiLJCHvjMiPRRAyDjnCP11iSJqj3GuVePyfkkxMRiZrzEVc0\n +JEZDYGdlWf4kjD6dFtmFH4uE1amFiFJoF9OhQTDps9s+FCh5WvxQzyyqwR+Muw9Dl\n 4K0Gu06lHZCeA==",
        "From": "Lucas Chollet <lucas.chollet@free.fr>",
        "To": "libc-alpha@sourceware.org",
        "Cc": "Lucas Chollet <lucas.chollet@free.fr>",
        "Subject": "[PATCH v3] posix: Add POSIX aliases to some spawn functions",
        "Date": "Wed,  1 Apr 2026 14:21:39 +0200",
        "Message-ID": "<20260401122140.1849865-1-lucas.chollet@free.fr>",
        "X-Mailer": "git-send-email 2.51.0",
        "In-Reply-To": "<20260401112522.1785194-1-lucas.chollet@free.fr>",
        "References": "<20260401112522.1785194-1-lucas.chollet@free.fr>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "libc-alpha@sourceware.org",
        "X-Mailman-Version": "2.1.30",
        "Precedence": "list",
        "List-Id": "Libc-alpha mailing list <libc-alpha.sourceware.org>",
        "List-Unsubscribe": "<https://sourceware.org/mailman/options/libc-alpha>,\n <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe>",
        "List-Archive": "<https://sourceware.org/pipermail/libc-alpha/>",
        "List-Post": "<mailto:libc-alpha@sourceware.org>",
        "List-Help": "<mailto:libc-alpha-request@sourceware.org?subject=help>",
        "List-Subscribe": "<https://sourceware.org/mailman/listinfo/libc-alpha>,\n <mailto:libc-alpha-request@sourceware.org?subject=subscribe>",
        "Errors-To": "libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org"
    },
    "content": "Both `posix_spawn_file_actions_add{,f}chdir` functions are now fully\ndefined by POSIX-2024, this patch adds both functions as aliases of the\nalready existing `posix_spawn_file_actions_add{,f}chdir_np` GNU\nextensions.\n\nThis makes glibc more compliant in regards to POSIX-2024.\n\nSigned-off-by: Lucas Chollet <lucas.chollet@free.fr>\n---\nv3: Don't use preprocessor directives in macro args.\n conform/data/spawn.h-data     |  4 ++++\n posix/Makefile                |  1 +\n posix/spawn.h                 | 20 ++++++++++++++++++++\n posix/tst-spawn-chdir-posix.c |  2 ++\n posix/tst-spawn-chdir.c       | 19 ++++++++++++++++---\n 5 files changed, 43 insertions(+), 3 deletions(-)\n create mode 100644 posix/tst-spawn-chdir-posix.c",
    "diff": "diff --git a/conform/data/spawn.h-data b/conform/data/spawn.h-data\nindex 43aa9cb8ae..1f332324c2 100644\n--- a/conform/data/spawn.h-data\n+++ b/conform/data/spawn.h-data\n@@ -29,6 +29,10 @@ function int posix_spawnattr_setpgroup (posix_spawnattr_t*, pid_t)\n function int posix_spawnattr_setschedparam (posix_spawnattr_t*, const struct sched_param*)\n function int posix_spawnattr_setschedpolicy (posix_spawnattr_t*, int)\n function int posix_spawnattr_setsigmask (posix_spawnattr_t*, const sigset_t*)\n+#if defined XOPEN2K24 || defined POSIX2024\n+function int posix_spawn_file_actions_addchdir (posix_spawn_file_actions_t*, const char *)\n+function int posix_spawn_file_actions_addfchdir (posix_spawn_file_actions_t*, int)\n+#endif\n function int posix_spawn_file_actions_addclose (posix_spawn_file_actions_t*, int)\n function int posix_spawn_file_actions_adddup2 (posix_spawn_file_actions_t*, int, int)\n function int posix_spawn_file_actions_addopen (posix_spawn_file_actions_t*, int, const char *, int, mode_t)\ndiff --git a/posix/Makefile b/posix/Makefile\nindex ec28b9e1da..a5e5162c61 100644\n--- a/posix/Makefile\n+++ b/posix/Makefile\n@@ -315,6 +315,7 @@ tests := \\\n   tst-rxspencer-no-utf8 \\\n   tst-sched_getaffinity \\\n   tst-spawn-chdir \\\n+  tst-spawn-chdir-posix \\\n   tst-spawn4 \\\n   tst-spawn5 \\\n   tst-spawn6 \\\ndiff --git a/posix/spawn.h b/posix/spawn.h\nindex 5e68752a66..0aabf5ebef 100644\n--- a/posix/spawn.h\n+++ b/posix/spawn.h\n@@ -200,6 +200,26 @@ extern int posix_spawn_file_actions_adddup2 (posix_spawn_file_actions_t *\n \t\t\t\t\t     int __fd, int __newfd)\n      __THROW __nonnull ((1));\n \n+#ifdef __USE_XOPEN2K24XSI\n+\n+/* Add an action changing the directory to PATH during spawn.  This\n+   affects the subsequent file actions.\n+   Alias of posix_spawn_file_actions_addchdir_np.  */\n+extern int __REDIRECT_NTH (posix_spawn_file_actions_addchdir,\n+                            (posix_spawn_file_actions_t * __restrict __actions,\n+                             const char *__restrict __path),\n+                            posix_spawn_file_actions_addchdir_np);\n+\n+/* Add an action changing the directory to FD during spawn.  This\n+   affects the subsequent file actions.  FD is not duplicated and must\n+   be open when the file action is executed.\n+   Alias of posix_spawn_file_actions_addfchdir_np.  */\n+extern int __REDIRECT_NTH (posix_spawn_file_actions_addfchdir,\n+                           (posix_spawn_file_actions_t *, int __fd),\n+                           posix_spawn_file_actions_addfchdir_np);\n+\n+#endif /* __USE_XOPEN2K24XSI */\n+\n #ifdef __USE_MISC\n /* Add an action changing the directory to PATH during spawn.  This\n    affects the subsequent file actions.  */\ndiff --git a/posix/tst-spawn-chdir-posix.c b/posix/tst-spawn-chdir-posix.c\nnew file mode 100644\nindex 0000000000..3f8d8952bb\n--- /dev/null\n+++ b/posix/tst-spawn-chdir-posix.c\n@@ -0,0 +1,2 @@\n+#define USE_POSIX_ALIASES\n+#include \"tst-spawn-chdir.c\"\ndiff --git a/posix/tst-spawn-chdir.c b/posix/tst-spawn-chdir.c\nindex a3478d61f6..166f835492 100644\n--- a/posix/tst-spawn-chdir.c\n+++ b/posix/tst-spawn-chdir.c\n@@ -78,12 +78,25 @@ add_chdir (posix_spawn_file_actions_t *actions, const char *path,\n     {\n       TEST_COMPARE (posix_spawn_file_actions_addopen\n                     (actions, tmpfd, path, O_DIRECTORY | O_RDONLY, 0), 0);\n-      TEST_COMPARE (posix_spawn_file_actions_addfchdir_np\n-                    (actions, tmpfd), 0);\n+\n+#ifdef USE_POSIX_ALIASES\n+      int ret = posix_spawn_file_actions_addfchdir (actions, tmpfd);\n+#else\n+      int ret = posix_spawn_file_actions_addfchdir_np (actions, tmpfd);\n+#endif\n+      TEST_COMPARE (ret, 0);\n+\n       TEST_COMPARE (posix_spawn_file_actions_addclose (actions, tmpfd), 0);\n     }\n   else\n-    TEST_COMPARE (posix_spawn_file_actions_addchdir_np (actions, path), 0);\n+    {\n+#ifdef USE_POSIX_ALIASES\n+      int ret = posix_spawn_file_actions_addchdir (actions, path);\n+#else\n+      int ret = posix_spawn_file_actions_addchdir_np (actions, path);\n+#endif\n+      TEST_COMPARE (ret, 0);\n+    }\n }\n \n static int\n",
    "prefixes": [
        "v3"
    ]
}