view toys/posix/true.c @ 1746:b11f536bac74 draft

install -D bugfix from David Halls. (I tweaked some comment text while I was there.)
author Rob Landley <rob@landley.net>
date Sat, 21 Mar 2015 15:49:38 -0500
parents 5fac2769a159
children
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, TOYFLAG_NOFORK))

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

#include "toys.h"

void true_main(void)
{
  return;
}