is-cygwin-tty check
Mihail Konev
k.mvc@ya.ru
Sat Nov 12 11:08:00 GMT 2016
The first word was allowed to be [a-z0-9]* to allow for any future cygwin fork.
Sticking to cygwin/msys.
Now pipe name would be checked for being
(cygwin|msys)-[a-z0-9]{16}-pty[0-9]+-(to|from)-master
Should the "to-master-cyg" pipe be considered tty?
Assuming that "master-ctl" and "echoloop" do not.
Also, there are
winsup/cygwin/dtable.cc: char std[3][sizeof ("/dev/ptyNNNN")];
winsup/cygwin/fhandler_tty.cc: char buf[sizeof ("opened pty master for ptyNNNNNNNNNNN")];
winsup/cygwin/fhandler_tty.cc: char pipename[sizeof("ptyNNNN-to-master-cyg")];
winsup/cygwin/tty.cc: char pipename[sizeof("ptyNNNN-from-master")];
Should the "pty[0-9]+" be "pty[0-9]{1,4}" ?
More information about the Cygwin-developers
mailing list