On Fri, Sep 21, 2007 at 04:39:49PM +0200, Christoph Egger wrote:
char slave[PATH_MAX] ?
I think it's a reasonable assumption that no library function
will return (on any system out there) a path longer than PATH_MAX.
> if (openpty(&masterfd, &slavefd, NULL, NULL, NULL) < 0)
'ttyname(slavefd)' will do.