delorie.com/archives/browse.cgi | search |
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:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=UKfTKzgMOvvA7y+YUYS4lCls5by2MiSpZA840EcF4W0d80MxzkIto | |
23jTs1jtbf17oCaojDV1oUXH/j6oRZwqI5T+COJdWs6VJGTIU/1Vtrr0fed+6OHW | |
6RvziAs3nB2tI1V6OD906Cz9kbqK1VNL3p+o7vez+T7SyGU82ygPqw= | |
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:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=VfIq6bq896mPWSguGV0ZHH/tjas=; b=kd8etLv5mkcqIg2F5VynpNcVghV8 | |
a4j3jbxGHeZXoV3/byZ5M/bDjuD4tbTTdXGd5agOeduD3MwTbQuEjvFyb04NpUZv | |
hYao9TF2BT+tyPWwo+FZLoQKGM772rDEmayC6kgznaDE2NhSfrpOYBaMFhO7HoXL | |
JU4RHOsf8iEpOUQ= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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=-48.3 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_PBL,RDNS_DYNAMIC,USER_IN_WHITELIST autolearn=no version=3.3.2 spammy=typedefs, piece, acl_t, H*MI:sk:56B8EB7 |
X-HELO: | calimero.vinschen.de |
Date: | Tue, 9 Feb 2016 10:36:26 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Problem with new acl code and cdrtools |
Message-ID: | <20160209093626.GK12975@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <CAFo71_4fDB3WkhXTL7eybNzKh2idVF1UHb7oJjaxFshcS9BFUg AT mail DOT gmail DOT com> <20160208131835 DOT GC12975 AT calimero DOT vinschen DOT de> <CAFo71_5=KT=kJY-wz0EZWZ_LBriCjX2s6=5PSVhHRSxx-A92qg AT mail DOT gmail DOT com> <20160208141015 DOT GD12975 AT calimero DOT vinschen DOT de> <56B8EB73 DOT 8090900 AT cygwin DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <56B8EB73.8090900@cygwin.com> |
User-Agent: | Mutt/1.5.24 (2015-08-30) |
--fUvfsPTz/SzOZDdw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Feb 8 13:24, Yaakov Selkowitz wrote: > On 2016-02-08 08:10, Corinna Vinschen wrote: > >Alternatively we could allow to use the Solaris ACL functions even if > >only including sys/acl.h, given some macro: > > > > sys/acl.h: > > > > #ifdef __USE_OLD_SOLARIS_ACL_FUNCTIONS > > # include <cygwin/acl.h> > > #else > > [...POSIX definitions...] > > #endif >=20 > Do the functions or typedefs conflict in any way? No, they don't. However, I encountered a problem when exposing the Solaris API at the same time as the POSIX API via sys/acl.h. Vim's autoconf test failed to recognize support for the POSIX API. Try this entirely harmless (from the POSIX POV) piece of code: #include <sys/types.h> #include <sys/acl.h> acl_t acl; int main () { acl =3D acl_get_file("foo", ACL_TYPE_ACCESS); return 0; } Works fine, but now try this with an additional #include <cygwin.acl.h> You'll get an error message: $ gcc -c acl.c acl.c:5:7: error: =E2=80=98acl=E2=80=99 redeclared as different kind of sym= bol acl_t acl; ^ In file included from acl.c:2:0: /usr/include/cygwin/acl.h:76:13: note: previous declaration of =E2=80=98acl= =E2=80=99 was here extern int acl (const char *__path, int __cmd, int __nentries, ^ The existence of the functions acl and facl is entirely unexpected in the POSIX context. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --fUvfsPTz/SzOZDdw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWubMaAAoJEPU2Bp2uRE+gYEIP/1q71DLjVdVWpj4eO2fMG33Q 0klwle3Czv2XFb8B+Kj3joRaJDZz8laEFMFfLelGMSC78gBjKhawWxKkOoQQEpW3 soc8JQB9Vzb0d8baXInbHz09El7ilL69M35MIu3tZMRPzLs/z9yfG6YLQedxmF26 C1rB/nhrEOCnIpFwjm3zhSQ77iqOFUJoYic6c5yVEVjLrtMszkdGy/tOfnF5S3V/ HJ2o7GbKAbqLbUUV382LR/rSGrn9QHaqBoR4CUbNOYmzzuQ5FXtS8uFNGkf0xZgJ 7uoT238JW5sZSpd6FFO3+WtTJOf4++dU8I5LZM8CbFkPsbxxPBwjL+moIAULE6vJ bvu1GJ7DpN69D3s2VYSxpPormUdKTE25TeRZPqUCQPxb6blH2lPV9mzYWorTkKYx y1umaV2GchSgCn69C8UWLsxCdiVh7PYCSMYnjDja1+FgEmnv5U3XKy0SiOW6AWPM HgDG7akBDt9puWZJbArT7HBP03UdCbdkxk20doDHwNdJ470fz6EQikW/EdcsX3ji hCVzPZ/Tj8MfQB6aXyHU31sWd6xJHFVTQzVBRgpAW4mxh97SGnz9mkntkyG2ujlI jAPGWrSaZjrNXb26Cz9iMohHb7XLsmXc6+tZ4df6f+rBKeuAdY2nGMNtwYFa6DH5 jouAmk45sQ/l1tT7yT2k =GoBa -----END PGP SIGNATURE----- --fUvfsPTz/SzOZDdw--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |