Hello, allocating pseudo-terminals in a portable way is a nightmare. I tried to study Expect source code, but the operation is so messy and so unportable (#ifdefs abound) that the code is difficult to read and understand.
I am developing the GNU Source Installer project; basically I am rewriting the whole from scratch building a C library (libsrcinst) which should drop the tcl/libexpect dependency. The only Expect feature I still need to replace in libsrcinst is the ability to launch a process in a custom pty, as to inject username and password information for su (which takes input from the terminal). I do not need any other expect features. It would be nice if gnulib included portable replacements for GNU C library functions getpt, grantpt, unlockpt, ptsname, ptsname_r, openpty, forkpty, so I could use them and integrate them in the build system with the autotools. If you have any other suggestions on how to portably (portable EQU working with modern Unices) inject su with a password, please share. Thanks, CLaudio __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib