From nobody Fri Sep 12 14:12: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 4cNbwK52xwz67Vft for ; Fri, 12 Sep 2025 14:12:17 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 4cNbwK44fyz3xYd; Fri, 12 Sep 2025 14:12:17 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757686337; 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=2ARo0vUCLnwE8mCbsCjA3c1YOiSePr389xTFPY4JToc=; b=AH4ZrKs3VF+Ri6HZ5gJChZHDQAFSvG8AU70UgGZR6XWxXBamkrSr5OclH/+Ys19xA8JTUp X/UcY7GObwGG+JRcVldrTBqDS1fVAvbLZzaGENaN2kxGXWgS/L70u0zamahsjkVOsxwfiC oNJBDL2o6woUJOOA/M2+W/ogKPSlCFzQo/X19ue1qzWqzOxV1D3yUMCQP9fAEOQ8R7Y7j2 jwAOEOnAa+t6UgJ19+aQTWOEL3F4YYcb7xS8RDgOFHlWpPk8HTwHvUXjb9kMwR32Sf7E2V ekt2bskOKHy5nUIryl4CO9SCYdQZD1djeae6ocQXpeBXEKcsxMZd0MHmrLHJzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757686337; 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=2ARo0vUCLnwE8mCbsCjA3c1YOiSePr389xTFPY4JToc=; b=AtAW4WGF9Bi7svYJW7sgX1GxwLVpBpOvIetT3YeEYkfO4mzCmPOQr4tCKL0z/psyrmYnJV ug9/Iqg3T49UJCbGTbFmbmyeP0MYejFs2v/AKunA+x/qc0OveAyedLcz//z+3naKlwzHG9 Va3X6uaKVE2s8Lx3I/DHdYtlsZ/eygYkemr/rJ1St5UDZ50SbVLZ0yzgPXLBuiseIe8qGc 4GGBg+GO8xVcS9uUFLsxcVna9MjeAd1MaLD94Yuj96jmDgbU4Si5ZVjb6jLp4j9tYy4lvQ /oxhdq9XAj7EQpHDIawyJpdulU0tp590xe7g8HNn73QaRcQRydScI9MOJ7YWXA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757686337; a=rsa-sha256; cv=none; b=Bcj0lz1PWXbvegAxbw0EICHCXrLKtMnexugompLUYMIlTa6FjXch97uyWxrxri8VPZd1+z kdYfISTQOTJAyNWebmxfsDD1hq46/ov/jsZtQYZSa1mizY2Hkuied1t555dTRb0mkzsnrJ 8G+1/YkRbmlA6bHaZJurRqxvCK6gRyR1q2sL4GffQxGxUMqmxu71d8IbOI8PokT4UJC4yL 6kzUr5acCWOnAxsKhFOK3PipkoWJpCdjRXM2GtJxbICFkJ/m+zG/jpTe1qamq6HpX9nY40 1zYcB3QEg3MfWOX7jjrgPmOkVVKCgVLHKrKg0VKnuuWxFdTG+7q57GvLLaTVTw== 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 4cNbwK2xbGzmwW; Fri, 12 Sep 2025 14:12:17 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id 3AE5A8816E; Fri, 12 Sep 2025 16:12:16 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: FreeBSD Current Cc: Olivier Certner , Bob Bishop , Alan Somers , Toomas Soome Subject: Re: git: d549de769055 - main - libc: Remove readdir_r(3) [This broke building rust 1.88] In-Reply-To: <20250912135831.s1k7SkfL@steffen%sdaoden.eu> (Steffen Nurpmeso's message of "Fri, 12 Sep 2025 15:58:31 +0200") References: <1F6A4621-1505-4F78-97C6-85EA556B2165.ref@yahoo.com> <6053312.Zv9zXsTiuT@ravel> <86ms6zhmbq.fsf@ltc.des.dev> <5035133.Cjmsv3J8Qz@ravel> <20250912135831.s1k7SkfL@steffen%sdaoden.eu> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Fri, 12 Sep 2025 16:12:16 +0200 Message-ID: <86a52zhi9r.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 Steffen Nurpmeso writes: > Only to mention that POSIX Issue 8 has posix_getdents() that > gives application programmers a good tool for flexible buffer > usage ("none to many" dirents in one go, as you need it), as well > as lots of *stat*(2) avoidance possibilities. This is a real > improvement when available, and i hope the world will go this > route, so that the only optional getdirentries() / getdents() > / getdents64() / readdir()+stat() dances will come to an end in > the future. posix_getdents() is getdents() with an unused flag argument and deliberately incompatible types and names. I intend to implement it eventually, but it adds nothing. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org