Makefile: better deps; fop(1), hru(1), strerror(3): changed strerror wrapper function name

This commit is contained in:
2024-03-02 10:16:32 -07:00
parent 898044cd43
commit c392dbc680
4 changed files with 8 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ use std::ffi::{ c_int, c_char, CStr };
extern "C" { fn strerror(errnum: c_int) -> *mut c_char; }
/* wrapper function for use in Rust */
pub fn c_error(err: std::io::Error) -> String {
pub fn raw_message(err: std::io::Error) -> String {
/* Get the raw OS error. If its None, what the hell is going on‽ */
let error = err.raw_os_error().unwrap_or_else(|| { panic!() }) as c_int;