about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorEzra Barrow <[email protected]>2023-11-14 01:48:54 -0600
committerEzra Barrow <[email protected]>2023-11-14 01:56:29 -0600
commit56f461df4ad1cd990f4ce6406e766891d5c2efc1 (patch)
tree41f3611b0bbd4268d82f2d397bdd8d1ecc0a358c
parent0fb2dd8feda77b073e04905954b4d21129e8cf52 (diff)
downloadk2spice-56f461df4ad1cd990f4ce6406e766891d5c2efc1.tar.gz
k2spice-56f461df4ad1cd990f4ce6406e766891d5c2efc1.tar.bz2
k2spice-56f461df4ad1cd990f4ce6406e766891d5c2efc1.zip
Add false, rewrite true
-rw-r--r--Cargo.toml1
-rw-r--r--usr/src/mei/false/Cargo.toml10
-rw-r--r--usr/src/mei/false/src/false.rs33
-rw-r--r--usr/src/mei/true/src/true.rs7
4 files changed, 49 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index bb63fd3..695f829 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,4 +7,5 @@ members = [
     "usr/src/mei/yes",
     "usr/src/mei/echo",
     "usr/src/mei/printf",
+    "usr/src/mei/false",
 ]
diff --git a/usr/src/mei/false/Cargo.toml b/usr/src/mei/false/Cargo.toml
new file mode 100644
index 0000000..7de9061
--- /dev/null
+++ b/usr/src/mei/false/Cargo.toml
@@ -0,0 +1,10 @@
+[package]
+name = "falsecmd"
+version = "0.1.0"
+edition = "2021"
+
+[[bin]]
+name = "false"
+path = "src/false.rs"
+
+[dependencies]
diff --git a/usr/src/mei/false/src/false.rs b/usr/src/mei/false/src/false.rs
new file mode 100644
index 0000000..9c06acb
--- /dev/null
+++ b/usr/src/mei/false/src/false.rs
@@ -0,0 +1,33 @@
+/*
+ * CDDL HEADER START
+ *
+ * The contents of this file are subject to the terms of the
+ * Common Development and Distribution License, Version 1.0 only
+ * (the "License").  You may not use this file except in compliance
+ * with the License.
+ *
+ * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ * or http://www.opensolaris.org/os/licensing.
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * When distributing Covered Code, include this CDDL HEADER in each
+ * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ * If applicable, add the following below this CDDL HEADER, with the
+ * fields enclosed by brackets "[]" replaced with your own identifying
+ * information: Portions Copyright [yyyy] [name of copyright owner]
+ *
+ * CDDL HEADER END
+ */
+
+/*
+ * Copyright 2023 Ezra Barrow All rights reserved.
+ * Use is subject to license terms.
+ */
+
+use std::process::ExitCode;
+
+
+fn main() -> ExitCode {
+    return ExitCode::FAILURE;
+}
diff --git a/usr/src/mei/true/src/true.rs b/usr/src/mei/true/src/true.rs
index 6f58f4e..2dfb93f 100644
--- a/usr/src/mei/true/src/true.rs
+++ b/usr/src/mei/true/src/true.rs
@@ -22,10 +22,13 @@
 
 /*
  * Copyright 2023 Ren Kararou  All rights reserved.
+ * Portions Copyright 2023 Ezra Barrow  All rights reserved.
  * Use is subject to license terms.
  */
 
+use std::process::ExitCode;
 
-fn main() {
-    return;
+
+fn main() -> ExitCode {
+    return ExitCode::SUCCESS;
 }