PTY

Roumen Petrov roumen.petrov at skalasoft.com
Thu Feb 1 00:07:08 EST 2001


OPPS this no_dev_ptmx=1 is obsolete for linux kernel 2.2.x

*-*-linux*)
	no_dev_ptmx=1
	check_for_libcrypt_later=1


In attachment is my patch for PTY defines
I remove in configure.in check for function "openpty", "_getpty" and for files 
"/dev/ptmx", "/dev/ptc" and HARD CODE no_dev_ptmx=1 with this code :

AC_MSG_CHECKING([for PTYs])
AC_MSG_RESULT()
AC_CHECK_FUNC(openpty,
   AC_DEFINE(HAVE_OPENPTY),
   AC_CHECK_FUNC(_getpty,
     AC_DEFINE(HAVE__GETPTY),
     AC_CHECK_FILE("/dev/ptmx",
       AC_DEFINE(HAVE_DEV_PTMX),
       AC_CHECK_FILE("/dev/ptc",
         AC_DEFINE_UNQUOTED(HAVE_DEV_PTS_AND_PTC),
	AC_MSG_ERROR(No PTY support for your system)
       )
     )
   )
)
AC_MSG_RESULT(OpenSSH support your PTY)

--------------------------
For linux user who want to use /dev/ptmx :
undef HAVE_OPENPTY and add -D_GNU_SOURCE to CFLAGS.
--------------------------

What is more portable: openpty () method or /dev/ptmx ?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.in.patch.gz
Type: application/gzip
Size: 1374 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20010131/a9fdd795/attachment.bin 


More information about the openssh-unix-dev mailing list