From nobody Thu Sep 11 15:01:16 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 4cN13M0kpjz66mSt for ; Thu, 11 Sep 2025 15:01:19 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cN13M0FZ6z3vYk; Thu, 11 Sep 2025 15:01:19 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757602879; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wr+lk8y/SKK1BJYLA83QIKOwMNc2KO4KOP5D5x7jl2Y=; b=VewpHzD1a0b46WfMQOu8VktzautaRZRP9y8V7ZPyKRHVd8TfiyK9DoTYOIe/zDZP+YmG4m BLDL0sMq9eS9OjWyURYUUh2TOQ1STg6h0r6QIfaRpk0/bCWFqQkyBSYXB+bAma7j1RWo8A B71uE7EtDxygrl0KYilFZ8leuAw2mpPzwZxBj9CNZ5lE6LyP6E9iB9KsUzSVdk2w4b6DYf SnHoR3xYSbSO67A3vrQu5l09U9YMA2v2Npdk0cvcCg4LAF0LPUPiruLcGQ7WqaK2X8Pm++ o/qwk3nXJiW+lG+cETHhfMzDn3saDh7tIGbZWjvR5BIexrvzV1YzXB4L3FSzbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757602879; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wr+lk8y/SKK1BJYLA83QIKOwMNc2KO4KOP5D5x7jl2Y=; b=mqnXdgxu5k0sYv63cVnKt9K4f9gtp4Ef5d9c4bXAUyMDNPAfLo2iXbZEY6ppn36p1ksCKL cks+fd2sieFZ0/ie3YeRMim8PG0eF7CsG9uqi6rJcG4/AUGXqLz6BCtCM7heiREeXEo9c9 Ev8nnm+4189aorjA2O60ZtUepM8Yf1eI1iWiqJ+1XUwaxkyzkCmaqMpE0JXc9Rq7+Mb+VO EDX/GKOtlJGsFpqK5zfs9h5qIBPwfBK6BZt74vEeN0+5fR7TPCDuJEXKSRwhfak/SATsyo cmt5wwrtwis+NpC45tcN6nv5J/t53NgAr6qfAwb5b1ck/CA0XHFPPPFAOfE7lQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757602879; a=rsa-sha256; cv=none; b=Vo+Mpq5Fi1aDlr7hUZOatqGYDNTdLeAlB06tx1IAAeRVq0TxLHeDTemqBu/mN52lgIX3iK EWnJDlBPMD6U1VykwRmBRzLsFHC7YdAPuU51LuueRURVfl0/7qfHBv6UO9ehLem+1e/qL4 pShGWgbAspI8hxNk5cJj15Yxj2A68tmjcQ8gbNffqD7FdCp4FsAM50EQrogw6yNrRjFW1e oNXLzaISod8i/SI60QR51zZ2nt/cbwg6JpKhnDn941J6Pmr5yUk8qf3pR8wEzzq1RLFO+5 xfLd9jkObIxvh2qOfOD6jbZLnilS19AkPq0zioJn93VTD5NnYkT9bXrcCmRzzQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from ltc.des.dev (unknown [IPv6:2a01:e0a:c54:bed0:922e:16ff:fef1:acef]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4cN13L6336z1Jh; Thu, 11 Sep 2025 15:01:18 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id E47BA8212B; Thu, 11 Sep 2025 17:01:16 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Alan Somers Cc: Mark Millard , FreeBSD Current , Konstantin Belousov Subject: Re: git: d549de769055 - main - libc: Remove readdir_r(3) [This broke building rust 1.88] In-Reply-To: (Alan Somers's message of "Thu, 11 Sep 2025 07:44:11 -0600") References: <1F6A4621-1505-4F78-97C6-85EA556B2165.ref@yahoo.com> <1F6A4621-1505-4F78-97C6-85EA556B2165@yahoo.com> <86bjnhi7s2.fsf@ltc.des.dev> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Thu, 11 Sep 2025 17:01:16 +0200 Message-ID: <86zfb1ghj7.fsf@ltc.des.dev> 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Alan Somers writes: > Dag-Erling Sm=C3=B8rgrav writes: > > Tell that to the Rust developers. They have been repeatedly warned > > against using readdir_r(3) for years, as far back as 2016. > Have they? Looking at rust's github page, I see discussions about > using readdir_r on Fuchsia and Linux, but nothing about BSD. If you look at these tickets, there are people pointing out that readdir_r() doesn't work correctly even on platforms where it isn't formally deprecated. The Rust developers chose to fix the Linux case because it produced a link-time warning and ignored the rest. That's on them. They also seem to be providing their own prototype for readdir_r(), which suppresses the deprecation warning they should be getting on FreeBSD 15, and turns the issue from a failure to compile into a failure to link. That's also on them. > possibly with the aid of installing misc/compat14x That won't make any difference since readdir_r() is still in our libc. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org