From nobody Sat Oct 08 13:32:57 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ml5hx3cxGz4fNtr for ; Sat, 8 Oct 2022 13:33:05 +0000 (UTC) (envelope-from pfg@freebsd.org) Received: from sonic309-20.consmr.mail.ne1.yahoo.com (sonic309-20.consmr.mail.ne1.yahoo.com [66.163.184.146]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ml5hw4Cg9z3fl5 for ; Sat, 8 Oct 2022 13:33:04 +0000 (UTC) (envelope-from pfg@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1665235982; bh=OIaAWnq/olFpN+9aVq1JAB6eMdKHOQoG/c6BzyXmNFU=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject:Reply-To; b=A+ZlyR4UiAyVouVY4B+xNT2fuyqM8NdMr31B8ZWK2JvaoemjdrJn+mEssKwntyJ1epafPtwVxD1ez+voLR8A9ZIjSnG6o0uAcB8Gw8g38xXDba0o2mIhYz7CRj1avV2QpDKQ8jDQeKTm/z+RWYlD0kJBzk5ZyoN6g4PMYWJfrmPIGXvBClMNQoXYNdkTr4ZMWPq891lCa55Za85Lyt2lI9kwjIt0dA2wE1KaDCLj77Iq8RUYGU1FMhUV5x/yYEAWgZHgSLhn3OJStujX3vTliAn+W2uHNV9tLiD6a2JWcZBZVESJ7tgHGBez72lD4nApb5Z1ytoP0bXR7lT3GC9CNA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1665235982; bh=eyDVHogKRHToTENGMHHDQ4mTdNPDQhEU9jWqI8c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DQL5YVaGsARkeb9XDoMEzSu7xqZdBMZE5TgVtOQmZ6UCem.xFTUNwM2R7xvHiFpmcg6K9i EVdEBKgaR24_fQ0ElCyI5MDSNPsqEtl5YVsPXBrE9ey9OXRACmxbGlJdNoRSFsggkNhdET4dx4XQ F1B5.Y5BXb3KeTqH25y6t6zGHPfbeqA9m6Gwy3mOqGSYS3f4j1dYCDYExGYRsoi5rPuRTEkxv0V. NVFIX6aCHdYxwCb3Tjj.KkzrsrlSze30NXnPm5HUDb4FKLv.bIfhmIceV9X6PRrHwAS2dvaSa1gr AIV84v.BZwEp4jjXt3D0w0mhVDcjK2iQ4PVnf1wk6XcCXKCZo0NHqbIm9cOCbAuaYRwIOOVHhT0. .uZTgEo76ZkWVIFbLGfBU4Mcb.CSzTgHMkdCOcKgNi3aNTwzEdqjMgd7v5MV33A_pwsjUtD1Rl7G fU964tujL432m0AmO_hFVlcsopJ0_MxP9ogAsyfFDc4H2ntJDssJhSK1U3zGcDSjHKoWgNMOWY6N .iOOZhZk2f5A30S8- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Sat, 8 Oct 2022 13:33:02 +0000 Date: Sat, 8 Oct 2022 13:32:57 +0000 (UTC) From: Pedro Giffuni To: Xin LI , Alexey Dokuchaev Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" Message-ID: <681762110.6484215.1665235977069@mail.yahoo.com> In-Reply-To: References: <202209302230.28UMUq4I029171@gitrepo.freebsd.org> Subject: Re: git: af3c78886fd8 - main - Alter the prototype of qsort_r(3) to match POSIX, which adopted the glibc-based interface. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6484214_924121857.1665235977068" X-Mailer: WebService/1.1.20702 YMailNorrin X-Rspamd-Queue-Id: 4Ml5hw4Cg9z3fl5 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=A+ZlyR4U; dmarc=none; spf=softfail (mx1.freebsd.org: 66.163.184.146 is neither permitted nor denied by domain of pfg@freebsd.org) smtp.mailfrom=pfg@freebsd.org X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_NONE(0.00)[66.163.184.146:from]; MLMMJ_DEST(0.00)[dev-commits-src-all@freebsd.org]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_COUNT_TWO(0.00)[2]; FREEFALL_USER(0.00)[pfg]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[freebsd.org]; TO_DN_SOME(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all:c]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim] X-ThisMailContainsUnwantedMimeParts: N ------=_Part_6484214_924121857.1665235977068 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sorry for top-posting ... Complain here: https://www.austingroupbugs.net/view.php?id=3D900 Pedro. On Friday, October 7, 2022 at 08:12:20 AM GMT-5, Alexey Dokuchaev wrote: =20 =20 On Fri, Sep 30, 2022 at 10:30:52PM +0000, Xin LI wrote: > commit af3c78886fd8d4ca5eebdbe581a459a6f6d29d6a >=20 >=C2=A0 Alter the prototype of qsort_r(3) to match POSIX, which adopted the >=C2=A0 glibc-based interface. >=20 >=C2=A0 Unfortunately, the glibc maintainers, despite knowing the existence >=C2=A0 of the FreeBSD qsort_r(3) interface in 2004 and refused to add the >=C2=A0 same interface to glibc based on grounds of the lack of standardiza= tion >=C2=A0 and portability concerns, has decided it was a good idea to introdu= ce >=C2=A0 their own qsort_r(3) interface in 2007 as a GNU extension with a >=C2=A0 slightly different and incompatible interface. >=20 >=C2=A0 With the adoption of their interface as POSIX standard, let's switc= h >=C2=A0 to the same prototype, there is no need to remain incompatible. What a sad story, and so unfair to FreeBSD as we now have to deal with compatibility hacks (as mandree@ had said, having to parenthesize a function name is an abomination).=C2=A0 Can you elaborate on technical side= of things a bit?=C2=A0 Is GNU qsort_r(3) interface, while incompatible, better than ours in 1-to-1 comparison, leaving the grief of not going with our older one aside?=C2=A0 Thanks, ./danfe =20 ------=_Part_6484214_924121857.1665235977068 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Sorry for top-posting ...

Complain here:
=
=

Pedro.

=20
=20
On Friday, October 7, 2022 at 08:12:20 AM GMT-5, Alexey= Dokuchaev <danfe@freebsd.org> wrote:


On Fri, Sep 30, 2022 at 10:30:52PM +0000, Xin LI wrote= :
> commit af3c78886fd8d4ca5eebdbe581a459a6f6d29d6a
>
>&= nbsp; Alter the prototype of qsort_r(3) to match POSIX, which adopted the<= br>>  glibc-based interface.
>
>  Unfortunately= , the glibc maintainers, despite knowing the existence
>  of th= e FreeBSD qsort_r(3) interface in 2004 and refused to add the
> = same interface to glibc based on grounds of the lack of standardization>  and portability concerns, has decided it was a good idea to i= ntroduce
>  their own qsort_r(3) interface in 2007 as a GNU ext= ension with a
>  slightly different and incompatible interface.=
>
>  With the adoption of their interface as POSIX stan= dard, let's switch
>  to the same prototype, there is no need t= o remain incompatible.

What a sad story, and so unfair to FreeBSD as= we now have to deal with
compatibility hacks (as mandree@ had said, hav= ing to parenthesize a
function name is an abomination).  Can you el= aborate on technical side of
things a bit?  Is GNU qsort_r(3) inter= face, while incompatible, better
than ours in 1-to-1 comparison, leaving= the grief of not going with our
older one aside?  Thanks,

.= /danfe
------=_Part_6484214_924121857.1665235977068--