From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70573 invoked by alias); 15 Nov 2017 07:59:33 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 70559 invoked by uid 89); 15 Nov 2017 07:59:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=-101.4 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,KB_WAM_FROM_NAME_SINGLEWORD,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1489, BSD=e2, bsd=e2, OS=e2?= X-HELO: drew.franken.de Received: from mail-n.franken.de (HELO drew.franken.de) (193.175.24.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 15 Nov 2017 07:59:30 +0000 Received: from aqua.hirmke.de (business-24-134-7-25.pool2.vodafone-ip.de [24.134.7.25]) (Authenticated sender: aquarius) by mail-n.franken.de (Postfix) with ESMTPSA id 4BAEA721E280D for ; Wed, 15 Nov 2017 08:59:27 +0100 (CET) Received: from calimero.vinschen.de (calimero.vinschen.de [192.168.129.6]) by aqua.hirmke.de (Postfix) with ESMTP id CF33C5E04A1 for ; Wed, 15 Nov 2017 08:59:26 +0100 (CET) Received: by calimero.vinschen.de (Postfix, from userid 500) id BDE9FA8056A; Wed, 15 Nov 2017 08:59:26 +0100 (CET) Date: Wed, 15 Nov 2017 07:59:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: BSD file flags support in Cygwin? Message-ID: <20171115075926.GL6054@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20171114100658.GH6054@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NGIwU0kFl1Z1A3An" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) X-SW-Source: 2017-11/txt/msg00198.txt.bz2 --NGIwU0kFl1Z1A3An Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1513 On Nov 14 19:17, Bill Zissimopoulos wrote: > Corinna, thanks for your answer. >=20 > My question was largely to confirm my understanding as I probably do not > have time to produce such a patch currently. For the benefit of the > discussion and to assist any future attempts at doing this: >=20 > Chflags(2) and friends would be relatively easy to implement. OTOH the > BSD=E2=80=99s and OSX use stat(2) to report file flags in st_flags. Since= Cygwin > lacks an st_flags field, we would have to somehow change struct stat to > accommodate it. Do you have guidance on how to handle such a change? Would > you even want such a change? [I suspect not.] You're right. Struct stat is exposed to user space so changing this is bound to break existing applications. We *might* get away lightly with just adding a member to the end as in this case, but is the support for DOS flags actually worth it? It's still a hassle to support new and old apps in Cygwin in such cases. > [I know some OS=E2=80=99es have had to deal with stat(2) changes over the= years, > but I am not as familiar with Cygwin history.] An executable has the version info of the Cygwin version at the time of building compiled in. This is used in Cygwin to check what an executable expects. See winsup/cygwin/include/cygwin/version.h and the usage of the checks throughout the code. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --NGIwU0kFl1Z1A3An Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJaC/PeAAoJEPU2Bp2uRE+g4vYQAJ1xiBjJTv1dOakhzLzUhxsY h/0erGoFA7MNcjm6b7YY5fRYdQrAJ7/qhUzBRM+Kx5Z4uCsgmiWnzxtXVJopQFmE lfwKgIUo+28+cWTYS0h1QvaLfzNACrSWGiTaDQxaB8jGf3fupld52sUlca/gAWMY 2zv85TqkADvF01gEdfp046uGcZud8jPjSGvY0t56xkTNWyVTqsnjCbwGEeJ8G7Fi DLzAuE7BmArE/kcFSrsJixBbq/yYr2d0D5VkMcEg3Vymdte2+//idkbZOWKtRxjg 6iJwjN2P6LOm1z6X9YT7yDwLzkzRfgGuFHOWVeExOhVsr0F9gnN1hj8DIsjpQ4ki NH/xCt0XwpL+BD8kpfO/gNRx46bTc0c4SGZ4yoO5/S0ppzJdZ/9ak8SZcKzwFxrr IjbPDufTL6SHCamV3Xi0Xp910ge/ELty8EpvbXSRvKLVinbaXfRDqxzQqTIAiaMC Hyf8qyhKrRk5xWoYozl8TbdZ3jWvXTc6qV751wZGle0t+cxBql5TfEx2j0bL7hl8 n+XIIW4jF3KqzLmr5vnIx+tlvgO5B3XUcgM6/ELOqeotAlh9GN37YnPbjT9Ytw6X QhFqj/HeOFZmecmlvay3Qq1Wdx8qXnWIa2sxTeFYUxanguqF8riCvIIil3TnjNVW CPY0xH5U28BbDKVTLx6W =hzuc -----END PGP SIGNATURE----- --NGIwU0kFl1Z1A3An--