From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 2B5393858D20 for ; Tue, 15 Mar 2022 15:47:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2B5393858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 767E7342E09; Tue, 15 Mar 2022 15:47:15 +0000 (UTC) Date: Tue, 15 Mar 2022 11:47:20 -0400 From: Mike Frysinger To: Joel Sherrill Cc: newlib@sourceware.org Subject: Re: [PATCH newlib] libc/include/malloc.h: Add prototype for GNU extension malloc_usable_size() Message-ID: Mail-Followup-To: Joel Sherrill , newlib@sourceware.org References: <20220315151644.369-1-joel@rtems.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Zlel+Bfd4vxTaeLa" Content-Disposition: inline In-Reply-To: <20220315151644.369-1-joel@rtems.org> X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2022 15:47:22 -0000 --Zlel+Bfd4vxTaeLa Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 15 Mar 2022 10:16, Joel Sherrill wrote: > This is not provided by the newlib malloc implementation but may > be available in external implementations. > --- > newlib/libc/include/malloc.h | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > diff --git a/newlib/libc/include/malloc.h b/newlib/libc/include/malloc.h > index a9dc5bca6..e73095e1e 100644 > --- a/newlib/libc/include/malloc.h > +++ b/newlib/libc/include/malloc.h > @@ -137,6 +137,10 @@ extern void __malloc_lock(struct _reent *); > =20 > extern void __malloc_unlock(struct _reent *); > =20 > +#if __GNU_VISIBLE > +extern size_t malloc_usable_size(void *); > +#endif > + i'm confused. isn't this prototype already defined in this header file on line 101 above where you added this ? -mike --Zlel+Bfd4vxTaeLa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmIwtQgACgkQQWM7n+g3 9YFVbA//Wvr0lTfJyWbeNo79V8zCYaJrpyELevqDUZ+6T3+6Vu784fsP2w2/EzNK q6/X5R6SmCaIw0meSU1bSLVRtz0ZMFHTlwPkuH46D5fKJxRA+/dFKiBByNNZdKoT tpmUmA+POzasjEoptrbXmXzwIFGqj4Mmr35d1PGeW7ROUdoeMHXluytovEfsQVM3 wiDfn2+mSSgehZWctGnuZw9CmxOW8+myNfMThA2m9ucM/n0kUbIqPHBIC2NatEXv vBlNpRrJJVHxoF5PkL4q4B3u7ORpW9MeRAZwtevOfPTM2MMH1+kVB/TFt3mU4pz0 446ZeLGi6IEDaHld/98ta45dKfTFOOEu/+e/Es7h97cL47+fehgJ/U/D2eCvwiym HlhCGQXAgobH+mQwpRkwY+uRKibRCIjavhSUohM8u3V5Fc55aTOSpZQ7qAX6JnWj 9VKGm2wqZFhWolGkVuoWkX3HZqr3vWfpQRtVSWy1VyRxAA5vgerCY/JylnoAiDdu SlFAnL+gGfJQBT27RsboiLbVDIP59ofmtfMF3xfqF/4v86ZOiyG1nnyYSnRJJgbf HN2Gsq4WzH6tse7mxUl3Sy24t7+1W+03qpaGr4kRw3kD2InINrSaChM8gwrb+Mc0 tR+gQyqObDjwlgzDoRyuafFXZQ7hNFoQ69IWjW7EqkHEMTL/QSQ= =AvbY -----END PGP SIGNATURE----- --Zlel+Bfd4vxTaeLa--