Re: [PATCH newlib] libc/include/malloc.h: Add prototype for GNU extension malloc_usable_size()
Mike Frysinger <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <YjEmME6YPuIzwPJj@vapier> |
On 15 Mar 2022 15:54, Joel Sherrill wrote: > The prototype isn't wrapped by __GNU_VISIBLE. Should it be? we're talking about malloc.h here. this is already a non-standard header. the standard malloc APIs are defined in stdlib.h: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html so i'm not sure how much value there is annotating standards in a header that is not in any standard, and whose inclusion clearly declares "i am not conforming to any standards". we could put a disclaimer/explanation at the top of the header file to make this a bit more clear. -mike
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmIxJjAACgkQQWM7n+g3 9YHIdQ//RZa3dtIM4cwdz4i8soff+za/Polm33FVKVHa/ZzCdS73Tf95oiGGZDV4 17GVaYxg91jjKezNPMcPL4BWpnQoOvBkgy6GyW4JTxBk26H5PewVyscLtCdDaVb9 qo6dsVmWMZeARbTC09/+Mf7zOXwO5OqHFq8vXEjqL6rfC40DKqB1dCYR31It0B2Q SZV58DF1ieU9pz/hqabxSSygxBEdggC/M9RvAhKwRbWOgQLz9LOOf9S7BXLU1HbY NXuP49k6wsNXKXMmhUD+prf7VYYOTAjIK0ETxpawutLkEap4KVB/J5i7sPiYixBB E96VR5DjiB2cGODS2uw3ccSUo5iBM9dIvWaom7kJlVDY4mNR4TzgD0/f1ffncDuE n8EZVumMJ9gASN9tdNCq0N1Bn/y5N6BYXdgCw2qNRgYY5Mz5RTlrcD9PGJLtUMxx 3xNFXNtahzIvtGqhP0sfKVbMup9349gb+T/b15MuQxBLefMFGRV9c7SAwpBVI3SP Wt7/x+nxDMeDGAv3cOBpzyyG1gulaDTfyQcpgjkPot0GHHWSfZ724eREK8NWrZ4H j+gC1+qsPinTHuRDvwOgEO1E7vG+rGDUOOzSYSzMXWVCzV87KWYPEEMEjg7jmh9d BrrdPjKGWr0LrFODyJmCRj9kVhAFHrbBQoCnqPLYev7eDKaxe4Q= =5bco -----END PGP SIGNATURE-----