Re: [PATCH] Cygwin: mmap: allow remapping part of an existing anonymous, mapping

2025-01-15 Thread Corinna Vinschen
On Jan 13 17:36, Ken Brown wrote: > On 1/13/2025 6:00 AM, Corinna Vinschen wrote: > > On Jan 11 18:43, Ken Brown wrote: > > > Another question: Adding this array to mmap_record, we have two flexible > > > arrays in the class: one for page_map and one for the protection array. My > > > understanding

Re: [PATCH] Cygwin: add fd validation to mq_* functions

2025-01-15 Thread mark
I believe a positive but nonexistent fd passed to cygheap_getfd results in a -1, so that case should be covered by this patch. However I botched the coding for mq_close. That fix plus anything else needed per reviews will appear as a v2. Thanks & Regards, ..mark Jan 15, 2025 3:35:43 AM Christian

Re: [PATCH v5 2/8] Cygwin: winsup/doc/posix.xml: SUS V5 POSIX 2024 new additions available

2025-01-15 Thread Corinna Vinschen
On Jan 13 11:57, Brian Inglis wrote: > On 2025-01-13 05:38, Corinna Vinschen wrote: > > On Jan 12 12:56, Brian Inglis wrote: > > > Suggestions for better phrasings of these welcome. > > > > "Add POSIX new additions available as symbols exported from the Cygwin > > DLL, as header macros and inlin

Re: [PATCH v5 3/8] Cygwin: winsup/doc/posix.xml: SUS V5 POSIX 2024 not implemented new additions

2025-01-15 Thread Corinna Vinschen
On Jan 13 11:01, Brian Inglis wrote: > On 2025-01-13 05:58, Corinna Vinschen wrote: > But not in a standard Cygwin gcc 12 build which uses: > > $ grep -A2 kill_ /usr/lib/gcc/x86_64-pc-cygwin/12/include/stdatomic.h > #define kill_dependency(Y)\ > __extension__

Re: [PATCH v5 3/8] Cygwin: winsup/doc/posix.xml: SUS V5 POSIX 2024 not implemented new additions

2025-01-15 Thread Corinna Vinschen
On Jan 14 16:44, Brian Inglis wrote: > Looking at the end/get/set...ent groups, endhostent and sethostent are > implemented and gethostent is not implemented - should we keep them separate > or combine in one section? Separate, given their state as implemented/not implemented. Corinna

Re: [PATCH v5 7/8] Cygwin: winsup/doc/posix.xml: SUS V5 POSIX 2024 merge function variants on one line

2025-01-15 Thread Corinna Vinschen
On Jan 13 17:22, Jon Turney wrote: > On 13/01/2025 13:38, Corinna Vinschen wrote: > > On Jan 10 17:01, Brian Inglis wrote: > > > Move circular F/Ff/Fl and similar functions to put > > > base entries and -f -l variants on the same line. > > > > > > Signed-off-by: Brian Inglis > > > --- > > > win

Re: [PATCH] Cygwin: mmap: use 64K pages for bookkeeping

2025-01-15 Thread Takashi Yano
On Mon, 13 Jan 2025 12:04:36 +0100 Corinna Vinschen wrote: > On Jan 10 16:18, Ken Brown wrote: > > Patch attached. > > > > This turned out to be completely trivial, unless I'm missing something. I > > tested it with several programs that use mmap, and it seems OK. > > > > Ken > > > From 654e5c83

Re: [PATCH] Cygwin: add fd validation to mq_* functions

2025-01-15 Thread Christian Franke
Mark Geisert wrote: Validate the fd returned by cygheap_getfd operating on given mqd. Reported-by: Christian Franke Addresses: https://cygwin.com/pipermail/cygwin/2025-January/257090.html Signed-off-by: Mark Geisert Fixes: 46f3b0ce85a9 (Cygwin: POSIX msg queues: move all mq_* functionality int

Re: [PATCH v6 4/8] Cygwin: winsup/doc/posix.xml: SUS V5 POSIX 2024 move or remove dropped entries

2025-01-15 Thread Jeremy Drake via Cygwin-patches
On Wed, 15 Jan 2025, Brian Inglis wrote: > +<<< HEAD > isastream > +=== > +kill_dependency (not available in "stdatomic.h" header) > +>>> 5888275d7f48 (Cygwin: winsup/doc/posix.xml: SUS V5 POSIX 2024 move > or remove dropped entries) Conflict added here, removed in

Re: [PATCH v6 4/8] Cygwin: winsup/doc/posix.xml: SUS V5 POSIX 2024 move or remove dropped entries

