Summary: | off64_t namespace pollution in <sys/types.h> or incomplete LFS64 API support | ||
---|---|---|---|
Product: | Base System | Reporter: | Jan Beich <jbeich> |
Component: | standards | Assignee: | freebsd-standards (Nobody) <standards> |
Status: | Open --- | ||
Severity: | Affects Only Me | CC: | cem, freebsd, imp |
Priority: | --- | ||
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any |
Description
Jan Beich
2023-09-10 20:53:00 UTC
Solaris also hides off64_t behind _LARGEFILE64_SOURCE per https://src.illumos.org/source/xref/illumos-gate/usr/src/uts/common/sys/types.h?r=ed093b41#151-155 let's do that too, then. I think it breaks expectations to not provide these behind _LARGEFILE64_SOURCE FreeBSD's headers have a dichotomy between the _foo_SOURCE macro defined and what's visible by checking _foo_VISIBLE. We should maintain that here. However, FreeBSD doesn't implement the full range of these functions. It was dubious at best that they were ever defined in the first place. And we'd need to make a number of other changes before this would be safe. So it's not quite so simple to provide the interface. |