Config feature DEVPTS defined and used in telnetd, by Pavel Roskin
diff --git a/docs/Configure.help b/docs/Configure.help
index 8ba638b..53cebd5 100644
--- a/docs/Configure.help
+++ b/docs/Configure.help
@@ -54,6 +54,14 @@
 CONFIG_FEATURE_DEVFS
   Enable if you want BusyBox to work with devfs.
 
+Enable devfs support
+CONFIG_FEATURE_DEVPTS
+  Enable if you want BusyBox to use Unix98 PTY support. If enabled,
+  busybox will use /dev/ptmx for the master side of the pseudoterminal
+  and /dev/pts/<number> for the slave side.  Otherwise, BSD style
+  /dev/ttyp<number> will be used. To use this option, you should have
+  devpts or devfs mounted.
+
 Clean up all memory before exiting
 CONFIG_FEATURE_CLEAN_UP
   As a size optimization, busybox by default does not cleanup memory
diff --git a/networking/telnetd.c b/networking/telnetd.c
index edc018a..d208319 100644
--- a/networking/telnetd.c
+++ b/networking/telnetd.c
@@ -1,4 +1,4 @@
-/* $Id: telnetd.c,v 1.1 2002/09/30 20:52:04 andersen Exp $
+/* $Id: telnetd.c,v 1.2 2002/11/10 22:26:19 bug1 Exp $
  *
  * Simple telnet server
  * Bjorn Wesen, Axis Communications AB (bjornw@axis.com)
@@ -156,7 +156,7 @@
 getpty(char *line)
 {
 	int p;
-#ifdef HAVE_DEVPTS_FS
+#ifdef CONFIG_FEATURE_DEVPTS
 	p = open("/dev/ptmx", 2);
 	if (p > 0) {
 		grantpt(p);
@@ -185,7 +185,7 @@
 			}
 		}
 	}
-#endif /* HAVE_DEVPTS_FS */
+#endif /* CONFIG_FEATURE_DEVPTS */
 	return -1;
 }
 
diff --git a/sysdeps/linux/config.in b/sysdeps/linux/config.in
index ca7d97d..dac74e8 100644
--- a/sysdeps/linux/config.in
+++ b/sysdeps/linux/config.in
@@ -14,6 +14,11 @@
 bool 'Support --install [-s] to install applet links at runtime' 	CONFIG_FEATURE_INSTALLER
 bool 'Enable locale support (system needs locale for this to work)'	CONFIG_LOCALE_SUPPORT
 bool 'Support for devfs'						CONFIG_FEATURE_DEVFS
+if [ "$CONFIG_FEATURE_DEVFS" = "y" ]; then
+  define_bool CONFIG_FEATURE_DEVPTS	y
+else
+  bool '  Support for Unix98 PTY filesystem'				CONFIG_FEATURE_DEVPTS
+fi
 bool 'Clean up all memory before exiting (usually not needed)'		CONFIG_FEATURE_CLEAN_UP
 bool 'Support for SUID/SGID handling'  					CONFIG_FEATURE_SUID
 if [ "$CONFIG_FEATURE_SUID" = "y" ]; then