Re: posix_openpt
Jorge Almeida <[email protected]> Tue, 24 Apr 2012 09:31:34 +0100
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Message-ID | <CAKpSnpJkMw2QA_LpehWpxJPsfTxFXqZYyRyAundLhUtrF4W-zw@mail.gmail.com> |
On Tue, Apr 24, 2012 at 7:12 AM, Felix von Leitner <[email protected]> wrote: >> Doesn't dietlibc support it? Or am I missing something? >> openpty() is supported, but isn't it deprecated? > > I never heard of posix_openpty. What is the difference? > I don't even have a manpage for it. Why would openpty be deprecated? > > Felix It's posix_openpt, not posix_openpty. It exists in ArchLinux and in Debian (probably in all other linux distros). man(3) openpty says it is not POSIX but a BSD function. I was somewhat surprised, given your dislike of *BSD :) man(3) posix_openpty says in NOTES how it can be implemented. The usage of posix_openpty is associated with grantpt, ptsname and unlockpt, which you have in libugly/. So, the interfaces for posix_openpty and openpty are different, and I need to decide which one to use (comments about this would be appreciated), this being my first attempt to mess with ttys. The deprecated talk comes from man (7) pty. Maybe I misunderstood, and "BSD pseudoterminals being deprecated" doesn't equal "openpty() being deprecated". Thanks Jorge