2001-10-25 00:30:20 +05:30
|
|
|
/* vi: set sw=4 ts=4: */
|
|
|
|
/*
|
|
|
|
* Mini false implementation for busybox
|
|
|
|
*
|
2004-03-15 13:59:22 +05:30
|
|
|
* Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
|
2001-10-25 00:30:20 +05:30
|
|
|
*
|
2010-08-16 23:44:46 +05:30
|
|
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
2001-10-25 00:30:20 +05:30
|
|
|
*/
|
2016-11-23 19:16:56 +05:30
|
|
|
//config:config FALSE
|
|
|
|
//config: bool "false"
|
|
|
|
//config: default y
|
|
|
|
//config: help
|
|
|
|
//config: false returns an exit code of FALSE (1).
|
|
|
|
|
|
|
|
//applet:IF_FALSE(APPLET_NOFORK(false, false, BB_DIR_BIN, BB_SUID_DROP, false))
|
|
|
|
|
|
|
|
//kbuild:lib-$(CONFIG_FALSE) += false.o
|
2001-10-25 00:30:20 +05:30
|
|
|
|
2003-03-19 14:43:01 +05:30
|
|
|
/* BB_AUDIT SUSv3 compliant */
|
2008-05-23 18:23:18 +05:30
|
|
|
/* http://www.opengroup.org/onlinepubs/000095399/utilities/false.html */
|
2001-10-25 00:30:20 +05:30
|
|
|
|
2015-04-21 19:30:41 +05:30
|
|
|
/* "false --help" is special-cased to ignore --help */
|
|
|
|
//usage:#define false_trivial_usage NOUSAGE_STR
|
|
|
|
//usage:#define false_full_usage ""
|
2011-03-31 18:13:25 +05:30
|
|
|
//usage:#define false_example_usage
|
|
|
|
//usage: "$ false\n"
|
|
|
|
//usage: "$ echo $?\n"
|
|
|
|
//usage: "1\n"
|
|
|
|
|
2007-05-27 00:30:18 +05:30
|
|
|
#include "libbb.h"
|
2001-10-25 00:30:20 +05:30
|
|
|
|
2007-04-10 21:13:37 +05:30
|
|
|
/* This is a NOFORK applet. Be very careful! */
|
|
|
|
|
2007-10-11 15:35:36 +05:30
|
|
|
int false_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
|
2008-07-05 14:48:54 +05:30
|
|
|
int false_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
|
2001-10-25 00:30:20 +05:30
|
|
|
{
|
|
|
|
return EXIT_FAILURE;
|
|
|
|
}
|