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

USE_TRUE(NEWTOY(true, NULL, TOYFLAG_BIN|TOYFLAG_NOHELP))
USE_TRUE(OLDTOY(:, true, TOYFLAG_NOFORK|TOYFLAG_NOHELP))

config TRUE
  bool "true"
  default y
  help
    Return zero.
*/

#include "toys.h"

void true_main(void)
{
  return;
}