From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id A440B385773F; Wed, 19 Apr 2023 08:24:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A440B385773F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1681892647; bh=+ZDm2i9g1smkShGClfZ8y6ua9l36zAQDAMaXifNAgd0=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=lxCsaENTKeFq+p/xasKh+dU7+48nK8dFIBi0fi5qJJZfGMieEkNPCp1hqAwB6BzKn pB90ZCjxNsn+w7p4R6ZeJ5xtyGmrFw/h3r3eoeSkxqNzr26CzD7UBElv0+RfEnDpmb 0f1IsZzWi3bHPALiPGG3KAdbtKchcY5Xnb5nP9u4= Received: by calimero.vinschen.de (Postfix, from userid 500) id 20F9CA80B9C; Wed, 19 Apr 2023 10:24:05 +0200 (CEST) Date: Wed, 19 Apr 2023 10:24:05 +0200 From: Corinna Vinschen To: Bruno Haible Cc: cygwin@cygwin.com Subject: Re: posix_spawn facility Message-ID: Reply-To: cygwin@cygwin.com Mail-Followup-To: Bruno Haible , cygwin@cygwin.com References: <1752276.7aRn1RRit1@nimes> <5022555.upeRZZJTqa@nimes> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5022555.upeRZZJTqa@nimes> List-Id: 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