[PATCH v3] libmisc/shell: Work around tmux bug in row and column

2023-12-12 Thread chrisj
From: Chris Johns - Extend the timeout to 150 msec for long remote sessions - Improve the performance of the detection Closes #4975 Closes #4977 --- cpukit/libmisc/shell/shell.c | 150 +-- 1 file changed, 125 insertions(+), 25 deletions(-) diff --git

Re: [PATCH v2] libmisc/shell: Work around tmux bug in row and column

2023-12-12 Thread Chris Johns
On 13/12/2023 5:58 pm, chr...@rtems.org wrote: > From: Chris Johns > > - Extend the timeout to 150 msec for long remote sessions > > - Improve the performance of the detection > > Closes #4975 > Closes #4977 > --- > cpukit/libmisc/shell/shell.c | 150 +-- > 1

[PATCH v2] libmisc/shell: Work around tmux bug in row and column

2023-12-12 Thread chrisj
From: Chris Johns - Extend the timeout to 150 msec for long remote sessions - Improve the performance of the detection Closes #4975 Closes #4977 --- cpukit/libmisc/shell/shell.c | 150 +-- 1 file changed, 125 insertions(+), 25 deletions(-) diff --git

Re: [PATCH] libmisc/shell: Work around tmux bug in row and column

2023-12-12 Thread Sebastian Huber
On 13.12.23 03:47, chr...@rtems.org wrote: +const int timeout = 150; +bool row_cols_swapped = false; memset([0], 0, sizeof(buf)); +/* + *https://github.com/tmux/tmux/issues/3457 + * + * Tmux has a bug where the lines and cols are swapped.

Re: [PATCH] libmisc/shell: Work around tmux bug in row and column

2023-12-12 Thread Chris Johns
On 13/12/2023 5:37 pm, Sebastian Huber wrote: > On 13.12.23 07:36, Chris Johns wrote: >> Sorry, I am not sure I understand. Are you suggesting the version detection >> against the string in the buffer is in a helper function? > > Yes, this complete new code block. The query for the terminal type

Re: [PATCH] libmisc/shell: Work around tmux bug in row and column

2023-12-12 Thread Sebastian Huber
On 13.12.23 07:36, Chris Johns wrote: Sorry, I am not sure I understand. Are you suggesting the version detection against the string in the buffer is in a helper function? Yes, this complete new code block. -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim

Re: [PATCH] libmisc/shell: Work around tmux bug in row and column

2023-12-12 Thread Chris Johns
On 13/12/2023 5:32 pm, Sebastian Huber wrote: > On 13.12.23 03:47, chr...@rtems.org wrote: >> +    /* >> + *https://github.com/tmux/tmux/issues/3457 >> + * >> + * Tmux has a bug where the lines and cols are swapped. There is a >> lag >> + * in the time it takes

Re: [PATCH] libmisc/shell: Work around tmux bug in row and column

2023-12-12 Thread Sebastian Huber
On 13.12.23 03:47, chr...@rtems.org wrote: +/* + *https://github.com/tmux/tmux/issues/3457 + * + * Tmux has a bug where the lines and cols are swapped. There is a lag + * in the time it takes to get the fix into code so see if tmux is + * running

Re: [PATCH 2/9] cpukit/jffs2: Protect the inode cache

2023-12-12 Thread Sebastian Huber
On 09.12.23 03:31, Kinsey Moore wrote: The inode cache can be altered and queried by multiple threads of execution, even before the introduction of delayed write support for NAND. This provides a new lock to prevent simultaneous modification of the cache. Under which condition is the inode

[RSB PATCH 1/2] print/texinfo: Check the version and build if too old

2023-12-12 Thread chrisj
From: Chris Johns Packages like binutils need newer versions than available by default on MacOS. --- bare/config/print/texinfo.cfg | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bare/config/print/texinfo.cfg b/bare/config/print/texinfo.cfg index 5fa0cba..63df197

[RSB PATCH 2/2] bare/or1ksim: Fix invalid hash and fix the version

2023-12-12 Thread chrisj
From: Chris Johns --- bare/config/devel/or1ksim-1.1.0.cfg | 6 +++--- source-builder/config/or1ksim-1-1.cfg | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bare/config/devel/or1ksim-1.1.0.cfg b/bare/config/devel/or1ksim-1.1.0.cfg index d4ccc88..c0cbde7 100644 ---

[PATCH] rtems-fdt: Fix node property access on 64bit

2023-12-12 Thread chrisj
From: Chris Johns --- cpukit/libmisc/rtems-fdt/rtems-fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/libmisc/rtems-fdt/rtems-fdt.c b/cpukit/libmisc/rtems-fdt/rtems-fdt.c index ec8f270eef..9f8d7bfb24 100644 --- a/cpukit/libmisc/rtems-fdt/rtems-fdt.c +++

[PATCH] libmisc/shell: Work around tmux bug in row and column

2023-12-12 Thread chrisj
From: Chris Johns - Extend the timeout to 150 msec for long remote sessions - Improve the performance of the detection Closes #4975 Closes #4977 --- cpukit/libmisc/shell/shell.c | 141 --- 1 file changed, 116 insertions(+), 25 deletions(-) diff --git