aboutsummaryrefslogtreecommitdiff
path: root/coreutils/yes.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/yes.c')
-rw-r--r--coreutils/yes.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/coreutils/yes.c b/coreutils/yes.c
index 5d799f09b..81d875589 100644
--- a/coreutils/yes.c
+++ b/coreutils/yes.c
@@ -6,23 +6,30 @@
6 * 6 *
7 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 7 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
8 */ 8 */
9
10/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */
11
12/* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org) 9/* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org)
13 * 10 *
14 * Size reductions and removed redundant applet name prefix from error messages. 11 * Size reductions and removed redundant applet name prefix from error messages.
15 */ 12 */
13//config:config YES
14//config: bool "yes"
15//config: default y
16//config: help
17//config: yes is used to repeatedly output a specific string, or
18//config: the default string `y'.
16 19
17#include "libbb.h" 20//applet:IF_YES(APPLET_NOFORK(yes, yes, BB_DIR_USR_BIN, BB_SUID_DROP, yes))
18 21
19/* This is a NOFORK applet. Be very careful! */ 22//kbuild:lib-$(CONFIG_YES) += yes.o
23
24/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */
20 25
21//usage:#define yes_trivial_usage 26//usage:#define yes_trivial_usage
22//usage: "[STRING]" 27//usage: "[STRING]"
23//usage:#define yes_full_usage "\n\n" 28//usage:#define yes_full_usage "\n\n"
24//usage: "Repeatedly output a line with STRING, or 'y'" 29//usage: "Repeatedly output a line with STRING, or 'y'"
25 30
31#include "libbb.h"
32
26int yes_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 33int yes_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
27int yes_main(int argc UNUSED_PARAM, char **argv) 34int yes_main(int argc UNUSED_PARAM, char **argv)
28{ 35{