diff --git a/utils/.gitignore b/utils/.gitignore index 414487cd..a8ff0027 100644 --- a/utils/.gitignore +++ b/utils/.gitignore @@ -12,6 +12,7 @@ date du echo editor +false find head help @@ -32,6 +33,7 @@ rmdir sh tail time +true type uname uptime diff --git a/utils/Makefile b/utils/Makefile index 515d443c..43af2ca8 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -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 \ diff --git a/utils/false.cpp b/utils/false.cpp new file mode 100644 index 00000000..d029ffea --- /dev/null +++ b/utils/false.cpp @@ -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 . + + false.cpp + Exit with a status code indicating failure. + +*******************************************************************************/ + +int main(void) +{ + return 1; +} diff --git a/utils/true.cpp b/utils/true.cpp new file mode 100644 index 00000000..71a78fdc --- /dev/null +++ b/utils/true.cpp @@ -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 . + + true.cpp + Exit with a status code indicating success. + +*******************************************************************************/ + +int main(void) +{ + return 0; +}