Re: libc: missing POSIX functions

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Christoph Egger <Christoph_Egger@...>
Cc: <misc@...>
Date: Friday, September 21, 2007 - 4:50 pm

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.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: libc: missing POSIX functions, Adi, (Fri Sep 21, 4:50 pm)