aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/false.c
blob: e933799642781e5e76a101e644b110577e90a136 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* false.c - Return nonzero.
 *
 * Copyright 2007 Rob Landley <rob@landley.net>
 *
 * See http://opengroup.org/onlinepubs/9699919799/utilities/false.html

USE_FALSE(NEWTOY(false, NULL, TOYFLAG_BIN|TOYFLAG_NOHELP|TOYFLAG_MAYFORK))

config FALSE
  bool "false"
  default y
  help
    usage: false

    Return nonzero.
*/

#include "toys.h"

void false_main(void)
{
  toys.exitval = 1;
}