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

Takashi Yano takashi.yano@nifty.ne.jp
Fri Jul 7 23:01:27 GMT 2023


On Fri, 7 Jul 2023 12:10:54 +0200
Corinna Vinschen wrote:
> 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

Thansk!

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>


More information about the Cygwin-patches mailing list