Date: Sun, 30 Jun 2013 22:07:53 +0200 From: Tijl Coosemans <tijl@coosemans.org> To: Ed Schouten <ed@80386.nl> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r252411 - head/sys/sys Message-ID: <51D09019.50101@coosemans.org> In-Reply-To: <CAJOYFBDB59tLCVT1P3sdcP%2Bj8U746MshD39nRizZd15xQ00vbw@mail.gmail.com> References: <201306300854.r5U8sfYS018720@svn.freebsd.org> <51D07C10.2000509@coosemans.org> <CAJOYFBDB59tLCVT1P3sdcP%2Bj8U746MshD39nRizZd15xQ00vbw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2FDKUDABQUBTHOJNBRGWK Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 2013-06-30 21:44, Ed Schouten wrote: > 2013/6/30 Tijl Coosemans <tijl@coosemans.org>: >> I don't think you can use static inline. Standard library functions ne= ed >> to have external linkage, which means you have to implement them in li= bc. >=20 > First of all, I could be mistaken, so please correct me if I say > something wrong here. >=20 > If my memory serves me right, this requirement is part of POSIX -- not > ISO C. As this is interface is not yet part of any version of POSIX > and at least I am not in the possession of a draft of POSIX that > specified these functions, I think it would be unwise to add this to > the C library. I think there is nothing that would forbid us to use > static inline functions. >=20 > As C11 merely names these things "functions", I think using a static > inline function would currently be the wisest thing to do. To my > knowledge the current version of the code at least complies with the > standards at hand. The N1570 draft of C11 7.1.2 point 6 says: Any declaration of a library function shall have external linkage. ------enig2FDKUDABQUBTHOJNBRGWK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iF4EAREIAAYFAlHQkB4ACgkQfoCS2CCgtiseFgD+M8ngvKmavtxg8QbbugwqXLAy ZVgDDV6EKgY+aXkXKsEA/Rbn+iFHbLfqYbJo1yKFjxFf5scurerjxdzPmnIeDn6m =8jPs -----END PGP SIGNATURE----- ------enig2FDKUDABQUBTHOJNBRGWK--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51D09019.50101>