{"id":2223639,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2223639/?format=json","web_url":"http://patchwork.ozlabs.org/project/glibc/patch/20260415205905.1257892-4-samuel.thibault@ens-lyon.org/","project":{"id":41,"url":"http://patchwork.ozlabs.org/api/1.1/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":""},"msgid":"<20260415205905.1257892-4-samuel.thibault@ens-lyon.org>","date":"2026-04-15T20:59:05","name":"[hurd,commited,3/3] hurd: __adjtime() to support NULL delta whilst returning olddelta.","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"c8c18a95077812d840b73b8df822f25ac85ed8e8","submitter":{"id":418,"url":"http://patchwork.ozlabs.org/api/1.1/people/418/?format=json","name":"Samuel Thibault","email":"samuel.thibault@ens-lyon.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/glibc/patch/20260415205905.1257892-4-samuel.thibault@ens-lyon.org/mbox/","series":[{"id":500039,"url":"http://patchwork.ozlabs.org/api/1.1/series/500039/?format=json","web_url":"http://patchwork.ozlabs.org/project/glibc/list/?series=500039","date":"2026-04-15T20:59:02","name":"hurd: Support for adjtime(NULL, &olddelta)","version":1,"mbox":"http://patchwork.ozlabs.org/series/500039/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2223639/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2223639/checks/","tags":{},"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 spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org\n (client-ip=2620:52:6:3111::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 dmarc=none (p=none dis=none) header.from=ens-lyon.org","sourceware.org;\n spf=pass smtp.mailfrom=bounce.ens-lyon.org","server2.sourceware.org;\n arc=none smtp.remote-ip=140.77.166.138"],"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 4fwtn04rR3z1yHY\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 16 Apr 2026 06:59:31 +1000 (AEST)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 5E7B34BA2E2B\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 15 Apr 2026 20:59:29 +0000 (GMT)","from sonata.ens-lyon.org (sonata.ens-lyon.org [140.77.166.138])\n by sourceware.org (Postfix) with ESMTPS id 4FC434BA2E10\n for <libc-alpha@sourceware.org>; Wed, 15 Apr 2026 20:59:09 +0000 (GMT)","from localhost (localhost [127.0.0.1])\n by sonata.ens-lyon.org (Postfix) with ESMTP id 26681A01E2;\n Wed, 15 Apr 2026 22:59:07 +0200 (CEST)","from sonata.ens-lyon.org ([127.0.0.1])\n by localhost (sonata.ens-lyon.org [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id sgDmPnxzuTnA; Wed, 15 Apr 2026 22:59:07 +0200 (CEST)","from end (aamiens-653-1-40-48.w83-192.abo.wanadoo.fr\n [83.192.199.48])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest\n SHA256) (No client certificate requested)\n by sonata.ens-lyon.org (Postfix) with ESMTPSA id 9D0D2A027C;\n Wed, 15 Apr 2026 22:59:06 +0200 (CEST)","from samy by end with local (Exim 4.99.1)\n (envelope-from <samuel.thibault@ens-lyon.org>)\n id 1wD7KE-00000005HF0-0fCN; Wed, 15 Apr 2026 22:59:06 +0200"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org 5E7B34BA2E2B","OpenDKIM Filter v2.11.0 sourceware.org 4FC434BA2E10"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org 4FC434BA2E10","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org 4FC434BA2E10","ARC-Seal":"i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776286749; cv=none;\n b=aZX+uoFWVzj961zJ7cZaxEYs0D4QXs9yX/UdiJY8zEZOR9k+dq5PqgBj0gNqCapINZepgPWb8mwi9ifOJnwG9Jd4TDUO4LJb3lad3l6zt1YY5fOZMX8E41dJruBHD1reH1YraqSI5mlbScClf+aux7T5vpxnA+AA1ZFsSeMJcjk=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776286749; c=relaxed/simple;\n bh=RV+UbgvL/fzsBl717634iazNW3bzo+X8edDLHh6ESzc=;\n h=From:To:Subject:Date:Message-ID:MIME-Version;\n b=nHcYny9w26u05D5Yt+DcZRnAna1m3Ex37rdL/Tq1uswDa290WpaIQB/g7ka1ezH6/tbPlH7fJcdJNx2cEl+dgmLmAHs5crh2JKZS7fSfJV2wOU2T1YzzFodYXKP4W9Duz+QTi2w8cW9JFL7C0MvFwBiDEHY3o9ilzc0NzEGtZdw=","ARC-Authentication-Results":"i=1; server2.sourceware.org","From":"Samuel Thibault <samuel.thibault@ens-lyon.org>","To":"libc-alpha@sourceware.org","Cc":"Michael Kelly <mike@weatherwax.co.uk>,\n\tcommit-hurd@gnu.org","Subject":"[hurd, commited 3/3] hurd: __adjtime() to support NULL delta whilst\n returning olddelta.","Date":"Wed, 15 Apr 2026 22:59:05 +0200","Message-ID":"<20260415205905.1257892-4-samuel.thibault@ens-lyon.org>","X-Mailer":"git-send-email 2.53.0","In-Reply-To":"<20260415205905.1257892-1-samuel.thibault@ens-lyon.org>","References":"<20260415205905.1257892-1-samuel.thibault@ens-lyon.org>","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":"From: Michael Kelly <mike@weatherwax.co.uk>\n\nThis is required to obtain the remaining time of day adjustment\nwithout altering the required adjustment.\nMessage-ID: <20260415180318.109742-4-mike@weatherwax.co.uk>\n---\n sysdeps/mach/hurd/adjtime.c | 12 ++++++++++++\n 1 file changed, 12 insertions(+)","diff":"diff --git a/sysdeps/mach/hurd/adjtime.c b/sysdeps/mach/hurd/adjtime.c\nindex 9d01533b23..4408b1cff5 100644\n--- a/sysdeps/mach/hurd/adjtime.c\n+++ b/sysdeps/mach/hurd/adjtime.c\n@@ -18,6 +18,7 @@\n #include <errno.h>\n #include <sys/time.h>\n #include <hurd.h>\n+#include <mach/time_value.h>\n \n /* Adjust the current time of day by the amount in DELTA.\n    If OLDDELTA is not NULL, it is filled in with the amount\n@@ -44,7 +45,18 @@ __adjtime (const struct timeval *delta, struct timeval *olddelta)\n       rpc_delta.microseconds = delta->tv_usec;\n     }\n   else\n+#ifdef MACH_ADJTIME_USECS_OMIT\n+    {\n+      /* gnumach will not attempt to update the system time if the\n+\t specified 'microseconds' is specifically\n+\t MACH_ADJTIME_USECS_OMIT. It will still return the olddelta\n+\t under these circumstances. */\n+      rpc_delta.seconds = 0;\n+      rpc_delta.microseconds = MACH_ADJTIME_USECS_OMIT;\n+    }\n+#else\n     return EINVAL;\n+#endif\n \n   err = __host_adjust_time (hostpriv, rpc_delta, &rpc_olddelta);\n   __mach_port_deallocate (__mach_task_self (), hostpriv);\n","prefixes":["hurd","commited","3/3"]}