From 91981933655b130f7f552fe95b24a2f5f0a1de0d Mon Sep 17 00:00:00 2001 From: Cutieguwu Date: Thu, 1 Jan 2026 14:37:56 -0500 Subject: [PATCH] Update io.rs --- src/io.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/io.rs b/src/io.rs index 8d3f824..3473270 100644 --- a/src/io.rs +++ b/src/io.rs @@ -20,10 +20,19 @@ pub fn get_stream_length(stream: &mut S) -> io::Result { len } +/* + * IO Error Poisoning: + * + * + * Attempt 1: + * + * Wrap C calls w/ `ffi`. Most importantly, execute the `close()` through C. + */ + pub fn load_input() -> anyhow::Result { OpenOptions::new() .read(true) - .custom_flags(libc::O_DIRECT) + //.custom_flags(libc::O_DIRECT) .open(&CONFIG.input) .with_context(|| format!("Failed to open input file: {}", &CONFIG.input.display()))