From 3a9241add947cb6d24b5de7a8927517426a78795 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 25 Aug 2012 14:25:22 -0500 Subject: Move commands into "posix", "lsb", and "other" menus/directories. --- toys/posix/false.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 toys/posix/false.c (limited to 'toys/posix/false.c') diff --git a/toys/posix/false.c b/toys/posix/false.c new file mode 100644 index 00000000..7b570bd2 --- /dev/null +++ b/toys/posix/false.c @@ -0,0 +1,23 @@ +/* vi: set sw=4 ts=4: + * + * false.c - Return nonzero. + * + * Copyright 2007 Rob Landley + * + * See http://www.opengroup.org/onlinepubs/009695399/utilities/false.html + +USE_FALSE(NEWTOY(false, NULL, TOYFLAG_BIN)) + +config FALSE + bool "false" + default y + help + Return nonzero. +*/ + +#include "toys.h" + +void false_main(void) +{ + toys.exitval = 1; +} -- cgit v1.2.3