X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8F9AB385840E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1681892686; bh=KiNayowuGymjaHvNdNFAW2D3kCRcbB5kPas1GGQNXb0=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=X6gkdfhSaDr5atzd+pznlrAAfvhFqQ9snTcVZfNf6ppqP7WRXcs3XF9RioaBAGJUK PTIfZmZZg0QMz4dTKSjCuo0BYBfkItljUpVLownX1FOXZx/cmoJJI5NAhFCeTz8OkP Sd92Gvd3bJmg6YPmJB6TVbLJP1e74KX7t7oGCZVA= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A440B385773F Date: Wed, 19 Apr 2023 10:24:05 +0200 To: Bruno Haible Subject: Re: posix_spawn facility Message-ID: Mail-Followup-To: Bruno Haible , cygwin AT cygwin DOT com References: <1752276 DOT 7aRn1RRit1 AT nimes> <5022555 DOT upeRZZJTqa AT nimes> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <5022555.upeRZZJTqa@nimes> X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen , cygwin AT cygwin DOT com Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 33J8P95w022498 Hi Bruno, On Apr 17 20:44, 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 (Firefox, Chromium, Rust) > * posix_spawn_file_actions_addfchdir_np > implemented in glibc, musl libc > but not used by any package so far [3]. > > The next POSIX will contain these functions (without the _np suffix).[4] Actually I had some spare time yesterday so I came up with an implementation of posix_spawn_file_actions_addchdir_np and posix_spawn_file_actions_addfchdir_np. It's pretty straightforward: https://cygwin.com/cgit/newlib-cygwin/commit/?id=7e03fc35f528 https://cygwin.com/cgit/newlib-cygwin/commit/?id=c743751aafa8 You can install the just building test release cygwin-3.5.0-0.287.g53f7fb20a064 via our installer, if you'd like to test it. Actually... do you have a testcase readily available to share with us? Thanks, Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple