[PATCH 2/2] Cygwin: fstat(): Fix st_rdev returned by fstat() for /dev/tty.

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Jul 7 10:10:54 GMT 2023


On Jul  7 12:34, Takashi Yano wrote:
> While st_rdev returned by fstat() for /dev/tty should be FH_TTY,
> the current cygwin1.dll returns FH_PTYS+minor or FH_CONS+minor.
> Similarly, fstat() does not return correct value for /dev/console,
> /dev/conout, /dev/conin or /dev/ptmx.
> 
> This patch fixes the issue by:
> 1) Introduce dev_refered_via in fhandler_termios.
                       ^
               dev_referred_via, please


Thanks,
Corinna


More information about the Cygwin-patches mailing list