b03601a671
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_referred_via in fhandler_termios. 2) Add new argument, which has dev_t value referred by open(), for constructors of fhandler_pty_slave and fhandler_pty_master to set the value of dev_referred_via. 3) Set st_rdev using dev_referred_via in fhandler_termios::fstat() if it is available. Reviewed-by: Corinna Vinschen <corinna@vinschen.de> Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp> |
||
---|---|---|
.. | ||
base.cc | ||
clipboard.cc | ||
console.cc | ||
cygdrive.cc | ||
dev.cc | ||
dev_fd.cc | ||
disk_file.cc | ||
dsp.cc | ||
fifo.cc | ||
floppy.cc | ||
mqueue.cc | ||
netdrive.cc | ||
nodevice.cc | ||
null.cc | ||
pipe.cc | ||
proc.cc | ||
process.cc | ||
process_fd.cc | ||
procnet.cc | ||
procsys.cc | ||
procsysvipc.cc | ||
pty.cc | ||
random.cc | ||
raw.cc | ||
registry.cc | ||
serial.cc | ||
signalfd.cc | ||
socket.cc | ||
socket_inet.cc | ||
socket_local.cc | ||
socket_unix.cc | ||
tape.cc | ||
termios.cc | ||
timerfd.cc | ||
virtual.cc | ||
windows.cc | ||
zero.cc |