Skip to content
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

The basic C types should be in libcore #14153

Closed
ghost opened this issue May 12, 2014 · 1 comment
Closed

The basic C types should be in libcore #14153

ghost opened this issue May 12, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented May 12, 2014

c_int and friends are not defined by libc, but the data model of the operating system. C compilers provide them with macros like __LP64__, __SIZEOF_INT__.

They're needed for syscalls (i.e. writing libc itself) and kernel modules.

@huonw
Copy link
Member

huonw commented Jan 5, 2016

Core is designed for (among other things) writing OSes/freestanding code, which would make defining these in that case somewhat strange.

This change was actually proposed (and rejected) in #29985 (see there for more discussion), so I'm closing this to match.

@huonw huonw closed this as completed Jan 5, 2016
bors added a commit to rust-lang-ci/rust that referenced this issue Feb 20, 2023
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

No branches or pull requests

2 participants