From 0aa307456bfc692ae09ce4dab8337184c83b2680 Mon Sep 17 00:00:00 2001 From: vda Date: Wed, 22 Nov 2006 15:54:52 +0000 Subject: 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 --- libbb/xfuncs.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libbb') 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) return ret; } +/* +int ndelay_off(int fd) +{ + return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) & ~O_NONBLOCK); +} +*/ +// Turn on nonblocking I/O on a fd +int ndelay_on(int fd) +{ + return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) | O_NONBLOCK); +} + // Die with an error message if we can't write the entire buffer. void xwrite(int fd, void *buf, size_t count) { -- cgit v1.2.3-55-g6feb