-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
android: Can we use proper libc
typedefs in stat
definition?
#3285
Comments
bors
added a commit
that referenced
this issue
Jan 8, 2024
android 32 bits fix stat struct proposal. close #3285
Please reference the bionic definition when updating Android Beyond the canonicity, the reason this structure is different is the same reason it's different in e.g. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If we look at the
stat
type's definition for different platforms, we see:But for arm-linux-androideabi we stop using
libc
typedefs and instead have:Is there a (good) reason for this divergence? If I look at
ino_t
it's actually defined to be ac_ulong
, notc_ulonglong
, so that will lead to mismatches all over the place when the typedefs are used. Is this mandated somewhere, a bug in the platform definition that we need to support? This is a nightmare to support in user code.The text was updated successfully, but these errors were encountered: