aboutsummaryrefslogtreecommitdiff
path: root/coreutils/basename.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/basename.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/basename.c')
-rw-r--r--coreutils/basename.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/coreutils/basename.c b/coreutils/basename.c
index ab0c972ed..ace0148c0 100644
--- a/coreutils/basename.c
+++ b/coreutils/basename.c
@@ -14,12 +14,6 @@
14 * 2) Don't check for options, as per SUSv3. 14 * 2) Don't check for options, as per SUSv3.
15 * 3) Save some space by using strcmp(). Calling strncmp() here was silly. 15 * 3) Save some space by using strcmp(). Calling strncmp() here was silly.
16 */ 16 */
17
18/* BB_AUDIT SUSv3 compliant */
19/* http://www.opengroup.org/onlinepubs/007904975/utilities/basename.html */
20
21//kbuild:lib-$(CONFIG_BASENAME) += basename.o
22
23//config:config BASENAME 17//config:config BASENAME
24//config: bool "basename" 18//config: bool "basename"
25//config: default y 19//config: default y
@@ -28,6 +22,13 @@
28//config: leaving just the filename itself. Enable this option if you wish 22//config: leaving just the filename itself. Enable this option if you wish
29//config: to enable the 'basename' utility. 23//config: to enable the 'basename' utility.
30 24
25//applet:IF_BASENAME(APPLET_NOFORK(basename, basename, BB_DIR_USR_BIN, BB_SUID_DROP, basename))
26
27//kbuild:lib-$(CONFIG_BASENAME) += basename.o
28
29/* BB_AUDIT SUSv3 compliant */
30/* http://www.opengroup.org/onlinepubs/007904975/utilities/basename.html */
31
31//usage:#define basename_trivial_usage 32//usage:#define basename_trivial_usage
32//usage: "FILE [SUFFIX]" 33//usage: "FILE [SUFFIX]"
33//usage:#define basename_full_usage "\n\n" 34//usage:#define basename_full_usage "\n\n"