Re: posix_spawn facility

2023-04-20 Thread gs-cygwin.com--- via Cygwin
On Thu, Apr 20, 2023 at 09:31:38PM +0200, Bruno Haible wrote: > Glenn wrote: > > > > https://learn.microsoft.com/en-us/windows/win32/api/winbase/ns-winbase-startupinfoexa > > > > > > > > and the PROC_THREAD_ATTRIBUTE_HANDLE_LIST argument described in > > > > > > > > https://learn.microsoft.com/en

Re: posix_spawn facility

2023-04-20 Thread Bruno Haible via Cygwin
Glenn wrote: > > > https://learn.microsoft.com/en-us/windows/win32/api/winbase/ns-winbase-startupinfoexa > > > > > > and the PROC_THREAD_ATTRIBUTE_HANDLE_LIST argument described in > > > > > > https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-updateprocthr

Re: posix_spawn facility

2023-04-20 Thread gs-cygwin.com--- via Cygwin
On Thu, Apr 20, 2023 at 05:40:52PM +0200, Corinna Vinschen via Cygwin wrote: > On Apr 20 16:58, Bruno Haible via Cygwin wrote: > > Corinna Vinschen wrote: > > > > Hmm. Your code uses lpReserved2 for that, but the functionality is > > > > one implemented in MSVCRT. For obvious reasons, Cygwin exec

Re: posix_spawn facility

2023-04-20 Thread gs-cygwin.com--- via Cygwin
On Thu, Apr 20, 2023 at 04:58:20PM +0200, Bruno Haible via Cygwin wrote: > Corinna Vinschen wrote: > > > Hmm. Your code uses lpReserved2 for that, but the functionality is > > > one implemented in MSVCRT. For obvious reasons, Cygwin executables > > > are not linked against msvcrt.dll and we're us

Re: posix_spawn facility

2023-04-20 Thread gs-cygwin.com--- via Cygwin
On Thu, Apr 20, 2023 at 04:40:52PM +0200, Corinna Vinschen via Cygwin wrote: > On Apr 20 16:21, Corinna Vinschen via Cygwin wrote: > > On Apr 20 12:18, Bruno Haible via Cygwin wrote: > > > The "inheritable handles" is a data structure that allows for the > > > arbitrary reshuffling of fil

Re: posix_spawn facility

2023-04-20 Thread Corinna Vinschen via Cygwin
On Apr 20 16:58, Bruno Haible via Cygwin wrote: > Corinna Vinschen wrote: > > > Hmm. Your code uses lpReserved2 for that, but the functionality is > > > one implemented in MSVCRT. For obvious reasons, Cygwin executables > > > are not linked against msvcrt.dll and we're using lpReserved2 for our >

Re: posix_spawn facility

2023-04-20 Thread Bruno Haible via Cygwin
Corinna Vinschen wrote: > > Hmm. Your code uses lpReserved2 for that, but the functionality is > > one implemented in MSVCRT. For obvious reasons, Cygwin executables > > are not linked against msvcrt.dll and we're using lpReserved2 for our > > own purposes. > > Oh, btw., did you know that there'

Re: posix_spawn facility

2023-04-20 Thread Corinna Vinschen via Cygwin
On Apr 20 16:21, Corinna Vinschen via Cygwin wrote: > On Apr 20 12:18, Bruno Haible via Cygwin wrote: > > The "inheritable handles" is a data structure that allows for the > > arbitrary reshuffling of file descriptors required by posix_spawn > > (the addopen, adddup2, addclose action

Re: posix_spawn facility

2023-04-20 Thread Corinna Vinschen via Cygwin
On Apr 20 12:18, Bruno Haible via Cygwin wrote: > Corinna Vinschen wrote: > > Unfortunately you can't expect any noticable difference on Cygwin by > > using posix_spawn. While Cygwin has a spawn() family of functions, we > > don't (and can't... yet) use them. > > > > The problem is that we don't

installing/updating silently

2023-04-20 Thread Thomas Schweikle via Cygwin
Hi! Trying to install or upgrade cygwin silently. Calling a newly downloaded setup-x86_64.exe (Power Shell-snipplets): $URL = "https://www.cygwin.com/setup-x86_64.exe"; $dlp = "C:\INSTALL\Apps\c\cygwin" $nsf = "$dlp\setup-x86_64.new" $isf = "$dlp\setup-x86_64.exe" $isl = "$dlp\setup-x86_64.log

Problem: tar --update

2023-04-20 Thread Kamran via Cygwin
Hi all "tar --update" with some exclusions worked fine very first time. But subsequent times it is found that any folder excluded by using "--exclude-tag-under=FILE" or "--exclude-ignore-recursive=FILE" is excluded only first time. CYGWIN_NT-10.0-19045 yark 3.4.6-1.x86_64 2023-02-14 13:23 UTC x

Re: posix_spawn_file_actions_add[f]chdir_np

2023-04-20 Thread Bruno Haible via Cygwin
Corinna Vinschen wrote: > I pushed the posix_spawnp patch for now, so all these tests PASS. > > See https://cygwin.com/cgit/newlib-cygwin/commit/?id=da40bd6eaf40 Cool! -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:

Re: posix_spawn facility

2023-04-20 Thread Bruno Haible via Cygwin
Corinna Vinschen wrote: > Unfortunately you can't expect any noticable difference on Cygwin by > using posix_spawn. While Cygwin has a spawn() family of functions, we > don't (and can't... yet) use them. > > The problem is that we don't have a safe way to perform the spawn > attributes and file a

Re: posix_spawn facility

2023-04-20 Thread Corinna Vinschen via Cygwin
On Apr 20 03:14, gs-cygwin.com--- via Cygwin wrote: > On Mon, Apr 17, 2023 at 08:44:51PM +0200, Bruno Haible via Cygwin wrote: > > Btw, there are two more functions in the posix_spawn family meanwhile: > > * posix_spawn_file_actions_addchdir_np > > implemented by glibc [1], musl libc, macOS,

Re: Cygwin 'cp' command is still slow after Cygserver is installed

2023-04-20 Thread Andrey Repin via Cygwin
Greetings, Derek Pagel! > The icalcs command doesn’t work on either and I haven’t been able to get it > to work elsewhere either. > D:\lsenv\law\lsapps\edi\work>icacls "`cygpath -m interchange.20230418091901" > `cygpath -m interchange.20230418091901: The system cannot find the file > specified

Re: posix_spawn facility

2023-04-20 Thread gs-cygwin.com--- via Cygwin
On Mon, Apr 17, 2023 at 08:44:51PM +0200, Bruno Haible via Cygwin wrote: > Btw, there are two more functions in the posix_spawn family meanwhile: > * posix_spawn_file_actions_addchdir_np > implemented by glibc [1], musl libc, macOS, FreeBSD [2], Solaris ≥ 11.3 > used by a few packages (Fi