Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uppub extern fn functions without #[no_mangle] #376
Comments
This comment has been minimized.
This comment has been minimized.
|
This is indeed intentional! This crate doesn't have a C ABI, it's just intends the Rust interface to look like a C header file basically. |
alexcrichton
closed this
Sep 2, 2016
This comment has been minimized.
This comment has been minimized.
comex
commented
Sep 3, 2016
•
|
Then do these functions actually need to be extern? |
This comment has been minimized.
This comment has been minimized.
|
As far as I know, no |
Susurrus
pushed a commit
to Susurrus/libc
that referenced
this issue
Mar 26, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
kornelski commentedSep 2, 2016
src/unix/bsd/apple/mod.rs defines functions that look like replacements for POSIX macros:
macro_rules! fmakes these functionspub unsafe extern fn, but does not add#[no_mangle], which makes them not callable from C under these names.Is lack of C-compatible names intentional?