lkml.org 
[lkml]   [1999]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: devfs v136, ZIP disks and glibc-2.1.2
Date
>>>>> "Zack" == Zack Weinberg <zack@bitmover.com> writes:
> mfd = open("/dev/ptmx", O_RDWR);
> grantpt(mfd);
> unlockpt(mfd);
> sfd = open(ptsname(mfd), O_RDWR);

Hmm... Indeed, it makes the robust implementation awkward it seems.

Another question then: can it be any use at all to be able to open
/dev/ptmx if /dev/pts is not mounted ? Can one use a master pty
without ever opening the corresponding slave ?

If not, then the kernel could reject the open("/dev/ptmx") if
the file-system is not mounted (yeah, it sounds ugly as well, indeed).

Unless Jamie's `dup2' trick can be used, of course.


Stefan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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