blob: 59c2f321ae3a44695d22d2fb10b791379acfc5e3 [file] [log] [blame]
Matt Kraai258bd3d2001-10-24 19:00:20 +00001/* vi: set sw=4 ts=4: */
2/*
3 * Mini false implementation for busybox
4 *
Eric Andersenc7bda1c2004-03-15 08:29:22 +00005 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
Matt Kraai258bd3d2001-10-24 19:00:20 +00006 *
Denys Vlasenko0ef64bd2010-08-16 20:14:46 +02007 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
Matt Kraai258bd3d2001-10-24 19:00:20 +00008 */
9
Manuel Novoa III cad53642003-03-19 09:13:01 +000010/* BB_AUDIT SUSv3 compliant */
Bernhard Reutner-Fischercf575ca2008-05-23 12:53:18 +000011/* http://www.opengroup.org/onlinepubs/000095399/utilities/false.html */
Matt Kraai258bd3d2001-10-24 19:00:20 +000012
Pere Orga34425382011-03-31 14:43:25 +020013//usage:#define false_trivial_usage
14//usage: ""
15//usage:#define false_full_usage "\n\n"
16//usage: "Return an exit code of FALSE (1)"
17//usage:
18//usage:#define false_example_usage
19//usage: "$ false\n"
20//usage: "$ echo $?\n"
21//usage: "1\n"
22
Denis Vlasenkob6adbf12007-05-26 19:00:18 +000023#include "libbb.h"
Matt Kraai258bd3d2001-10-24 19:00:20 +000024
Denis Vlasenko99912ca2007-04-10 15:43:37 +000025/* This is a NOFORK applet. Be very careful! */
26
Denis Vlasenko9b49a5e2007-10-11 10:05:36 +000027int false_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
Denis Vlasenkoa60f84e2008-07-05 09:18:54 +000028int false_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
Matt Kraai258bd3d2001-10-24 19:00:20 +000029{
30 return EXIT_FAILURE;
31}