Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/811241/?format=api
{ "id": 811241, "url": "http://patchwork.ozlabs.org/api/patches/811241/?format=api", "web_url": "http://patchwork.ozlabs.org/project/glibc/patch/20170907224219.12483-40-albert.aribaud@3adev.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": "<20170907224219.12483-40-albert.aribaud@3adev.fr>", "list_archive_url": null, "date": "2017-09-07T22:42:06", "name": "[RFC,39/52] Y2038: add function __utime_t64", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "d5298ce8c773d1f5dd9bcb00d18b68de1b1d7506", "submitter": { "id": 65557, "url": "http://patchwork.ozlabs.org/api/people/65557/?format=api", "name": "Albert ARIBAUD (3ADEV)", "email": "albert.aribaud@3adev.fr" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/glibc/patch/20170907224219.12483-40-albert.aribaud@3adev.fr/mbox/", "series": [ { "id": 2074, "url": "http://patchwork.ozlabs.org/api/series/2074/?format=api", "web_url": "http://patchwork.ozlabs.org/project/glibc/list/?series=2074", "date": "2017-09-07T22:41:27", "name": "Make GLIBC Y2038-proof", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/2074/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/811241/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/811241/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<libc-alpha-return-84357-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-84357-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=\"dQtzjPoc\"; 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 3xpFyb2zjqz9rxl\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 8 Sep 2017 08:49:59 +1000 (AEST)", "(qmail 118123 invoked by alias); 7 Sep 2017 22:45:27 -0000", "(qmail 111552 invoked by uid 89); 7 Sep 2017 22:45:17 -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:in-reply-to\n\t:references; q=dns; s=default; b=X3YK2XoB7q8dUiWj6qWCtPfz5kbWwUI\n\t1MqVfJoXu+E5boHFBNbgCFkF9VpIu+o14FxVwZ9vMQc64aD4YkYeblHVC1Yi/oUu\n\tp/MgX0qriwRoNf+nALVckwQoF11nkbIMEPJAwzuw/bcELIkkPcj7XpMHNv7hvwJZ\n\t8pMDqw76VRCM=", "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:in-reply-to\n\t:references; s=default; bh=fKspMcV/Xfb3kN9iqqUOeWGkVro=; b=dQtzj\n\tPoci7ntJXSJl39xva4JAKlzn8G3Cl2O3fAgXtKcZB/ndDFRCEG+tSs1oAnBodvaL\n\t4n6w1X8+Y56RG0o9YH3gbEsqhPl78Ke24ALwDbsM5WpqOsk0axpyttP8xsk8zDMG\n\tAs0jNtKn4Rm9Df+zOtFHW5YlHB8t+f8bv7RXgo=", "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.6 required=5.0 tests=BAYES_00, GIT_PATCH_0,\n\tGIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3,\n\tKAM_LAZY_DOMAIN_SECURITY,\n\tRCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=", "X-HELO": "smtp6-g21.free.fr", "From": "\"Albert ARIBAUD (3ADEV)\" <albert.aribaud@3adev.fr>", "To": "libc-alpha@sourceware.org", "Cc": "\"Albert ARIBAUD (3ADEV)\" <albert.aribaud@3adev.fr>", "Subject": "[RFC PATCH 39/52] Y2038: add function __utime_t64", "Date": "Fri, 8 Sep 2017 00:42:06 +0200", "Message-Id": "<20170907224219.12483-40-albert.aribaud@3adev.fr>", "In-Reply-To": "<20170907224219.12483-39-albert.aribaud@3adev.fr>", "References": "<20170907224219.12483-1-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-2-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-3-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-4-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-5-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-6-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-7-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-8-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-9-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-10-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-11-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-12-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-13-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-14-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-15-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-16-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-17-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-18-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-19-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-20-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-21-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-22-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-23-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-24-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-25-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-26-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-27-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-28-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-29-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-30-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-31-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-32-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-33-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-34-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-35-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-36-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-37-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-38-albert.aribaud@3adev.fr>\n\t<20170907224219.12483-39-albert.aribaud@3adev.fr>" }, "content": "Signed-off-by: Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>\n---\n include/utime.h | 7 +++++++\n io/Versions | 1 +\n io/utime.c | 16 ++++++++++++++++\n sysdeps/posix/utime.c | 22 ++++++++++++++++++++++\n 4 files changed, 46 insertions(+)", "diff": "diff --git a/include/utime.h b/include/utime.h\nindex 5049251311..eb907f7472 100644\n--- a/include/utime.h\n+++ b/include/utime.h\n@@ -6,4 +6,11 @@\n libc_hidden_proto (utime)\n #endif\n \n+/* Structure describing file times, 64-bit time version. */\n+struct __utimbuf64\n+ {\n+ __time64_t actime;\t\t/* Access time. */\n+ __time64_t modtime;\t\t/* Modification time. */\n+ };\n+\n #endif /* utime.h */\ndiff --git a/io/Versions b/io/Versions\nindex 33629a0d4e..622eb6fe12 100644\n--- a/io/Versions\n+++ b/io/Versions\n@@ -134,5 +134,6 @@ libc {\n __xstat64_t64;\n __lxstat64_t64;\n __fxstatat64_t64;\n+ __utime_t64;\n }\n }\ndiff --git a/io/utime.c b/io/utime.c\nindex 242ccd120a..776203896b 100644\n--- a/io/utime.c\n+++ b/io/utime.c\n@@ -37,3 +37,19 @@ utime (const char *file, const struct utimbuf *times)\n libc_hidden_def (utime)\n \n stub_warning (utime)\n+\n+/* 64-bit time version */\n+\n+int\n+__utime_t64 (const char *file, const struct utimbuf *times)\n+{\n+ if (file == NULL)\n+ {\n+ __set_errno (EINVAL);\n+ return -1;\n+ }\n+\n+ __set_errno (ENOSYS);\n+ return -1;\n+}\n+stub_warning (__utime_t64)\ndiff --git a/sysdeps/posix/utime.c b/sysdeps/posix/utime.c\nindex c8fe60ba91..d6662b7d4b 100644\n--- a/sysdeps/posix/utime.c\n+++ b/sysdeps/posix/utime.c\n@@ -45,3 +45,25 @@ utime (const char *file, const struct utimbuf *times)\n return __utimes (file, tvp);\n }\n libc_hidden_def (utime)\n+\n+/* 64-bit time version */\n+\n+int\n+__utime_t64 (const char *file, const struct __utimbuf64 *times)\n+{\n+ struct __timeval64 timevals[2];\n+ struct __timeval64 *tvp;\n+\n+ if (times != NULL)\n+ {\n+ timevals[0].tv_sec = (time_t) times->actime;\n+ timevals[0].tv_usec = 0L;\n+ timevals[1].tv_sec = (time_t) times->modtime;\n+ timevals[1].tv_usec = 0L;\n+ tvp = timevals;\n+ }\n+ else\n+ tvp = NULL;\n+\n+ return __utimes_t64 (file, tvp);\n+}\n", "prefixes": [ "RFC", "39/52" ] }