[BusyBox-cvs] busybox/include applets.h, 1.104, 1.105 libbb.h, 1.112, 1.113 usage.h, 1.167, 1.168

Glenn McGrath bug1 at busybox.net
Wed Sep 24 03:22:59 UTC 2003


Update of /var/cvs/busybox/include
In directory winder:/tmp/cvs-serv18390/include

Modified Files:
	applets.h libbb.h usage.h 
Log Message:
Add the "install" applet, move get_ug_id to libbb as its used by chown, 
chgrp and install.


Index: applets.h
===================================================================
RCS file: /var/cvs/busybox/include/applets.h,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -d -r1.104 -r1.105
--- applets.h	29 Aug 2003 07:38:56 -0000	1.104
+++ applets.h	24 Sep 2003 03:22:55 -0000	1.105
@@ -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

Index: libbb.h
===================================================================
RCS file: /var/cvs/busybox/include/libbb.h,v
retrieving revision 1.112
retrieving revision 1.113
diff -u -d -r1.112 -r1.113
--- libbb.h	15 Sep 2003 08:33:45 -0000	1.112
+++ libbb.h	24 Sep 2003 03:22:55 -0000	1.113
@@ -467,5 +467,6 @@
 
 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__ */

Index: usage.h
===================================================================
RCS file: /var/cvs/busybox/include/usage.h,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -d -r1.167 -r1.168
--- usage.h	12 Sep 2003 10:58:54 -0000	1.167
+++ usage.h	24 Sep 2003 03:22:55 -0000	1.168
@@ -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 \




More information about the busybox-cvs mailing list