[PATCH] Cygwin: console: Fix a bug from comparison between int and DWORD.

2022-03-01 Thread Takashi Yano
--- winsup/cygwin/fhandler_console.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 7e51ea19e..7693ab8e4 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@

Re: [PATCH] winsup: enable maintainer mode support

2022-03-01 Thread Mike Frysinger
On 01 Mar 2022 14:26, Jon Turney wrote: > On 01/03/2022 00:54, Mike Frysinger wrote: > > We do this in newlib & libgloss, so enable in winsup too for consistency. > > --- > > winsup/configure.ac | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/winsup/configure.ac

[PATCH] Cygwin: console: Prevent special keys processing from drop.

2022-03-01 Thread Takashi Yano
- There was a potential risk to drop special key processing when process_input_messsage() is called intermittently. This patch fixes the issue. --- winsup/cygwin/fhandler.h | 2 ++ winsup/cygwin/fhandler_console.cc | 22 +- 2 files changed, 15 insertions(+), 9

[PATCH] Cygwin: console: Stop to create struct instance which is not needed.

2022-03-01 Thread Takashi Yano
- In fhandler_console::cons_master_thread(), a struct which has only a static function is used. In this case, struct instance is not necessary. So with this patch, the static function is invoked without creating instance. --- winsup/cygwin/fhandler_console.cc | 18 +- 1 file

Cygwin sysconf.cc

2022-03-01 Thread Brian Inglis
Interested in a patch for sysconf.cc to return: _SC_TZNAME_MAX => TZNAME_MAX and _SC_MONOTONIC_CLOCK => _POSIX_MONOTONIC_CLOCK? -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader

Re: [PATCH] winsup: enable maintainer mode support

2022-03-01 Thread Jon Turney
On 01/03/2022 00:54, Mike Frysinger wrote: We do this in newlib & libgloss, so enable in winsup too for consistency. --- winsup/configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/winsup/configure.ac b/winsup/configure.ac index b8d2100dbe90..6c6e1cb0893a 100644 ---

[PATCH] Cygwin: pty: Rename some functions/variables with the name *pcon*.

2022-03-01 Thread Takashi Yano
- With this patch, some pty functions/variables have been renamed so that the name *pcon* is not used for those that are called even when the pseudo console is not active. --- winsup/cygwin/fhandler.h | 14 +- winsup/cygwin/fhandler_tty.cc | 314 ++

[PATCH] Cygwin: pty: Reorganize the code path of setting up and closing pcon.

2022-03-01 Thread Takashi Yano
- This patch reorganizes the code path of setting-up and cleaning-up of the pseudo console to improve readability and maintainability of pty code. --- winsup/cygwin/fhandler.h | 10 +- winsup/cygwin/fhandler_termios.cc | 2 +- winsup/cygwin/fhandler_tty.cc | 283

[PATCH] Cygwin: pty: Avoid cutting the branch the pty master is sitting on.

2022-03-01 Thread Takashi Yano
- When Ctrl-C terminates a non-cygwin process on a pseudo console, pty master attaches to the pseudo console first, and send CTRL_C_EVENT. If the non-cygwin process closes the pseudo console before the pty master calls FreeConsole(), the pty master process will crash. With this patch, pty