lkml.org 
[lkml]   [1998]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: pty pairs in POSIX with devpts
From
Date
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

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.063 / U:0.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site