We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1fbc897 + ca49cd8 commit a5d0fc3Copy full SHA for a5d0fc3
src/sys/memfd.rs
@@ -40,6 +40,7 @@ libc_bitflags!(
40
/// For more information, see [`memfd_create(2)`].
41
///
42
/// [`memfd_create(2)`]: https://man7.org/linux/man-pages/man2/memfd_create.2.html
43
+#[inline] // Delays codegen, preventing linker errors with dylibs and --no-allow-shlib-undefined
44
pub fn memfd_create(name: &CStr, flags: MemFdCreateFlag) -> Result<OwnedFd> {
45
let res = unsafe {
46
cfg_if! {
0 commit comments