From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13223 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: qsort_r or qsort_s in musl Date: Mon, 10 Sep 2018 13:43:28 -0400 Message-ID: <20180910174328.GS1878@brightrain.aerifal.cx> References: <20180903205705.GA7639@localhost> <20180903225316.GY1878@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1536601304 14025 195.159.176.226 (10 Sep 2018 17:41:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2018 17:41:44 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) Cc: musl@lists.openwall.com To: Ed Maste Original-X-From: musl-return-13239-gllmg-musl=m.gmane.org@lists.openwall.com Mon Sep 10 19:41:40 2018 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.84_2) (envelope-from ) id 1fzQBw-0003Wx-A4 for gllmg-musl@m.gmane.org; Mon, 10 Sep 2018 19:41:40 +0200 Original-Received: (qmail 32589 invoked by uid 550); 10 Sep 2018 17:43:49 -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 32571 invoked from network); 10 Sep 2018 17:43:48 -0000 Content-Disposition: inline In-Reply-To: Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:13223 Archived-At: On Mon, Sep 10, 2018 at 01:27:00PM -0400, Ed Maste wrote: > > qsort_r was at first rejected because of the conflicting definitions > > -- existence of same-named interfaces with different semantics or > > signatures is one of the big criteria for exclusion of nonstandard > > extensions in musl. However, from the FreeBSD side at least there > > seems to be interest in dropping their version and agreeing upon a > > standard aligned with glibc's version, for the sake of POSIX: > > If you want to see the current state of this in FreeBSD, we have a > code review in progress in Phabricator at > https://reviews.freebsd.org/D17083. If POSIX standardizes on the glibc > version I'm sure we'll follow. Thanks for the update. It looks like we have a sort of 3- (N-?) way deadlock: A: POSIX adopts qsort_r with glibc signature B: FreeBSD switches qsort_r to glibc signature C: musl adds qsort_r with glibc signature A seems kinda stalled and dependent on B and possibly others. B seems dependent on A. C seems dependent on A || B || some approximation of A. ;-) Fortunately it looks like we're all on the same page about where it should end up and all sides still want it to happen. Rich