diff --git a/files/usr/share/man/false.man b/files/usr/share/man/false.man new file mode 100644 index 0000000..dce7e8b --- /dev/null +++ b/files/usr/share/man/false.man @@ -0,0 +1,5 @@ +SYNOPSIS + false + +DESCRIPTION + false sets the exit status to 1. diff --git a/programs/CMakeLists.txt b/programs/CMakeLists.txt index 02c6173..ea77fc6 100644 --- a/programs/CMakeLists.txt +++ b/programs/CMakeLists.txt @@ -1,5 +1,6 @@ # List of programs. set(PROGRAM_LIST + false.c nice.c ls.c mkdir.c diff --git a/programs/false.c b/programs/false.c new file mode 100644 index 0000000..7f0c244 --- /dev/null +++ b/programs/false.c @@ -0,0 +1,11 @@ +/// @file false.c +/// @brief +/// @copyright (c) 2024 This file is distributed under the MIT License. +/// See LICENSE.md for details. + +#include + +int main(int argc, char **argv) +{ + exit(1); +}