Skip to content

Conversation

@jrflat
Copy link
Contributor

@jrflat jrflat commented Nov 4, 2025

On Android on certain architectures, struct stat defines properties

unsigned long long st_dev;
unsigned long long st_ino;
unsigned int st_mode;

instead of

dev_t st_dev;
ino_t st_ino;
mode_t st_mode;

I think we should keep the dev_t, ino_t, and mode_t types as the backing for CInterop.DeviceID, CInterop.Inode, and CInterop.Mode, so this PR just performs a numericCast(_:) in the respective Stat getter and setters, which is compiled out in cases where the types match.

@jrflat
Copy link
Contributor Author

jrflat commented Nov 4, 2025

@swift-ci please test

@jrflat jrflat merged commit b083113 into apple:main Nov 4, 2025
57 checks passed
@finagolfin
Copy link
Contributor

Thanks, this fixed my older unofficial CI too. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants