For step 0, look at Rust&#x27;s libc crate.<p>For step 1, you&#x27;d need to carefully look at glibc&#x27;s ABI, which is even more complicated than its API due to backward compatibility and symbol versioning.