[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] pty/tty functions for BSD too
From: |
Jamie Lokier |
Subject: |
Re: [Qemu-devel] pty/tty functions for BSD too |
Date: |
Mon, 18 Aug 2008 20:42:39 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Blue Swirl wrote:
> And ptsname() is used to get the pty name, which uses either hard
> coded buffer length of _PATH_DEVPTS or _PATH_TTY:
> http://sourceware.org/cgi-bin/cvsweb.cgi/libc/sysdeps/unix/sysv/linux/ptsname.c?rev=1.15&content-type=text/x-cvsweb-markup&cvsroot=glibc
>
> OpenBSD forces the name to be in format "/dev/ptyXX":
> http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libutil/pty.c?rev=1.15&content-type=text/x-cvsweb-markup
>
> NetBSD is similar, except also /dev/ttyXX is possible:
> http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libutil/pty.c?rev=1.29&content-type=text/x-cvsweb-markup
Other platforms use slightly longer names, but I've never heard of one
that wouldn't fit into PATH_MAX - assuming PATH_MAX is sane.
I'd still use ptsname()/ptsname_r() when available though.
-- Jamie
- [Qemu-devel] pty/tty functions for BSD too, Samuel Thibault, 2008/08/18
- Re: [Qemu-devel] pty/tty functions for BSD too, Anthony Liguori, 2008/08/18
- Re: [Qemu-devel] pty/tty functions for BSD too, Samuel Thibault, 2008/08/18
- Re: [Qemu-devel] pty/tty functions for BSD too, Blue Swirl, 2008/08/18
- Re: [Qemu-devel] pty/tty functions for BSD too, Daniel P. Berrange, 2008/08/18
- Re: [Qemu-devel] pty/tty functions for BSD too, Blue Swirl, 2008/08/18
- Re: [Qemu-devel] pty/tty functions for BSD too, Blue Swirl, 2008/08/18
- Re: [Qemu-devel] pty/tty functions for BSD too, Daniel P. Berrange, 2008/08/18
- Re: [Qemu-devel] pty/tty functions for BSD too,
Jamie Lokier <=
- Re: [Qemu-devel] pty/tty functions for BSD too, Bernhard Reutner-Fischer, 2008/08/19
- Re: [Qemu-devel] pty/tty functions for BSD too, François Revol, 2008/08/19
- Re: [Qemu-devel] pty/tty functions for BSD too, Bernhard Reutner-Fischer, 2008/08/19
- Re: [Qemu-devel] pty/tty functions for BSD too, Samuel Thibault, 2008/08/19
- Re: [Qemu-devel] pty/tty functions for BSD too, Klaus Heinz, 2008/08/19
- Re: [Qemu-devel] pty/tty functions for BSD too, Blue Swirl, 2008/08/21
- Re: [Qemu-devel] pty/tty functions for BSD too, Todd T. Fries, 2008/08/19