Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/811169/?format=api
{ "id": 811169, "url": "http://patchwork.ozlabs.org/api/patches/811169/?format=api", "web_url": "http://patchwork.ozlabs.org/project/glibc/patch/alpine.DEB.2.20.1709072105390.32296@digraph.polyomino.org.uk/", "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": "<alpine.DEB.2.20.1709072105390.32296@digraph.polyomino.org.uk>", "list_archive_url": null, "date": "2017-09-07T21:06:18", "name": "Add Linux 4.13 constants to bits/fcntl-linux.h", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "006d6f90ec678358e3bc1e87f52be71e8401be52", "submitter": { "id": 4349, "url": "http://patchwork.ozlabs.org/api/people/4349/?format=api", "name": "Joseph Myers", "email": "joseph@codesourcery.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/glibc/patch/alpine.DEB.2.20.1709072105390.32296@digraph.polyomino.org.uk/mbox/", "series": [ { "id": 2061, "url": "http://patchwork.ozlabs.org/api/series/2061/?format=api", "web_url": "http://patchwork.ozlabs.org/project/glibc/list/?series=2061", "date": "2017-09-07T21:06:18", "name": "Add Linux 4.13 constants to bits/fcntl-linux.h", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/2061/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/811169/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/811169/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<libc-alpha-return-84316-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-84316-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=\"Dzi8Gcdv\"; 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 3xpCgL3wLwz9t16\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 8 Sep 2017 07:06:38 +1000 (AEST)", "(qmail 75978 invoked by alias); 7 Sep 2017 21:06:32 -0000", "(qmail 75967 invoked by uid 89); 7 Sep 2017 21:06:32 -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:date:from:to:subject:message-id:mime-version\n\t:content-type; q=dns; s=default; b=JqP8sgc+MSMwo7IaMBIxzKlLSlymy\n\tzQiQQjeyiyHhBiAOumYwQ2749zw0F3vECmsoyFgKF1g/2yxaz4g2X2fgZeTLjHCr\n\t36mDY6iSrNn2R8MgUIiRVUWa7BKSU6jFLHdbpM/l3aRy7uyqdp0PEHXPV/ZIBHkW\n\t7+ldNO7CTX1EDM=", "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:date:from:to:subject:message-id:mime-version\n\t:content-type; s=default; bh=AbRl9IycQOVoty8kkjnUChvQ6tI=; b=Dzi\n\t8GcdvcMSDHCSwD4RBShox9EfhcL64CRWmFig4TZFDu2fOnMB8pXBCUcvDdyQN6ka\n\tbrlkldjxsFc5xL7TKbPKh3XuuttRTJ7y9hsPvUTWDdiy0ljfM3ngJbmwwEk6/MwP\n\tfVjYndW1ki4Ky9vuObIdm1IMdSoArds+pZW0LSXg=", "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=-24.5 required=5.0 tests=AWL, BAYES_00,\n\tGIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3,\n\tRCVD_IN_DNSWL_NONE, SPF_PASS,\n\tURIBL_RED autolearn=ham version=3.3.2 spammy=Hx-languages-length:2206,\n\tlife", "X-HELO": "relay1.mentorg.com", "Date": "Thu, 7 Sep 2017 21:06:18 +0000", "From": "Joseph Myers <joseph@codesourcery.com>", "To": "<libc-alpha@sourceware.org>", "Subject": "Add Linux 4.13 constants to bits/fcntl-linux.h", "Message-ID": "<alpine.DEB.2.20.1709072105390.32296@digraph.polyomino.org.uk>", "User-Agent": "Alpine 2.20 (DEB 67 2015-01-07)", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"US-ASCII\"", "X-ClientProxiedBy": "svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To\n\tsvr-ies-mbx-01.mgc.mentorg.com (139.181.222.1)" }, "content": "This patch, relative to a tree with\n<https://sourceware.org/ml/libc-alpha/2017-09/msg00266.html> (pending\nreview) applied (but with only trivial dependence on that patch by\nvirtue of changing adjacent code), adds new interfaces (F_GET_RW_HINT\netc., and associated RW[FH]_WRITE_LIFE_*) from Linux 4.13 to\nbits/fcntl-linux.h (conditional on __USE_GNU).\n\nTested for x86_64.\n\n2017-09-07 Joseph Myers <joseph@codesourcery.com>\n\n\t* sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]\n\t(F_GET_RW_HINT): New macro.\n\t[__USE_GNU] (F_SET_RW_HINT): Likewise.\n\t[__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.\n\t[__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.\n\t[__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.\n\t[__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.\n\t[__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.\n\t[__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.\n\t[__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.\n\t[__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.", "diff": "diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h\nindex fc65fc2..0c1a303 100644\n--- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h\n+++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h\n@@ -204,6 +204,11 @@\n # define F_GETPIPE_SZ\t1032\t/* Set pipe page size array. */\n # define F_ADD_SEALS\t1033\t/* Add seals to file. */\n # define F_GET_SEALS\t1034\t/* Get seals for file. */\n+/* Set / get write life time hints. */\n+# define F_GET_RW_HINT\t1035\n+# define F_SET_RW_HINT\t1036\n+# define F_GET_FILE_RW_HINT\t1037\n+# define F_SET_FILE_RW_HINT\t1038\n #endif\n #ifdef __USE_XOPEN2K8\n # define F_DUPFD_CLOEXEC 1030\t/* Duplicate file descriptor with\n@@ -281,6 +286,16 @@ struct f_owner_ex\n # define F_SEAL_WRITE\t0x0008\t/* Prevent writes. */\n #endif\n \n+#ifdef __USE_GNU\n+/* Hint values for F_{GET,SET}_RW_HINT. */\n+# define RWF_WRITE_LIFE_NOT_SET\t0\n+# define RWH_WRITE_LIFE_NONE\t1\n+# define RWH_WRITE_LIFE_SHORT\t2\n+# define RWH_WRITE_LIFE_MEDIUM\t3\n+# define RWH_WRITE_LIFE_LONG\t4\n+# define RWH_WRITE_LIFE_EXTREME\t5\n+#endif\n+\n /* Define some more compatibility macros to be backward compatible with\n BSD systems which did not managed to hide these kernel macros. */\n #ifdef\t__USE_MISC\n", "prefixes": [] }