X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=coreutils%2Ftac.c;h=25e85f6f33c5cd45860045a0bf0247bcaa9977f8;hb=03ab212bff0fa7f51c0f75ee4be5db67184e41a2;hp=af70f3092522e5005abf1ed3d56e44c8f134b119;hpb=62a90cdd7435f09f4bb8673e8b7b213067f9d5cc;p=oweals%2Fbusybox.git diff --git a/coreutils/tac.c b/coreutils/tac.c index af70f3092..25e85f6f3 100644 --- a/coreutils/tac.c +++ b/coreutils/tac.c @@ -1,20 +1,31 @@ /* vi: set sw=4 ts=4: */ /* * tac implementation for busybox + * tac - concatenate and print files in reverse * * Copyright (C) 2003 Yang Xiaopeng * Copyright (C) 2007 Natanael Copa * Copyright (C) 2007 Tito Ragusa * - * Licensed under GPLv2, see file License in this tarball for details. - * + * Licensed under GPLv2, see file LICENSE in this source tree. */ - -/* tac - concatenate and print files in reverse */ - /* Based on Yang Xiaopeng's (yxp at hanwang.com.cn) patch * http://www.uclibc.org/lists/busybox/2003-July/008813.html */ +//config:config TAC +//config: bool "tac (3.9 kb)" +//config: default y +//config: help +//config: tac is used to concatenate and print files in reverse. + +//applet:IF_TAC(APPLET_NOEXEC(tac, tac, BB_DIR_USR_BIN, BB_SUID_DROP, tac)) + +//kbuild:lib-$(CONFIG_TAC) += tac.o + +//usage:#define tac_trivial_usage +//usage: "[FILE]..." +//usage:#define tac_full_usage "\n\n" +//usage: "Concatenate FILEs and print them in reverse" #include "libbb.h" @@ -26,7 +37,7 @@ struct lstring { }; int tac_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; -int tac_main(int argc ATTRIBUTE_UNUSED, char **argv) +int tac_main(int argc UNUSED_PARAM, char **argv) { char **name; FILE *f;