/dev/pts is fine but where is ptsname(3)?

Tigran Aivazian (tigran@aivazian.demon.co.uk)
Mon, 21 Dec 1998 12:40:24 +0000 (GMT)


Hello guys,

I get a master fd from open("/dev/ptmx", O_RDWR) and the /dev/pts/0 node is
created happily but how do I discover that it is mine? I.e. I expect
ptsname(fdm) to return the path which I can then open.
But there is no ptsname() nore is there grantpt(). What am I to do?

My system is glibc2 (as supplied with Red Hat 5.1)

Regards,
Tigran A. Aivazian, http://www.aivazian.demon.co.uk/

-
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/