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.
This commit is contained in:
Denis Vlasenko
2006-11-22 15:54:52 +00:00
parent d6bbf99a8b
commit 75f8d080a2
7 changed files with 353 additions and 395 deletions

View File

@ -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)
{