From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 780FC393C877; Wed, 26 Aug 2020 21:27:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 780FC393C877 From: "adhemerval.zanella at linaro dot org" To: glibc-bugs@sourceware.org Subject: [Bug string/26540] [linux-only] nanosleep should call the syscall of the same name, not the posix version Date: Wed, 26 Aug 2020 21:27:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: string X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: adhemerval.zanella at linaro dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2020 21:27:08 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26540 Adhemerval Zanella changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |adhemerval.zanella at lina= ro dot o | |rg --- Comment #1 from Adhemerval Zanella --- Using CLOCK_REALTIME on nanosleep is defined by POSIX [1] and not using the direct syscall on some systems was done to avoid multiple implementations f= or kernel ABI that do not provide __NR_nanosleep (for instance ABIs without 32= -bit time_t support). Unfortunatelly the Linux syscall does not have the freedom to change its semantic, and I don't think this change requires a symbol versioning to keep the old clock semantic. Are you seeing some realwork issues with this change? Afaik other libc implementations for Linux (musl) always use CLOCK_REALTIME, as other Unix-l= ike systems (BSD, Solaris, and AIX).=20 [1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/nanosleep.ht= ml --=20 You are receiving this mail because: You are on the CC list for the bug.=