diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-11-22 15:54:52 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-11-22 15:54:52 +0000 |
commit | 0aa307456bfc692ae09ce4dab8337184c83b2680 (patch) | |
tree | 21794599ef01c7603faff7efb1fcaf56868684c9 /libbb | |
parent | 6e9a452d0bc16107c2b56f2e8f44ae2cccbab209 (diff) | |
download | busybox-w32-0aa307456bfc692ae09ce4dab8337184c83b2680.tar.gz busybox-w32-0aa307456bfc692ae09ce4dab8337184c83b2680.tar.bz2 busybox-w32-0aa307456bfc692ae09ce4dab8337184c83b2680.zip |
telnetd: we were having telnetd with is ONLY inetd or ONLY standalone.
What if I need to have both?? This patch introduces
CONFIG_FEATURE_TELNETD_STANDALONE: y - both, n - only inetd.
git-svn-id: svn://busybox.net/trunk/busybox@16622 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/xfuncs.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index 44a551639..e6f4e3a48 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c | |||
@@ -110,6 +110,18 @@ int xopen3(const char *pathname, int flags, int mode) | |||
110 | return ret; | 110 | return ret; |
111 | } | 111 | } |
112 | 112 | ||
113 | /* | ||
114 | int ndelay_off(int fd) | ||
115 | { | ||
116 | return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) & ~O_NONBLOCK); | ||
117 | } | ||
118 | */ | ||
119 | // Turn on nonblocking I/O on a fd | ||
120 | int ndelay_on(int fd) | ||
121 | { | ||
122 | return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) | O_NONBLOCK); | ||
123 | } | ||
124 | |||
113 | // Die with an error message if we can't write the entire buffer. | 125 | // Die with an error message if we can't write the entire buffer. |
114 | void xwrite(int fd, void *buf, size_t count) | 126 | void xwrite(int fd, void *buf, size_t count) |
115 | { | 127 | { |