1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Add false(1) and true(1).

This commit is contained in:
Jonas 'Sortie' Termansen 2013-11-11 15:07:56 +01:00
parent 425069cbf1
commit f8e7553187
4 changed files with 57 additions and 1 deletions

2
utils/.gitignore vendored
View file

@ -12,6 +12,7 @@ date
du
echo
editor
false
find
head
help
@ -32,6 +33,7 @@ rmdir
sh
tail
time
true
type
uname
uptime

View file

@ -28,6 +28,7 @@ date \
du \
echo \
editor \
false \
find \
head \
help \
@ -47,8 +48,9 @@ rm \
rmdir \
sh \
tail \
type \
time \
true \
type \
uname \
uptime \
wc \

26
utils/false.cpp Normal file
View file

@ -0,0 +1,26 @@
/*******************************************************************************
Copyright(C) Jonas 'Sortie' Termansen 2013.
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
false.cpp
Exit with a status code indicating failure.
*******************************************************************************/
int main(void)
{
return 1;
}

26
utils/true.cpp Normal file
View file

@ -0,0 +1,26 @@
/*******************************************************************************
Copyright(C) Jonas 'Sortie' Termansen 2013.
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
true.cpp
Exit with a status code indicating success.
*******************************************************************************/
int main(void)
{
return 0;
}