diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2003-09-24 07:22:57 +0400 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2003-09-24 07:22:57 +0400 |
commit | eebcc1d98a9901ff69ffb97ba99bccd36666000f (patch) | |
tree | ad1e21191b4aef5ff0c0fa9c30717e77d023cc5d /include | |
parent | d72e34c7524a947ba004afff91272c27549b3085 (diff) |
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.h | 3 | ||||
-rw-r--r-- | include/libbb.h | 1 | ||||
-rw-r--r-- | include/usage.h | 12 |
3 files changed, 16 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index 0b65266f3..b1425fa81 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 a6ccff421..2bb5ce02d 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 ba8fdde84..ba808d39a 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 \ |