From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 101560 invoked by alias); 9 Feb 2016 09:36:31 -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 100852 invoked by uid 89); 9 Feb 2016 09:36:30 -0000 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 Received: from ipbcc0d020.dynamic.kabel-deutschland.de (HELO calimero.vinschen.de) (188.192.208.32) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 09 Feb 2016 09:36:30 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id DCD24A8055C; Tue, 9 Feb 2016 10:36:26 +0100 (CET) Date: Tue, 09 Feb 2016 09:36:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Problem with new acl code and cdrtools Message-ID: <20160209093626.GK12975@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20160208131835.GC12975@calimero.vinschen.de> <20160208141015.GD12975@calimero.vinschen.de> <56B8EB73.8090900@cygwin.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="fUvfsPTz/SzOZDdw" Content-Disposition: inline In-Reply-To: <56B8EB73.8090900@cygwin.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-SW-Source: 2016-02/txt/msg00108.txt.bz2 --fUvfsPTz/SzOZDdw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1531 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 > > #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 #include 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 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" Content-length: 819 -----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--