diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 7 | ||||
-rw-r--r-- | include/usage.h | 10 |
2 files changed, 12 insertions, 5 deletions
diff --git a/include/libbb.h b/include/libbb.h index ed1d780fd..adfeca590 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -291,6 +291,13 @@ extern char *bb_getug(char *buffer, char *idname, long id, int bufsize, char pre | |||
291 | extern char *bb_getpwuid(char *name, long uid, int bufsize); | 291 | extern char *bb_getpwuid(char *name, long uid, int bufsize); |
292 | extern char *bb_getgrgid(char *group, long gid, int bufsize); | 292 | extern char *bb_getgrgid(char *group, long gid, int bufsize); |
293 | extern char *bb_askpass(int timeout, const char * prompt); | 293 | extern char *bb_askpass(int timeout, const char * prompt); |
294 | /* from chpst */ | ||
295 | struct bb_uidgid_t { | ||
296 | uid_t uid; | ||
297 | gid_t gid; | ||
298 | }; | ||
299 | extern unsigned uidgid_get(struct bb_uidgid_t*, const char* /*, unsigned*/); | ||
300 | |||
294 | 301 | ||
295 | extern int device_open(const char *device, int mode); | 302 | extern int device_open(const char *device, int mode); |
296 | 303 | ||
diff --git a/include/usage.h b/include/usage.h index 34b0566cd..c9e501903 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -1167,7 +1167,7 @@ USE_FEATURE_DATE_ISOFMT( \ | |||
1167 | #define httpd_trivial_usage \ | 1167 | #define httpd_trivial_usage \ |
1168 | "[-c <conf file>]" \ | 1168 | "[-c <conf file>]" \ |
1169 | USE_FEATURE_HTTPD_WITHOUT_INETD(" [-p <port>]") \ | 1169 | USE_FEATURE_HTTPD_WITHOUT_INETD(" [-p <port>]") \ |
1170 | USE_FEATURE_HTTPD_SETUID(" [-u user]") \ | 1170 | USE_FEATURE_HTTPD_SETUID(" [-u user[:grp]]") \ |
1171 | USE_FEATURE_HTTPD_BASIC_AUTH(" [-r <realm>]") \ | 1171 | USE_FEATURE_HTTPD_BASIC_AUTH(" [-r <realm>]") \ |
1172 | USE_FEATURE_HTTPD_AUTH_MD5(" [-m pass]") \ | 1172 | USE_FEATURE_HTTPD_AUTH_MD5(" [-m pass]") \ |
1173 | " [-h home]" \ | 1173 | " [-h home]" \ |
@@ -1176,12 +1176,12 @@ USE_FEATURE_DATE_ISOFMT( \ | |||
1176 | "Listens for incoming http server requests.\n\n" \ | 1176 | "Listens for incoming http server requests.\n\n" \ |
1177 | "Options:\n" \ | 1177 | "Options:\n" \ |
1178 | "\t-c FILE\t\tSpecifies configuration file. (default httpd.conf)\n" \ | 1178 | "\t-c FILE\t\tSpecifies configuration file. (default httpd.conf)\n" \ |
1179 | USE_FEATURE_HTTPD_WITHOUT_INETD("\t-p PORT\tServer port (default 80)\n") \ | 1179 | USE_FEATURE_HTTPD_WITHOUT_INETD("\t-p PORT\t\tServer port (default 80)\n") \ |
1180 | USE_FEATURE_HTTPD_SETUID("\t-u USER\tSet uid to USER after listening privileges port\n") \ | 1180 | USE_FEATURE_HTTPD_SETUID("\t-u USER[:GRP]\tSet uid/gid after binding to port\n") \ |
1181 | USE_FEATURE_HTTPD_BASIC_AUTH("\t-r REALM\tAuthentication Realm for Basic Authentication\n") \ | 1181 | USE_FEATURE_HTTPD_BASIC_AUTH("\t-r REALM\tAuthentication Realm for Basic Authentication\n") \ |
1182 | USE_FEATURE_HTTPD_AUTH_MD5("\t-m PASS\t\tCrypt PASS with md5 algorithm\n") \ | 1182 | USE_FEATURE_HTTPD_AUTH_MD5("\t-m PASS\t\tCrypt PASS with md5 algorithm\n") \ |
1183 | "\t-h HOME \tSpecifies http HOME directory (default ./)\n" \ | 1183 | "\t-h HOME\t\tSpecifies http HOME directory (default ./)\n" \ |
1184 | "\t-e STRING\tHtml encode STRING\n" \ | 1184 | "\t-e STRING\tHTML encode STRING\n" \ |
1185 | "\t-d STRING\tURL decode STRING" | 1185 | "\t-d STRING\tURL decode STRING" |
1186 | 1186 | ||
1187 | #define hwclock_trivial_usage \ | 1187 | #define hwclock_trivial_usage \ |