Pārlūkot izejas kodu

- 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.

Bernhard Reutner-Fischer 16 gadi atpakaļ
vecāks
revīzija
7e50fe1a55
1 mainītis faili ar 24 papildinājumiem un 13 dzēšanām
  1. 24 13
      extra/Configs/Config.in

+ 24 - 13
extra/Configs/Config.in

@@ -558,15 +558,31 @@ config UCLIBC_HAS_PTY
 
 	  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,18 +594,13 @@ config UCLIBC_HAS_GETPT
 	  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.
-
-	  Most people should answer Y.
+if !UNIX98PTY_ONLY
+# Have to use __libc_ptyname{1,2}[] and related bloat
+config UCLIBC_HAS_GETPT
+	def_bool y
+endif
 
 config UCLIBC_HAS_TM_EXTENSIONS
 	bool "Support 'struct tm' timezone extension fields"