Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Sep 2025 16:12:16 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org>
To:        FreeBSD Current <freebsd-current@freebsd.org>
Cc:        Olivier Certner <olce@freebsd.org>,  Bob Bishop <rb@gid.co.uk>,  Alan Somers <asomers@freebsd.org>,  Toomas Soome <tsoome@me.com>
Subject:   Re: git: d549de769055 - main - libc: Remove readdir_r(3) [This broke building rust 1.88]
Message-ID:  <86a52zhi9r.fsf@ltc.des.dev>
In-Reply-To: <20250912135831.s1k7SkfL@steffen%sdaoden.eu> (Steffen Nurpmeso's message of "Fri, 12 Sep 2025 15:58:31 %2B0200")
References:  <6053312.Zv9zXsTiuT@ravel> <86ms6zhmbq.fsf@ltc.des.dev> <5035133.Cjmsv3J8Qz@ravel> <20250912135831.s1k7SkfL@steffen%sdaoden.eu>

index | next in thread | previous in thread | raw e-mail

Steffen Nurpmeso <steffen@sdaoden.eu> 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
-- 
Dag-Erling Smørgrav - des@FreeBSD.org


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86a52zhi9r.fsf>