Compiling with older versions of Rust, when `pipe()` wasn't yet part of stdlib.
Dependencies
- [2]
JREIRPI4Fixing a compilation issue - [3]
LIMIMBOUBootstrapping the Rust part - [4]
BQ4E3XLAForwarding stdout/stderr - [5]
ODUDDQRYAdding the OCaml interface - [*]
UWQB743KFirst working shell (with ocaml code)
Change contents
- edit in src/container.rs at line 123
}}fn pipe() -> Result<(OwnedFd, OwnedFd), std::io::Error> {use std::os::fd::FromRawFd;let mut fd = [0; 2];unsafe {if libc::pipe(fd.as_mut_ptr()) != 0 {Err(std::io::Error::last_os_error())} else {Ok((OwnedFd::from_raw_fd(fd[0]), OwnedFd::from_raw_fd(fd[1])))} - replacement in src/container.rs at line 168
let (reader_out, writer_out) = std::io::pipe().unwrap();let (reader_err, writer_err) = std::io::pipe().unwrap();let (reader_out, writer_out) = pipe().unwrap();let (reader_err, writer_err) = pipe().unwrap(); - edit in Cargo.toml at line 11[2.22][7.71144]
exclude = [ "essai" ]