2 ms·
> In a fine-grained ecosystem, the problem is transitive. Absolutely. You definitely have to own the whole stack. Ultimately, you may have to fix bugs at every
by db48x 5y ago
> In a fine-grained ecosystem, the problem is transitive.
Absolutely. You definitely have to own the whole stack. Ultimately, you may have to fix bugs at every level, from your own code all the way down to the OS. Big tech companies do this explicitly, with kernel development teams. Small companies do this by occasionally upgrading to the latest version of Ubuntu and hoping for the best.
> But in this case, a thin wrapper that reflects the system call's semantics ought to be available in a common `posix` crate that others may freely rely upon to build their higher-level services.
It is available. If you want to directly call any function in the C standard library, use the libc crate. Here’s the documentation: https://docs.rs/libc/0.2.109/libc/fn.mmap.html https://docs.rs/libc/0.2.109/libc/fn.mmap.html
All the other crates on crates.io that you find when you search for “mmap” are higher level abstractions over the raw syscall. They have specific purposes, like file io, or creating circular buffers.