svn commit: trunk/uClibc/extra/Configs

aldot at uclibc.org aldot at uclibc.org
Sat Jun 7 15:19:19 UTC 2008


Author: aldot
Date: 2008-06-07 08:19:18 -0700 (Sat, 07 Jun 2008)
New Revision: 22263

Log:
- if UNIX98PTY_ONLY is not set then we're in legacy land anyway which needs
  UCLIBC_HAS_GETPT unconditionally for __libc_ptyname{1,2}[] and related bloat.


Modified:
   trunk/uClibc/extra/Configs/Config.in


Changeset:
Modified: trunk/uClibc/extra/Configs/Config.in
===================================================================
--- trunk/uClibc/extra/Configs/Config.in	2008-06-07 15:11:08 UTC (rev 22262)
+++ trunk/uClibc/extra/Configs/Config.in	2008-06-07 15:19:18 UTC (rev 22263)
@@ -558,15 +558,31 @@
 
 	  If unsure, just answer Y.
 
+config ASSUME_DEVPTS
+	bool "Assume that /dev/pts is a devpts or devfs file system"
+	default y
+	depends on UCLIBC_HAS_PTY
+	help
+	  Enable this if /dev/pts is on a devpts or devfs filesystem.  Both
+	  these filesystems automatically manage permissions on the /dev/pts
+	  devices.  You may need to mount your devpts or devfs filesystem on
+	  /dev/pts for this to work.
+
+	  Most people should answer Y.
+
 config UNIX98PTY_ONLY
 	bool "Support only Unix 98 PTYs"
 	default y
 	depends on UCLIBC_HAS_PTY
 	help
 	  If you want to support only Unix 98 PTYs enable this.  Some older
-	  applications may need this disabled.  For most current programs,
-	  you can generally answer Y.
+	  applications may need this disabled and will thus use legacy BSD
+	  style PTY handling which is more complex and also bigger than
+	  Unix 98 PTY handling.
 
+	  For most current programs, you can generally answer Y.
+
+if UNIX98PTY_ONLY
 config UCLIBC_HAS_GETPT
 	bool "Support getpt() (glibc-compat)"
 	default n
@@ -578,19 +594,14 @@
 	  Either use posix_openpt() or just open /dev/ptmx yourself.
 
 	  If unsure, just say N.
+endif
 
-config ASSUME_DEVPTS
-	bool "Assume that /dev/pts is a devpts or devfs file system"
-	default y
-	depends on UCLIBC_HAS_PTY
-	help
-	  Enable this if /dev/pts is on a devpts or devfs filesystem.  Both
-	  these filesystems automatically manage permissions on the /dev/pts
-	  devices.  You may need to mount your devpts or devfs filesystem on
-	  /dev/pts for this to work.
+if !UNIX98PTY_ONLY
+# Have to use __libc_ptyname{1,2}[] and related bloat
+config UCLIBC_HAS_GETPT
+	def_bool y
+endif
 
-	  Most people should answer Y.
-
 config UCLIBC_HAS_TM_EXTENSIONS
 	bool "Support 'struct tm' timezone extension fields"
 	default y




More information about the uClibc-cvs mailing list