From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C125B3857803; Sat, 29 Oct 2022 19:45:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C125B3857803 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667072749; bh=PqW0tROm+MFLN39XdO+StU+oYb9CVKlaN7q6N16TTjI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=W5R7QIYUIjwhYkVQujYO/6O2VDHBQ8AnQXgLzpm8YFDKWLWSFu/ZrkkOmgCgQS9tt HJwoO0VqSEIOqDKXPdB66f4tbvLa+s7xXyS2gkpq+BUG+1iHE76JzZAGMKyAp3v6q+ vwRHWsRMx0+FjeQxZWEI0z9JtL4w7xVkLXujnlYY= From: "syq at debian dot org" To: glibc-bugs@sourceware.org Subject: [Bug libc/29730] broken y2038 support in fstatat on MIPS N64 Date: Sat, 29 Oct 2022 19:45:48 +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: syq at debian 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 #5 from YunQiang Su --- Ohh, you are right. For __TIMESIZE =3D=3D 64 && __WORDSIZE =3D=3D 32 systems,=20 I think that the kernel should provide a setitimer64 syscall. Currently, for glibc, maybe that we should define a new macro for these systems: #define KERNEL_SETTIMER_IS_32_BIT and in setitimer.c #if KERNEL_SETTIMER_IS_32_BIT if (! in_int32_t_range (new_value->it_interval.tv_sec) || ! in_int32_t_range (new_value->it_value.tv_sec)) #else if (! in_time_t_range (new_value->it_interval.tv_sec) || ! in_time_t_range (new_value->it_value.tv_sec)) #endif { __set_errno (EOVERFLOW); return -1; } Anyway, we shouldn't confuse the function name. --=20 You are receiving this mail because: You are on the CC list for the bug.=