From nobody Fri Sep 12 10:19:54 2025 X-Original-To: freebsd-current@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 4cNVmd74nSz67GjN for ; Fri, 12 Sep 2025 10:20:17 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from gid2.gid.co.uk (ns0.gid.co.uk [IPv6:2001:470:94de::240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gid2.gid.co.uk", Issuer "gid2.gid.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cNVmd3T4jz3R4H; Fri, 12 Sep 2025 10:20:17 +0000 (UTC) (envelope-from rb@gid.co.uk) Authentication-Results: mx1.freebsd.org; none Received: from mx0.gid.co.uk (mx0.gid.co.uk [194.32.164.250]) by gid2.gid.co.uk (8.15.2/8.15.2) with ESMTP id 58CAK9UI013620; Fri, 12 Sep 2025 11:20:09 +0100 (BST) (envelope-from rb@gid.co.uk) Received: from smtpclient.apple ([194.32.164.24]) by mx0.gid.co.uk (8.14.2/8.14.2) with ESMTP id 58CAK40X063876; Fri, 12 Sep 2025 11:20:04 +0100 (BST) (envelope-from rb@gid.co.uk) Content-Type: text/plain; charset=utf-8 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: git: d549de769055 - main - libc: Remove readdir_r(3) [This broke building rust 1.88] From: Bob Bishop In-Reply-To: <4148862.BRNeRiNLvY@ravel> Date: Fri, 12 Sep 2025 11:19:54 +0100 Cc: FreeBSD Current , Alan Somers , Toomas Soome Content-Transfer-Encoding: quoted-printable Message-Id: <0F481EDD-24F4-4F2C-BCBB-9B016DD313F3@gid.co.uk> References: <1F6A4621-1505-4F78-97C6-85EA556B2165.ref@yahoo.com> <4148862.BRNeRiNLvY@ravel> To: Olivier Certner X-Mailer: Apple Mail (2.3826.700.81) X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4cNVmd3T4jz3R4H Hi, > On 12 Sep 2025, at 09:09, Olivier Certner wrote: >=20 >> That should certainly be done. I'll try to do it this weekend, if I = have >> time. However, the need to revert this change will remain. FreeBSD = 15 >> needs the ability to run both current and old Rust toolchains. >=20 > Yes, and adding to that that I don't see any pressing reason to get = rid of readdir_r(), knowing a bit or two on that topic, irrespective of = what Rust will or will not do in the short/middle-term. Not detailing = anything more here, as I already did in = https://reviews.freebsd.org/D52474 where I think this discussion should = continue. > Thanks and regards. +1 And while I=E2=80=99m here, POSIX.1 defines for readdir_r (and readdir): [EOVERFLOW] One of the values in the structure to be returned cannot be = represented correctly. =E2=80=A6which I think would cover the case of indeterminate = NAME_MAX/PATH_MAX for readdir_r. Also while I=E2=80=99m here, isn=E2=80=99t ESTALE a possibility for = readdir/readdir_r on an NFS volume? > --=20 > Olivier Certner -- Bob Bishop rb@gid.co.uk