Re: port 'openpty' to all Unix platforms

2010-03-22 Thread Bruno Haible
Eric Blake wrote: > POSIX does not specify openpty, so this comment is misleading. Oops, you're right. Fixed: 2010-03-21 Bruno Haible Fix comments. * lib/forkpty.c (rpl_forkpty): Fix comment. * lib/openpty.c (rpl_openpty): Likewise. Reported by Eric Blake. --

Re: port 'openpty' to all Unix platforms

2010-03-22 Thread Eric Blake
On 03/21/2010 05:10 PM, Bruno Haible wrote: > -#if HAVE_DECL_OPENPTY > +#if HAVE_OPENPTY > + > +/* Provider a wrapper with the precise POSIX prototype. */ > # undef openpty > int > -rpl_openpty (int *amaster, int *aslave, char *name, struct termios const > *termp, > - struct winsize con

Re: port 'openpty' to all Unix platforms

2010-03-21 Thread Bruno Haible
And here's an update of the tests. 2010-03-21 Bruno Haible Tests for openpty: Make stricter. * tests/test-openpty.c (main): Add test of canonical processing and erase. * modules/openpty-tests (test_openpty_LDADD): Verify that PTY_LIB is defined. *** te

port 'openpty' to all Unix platforms

2010-03-21 Thread Bruno Haible
Hi, Here's an attempted implementation of openpty for all Unix platforms. It's tested to work fine on Solaris 10 and Solaris 8. The logic should also be in place for AIX, HP-UX, IRIX, but I can't test that. If it does not work on these platforms - there is a unit test -, please report it. 2010-0