diff --git a/src/driver.rs b/src/driver.rs new file mode 100644 index 0000000..82dde53 --- /dev/null +++ b/src/driver.rs @@ -0,0 +1,4 @@ +pub enum DriverExitCode { + Success = 0, + Failure = 1, +} diff --git a/src/lib.rs b/src/lib.rs index 43d8d95..08ee8c2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,6 +2,7 @@ #[macro_use] pub mod logger; +pub mod driver; pub mod process; pub mod syscalls; diff --git a/src/syscalls/time_calls.rs b/src/syscalls/time_calls.rs index 36f2d6c..2626d76 100644 --- a/src/syscalls/time_calls.rs +++ b/src/syscalls/time_calls.rs @@ -15,7 +15,9 @@ extern "C" { pub fn sleep(time: SecondsTime); /// Get the current time in seconds, milliseconds - pub fn get_time() -> SecondsTime; + /// + /// Temporarily returns an i64 instead of a SecondsTime + pub fn get_time() -> i64; /// Set the current time in seconds, milliseconds pub fn set_time(time: SecondsTime);