From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by sourceware.org (Postfix) with ESMTPS id D09C73858C42 for ; Mon, 15 Jan 2024 19:55:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D09C73858C42 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D09C73858C42 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::529 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705348537; cv=none; b=rR23nIc/LPF+ybAWjpq1imdrSMGyZFjbjlNGVL/BNUuKQT0tkaTK15s4dv2qReXSZA30S1J0pJu/JEOgCd5muzQibS6cxIKeNdwBo3nYdKeKoxe0E5HnTqsb26j9OeigJF+eNoXXfNkGTdDtHtaFfjAnB0JXazOTnbosIfZ0aNQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705348537; c=relaxed/simple; bh=9Tg8rumTrFGH5R/eGBO9Eqqx9t5GDSQnDqcWLdhKa7g=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=wfT6RhHk2mTK7G+/lbHocJjTV9yoMvuGwqMQSpJLzOepUE6uEav8dS56yhmn0oKWWoY01INsMut3oViMUJQx/QYa7AVCdYghCwJI7uedGDJNh7xA6sPYRPCmp4kwAU7EqcHU2XhI3B8PfynQqhwXIM0hdfYVZ4tM6Dlr3+87l28= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x529.google.com with SMTP id 41be03b00d2f7-5ce2aada130so4616839a12.1 for ; Mon, 15 Jan 2024 11:55:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705348535; x=1705953335; darn=sourceware.org; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=EuTXUD/SUXfrkDcrO8Pq8FsduLS9MhQ6d6rtc+K2pF0=; b=ap3tSZ13XjqhIkeOCwC6h3rPQF6M3LZrGNvuADheOmOIayw16rmIaMP5TVZ5CFvZRA Jy7DBFISLqCCXzVrHO5kBmNpmGnP9XNFGYmj0XkO5WWFMaztfOTjmG+R2dhSGuIyqSyW K2Q++I3XoNLxWdn5UpZMjpckK6j1xYwoqeh5mcxFw26e2FwN8z0AmoUZAhzBJLZ0bCeQ y85ouJtlnRtSXfypsQoPsHmybJII2/Yz47uVtUHt01nvpYsSXrsHeS7eQFXbwKbk0BKB YmXDDDiR9gWNAQ6ko0GBpNEAHk4lKKMY2bs5YCJcfuoD13MEk2sD+vuj7BdTKcNlxvFy tYsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705348535; x=1705953335; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EuTXUD/SUXfrkDcrO8Pq8FsduLS9MhQ6d6rtc+K2pF0=; b=pJFufObtPm5bUlU4mCqESaZJKG8itdxrpDfcfaCJXR1QlDJIaxrdiGjWrKiLKekEV8 2dYzq6oC7qAT9/ikH6fTJuIW2IFu/f5lshtwcNHU+WJHKHUn3czm4Fbv/3eerBrgjf1D IdJ923qXTocsHz3O3Jxofe9eEhoGVoGeo/+RI2TRGnPX1rraIlp97jlgFhtlU+BgY48y 3Em6zLp+ZJh8CgqP9RLjVQ/CoL6PLPvuIPI3cd2pphU0bCoYVGcOntZmiyEjsV91c754 POs77O+604XPbQxUkvAdX3wB5Uvf3Ps74nz2xaQXWmcL6g0qfw8ETL83MLRpo3A6Y97P tGvA== X-Gm-Message-State: AOJu0Yy4UUEmpZPtdFQZuGd1TSShFbx1B4ZxIJfXlGGrVcODxKOkkryH K5gaUCeD9tAAPsyC754SSPj4tguyNVpP005Ftm8wiuXVEuc= X-Google-Smtp-Source: AGHT+IGav5GwAFwIfCtJ6F6cKtuaqNnT+LCFGzUsFHgLmS0spYEgGh0rpxpKG2JjUuHAu/FKo8uOqA== X-Received: by 2002:a05:6a20:1e42:b0:19a:1686:17ad with SMTP id cy2-20020a056a201e4200b0019a168617admr1925478pzb.11.1705348534873; Mon, 15 Jan 2024 11:55:34 -0800 (PST) Received: from ?IPV6:2804:1b3:a7c2:2787:1d58:abc7:72ea:8c9c? ([2804:1b3:a7c2:2787:1d58:abc7:72ea:8c9c]) by smtp.gmail.com with ESMTPSA id q13-20020a056a00088d00b006d998f5b890sm7951662pfj.192.2024.01.15.11.55.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 Jan 2024 11:55:34 -0800 (PST) Message-ID: <111c4bfb-bc58-412e-9a37-a5c2ed7f0e3c@linaro.org> Date: Mon, 15 Jan 2024 16:55:30 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: 64 bit time_t on riscv32 Content-Language: en-US To: Florian Weimer , Antonios Salios via Libc-help Cc: Antonios Salios , Jan Henrik Weinstock , =?UTF-8?Q?Lukas_J=C3=BCnger?= , Rich Felker References: <877cka7m09.fsf@oldenburg.str.redhat.com> From: Adhemerval Zanella Netto Organization: Linaro In-Reply-To: <877cka7m09.fsf@oldenburg.str.redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 15/01/24 10:40, Florian Weimer via Libc-help wrote: > * Antonios Salios via Libc-help: > >> According to a kernel maintainer, the __USE_TIME_BITS64 macro should be >> set on architectures that use 64-bit time [2], otherwise the kernel >> headers will not be able to pick the correct definition. > > __USE_TIME_BITS64 is an internal glibc macro. It is not used on > architectures which have a 64-bit time_t by default. > > Surely the UAPI headers know which time size the architecture uses in > the kernel interface, and can be written arcordingly? The use of a glibc internal definition on a kABI header is not really a good design. This seems to be only user so far, so I suggest to fix on the kernel to not tie to a glibc internal definition. CCing Rich from musl that most likely would want to see this fixed. The Android developers might be interested.