view toys/posix/true.c @ 1370:e2b84f715e93 draft

Add : as an alias for true (toysh needs this).
author Rob Landley <rob@landley.net>
date Sat, 28 Jun 2014 22:36:02 -0500
parents 786841fdb1e0
children 5fac2769a159
line wrap: on
line source

/* 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))
USE_TRUE(OLDTOY(:, true, 0, TOYFLAG_NOFORK))

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

#include "toys.h"

void true_main(void)
{
  return;
}