Messages in this thread | | | Subject | Re: pty pairs in POSIX with devpts | From | Ulrich Drepper <> | Date | 16 Apr 1998 15:16:52 -0700 |
| |
pw@dancer.ca.sandia.gov (Pete Wyckoff) writes:
> I've tried using the devpts filesystem and "/dev/pts/<minor>" for opening > the slave, which seems to work fine, but wonder if I should trust that > it'll be common for users to have /dev/pts mounted, with the correct > permissions. (It's still experimental in late 2.1 kernels.)
Use openpty() (in libutil). It will use whatever method is available. In glibc 2.1 this means, it'll use the /dev/pts method if the kernel supports it.
-- Uli ---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA Cygnus Solutions `--' drepper at cygnus.com `------------------------
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |