applets
applets_sh
arch
archival
configs
console-tools
coreutils
libcoreutils
Config.src
Kbuild.src
basename.c
cat.c
chgrp.c
chmod.c
chown.c
chroot.c
cksum.c
comm.c
cp.c
cut.c
date.c
dd.c
df.c
dirname.c
dos2unix.c
du.c
echo.c
env.c
expand.c
expr.c
factor.c
false.c
fold.c
head.c
hostid.c
id.c
id_test.sh
install.c
link.c
ln.c
logname.c
ls.c
md5_sha1_sum.c
mkdir.c
mkfifo.c
mknod.c
mktemp.c
mv.c
nice.c
nl.c
nohup.c
nproc.c
od.c
od_bloaty.c
paste.c
printenv.c
printf.c
pwd.c
readlink.c
realpath.c
rm.c
rmdir.c
seq.c
shred.c
shuf.c
sleep.c
sort.c
split.c
stat.c
stty.c
sum.c
sync.c
tac.c
tail.c
tee.c
test.c
test_ptr_hack.c
timeout.c
touch.c
tr.c
true.c
truncate.c
tty.c
uname.c
uniq.c
unlink.c
usleep.c
uudecode.c
uuencode.c
wc.c
who.c
whoami.c
yes.c
debianutils
docs
e2fsprogs
editors
examples
findutils
include
init
klibc-utils
libbb
libpwdgrp
loginutils
mailutils
miscutils
modutils
networking
printutils
procps
qemu_multiarch_testing
runit
scripts
selinux
shell
sysklogd
testsuite
util-linux
.gitignore
.indent.pro
AUTHORS
Config.in
INSTALL
LICENSE
Makefile
Makefile.custom
Makefile.flags
Makefile.help
NOFORK_NOEXEC.lst
NOFORK_NOEXEC.sh
README
TODO
TODO_unicode
make_single_applets.sh
size_single_applets.sh
Those two spaces after tab have no effect, and always a nuisance when editing. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
39 lines
1.0 KiB
C
39 lines
1.0 KiB
C
/* vi: set sw=4 ts=4: */
|
|
/*
|
|
* Mini false implementation for busybox
|
|
*
|
|
* Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
|
|
*
|
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
|
*/
|
|
//config:config FALSE
|
|
//config: bool "false (tiny)"
|
|
//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
|
|
|
|
/* BB_AUDIT SUSv3 compliant */
|
|
/* http://www.opengroup.org/onlinepubs/000095399/utilities/false.html */
|
|
|
|
/* "false --help" is special-cased to ignore --help */
|
|
//usage:#define false_trivial_usage NOUSAGE_STR
|
|
//usage:#define false_full_usage ""
|
|
//usage:#define false_example_usage
|
|
//usage: "$ false\n"
|
|
//usage: "$ echo $?\n"
|
|
//usage: "1\n"
|
|
|
|
#include "libbb.h"
|
|
|
|
/* This is a NOFORK applet. Be very careful! */
|
|
|
|
int false_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
|
|
int false_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
|
|
{
|
|
return EXIT_FAILURE;
|
|
}
|