aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-14 01:29:06 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-14 01:29:06 +0000
commitd32f7b0c9d494a1e8d515863c2bf07367dfd8e13 (patch)
tree4e90c9d364485ef13c2e429ab22b9b925d50ea04 /include
parenta8ce712c3cd70a63253f93a240bfe1650e7d6865 (diff)
downloadbusybox-w32-d32f7b0c9d494a1e8d515863c2bf07367dfd8e13.tar.gz
busybox-w32-d32f7b0c9d494a1e8d515863c2bf07367dfd8e13.tar.bz2
busybox-w32-d32f7b0c9d494a1e8d515863c2bf07367dfd8e13.zip
By popular request reinstate fakeidentd's standalone mode.
Since this is also needed for other applets like telnetd, introduce generic driver for such things. It even supports inetd-wait ('linger') mode, when inetd hands out listen socket to child and waits to it to die, instead of handing out accepted socket and continuing listening itself (nowait mode). Code growth ~200 bytes. NB: our inetd doesn't support wait mode yet (or mabe it is buggy). git-svn-id: svn://busybox.net/trunk/busybox@17275 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h2
-rw-r--r--include/usage.h22
2 files changed, 10 insertions, 14 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 4060498b8..c191dc2a0 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -278,6 +278,8 @@ extern int wait4pid(int pid);
278extern void xsetgid(gid_t gid); 278extern void xsetgid(gid_t gid);
279extern void xsetuid(uid_t uid); 279extern void xsetuid(uid_t uid);
280extern void xdaemon(int nochdir, int noclose); 280extern void xdaemon(int nochdir, int noclose);
281/* More clever/thorough xdaemon */
282extern void bb_sanitize_stdio(int daemonize);
281extern void xchdir(const char *path); 283extern void xchdir(const char *path);
282extern void xsetenv(const char *key, const char *value); 284extern void xsetenv(const char *key, const char *value);
283extern int xopen(const char *pathname, int flags); 285extern int xopen(const char *pathname, int flags);
diff --git a/include/usage.h b/include/usage.h
index 0275df3f0..2b51fad72 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -826,22 +826,16 @@
826 "\\( and \\) or null; if \\( and \\) are not used, they return the number\n" \ 826 "\\( and \\) or null; if \\( and \\) are not used, they return the number\n" \
827 "of characters matched or 0." 827 "of characters matched or 0."
828 828
829#if 0 /* bloaty */
830#define fakeidentd_trivial_usage \ 829#define fakeidentd_trivial_usage \
831 "[-b ip] [STRING]" 830 "[-fiw] [-b ADDR] [STRING]"
832#define fakeidentd_full_usage \ 831#define fakeidentd_full_usage \
833 "Return a set string to auth requests" \ 832 "Provide fake ident (auth) service" \
834 "\n\nOptions:\n" \ 833 "\n\nOptions:" \
835 " -b Bind to ip address\n" \ 834 "\n -f Run in foreground" \
836 " STRING The ident answer string (default is nobody)" 835 "\n -i Inetd mode" \
837#else /* inetd-only */ 836 "\n -w Inetd 'wait' mode" \
838#define fakeidentd_trivial_usage \ 837 "\n -b ADDR Bind to specified address" \
839 "[username]" 838 "\n STRING Ident answer string (default is 'nobody')"
840#define fakeidentd_full_usage \
841 "Return a (faked) ident response.\n" \
842 "This applet is meant to run from inetd.\n" \
843 "Optional argument is the username to return (default is 'nobody')."
844#endif
845 839
846#define false_trivial_usage \ 840#define false_trivial_usage \
847 "" 841 ""