Hi Alfred, Simon, et al., FYI: There is now an openpty() replacement and a forkpty() replacement in gnulib, that are supposed to be portable to all significant Unix platforms. (It has been tested only on Solaris so far, so reports about success or failure on AIX, HP-UX, or IRIX would be welcome in bug-gnulib.)
Bruno