From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 274BB385DC14; Mon, 31 Oct 2022 13:17:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 274BB385DC14 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667222258; bh=/IQdtTl0k7hNhIHzvQBRqTNcktIyMxrf5+KdSu4mFH8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Cg0Twho3Z1LKt3jLisURxKA5sjibTAn3qhndjY8Tr6yHSAkGkiKhzDq1oKN2zUGs2 SsO1oofBX5p1lxYiW8M15Om/Jm7IA5pEnv8dP3oXaWTgFDkgWDAzzlBDngG6srEwvO UK6NsKCVP8pm5F5GzqwL+/D1Dmn/lOzIMjRl4SJI= From: "adhemerval.zanella at linaro dot org" To: glibc-bugs@sourceware.org Subject: [Bug libc/29730] broken y2038 support in fstatat on MIPS N64 Date: Mon, 31 Oct 2022 13:17:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.35 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: adhemerval.zanella at linaro dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29730 --- Comment #15 from Adhemerval Zanella --- (In reply to YunQiang Su from comment #12) > (In reply to YunQiang Su from comment #11) > > (In reply to Adhemerval Zanella from comment #10) > > > (In reply to Aurelien Jarno from comment #9) > > > > (In reply to YunQiang Su from comment #6) > > > > > It seems that the altering of in_time_t_range to in fact int32_t,= also > > > > > breaks something like=20 > > > > > __clock_adjtime > > > > > on all 64bit system. > > > >=20 > > > > Do you have more details about that? Do you mean all 64-bit systems > > > > including MIPS and non-MIPS? In that case the patch from Adhemerval= would > > > > not fix everything. > > >=20 > > > The stat on MIPS is an outlier (as everything for mips it seems) wher= e the > > > userland non-LFS struct stat defers from LFS struct stat. > >=20 > > Yes. It is quite annoying. > > I am try to switch mips N64 to XSTAT_IS_XSTAT64. >=20 > Ohh, it seems impossible. The XSTAT_IS_XSTAT64 is used by MIPS to advertise the kernel struct fstat h= ave different layouts from userland (an unfortunate MIPS ABI quick) as document= ed briefly on sysdeps/unix/sysv/linux/mips/kernel_stat.h. At least the LFS and non-LFS version have the same semantic, so we do not actually need to provide different implementations for mips64. Maybe it wou= ld be better to provide another macro, STAT_IS_STAT64, to make mips alias non-= LFS and LFS. --=20 You are receiving this mail because: You are on the CC list for the bug.=