From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14357 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: time_t assessment of what needs to be done Date: Thu, 4 Jul 2019 15:07:57 -0400 Message-ID: <20190704190757.GD1506@brightrain.aerifal.cx> References: <20190701201107.GA6060@brightrain.aerifal.cx> 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="206687"; 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-14373-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jul 04 21:08:14 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 1hj75Z-000rfb-Mg for gllmg-musl@m.gmane.org; Thu, 04 Jul 2019 21:08:13 +0200 Original-Received: (qmail 29847 invoked by uid 550); 4 Jul 2019 19:08:11 -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 29823 invoked from network); 4 Jul 2019 19:08:10 -0000 Content-Disposition: inline In-Reply-To: <20190701201107.GA6060@brightrain.aerifal.cx> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:14357 Archived-At: On Mon, Jul 01, 2019 at 04:11:07PM -0400, Rich Felker wrote: > Then there are some functions that can get by without using the new > syscall at all (avoiding the need for fallback logic), but that need > to convert relative times or such between legacy kernel format and new > userspace format: > > - nanosleep > - clock_getres > - sched_rr_get_interval > - pselect > - ppoll > - sigtimedwait > - recvmmsg > - __timedwait > - getrusage Arnd noted additions to this list: - setitimer - getitimer - wait3 - wait4 And additional functions that have indirect time_t dependency in their interfaces that may need redirection if redirection is done: - aio_suspend - sched_getparam - sched_setparam - sched_setscheduler - pthread_getschedparam - pthread_setschedparam - pthread_attr_getschedparam - pthread_attr_setschedparam - posix_spawnattr_getschedparam - posix_spawnattr_setschedparam My leaning for the schedparam stuff is actually not to do any redirctions, but instead remove the SCHED_SPORADIC cruft (Linux has never supported it and almost surely won't) and instead replace the members with "unused" fields of the same size that we could later repurpose for something else useful. Rich