summaryrefslogtreecommitdiff
path: root/coreutils/yes.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2016-11-29 11:26:45 +0000
committerRon Yorston <rmy@pobox.com>2016-11-29 11:26:45 +0000
commitbb8d79eadbba1942dbdb9f9cee5c47833afe269f (patch)
treeb8c517e9ca895d60d7227aef7177b6291df5e2cd /coreutils/yes.c
parent9fa1e4990e655a85025c9d270a1606983e375e47 (diff)
parent7d877fc9312a742b06125927bb1d34bd35398c6c (diff)
downloadbusybox-w32-bb8d79eadbba1942dbdb9f9cee5c47833afe269f.tar.gz
busybox-w32-bb8d79eadbba1942dbdb9f9cee5c47833afe269f.tar.bz2
busybox-w32-bb8d79eadbba1942dbdb9f9cee5c47833afe269f.zip
Merge branch 'busybox' into merge
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 c3d3e8288..ce6a90fc0 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{