This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: posix_openpt vs getpt??


One thing I'm unsure of: the Linux manpage says 

It is equivalent to

           open("/dev/ptmx", O_RDWR | O_NOCTTY);

But the Linux implementation is

int fd = __posix_openpt (O_RDWR);


Is getpt supposed to set the controlling tty or not?  Since the Linux
behavior has been not to set O_NOCTTY since its introduction in 1998, I
guess applications assumes !O_NOCTTY and it's the manpage which needs to
be fixed?

Samuel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]