1
0
Fork 0
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:
Ezra Barrow 2023-11-14 01:48:54 -06:00
parent 0fb2dd8fed
commit 56f461df4a
No known key found for this signature in database
GPG key ID: 5EF8BA3CE9180419
4 changed files with 49 additions and 2 deletions

View file

@ -7,4 +7,5 @@ members = [
"usr/src/mei/yes",
"usr/src/mei/echo",
"usr/src/mei/printf",
"usr/src/mei/false",
]

View file

@ -0,0 +1,10 @@
[package]
name = "falsecmd"
version = "0.1.0"
edition = "2021"
[[bin]]
name = "false"
path = "src/false.rs"
[dependencies]

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

View file

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