2025-01-15 Thread Brian Inglis
On 2025-01-15 16:53, Jeremy Drake wrote: On Wed, 15 Jan 2025, Brian Inglis wrote: +<<< HEAD isastream +=== +kill_dependency(not available in "stdatomic.h" header) +>>> 5888275d7f48 (Cygwin: winsup/doc/posix.xml: SUS V5 POSIX 2024 move or remove dropped entries

Re: [PATCH v5 2/8] Cygwin: winsup/doc/posix.xml: SUS V5 POSIX 2024 new additions available

2025-01-15 Thread Brian Inglis
On 2025-01-15 05:18, Corinna Vinschen wrote: On Jan 13 11:57, Brian Inglis wrote: On 2025-01-13 05:38, Corinna Vinschen wrote: On Jan 12 12:56, Brian Inglis wrote: Suggestions for better phrasings of these welcome. "Add POSIX new additions available as symbols exported from the Cygwin DLL

[PATCH v6 2/8] Cygwin: winsup/doc/posix.xml: SUS V5 POSIX 2024 new additions available

2025-01-15 Thread Brian Inglis
Add POSIX new additions available as header macros and inline functions, or exported by Cygwin distro DLL or library packages Signed-off-by: Brian Inglis --- winsup/doc/posix.xml | 61 1 file changed, 61 insertions(+) diff --git a/winsup/doc/posix.xm

[PATCH v6 1/8] Cygwin: winsup/doc/posix.xml: SUS V5 POSIX 2024 move new entries

2025-01-15 Thread Brian Inglis
Update anchor id and description to current version, year, issue, etc. Move new POSIX entries in other sections to the SUS/POSIX section. Signed-off-by: Brian Inglis --- winsup/doc/posix.xml | 139 ++- 1 file changed, 72 insertions(+), 67 deletions(-) dif

[PATCH v6 0/8] Cygwin: winsup/doc/posix.xml: SUS V5 POSIX 2024 TOG Issue 8 ISO 9945 updates

2025-01-15 Thread Brian Inglis
Cygwin: winsup/doc/posix.xml: SUS V5 POSIX 2024 TOG Issue 8 ISO 9945 updates Brian Inglis (8): Cygwin: winsup/doc/posix.xml: SUS V5 POSIX 2024 TOG Issue 8 ISO 9945 move new Cygwin: winsup/doc/posix.xml: SUS V5 POSIX 2024 new additions available Cygwin: winsup/doc/posix.xml: SUS V5 POSIX 2024

[PATCH v6 6/8] Cygwin: winsup/doc/posix.xml: SUS V5 POSIX 2024 group variants with base

2025-01-15 Thread Brian Inglis
Move circular Ff/Fl and similar functions before hyperbolic Fh? and similar entries to keep base entries together with their -f -l variants. Signed-off-by: Brian Inglis --- winsup/doc/posix.xml | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff

[PATCH v6 7/8] Cygwin: winsup/doc/posix.xml: SUS V5 POSIX 2024 merge function variants on one line

2025-01-15 Thread Brian Inglis
Move related functions to put base entries and variants on the same line. Signed-off-by: Brian Inglis --- winsup/doc/posix.xml | 1209 -- 1 file changed, 345 insertions(+), 864 deletions(-) diff --git a/winsup/doc/posix.xml b/winsup/doc/posix.xml index 1a

[PATCH v6 4/8] Cygwin: winsup/doc/posix.xml: SUS V5 POSIX 2024 move or remove dropped entries

2025-01-15 Thread Brian Inglis
Move entries no longer in POSIX from the SUS/POSIX section to Deprecated Interfaces section and mark with (SUSv4). Remove entries no longer in POSIX from the NOT Implemented section. Signed-off-by: Brian Inglis --- winsup/doc/posix.xml | 64 +--- 1 file ch

[PATCH v6 3/8] Cygwin: winsup/doc/posix.xml: SUS V5 POSIX 2024 not implemented new additions

2025-01-15 Thread Brian Inglis
Add unavailable POSIX additions to Not Implemented section, with mentions of headers and packages where they are expected. Signed-off-by: Brian Inglis --- winsup/doc/posix.xml | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/winsup/doc/posix.xml b/winsup/

[PATCH v6 5/8] Cygwin: winsup/doc/posix.xml: SUS V5 POSIX 2024 combine multiple notes

2025-01-15 Thread Brian Inglis
Combine multiple notes after an entry separated by hyphen ") (" -> " - " Signed-off-by: Brian Inglis --- winsup/doc/posix.xml | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/winsup/doc/posix.xml b/winsup/doc/posix.xml index ac05f6972ee7..0c9e492d62ad 100644 --- a/

[PATCH v6 8/8] Cygwin: winsup/doc/posix.xml: SUS V5 POSIX 2024 abbrev variants of base function

2025-01-15 Thread Brian Inglis
Abbreviate function variants on same line dropping base name. Signed-off-by: Brian Inglis --- winsup/doc/posix.xml | 84 ++-- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/winsup/doc/posix.xml b/winsup/doc/posix.xml index a9f293d0f19e..80

Re: [PATCH] Cygwin: mmap: use 64K pages for bookkeeping

2025-01-15 Thread Ken Brown
On 1/15/2025 8:17 AM, Takashi Yano wrote: With this patch, gdb no longer works in my environment: $ gdb Pre-boot error; key: system-error, args: ("load-thunk-from-memory" "~A" ("Invalid argument") (22)) Fatal signal: Aborted - Backtrace - - A fatal error internal to

Re: [PATCH] Cygwin: mmap: use 64K pages for bookkeeping

2025-01-15 Thread Corinna Vinschen
On Jan 15 11:36, Ken Brown wrote: > On 1/15/2025 8:17 AM, Takashi Yano wrote: > > With this patch, gdb no longer works in my environment: > > > > $ gdb > > Pre-boot error; key: system-error, args: ("load-thunk-from-memory" "~A" > > ("Invalid argument") (22)) > > > > Fatal signal: Aborted > > ---

[PATCH] Cygwin: add fd validation to mq_* functions

2025-01-15 Thread Mark Geisert
Validate the fd returned by cygheap_getfd operating on given mqd. Reported-by: Christian Franke Addresses: https://cygwin.com/pipermail/cygwin/2025-January/257090.html Signed-off-by: Mark Geisert Fixes: 46f3b0ce85a9 (Cygwin: POSIX msg queues: move all mq_* functionality into fhandler_mqueue) -

Re: [PATCH] Cygwin: mmap: use 64K pages for bookkeeping

2025-01-15 Thread Corinna Vinschen
On Jan 15 17:59, Corinna Vinschen wrote: > On Jan 15 11:36, Ken Brown wrote: > > On 1/15/2025 8:17 AM, Takashi Yano wrote: > > > With this patch, gdb no longer works in my environment: > > > > > > $ gdb > > > Pre-boot error; key: system-error, args: ("load-thunk-from-memory" "~A" > > > ("Invalid