summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGlenn L McGrath2003-09-24 03:22:57 +0000
committerGlenn L McGrath2003-09-24 03:22:57 +0000
commiteebcc1d98a9901ff69ffb97ba99bccd36666000f (patch)
treead1e21191b4aef5ff0c0fa9c30717e77d023cc5d /include
parentd72e34c7524a947ba004afff91272c27549b3085 (diff)
downloadbusybox-eebcc1d98a9901ff69ffb97ba99bccd36666000f.zip
busybox-eebcc1d98a9901ff69ffb97ba99bccd36666000f.tar.gz
Add the "install" applet, move get_ug_id to libbb as its used by chown,
chgrp and install.
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/libbb.h1
-rw-r--r--include/usage.h12
3 files changed, 16 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 0b65266..b1425fa 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -283,6 +283,9 @@
#ifdef CONFIG_INSMOD
APPLET(insmod, insmod_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
#endif
+#ifdef CONFIG_INSTALL
+ APPLET(install, install_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
+#endif
#ifdef CONFIG_IP
APPLET(ip, ip_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
diff --git a/include/libbb.h b/include/libbb.h
index a6ccff4..2bb5ce0 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -467,5 +467,6 @@ extern void print_login_prompt(void);
extern void vfork_daemon_rexec(int argc, char **argv, char *foreground_opt);
extern void get_terminal_width_height(int fd, int *width, int *height);
+extern unsigned long get_ug_id(const char *s, long (*my_getxxnam)(const char *));
#endif /* __LIBCONFIG_H__ */
diff --git a/include/usage.h b/include/usage.h
index ba8fdde..ba808d3 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1239,6 +1239,18 @@
USAGE_INSMOD_MAP("\t-m\tOutput load map to stdout") \
"\t-x\tdo not export externs\n"
+#define install_trivial_usage \
+ "[cgmops] [sources] <dest|directory>"
+#define install_full_usage \
+ "copy files and set attributes\n\n" \
+ "Options:\n" \
+ "\t-c\tcopy the file, default\n" \
+ "\t-g\tset group ownership\n" \
+ "\t-m\tset permission modes\n" \
+ "\t-o\tset ownership\n" \
+ "\t-p\tpreserve date\n" \
+ "\t-s\tstrip symbol tables\n"
+
#define ip_trivial_usage \
"[ OPTIONS ] { address | link | route | tunnel } { COMMAND | help }"
#define ip_full_usage \