From 09bdfa26dfa67a2296b2404535166a2ddd0604ef Mon Sep 17 00:00:00 2001 From: Able Date: Sat, 9 Apr 2022 10:01:51 -0500 Subject: [PATCH] subtle updates --- src/driver.rs | 4 ++++ src/lib.rs | 1 + src/syscalls/time_calls.rs | 4 +++- 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/driver.rs 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);