aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-08-21 16:18:59 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-08-21 16:18:59 +0000
commit6e33165982a8ba691371185cb898643ec9e78ba6 (patch)
tree9b048f58d1c11600df69323327124425a2f78f63 /include
parentf55eed1a6ff910575e85e3bfa9cbae62039f8901 (diff)
downloadbusybox-w32-6e33165982a8ba691371185cb898643ec9e78ba6.tar.gz
busybox-w32-6e33165982a8ba691371185cb898643ec9e78ba6.tar.bz2
busybox-w32-6e33165982a8ba691371185cb898643ec9e78ba6.zip
Initial merge of all tinylogin applets that do not require crypt.
There is some optimization that can be done to better use libbb in these applets. There is also redundancy between stty and getty which could be eliminated. -Erik git-svn-id: svn://busybox.net/trunk/busybox@3318 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include')
-rw-r--r--include/applets.h16
-rw-r--r--include/usage.h41
2 files changed, 57 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index a26a06e21..41b783862 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -46,6 +46,12 @@
46#ifdef BB_TEST 46#ifdef BB_TEST
47 APPLET_NOUSAGE("[", test_main, _BB_DIR_USR_BIN) 47 APPLET_NOUSAGE("[", test_main, _BB_DIR_USR_BIN)
48#endif 48#endif
49#ifdef BB_ADDGROUP
50 APPLET(addgroup, addgroup_main, _BB_DIR_BIN)
51#endif
52#ifdef BB_ADDUSER
53 APPLET(adduser, adduser_main, _BB_DIR_BIN)
54#endif
49#ifdef BB_ADJTIMEX 55#ifdef BB_ADJTIMEX
50 APPLET(adjtimex, adjtimex_main, _BB_DIR_SBIN) 56 APPLET(adjtimex, adjtimex_main, _BB_DIR_SBIN)
51#endif 57#endif
@@ -104,6 +110,12 @@
104#ifdef BB_DEALLOCVT 110#ifdef BB_DEALLOCVT
105 APPLET(deallocvt, deallocvt_main, _BB_DIR_USR_BIN) 111 APPLET(deallocvt, deallocvt_main, _BB_DIR_USR_BIN)
106#endif 112#endif
113#ifdef BB_DELGROUP
114 APPLET(delgroup, delgroup_main, _BB_DIR_BIN)
115#endif
116#ifdef BB_DELUSER
117 APPLET(deluser, deluser_main, _BB_DIR_BIN)
118#endif
107#ifdef BB_DF 119#ifdef BB_DF
108 APPLET(df, df_main, _BB_DIR_BIN) 120 APPLET(df, df_main, _BB_DIR_BIN)
109#endif 121#endif
@@ -167,6 +179,9 @@
167#ifdef BB_GETOPT 179#ifdef BB_GETOPT
168 APPLET(getopt, getopt_main, _BB_DIR_BIN) 180 APPLET(getopt, getopt_main, _BB_DIR_BIN)
169#endif 181#endif
182#ifdef BB_GETTY
183 APPLET(getty, getty_main, _BB_DIR_SBIN)
184#endif
170#ifdef BB_GREP 185#ifdef BB_GREP
171 APPLET(grep, grep_main, _BB_DIR_BIN) 186 APPLET(grep, grep_main, _BB_DIR_BIN)
172#endif 187#endif
@@ -479,3 +494,4 @@
479}; 494};
480 495
481#endif 496#endif
497
diff --git a/include/usage.h b/include/usage.h
index 13759d23f..ac980bf8c 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1,3 +1,19 @@
1#define addgroup_trivial_usage \
2 "[OPTIONS] <group_name>"
3#define addgroup_full_usage \
4 "Adds a group to the system" \
5 "Options:\n" \
6 "\t-g\t\tspecify gid\n"
7
8#define adduser_trivial_usage \
9 "[OPTIONS] <user_name>"
10#define adduser_full_usage \
11 "Adds a user to the system" \
12 "Options:\n" \
13 "\t-h\t\thome directory\n" \
14 "\t-s\t\tshell\n" \
15 "\t-g\t\tGECOS string\n"
16
1#define adjtimex_trivial_usage \ 17#define adjtimex_trivial_usage \
2 "[-q] [-o offset] [-f frequency] [-p timeconstant] [-t tick]" 18 "[-q] [-o offset] [-f frequency] [-p timeconstant] [-t tick]"
3#define adjtimex_full_usage \ 19#define adjtimex_full_usage \
@@ -215,6 +231,15 @@
215#define deallocvt_full_usage \ 231#define deallocvt_full_usage \
216 "Deallocate unused virtual terminal /dev/ttyN" 232 "Deallocate unused virtual terminal /dev/ttyN"
217 233
234#define delgroup_trivial_usage \
235 "GROUP"
236#define delgroup_full_usage \
237 "Deletes group GROUP from the system"
238
239#define deluser_trivial_usage \
240 "USER"
241#define deluser_full_usage \
242 "Deletes user USER from the system"
218 243
219#ifdef BB_FEATURE_HUMAN_READABLE 244#ifdef BB_FEATURE_HUMAN_READABLE
220 #define USAGE_HUMAN_READABLE(a) a 245 #define USAGE_HUMAN_READABLE(a) a
@@ -533,6 +558,22 @@
533 " esac\n" \ 558 " esac\n" \
534 "done\n" 559 "done\n"
535 560
561#define getty_trivial_usage \
562 "getty [OPTIONS]... baud_rate,... line [termtype]"
563#define getty_full_usage \
564 "\nOpens a tty, prompts for a login name, then invokes /bin/login\n\n" \
565 "Options:\n" \
566 "\t-h\t\tEnable hardware (RTS/CTS) flow control.\n" \
567 "\t-i\t\tDo not display /etc/issue before running login.\n" \
568 "\t-L\t\tLocal line, so do not do carrier detect.\n" \
569 "\t-m\t\tGet baud rate from modem's CONNECT status message.\n" \
570 "\t-w\t\tWait for a CR or LF before sending /etc/issue.\n" \
571 "\t-l login_app\tInvoke login_app instead of /bin/login.\n" \
572 "\t-t timeout\tTerminate after timeout if no username is read.\n" \
573 "\t-I initstring\tSets the init string to send before anything else.\n" \
574 "\t-H login_host\tLog login_host into the utmp file as the hostname."
575
576
536#define grep_trivial_usage \ 577#define grep_trivial_usage \
537 "[-ihHnqvs] PATTERN [FILEs...]" 578 "[-ihHnqvs] PATTERN [FILEs...]"
538#define grep_full_usage \ 579#define grep_full_usage \