-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(wrapped_facade_headers): Expand sys/types.h
facade to cover all Linux Glibc typedefs that are also present in macOS.
#53
Conversation
WalkthroughThis pull request updates the test configuration by replacing the Changes
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)`**/*.{cpp,hpp,java,js,jsx,tpp,ts,tsx}`: - Prefer `false == ` rather than `!`.
🪛 Cppcheck (2.10-2)src/ystdlib/wrapped_facade_headers/test/test_sys_types.cpp[error] 11-11: syntax error (syntaxError) ⏰ Context from checks skipped due to timeout of 90000ms (2)
🔇 Additional comments (6)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
sys/types.h
sys/types.h
facade to cover all Linux Glibc typedefs that are also present in MacOS XNU.
sys/types.h
facade to cover all Linux Glibc typedefs that are also present in MacOS XNU.sys/types.h
facade to cover all Linux Glibc typedefs that are also present in macOS.
Description
Reference points (newest releases of each platform):
74f59e9271cbb4071671e5a474e7d4f1622b186f
d4514f0bc1d3f944c22d92e68b646ac3fb40d452
Referenced files/directories:
<sys/typs.h>
<sys/types.h>
<sys/_types/*.h>
We only include types that are directly type-defed in
sys/types.h
and have their MacOS XNUtypedef
versions directly found in eithersys/types.h
orsys/_types/*.h
. The following types are excluded because theirtypedef
s cannot be found in the XNU version, perhaps due to their 64-bit nature:loff_t
off64_t
(defined in sys/dtrace.h)blkcnt64_t
fsblkcnt64_t
fsfilcnt64_t
Because
<ystdlib/wrapped_facade_headers/sys/types.h>
is supposed to align with Linux Glibc, we don't include types that are present in XNU's two referenced locations but not found in Glibcsys/types.h
.This PR will fix y-scope/clp#800 and hopefully eliminate many facade header iterations for
sys/types.h
in the future.Checklist
breaking change.
Validation performed
sys/types.h
.Summary by CodeRabbit
Tests
u_char
,u_short
, andfsid_t
.Chores