From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11995 Path: news.gmane.org!.POSTED!not-for-mail From: Jens Gustedt Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] stdio: implement fopencookie(3) Date: Tue, 10 Oct 2017 23:40:15 +0200 Organization: inria.fr Message-ID: <20171010234015.774c6ddd@inria.fr> References: <20171010180356.11352-1-nenolod@dereferenced.org> <20171010205117.3deabfc7@inria.fr> <20171010205654.GJ1627@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/UqB40id=qvopkNT2m8Zs==D"; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1507671633 13666 195.159.176.226 (10 Oct 2017 21:40:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 10 Oct 2017 21:40:33 +0000 (UTC) Cc: musl@lists.openwall.com Original-X-From: musl-return-12008-gllmg-musl=m.gmane.org@lists.openwall.com Tue Oct 10 23:40:26 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1e22GF-0002NU-6k for gllmg-musl@m.gmane.org; Tue, 10 Oct 2017 23:40:23 +0200 Original-Received: (qmail 21869 invoked by uid 550); 10 Oct 2017 21:40:28 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 21851 invoked from network); 10 Oct 2017 21:40:28 -0000 X-IronPort-AV: E=Sophos;i="5.43,359,1503352800"; d="scan'208";a="295551816" In-Reply-To: <20171010205654.GJ1627@brightrain.aerifal.cx> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) X-Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c6QAAACRQTFRFERslNjAsLTE9Ok9wUk9TaUs8iWhSrYZkj42Rz6aD3sGZ Xref: news.gmane.org gmane.linux.lib.musl.general:11995 Archived-At: --Sig_/UqB40id=qvopkNT2m8Zs==D Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello Rich, On Tue, 10 Oct 2017 16:56:54 -0400 Rich Felker wrote: > Also note that while standard functions in POSIX can additionally be > defined as function-like macros, they can't be object-like macros, so > (*read), etc. are safe due to the parentheses. They would only be safe in the header. They are not safe on the using side, I think. Something like toto->read =3D whatever; or *toto =3D (cookie_io_functions_t){ .read =3D another, } can't be protected by parenthesis. Thanks Jens --=20 :: INRIA Nancy Grand Est ::: Camus ::::::: ICube/ICPS ::: :: ::::::::::::::: office Strasbourg : +33 368854536 :: :: :::::::::::::::::::::: gsm France : +33 651400183 :: :: ::::::::::::::: gsm international : +49 15737185122 :: :: http://icube-icps.unistra.fr/index.php/Jens_Gustedt :: --Sig_/UqB40id=qvopkNT2m8Zs==D Content-Type: application/pgp-signature Content-Description: Digitale Signatur von OpenPGP -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSN9stI2OFN1pLljN0P0+hp2tU34gUCWd0+PwAKCRAP0+hp2tU3 4mbVAJ9pAGc5iDRpQx3QzOYJP8rfmCuucACcCW851c80d3yr/NEpu2OfP8Y1Q3E= =BenQ -----END PGP SIGNATURE----- --Sig_/UqB40id=qvopkNT2m8Zs==D--