I have this as a Unix-only API since it seems like Windows doesn't have a similar API.
std::os::unix::ffi