aboutsummaryrefslogtreecommitdiff
path: root/toys/toylist.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-11-27 00:57:42 -0600
committerRob Landley <rob@landley.net>2007-11-27 00:57:42 -0600
commitc15b3edf55ebd915b234e2ee6280a19874a052f9 (patch)
tree43d6c9c5bce6f6b7200ebb0aa84479248d1596b5 /toys/toylist.h
parent57389ec1d8f5b32e5de97f0f557e5f5c5b7054bb (diff)
downloadtoybox-c15b3edf55ebd915b234e2ee6280a19874a052f9.tar.gz
Patch from Charlie Shepherd to add basename and dirname. (Fixed up to apply.)
Diffstat (limited to 'toys/toylist.h')
-rw-r--r--toys/toylist.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/toys/toylist.h b/toys/toylist.h
index a55a56a6..87bffed7 100644
--- a/toys/toylist.h
+++ b/toys/toylist.h
@@ -105,11 +105,13 @@ NEWTOY(toybox, NULL, 0)
// The rest of these are alphabetical, for binary search.
+USE_BASENAME(NEWTOY(basename, "<1>2", TOYFLAG_BIN))
USE_BZCAT(NEWTOY(bzcat, "", TOYFLAG_USR|TOYFLAG_BIN))
USE_CATV(NEWTOY(catv, "vte", TOYFLAG_USR|TOYFLAG_BIN))
USE_COUNT(NEWTOY(count, "", TOYFLAG_USR|TOYFLAG_BIN))
USE_TOYSH(NEWTOY(cd, NULL, TOYFLAG_NOFORK))
USE_DF(NEWTOY(df, "Pkt*a", TOYFLAG_USR|TOYFLAG_SBIN))
+USE_DIRNAME(NEWTOY(dirname, "<1>1", TOYFLAG_BIN))
USE_DMESG(NEWTOY(dmesg, "s#n#c", TOYFLAG_BIN))
USE_ECHO(NEWTOY(echo, "+en", TOYFLAG_BIN))
USE_TOYSH(NEWTOY(exit, NULL, TOYFLAG_NOFORK))