Re: Typo in ?

2022-07-06 Thread Corinna Vinschen
On Jul 5 17:51, Ken Brown wrote: > On 7/5/2022 10:13 AM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin wrote: > > Hi, > > > > There's some inconsistency between and : > > > > sys/select.h has this: > > --- > > /* > > * Select uses bit masks of file descriptors in longs.

The "TrustedInstaller" user can not be found by ID

2022-07-06 Thread Andrey Repin
Greetings, All! Been doing some housekeeping in my Cygwin installation at work, and wanted to change the owner of the files to something other than myself. TrustedInstaller seemed like a good neutral target, but it took me a little while to find out it is 1. …named "NT SERVICE+TrustedInstaller" a

Re: Typo in ?

2022-07-06 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> On Linux, select(2) is really only capable to > handle file descriptors numbers up to descriptor number 1023, That is not true. While FD_SETSIZE is defined as a fixed constant, Linux kernel does not actually "know" (or care) about it. So you can have an array of fd_sets, like this, in your cod

Re: Typo in ?

2022-07-06 Thread Jon Turney
On 06/07/2022 08:42, Corinna Vinschen wrote: On Jul 5 17:51, Ken Brown wrote: On 7/5/2022 10:13 AM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin wrote: I guess we can change FD_SETSIZE to 1024 as on Linux, albeit this has no real meaning on Cygwin. On Linux, select(2) is really only capab

Re: Typo in ?

2022-07-06 Thread Corinna Vinschen
On Jul 6 15:01, Jon Turney wrote: > On 06/07/2022 08:42, Corinna Vinschen wrote: > > On Jul 5 17:51, Ken Brown wrote: > > > On 7/5/2022 10:13 AM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin > > > wrote: > > > > I guess we can change FD_SETSIZE to 1024 as on Linux, albeit this has no > > rea

Re: Typo in ?

2022-07-06 Thread Corinna Vinschen
On Jul 6 13:19, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin wrote: > > On Linux, select(2) is really only capable to > > handle file descriptors numbers up to descriptor number 1023, > > That is not true. While FD_SETSIZE is defined as a fixed constant, > Linux kernel does not actually "know

Re: Typo in ?

2022-07-06 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> Remember that 64 is MAXIMUM_WAIT_OBJECTS for WaitForMultipleObjects(), > the underlying Win32 API used to implement select(), so using more than > 64 hits some complex code to work around that... True but the complex code (that involves thread spawning, if that's what you're referring to) will

Re: Typo in ?

2022-07-06 Thread Corinna Vinschen
On Jul 6 16:15, Corinna Vinschen wrote: > On Jul 6 15:01, Jon Turney wrote: > > Remember that 64 is MAXIMUM_WAIT_OBJECTS for WaitForMultipleObjects(), the > > underlying Win32 API used to implement select(), so using more than 64 hits > > some complex code to work around that... > > This isn't w

Re: Typo in ?

2022-07-06 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> DESCRIPTION >WARNING: select() can monitor only file descriptors numbers that are >less than FD_SETSIZE (1024)-an unreasonably low limit for many modern Whoever wrote this, was wrong (they might have never consulted the actual kernel code, or were just blindsided by FD_SETS

Re: Typo in ?

2022-07-06 Thread Corinna Vinschen
On Jul 6 14:26, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin wrote: > > DESCRIPTION > >WARNING: select() can monitor only file descriptors numbers that > > are > >less than FD_SETSIZE (1024)-an unreasonably low limit for many > > modern > > Whoever wrote this, was wrong

Re: Typo in ?

2022-07-06 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> However, discussing this shows how irrelevant the actual default value > of FD_SETSIZE is. Correct, yet the comments in the header files (along with used values) should be consistent :-) > [...] to define FD_SETSIZE according to its requirements anyway. That'd work for CYGWIN right away; but

Re: Typo in ?

2022-07-06 Thread Ken Brown
On 7/6/2022 11:57 AM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin wrote: However, discussing this shows how irrelevant the actual default value of FD_SETSIZE is. Correct, yet the comments in the header files (along with used values) should be consistent :-) I'll make the changes that Cor

Re: The "TrustedInstaller" user can not be found by ID

2022-07-06 Thread Corinna Vinschen
On Jul 6 13:32, Andrey Repin wrote: > Greetings, All! > > Been doing some housekeeping in my Cygwin installation at work, and wanted to > change the owner of the files to something other than myself. > TrustedInstaller seemed like a good neutral target, but it took me a little > while to find out

[ANNOUNCEMENT] Updated: openssl 1.1.1q-1, mingw64-{i686, x86_64}-openssl-1.1.1q-0.1 (security)

2022-07-06 Thread Achim Gratz
The following packages have been uploaded to the Cygwin distribution. This release updates to the latest upstream security patch release and continues to use the Fedora patches from an earlier release (Fedora has already switched to openssl 3.x). * openssl-1.1.1q-1 * openssl-perl-1.1.1q-1 * libs

Re: The "TrustedInstaller" user can not be found by ID

2022-07-06 Thread Andrey Repin
Greetings, Corinna Vinschen! > On Jul 6 13:32, Andrey Repin wrote: >> Greetings, All! >> >> Been doing some housekeeping in my Cygwin installation at work, and wanted to >> change the owner of the files to something other than myself. >> TrustedInstaller seemed like a good neutral target, but it