Weirdness in TTY & VT

From: Lundberg, Johannes <>
Date: Fri, 2 Sep 2016 17:12:12 -0700

I'm porting some Linux code and have some weird behavior.

In this (Linux) code fstat() and minor() is used on a /dev/tty file
descriptor to get a tty number to map to. In FreeBSD this returns a number
around 60-70 for st_rdev which means VT_ACTIVATE ioctl call will fail
because it only allows values 0-12.

Should not this be compatible with FreeBSD? If not, what is the FreeBSD way
to do this?

Is there some implementation missing in vt?



CONFIDENTIALITY NOTE: The information in this email is confidential
and intended solely for the addressee.
Disclosure, copying, distribution or any other action of use of this
email by person other than intended recipient, is prohibited.
If you are not the intended recipient and have received this email in
error, please destroy the original message.
Received on Fri Sep 02 2016 - 22:12:29 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:07 UTC