{"id":811199,"url":"http://patchwork.ozlabs.org/api/patches/811199/?format=json","web_url":"http://patchwork.ozlabs.org/project/glibc/patch/20170907224219.12483-6-albert.aribaud@3adev.fr/","project":{"id":41,"url":"http://patchwork.ozlabs.org/api/projects/41/?format=json","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-6-albert.aribaud@3adev.fr>","list_archive_url":null,"date":"2017-09-07T22:41:32","name":"[RFC,05/52] Y2038: add function __timegm64","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"0fb2f51dc700c44b86c23bd4456a380ae7c78e13","submitter":{"id":65557,"url":"http://patchwork.ozlabs.org/api/people/65557/?format=json","name":"Albert ARIBAUD (3ADEV)","email":"albert.aribaud@3adev.fr"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/glibc/patch/20170907224219.12483-6-albert.aribaud@3adev.fr/mbox/","series":[{"id":2074,"url":"http://patchwork.ozlabs.org/api/series/2074/?format=json","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/811199/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/811199/checks/","tags":{},"related":[],"headers":{"Return-Path":"<libc-alpha-return-84323-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-84323-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=\"dtPejqH5\"; 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 3xpFq62rzFz9sCZ\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri,  8 Sep 2017 08:43:30 +1000 (AEST)","(qmail 61281 invoked by alias); 7 Sep 2017 22:42:51 -0000","(qmail 61174 invoked by uid 89); 7 Sep 2017 22:42:51 -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=YS0Brlq/HYaD3BK2fffMEBwaFIw9g0X\n\twre34njyJK2JhCkE/wSh005gY1WzF2Y/rrdM5ankUCo36jcodNxUIX33A+TXFFw7\n\tJX0MaqAMF+054N0gbGvZsCNR+8BJFy3tmQRoVun3f2evdxEWvzzNf3j7krQebv49\n\tADi6GRGab8SU=","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=OOAAxm5+pzfuR1dh8pwNMFwm80Q=; b=dtPej\n\tqH56P5orUn9KCMctyIF57F9eCgrbTidWOUYvD9KNlXGjRAsQgGArEaxsLUepWUO/\n\tmHk5anUazS1zaQWts9w1GotEx/I7wkYxfbc8W9dG2GZiQfk81d3UqlldIGBtaYVu\n\tEn1ZMp6ZqT5ifplcbhoB50lIqUSKCXVE8LjBfE=","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=265","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 05/52] Y2038: add function __timegm64","Date":"Fri,  8 Sep 2017 00:41:32 +0200","Message-Id":"<20170907224219.12483-6-albert.aribaud@3adev.fr>","In-Reply-To":"<20170907224219.12483-5-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>"},"content":"Implementation is based on the same __mktime64_internal function\nwhich was introduced in the '__mktime64' implementation change.\n\nAgain, the implementation does not require a Y2038-proof kernel.\n\nSigned-off-by: Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>\n---\n sysdeps/unix/sysv/linux/arm/Versions |  1 +\n time/timegm.c                        | 11 +++++++++++\n 2 files changed, 12 insertions(+)","diff":"diff --git a/sysdeps/unix/sysv/linux/arm/Versions b/sysdeps/unix/sysv/linux/arm/Versions\nindex 546d7c60ee..f7feda3650 100644\n--- a/sysdeps/unix/sysv/linux/arm/Versions\n+++ b/sysdeps/unix/sysv/linux/arm/Versions\n@@ -26,5 +26,6 @@ libc {\n     __gmtime64; __gmtime64_r;\n     __localtime64; __localtime64_r;\n     __mktime64; __timelocal64_r;\n+    __timegm64;\n   }\n }\ndiff --git a/time/timegm.c b/time/timegm.c\nindex b0f5d16d16..0c8879285a 100644\n--- a/time/timegm.c\n+++ b/time/timegm.c\n@@ -36,6 +36,9 @@\n time_t __mktime_internal (struct tm *,\n \t\t\t  struct tm * (*) (time_t const *, struct tm *),\n \t\t\t  time_t *);\n+__time64_t __mktime64_internal (struct tm *,\n+\t\t\t\tstruct tm * (*) (__time64_t const *, struct tm *),\n+\t\t\t\t__time64_t *);\n #endif\n \n time_t\n@@ -45,3 +48,11 @@ timegm (struct tm *tmp)\n   tmp->tm_isdst = 0;\n   return __mktime_internal (tmp, __gmtime_r, &gmtime_offset);\n }\n+\n+__time64_t\n+__timegm64 (struct tm *tmp)\n+{\n+  static __time64_t gmtime64_offset;\n+  tmp->tm_isdst = 0;\n+  return __mktime64_internal (tmp, __gmtime64_r, &gmtime64_offset);\n+}\n","prefixes":["RFC","05/52"]}