Re: ptsname() support (new ptys)

H. Peter Anvin (hpa@transmeta.com)
15 Jan 1998 02:14:22 GMT


Followup to: <Pine.SUN.3.96.980114160114.2451A-100000@amsterdam.lcs.mit.edu>
By author: "C. Scott Ananian" <cananian@lcs.mit.edu>
In newsgroup: linux.dev.kernel
>
> I have started the implementation of Unix98-style ptys for Linux. It's
> not terribly difficult; just another ioctl for ptsname, and /dev/ptmx is
> handled the same way /dev/tty and /dev/tty0 are (ie, device number rewrite
> on open).
>

I would also make the kernel create device nodes in /dev/pts/* and
chown() them to the right user. I would use the setgid bit on the
/dev/pts directory to make sure they end up in the right group.

>
> Here are my questions:
> 1) Who do I talk to write the ptsname function is glibc? [kernel support
> is only half the implementation.] I don't know who the glibc
> development team is, or where they hang out. =)

Check the linux-gcc list.

> 2) Where should the device number for /dev/ptmx go?
> I'd like to keep it with the other tty stuff, so I'm leaning towards
> an allocation in character device major 5...

That's probably the best. Contact me for an official assignment.

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables