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; }