mirror of
https://git.sr.ht/~spicywolf/k2spice
synced 2025-01-18 17:59:39 +00:00
Add false, rewrite true
This commit is contained in:
parent
0fb2dd8fed
commit
56f461df4a
|
@ -7,4 +7,5 @@ members = [
|
|||
"usr/src/mei/yes",
|
||||
"usr/src/mei/echo",
|
||||
"usr/src/mei/printf",
|
||||
"usr/src/mei/false",
|
||||
]
|
||||
|
|
10
usr/src/mei/false/Cargo.toml
Normal file
10
usr/src/mei/false/Cargo.toml
Normal file
|
@ -0,0 +1,10 @@
|
|||
[package]
|
||||
name = "falsecmd"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[[bin]]
|
||||
name = "false"
|
||||
path = "src/false.rs"
|
||||
|
||||
[dependencies]
|
33
usr/src/mei/false/src/false.rs
Normal file
33
usr/src/mei/false/src/false.rs
Normal file
|
@ -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;
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue