Page MenuHomeFreeBSD

cdefs: Allow _XOPEN_SOURCE >= 800
ClosedPublic

Authored by imp on Nov 14 2024, 6:59 PM.
Tags
None
Referenced Files
F134331444: D47574.id146481.diff
Sat, Nov 1, 11:33 AM
Unknown Object (File)
Sun, Oct 26, 11:53 PM
Unknown Object (File)
Sat, Oct 25, 5:50 AM
Unknown Object (File)
Fri, Oct 24, 10:20 AM
Unknown Object (File)
Sun, Oct 12, 12:25 PM
Unknown Object (File)
Fri, Oct 10, 1:18 PM
Unknown Object (File)
Sep 29 2025, 12:50 PM
Unknown Object (File)
Sep 15 2025, 6:23 AM
Subscribers

Details

Summary

When the user asks for XOPEN_SOURCE >= 800, set __XSI_VISIBLE to 800 for
POSIX 2024.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 60562
Build 57446: arc lint + arc unit

Event Timeline

imp requested review of this revision.Nov 14 2024, 6:59 PM
imp created this revision.
brooks added a subscriber: brooks.

I wish there was a comment justifying the - 0 pattern...

This revision is now accepted and ready to land.Nov 14 2024, 7:20 PM

I wish there was a comment justifying the - 0 pattern...

I'll add one in a future commit.

In D47574#1085196, @imp wrote:

I wish there was a comment justifying the - 0 pattern...

I'll add one in a future commit.

At this point, it's likely a historic practice we can drop. Peter Wemm added it 22 years
ago:
Deal with "#define _XOPEN_SOURCE" in header files (eg: XFree86 4.2.0)
so I'll add a comment to that effect. I'd just drop it, but a code search says it's
still a common idium.

This revision was automatically updated to reflect the committed changes.