This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: is-cygwin-tty check


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}" ?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]