On Wed, Jun 21, 2023 at 1:33 PM Guy Harris <gharris@sonic.net> wrote:
On Jun 21, 2023, at 1:17 PM, enh <enh@google.com> wrote:

> NetBSD exposes its `struct _dirdesc` but FreeBSD/OpenBSD don't (though they use the same name for the private struct).

Then I vote for doing as FreeBSD and OpenBSD and CupertinoBSD and systems using glibc do with DIR, rather than as NetBSD does with DIR, and have whatever the handle for a tzdb region is called be a pointer to an opaque structure.

you were right first time about macOS --- it's in the NetBSD camp (well, it inlines the struct definition in the typedef, so effectively the same).

i haven't looked at glibc, but musl is in the FreeBSD/OpenBSD/MountainViewBsdOnLinux camp, so i assume glibc is too :-)