aboutsummaryrefslogtreecommitdiff
path: root/coreutils/cal.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-11-23 14:46:56 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-11-23 14:46:56 +0100
commitaf3f42011628585cd5c8f5c1fd4b43f2e370a23d (patch)
tree125ee16d5080008fcf459ad55d91af1dcd488ef9 /coreutils/cal.c
parent5b966c6180c139fba6846d632fd9bc0c34a8e1bc (diff)
downloadbusybox-w32-af3f42011628585cd5c8f5c1fd4b43f2e370a23d.tar.gz
busybox-w32-af3f42011628585cd5c8f5c1fd4b43f2e370a23d.tar.bz2
busybox-w32-af3f42011628585cd5c8f5c1fd4b43f2e370a23d.zip
Convert all coreutils/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/cal.c')
-rw-r--r--coreutils/cal.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/coreutils/cal.c b/coreutils/cal.c
index 12c46b14f..af02608f0 100644
--- a/coreutils/cal.c
+++ b/coreutils/cal.c
@@ -6,17 +6,25 @@
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/* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org)
10 *
11 * Major size reduction... over 50% (>1.5k) on i386.
12 */
13//config:config CAL
14//config: bool "cal"
15//config: default y
16//config: help
17//config: cal is used to display a monthly calendar.
18
19//applet:IF_CAL(APPLET(cal, BB_DIR_USR_BIN, BB_SUID_DROP))
20
21//kbuild:lib-$(CONFIG_CAL) += cal.o
9 22
10/* BB_AUDIT SUSv3 compliant with -j and -y extensions (from util-linux). */ 23/* BB_AUDIT SUSv3 compliant with -j and -y extensions (from util-linux). */
11/* BB_AUDIT BUG: The output of 'cal -j 1752' is incorrect. The upstream 24/* BB_AUDIT BUG: The output of 'cal -j 1752' is incorrect. The upstream
12 * BB_AUDIT BUG: version in util-linux seems to be broken as well. */ 25 * BB_AUDIT BUG: version in util-linux seems to be broken as well. */
13/* http://www.opengroup.org/onlinepubs/007904975/utilities/cal.html */ 26/* http://www.opengroup.org/onlinepubs/007904975/utilities/cal.html */
14 27
15/* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org)
16 *
17 * Major size reduction... over 50% (>1.5k) on i386.
18 */
19
20//usage:#define cal_trivial_usage 28//usage:#define cal_trivial_usage
21//usage: "[-jy] [[MONTH] YEAR]" 29//usage: "[-jy] [[MONTH] YEAR]"
22//usage:#define cal_full_usage "\n\n" 30//usage:#define cal_full_usage "\n\n"