bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

request for new modules for portable pseudo-terminal allocation function


From: Claudio Fontana
Subject: request for new modules for portable pseudo-terminal allocation functions
Date: Wed, 14 Sep 2005 20:32:29 -0700 (PDT)

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 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]