Matt Kraai | 258bd3d | 2001-10-24 19:00:20 +0000 | [diff] [blame] | 1 | /* vi: set sw=4 ts=4: */ |
| 2 | /* |
| 3 | * Mini true implementation for busybox |
| 4 | * |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 5 | * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
Matt Kraai | 258bd3d | 2001-10-24 19:00:20 +0000 | [diff] [blame] | 6 | * |
Denys Vlasenko | 0ef64bd | 2010-08-16 20:14:46 +0200 | [diff] [blame] | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
Matt Kraai | 258bd3d | 2001-10-24 19:00:20 +0000 | [diff] [blame] | 8 | */ |
| 9 | |
Manuel Novoa III | cad5364 | 2003-03-19 09:13:01 +0000 | [diff] [blame] | 10 | /* BB_AUDIT SUSv3 compliant */ |
| 11 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/true.html */ |
Matt Kraai | 258bd3d | 2001-10-24 19:00:20 +0000 | [diff] [blame] | 12 | |
Pere Orga | 3442538 | 2011-03-31 14:43:25 +0200 | [diff] [blame] | 13 | //usage:#define true_trivial_usage |
| 14 | //usage: "" |
| 15 | //usage:#define true_full_usage "\n\n" |
| 16 | //usage: "Return an exit code of TRUE (0)" |
| 17 | //usage: |
| 18 | //usage:#define true_example_usage |
| 19 | //usage: "$ true\n" |
| 20 | //usage: "$ echo $?\n" |
| 21 | //usage: "0\n" |
| 22 | |
Denis Vlasenko | b6adbf1 | 2007-05-26 19:00:18 +0000 | [diff] [blame] | 23 | #include "libbb.h" |
Matt Kraai | 258bd3d | 2001-10-24 19:00:20 +0000 | [diff] [blame] | 24 | |
Denis Vlasenko | 99912ca | 2007-04-10 15:43:37 +0000 | [diff] [blame] | 25 | /* This is a NOFORK applet. Be very careful! */ |
| 26 | |
Denis Vlasenko | 9b49a5e | 2007-10-11 10:05:36 +0000 | [diff] [blame] | 27 | int true_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
Denis Vlasenko | a60f84e | 2008-07-05 09:18:54 +0000 | [diff] [blame] | 28 | int true_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) |
Matt Kraai | 258bd3d | 2001-10-24 19:00:20 +0000 | [diff] [blame] | 29 | { |
| 30 | return EXIT_SUCCESS; |
| 31 | } |