[PATCH 3/3] Cygwin: FIFO: temporarily keep a conv_handle in syscalls.cc:open

2021-02-18 Thread Ken Brown via Cygwin-patches
When a FIFO is opened, syscalls.cc:open always calls fstat on the newly-created fhandler_fifo. This results from a call to device_access_denied. To speed-up this fstat call, and therefore the open(2) call, use PC_KEEP_HANDLE when the fhandler is created. The resulting conv_handle is retained

[PATCH 2/3] Cygwin: fstat_helper: always use handle in call to get_file_attribute

2021-02-18 Thread Ken Brown via Cygwin-patches
Previously, the call to get_file_attribute for FIFOs set the first argument to NULL instead of the handle h returned by get_stat_handle, thereby forcing the file to be opened for fetching the security descriptor in get_file_sd(). This was done because h might have been a pipe handle rather than a

[PATCH 0/3] Fix fstat on FIFOs, part 2

2021-02-18 Thread Ken Brown via Cygwin-patches
The first patch fixes a bug, in which fstat on FIFOs sometimes used pipe handles instead of file handles. The second and third patches should improve the efficiency of fstat and open on FIFOs. Ken Brown (3): Cygwin: define fhandler_fifo::fstat Cygwin: fstat_helper: always use handle in call

[PATCH 1/3] Cygwin: define fhandler_fifo::fstat

2021-02-18 Thread Ken Brown via Cygwin-patches
Previously fstat on a FIFO would call fhandler_base::fstat. The latter is not appropriate if fhandler_fifo::open has already been called (and O_PATH is not set), for the following reason. If a FIFO has been opened as a writer or duplexer, then it has an io_handle that is a pipe handle rather

[PATCH] Cygwin: pty: Make tty setting NOFLSH work.

2021-02-18 Thread Takashi Yano via Cygwin-patches
- With this patch, "stty noflsh" gets working in pty. --- winsup/cygwin/fhandler_termios.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/fhandler_termios.cc b/winsup/cygwin/fhandler_termios.cc index e8daf946b..ae35fe894 100644 ---

[PATCH] Cygwin: pty: Reflect tty settings to pseudo console mode.

2021-02-18 Thread Takashi Yano via Cygwin-patches
- With this patch, tty setting such as echo, icanon, isig and onlcr are reflected to pseudo console mode. --- winsup/cygwin/fhandler_tty.cc | 27 +++ 1 file changed, 27 insertions(+) diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index

[PATCH] Cygwin: Add console fix regarding Ctrl-Z etc. to release notes.

2021-02-18 Thread Takashi Yano via Cygwin-patches
--- winsup/cygwin/release/3.2.0 | 5 + 1 file changed, 5 insertions(+) diff --git a/winsup/cygwin/release/3.2.0 b/winsup/cygwin/release/3.2.0 index d02d16863..d69ed446c 100644 --- a/winsup/cygwin/release/3.2.0 +++ b/winsup/cygwin/release/3.2.0 @@ -9,6 +9,11 @@ What's new: thrd_detach,

[PATCH 2/2] Cygwin: console: Fix handling of Ctrl-S in Win7.

2021-02-18 Thread Takashi Yano via Cygwin-patches
- If ENABLE_LINE_INPUT is set, Ctrl-S is handled by Windows if the OS is Windows 7. This conflicts with Ctrl-S handling in cygwin console code. This patch unsets ENABLE_LINE_INPUT flag in cygwin and set it when native app is executed. --- winsup/cygwin/fhandler.h | 9 +-

[PATCH 0/2] Console fixes for Win7.

2021-02-18 Thread Takashi Yano via Cygwin-patches
Takashi Yano (2): Cygwin: console: Fix SIGWINCH handling in Win7. Cygwin: console: Fix handling of Ctrl-S in Win7. winsup/cygwin/fhandler.h | 9 +- winsup/cygwin/fhandler_console.cc | 306 -- winsup/cygwin/select.cc | 4 +-

[PATCH 1/2] Cygwin: console: Fix SIGWINCH handling in Win7.

2021-02-18 Thread Takashi Yano via Cygwin-patches
- If ENABLE_VIRTUAL_TERMINAL_INPUT is not set, changing window height does not generate WINDOW_BUFFER_SIZE_EVENT. This happens if console is in the legacy mode. Therefore, with this patch, the windows size is checked every time in cons_master_thread() if the cosole is in the legacy mode.

Re: [PATCH v2 0/2] cpuinfo: fix check; add AVX features; move SME, SEV/_ES features

2021-02-18 Thread Corinna Vinschen via Cygwin-patches
On Feb 17 09:28, Brian Inglis wrote: > Brian Inglis (2): > fix check for cpuid 0x8007 support > add AVX features; move SME, SEV/_ES features > > winsup/cygwin/fhandler_proc.cc | 46 ++ > 1 file changed, 24 insertions(+), 22 deletions(-) > > -- > 2.30.0