From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14905 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: The time64 switchover has happened! Date: Tue, 5 Nov 2019 17:28:50 -0500 Message-ID: <20191105222850.GZ16318@brightrain.aerifal.cx> References: <20191103062507.GW16318@brightrain.aerifal.cx> <20191103163338.GA4056@altlinux.org> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="186031"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-14921-gllmg-musl=m.gmane.org@lists.openwall.com Tue Nov 05 23:29:07 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1iS7Jz-000mIB-Ik for gllmg-musl@m.gmane.org; Tue, 05 Nov 2019 23:29:07 +0100 Original-Received: (qmail 3527 invoked by uid 550); 5 Nov 2019 22:29:03 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 3505 invoked from network); 5 Nov 2019 22:29:02 -0000 Content-Disposition: inline In-Reply-To: <20191103163338.GA4056@altlinux.org> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:14905 Archived-At: On Sun, Nov 03, 2019 at 07:33:38PM +0300, Dmitry V. Levin wrote: > On Sun, Nov 03, 2019 at 01:25:07AM -0500, Rich Felker wrote: > [...] > > Now, it's time for testing. I've done some build and smoke tests of > > OpenSSL, Python, Perl, strace, coreutils, busybox (git master needed > > FWIW, there are quite a few places in strace test suite that rely > on specific system calls being invoked by some libc functions. > I suppose some of these tests are broken by this change. I haven't tried yet, but I think there's a good chance they're not broken. For operations that only pass a time to the kernel, rather than receiving one back, musl only makes the time64 syscall if the argument does not fit in 32 bits. For the other direction, there's no way to know in advance whether the result will fit so the time64 one has to be tried first, but for the most part that's just stat-family and clock_gettime (which ideally happens via vdso instead anyway). As noted before, strace does break at build time due to use of the sys/{ipc,sem,shm,msg}.h headers to get the IPC structs and command macros. If they don't exist configure has a fallback to use the kernel headers, which is the right thing to do, so you have to hack/force these configure results to build. Hopefully upstream will just remove use of the libc headers for this since it's conceptually wrong anyway. Rich