X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-id:content-transfer-encoding :mime-version; q=dns; s=default; b=aZUH0qbpCmDywO2rMRSmZxNY+omcQ hguP/WIG00IefVJEq5YrjynkvKhRqJtSWj0fH6uIkHWnqVeq80GTGPKT2BQaJLPz cGnfAxQ0b4xAlsBEXHGzVg9FLIsBrXyxx39dOWMjXrQ/tDrCfTD7ZfB8E09fm3Vy cI7WsDFNJVHHIk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-id:content-transfer-encoding :mime-version; s=default; bh=S4buZNrSg5qd/4jIcvaUd2CMUwo=; b=lFT PlNJbiV1ApIXovLa9xWQ6IcoYbfSaoL7Mqzze5kerRy+ow/EKodIxpo0hV5svhP4 lvZsizXBFdzMk5toLnVOTlw6FOVOnl0Y/8DykAv1D8t1JnVbSlqEcrVdiWpGNMRA LjslqFqrL2PTSV33BbFbEj0TBApCtqxaiZBWApx8= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=BAYES_00,KB_WAM_FROM_NAME_SINGLEWORD,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 spammy=Hx-exchange-antispam-report-cfa-test:2016111802025, Hx-exchange-antispam-report-cfa-test:6043046, understanding, assist X-HELO: NAM02-BL2-obe.outbound.protection.outlook.com From: Bill Zissimopoulos To: "cygwin AT cygwin DOT com" Subject: Re: BSD file flags support in Cygwin? Date: Tue, 14 Nov 2017 19:17:47 +0000 Message-ID: References: <20171114100658 DOT GH6054 AT calimero DOT vinschen DOT de> In-Reply-To: <20171114100658.GH6054@calimero.vinschen.de> x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY1PR07MB2200;6:JmBtvxcPY9QLNI4DohVyhKvpeTD/0rE/D8gjDh35jkZY0eX6+2+IhUurI1O4fRcFin7DSNOmc5x6gSwro9mPgf6yn9LgQRGkR60MQeQEjN7YY7a7g18A51Ak3YoOtqrpdfUaSJqqNzwyYAcQ+VV2fkxwMuEJKNFHW3uNmXspyGRcP1++jFdkFc46tttylbgCoMs9iz5e7OxikTTV7T8qazXfBPXnSjK8moZgZ+ZXgxkJQ/0idJ/vZQkh2J4y8onv90X1fZDJCPoq/x5hl04qSJ6wtWuvgzP2n87+a6nnoXmKfRh9rSROpwxgFWqUdoScorUgijdjGTVotOf4l2ymXRaof5cY5uIP9jm90AtCsXs=;5:p8+Fmh+Od3Z9kaXxTq5omxTIh6roSZo/NKh6s79GSRRvsCCqWXAPTbxYpddeYkO36Vr5DR+KjiAgUDCdWXd681FkkqpymsO23PvV/7Sn/7BCgub0prUVTIBipiFxshy8j1Dv+uLY85R0ZImF9VQjNZXVxi1of93Ix4rxBRF9SGE=;24:W+bLApEgX0uHCELvdCo362m44oZSo3SYJ3/fQ4knib/uEhfuaXzH3xeKOzoEdAoZr0B8+QOGBoEyfQzxYBFZigyicmNE4vKAPZHsosbf60U=;7:h/NGZDJjQjNRbXwl496yoLDOOWqxvkSAMfobMBwn5a2jYslA2K0ADO7UlV71aiPxESr1hG2MaCQbLVffOld69sV8wi8Lmw4aei4ZESpzqlaNtDQB8BH1256ive66Y6zjusQ42dcu2bo9Rb549Pz/orU6xA6dlQzZqBZcuYh0S5Qf5o3kScz3L3i6W0MvliHonu5C6EAAn6HdDJERh0mgmo15RgGJYil0Aia3d5BB+uqL/QbkNkM9ij1JfAHMQp2E x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 94b853ea-650d-4d7a-9219-08d52b946425 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(4534020)(4602075)(4603075)(4627115)(201702281549075)(2017052603258);SRVR:CY1PR07MB2200; x-ms-traffictypediagnostic: CY1PR07MB2200: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(100000703101)(100105400095)(3231022)(3002001)(10201501046)(6041248)(2016111802025)(20161123555025)(20161123564025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(6072148)(6043046)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY1PR07MB2200;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY1PR07MB2200; x-forefront-prvs: 04916EA04C x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39830400002)(346002)(376002)(189002)(24454002)(199003)(52314003)(2906002)(68736007)(2351001)(36756003)(5660300001)(8936002)(106356001)(86362001)(3280700002)(53546010)(105586002)(229853002)(99286004)(189998001)(6916009)(2950100002)(3660700001)(1730700003)(6306002)(6116002)(8676002)(305945005)(478600001)(81156014)(3846002)(6246003)(2501003)(102836003)(6512007)(81166006)(97736004)(101416001)(5640700003)(7736002)(66066001)(316002)(53936002)(76176999)(50986999)(6486002)(2900100001)(77096006)(6506006)(6436002)(54356999)(14454004)(25786009)(94096001);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR07MB2200;H:CY1PR07MB2199.namprd07.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: navimatics.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=billziss AT navimatics DOT com; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <8A227856A3A813438EB8A7848676E273 AT namprd07 DOT prod DOT outlook DOT com> MIME-Version: 1.0 X-OriginatorOrg: navimatics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 94b853ea-650d-4d7a-9219-08d52b946425 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Nov 2017 19:17:47.4693 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 21071be9-4f9a-413b-89ac-8353a5d2410a X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2200 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id vAEJI7n1025914 Corinna, thanks for your answer. 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: Chflags(2) and friends would be relatively easy to implement. OTOH the BSD’s 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.] [I know some OS’es have had to deal with stat(2) changes over the years, but I am not as familiar with Cygwin history.] Bill On 11/14/17, 2:06 AM, Corinna Vinschen wrote: >On Nov 13 23:21, Bill Zissimopoulos wrote: >> Does Cygwin have any support for BSD file flags (UF_* flags, such as >> UF_HIDDEN, etc.)? These flags are often used to provide support for >> Windows file attributes (FILE_ATTRIBUTE_*, such as >>FILE_ATTRIBUTE_HIDDEN). >> >> OSX and FreeBSD provide such support during stat(2) and chflags(2). I >> expect that Cygwin does not have such support, but wanted to >>double-check. >> >> >>https://www.freebsd.org/cgi/man.cgi?query=chflags&apropos=0&sektion=2&man >>pa >> th=FreeBSD+11.1-RELEASE+and+Ports&arch=default&format=html > >No, we don't support this. We couldn't support it via stat anyway, >only via the extra chflags function group. Patches welcome, as >long as it's the entire group of functions so chflags(1) compiles >OOTB. > > >Corinna > >-- >Corinna Vinschen Please, send mails regarding Cygwin to >Cygwin Maintainer cygwin AT cygwin DOT com >Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple