This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: glibc at the Toolchains microconference at LPC 2019
- From: "Maciej W. Rozycki" <macro at wdc dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: Paul Eggert <eggert at cs dot ucla dot edu>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Sat, 14 Sep 2019 05:33:03 +0100 (BST)
- Subject: Re: glibc at the Toolchains microconference at LPC 2019
- Ironport-sdr: cLyQy1k8XQ9K3kZCACGwaDi6CQAgOcwI6Da15UlslksWVJ/c4gozXeJg2Ek3bPyGqsywjnOdmu w5DVjNg77UOszjWxOF4HjsGa9AUoqUFxVFZd+2S3a46xGCvcw1RwJFK1Cop9GVW5T8h8rcVzM0 gVK+NnUOr6dX1HvxlWbMO2ZIyafOWio4WmUonIu4Dz8nl8z4hsi4+pF7j13upfcR+Su1HkSK5y sVVQjehxpqGwp7HqQOTR+9XhxRTVV4qlVx7QgC0yuvX/HfdZUEYrx95jpzUEOy+BTeReYfFWRF VvY=
- Ironport-sdr: /k22XJC2SPGbxx6yXvodlu+q1K4OLCxiQnKQ0je3+SdZBY0nZOABIPoERvGg4jQGB8506E3ItU Bv1dXC9NlIMMFUF7n7acdnL0a3+AlI4dkDqQa126wZoSPKx8R0o0anDzaBCcRj8vU47ULQQs8J 58oQ9CxJ3tvofC/CHMH/c859uFJsweG1sZAIyAJjcHcp8xa1NZeSYY2Tqfly78HYt6wIsWDz/5 jxV6i+WAJ1ryEoWbyXLIYSrvqnM3DbxbyTgFEOMbC9ZzrfYgGP3TyVsXUz+zKvv0DQY1njSCu4 3yFiCn8ah8kW9wn503zdu1vm
- Ironport-sdr: 1rpleP0Xj8CtIe5k3iiNsSlcyP8YUCEF0+yMcUf9gmtORRFESyyI7KJ7umRfTS10s3VAXInT9I sRrsWAaQ1zGYzyejsph2SU2V1iU1b9WaH2p0xAwzrkxIIOFhYmc0OaxuyVqEEKfbk7CpwP0+bw RGu+76l+PZGb4PlRSRBf3i8JD1QRgwhYBrl+B6QrZVbgQvqG0ObOpMxdD1vFZBRX24QDDviHFB Mm0KA8Yg4U3Q+62S6pvXMOTwTMBNJ40CmIX574Gor2MJrrkIKRgLMbd0wNjNYZGBC40OymkcOd VPk=
- References: <87o92kibdz.fsf@oldenburg2.str.redhat.com> <alpine.DEB.2.20.1906271839080.11773@tpp.hgst.com> <87y318r8eb.fsf@oldenburg2.str.redhat.com> <ca7b4e82-38b6-399f-2858-289ea4143588@cs.ucla.edu> <87lfwukzw9.fsf@oldenburg2.str.redhat.com>
- Wdcironportexception: Internal
On Fri, 19 Jul 2019, Florian Weimer wrote:
> > I suggest using "ssize_t or size_t" to keep the text parallel with
> > "int or unsigned int". We shouldn't insist on size_t for buffer sizes
> > when the natural interpretation of the value is signed (as in the
> > return value for 'read' etc.) or is too large for malloc etc.
>
> Right. Incoming buffer sizes should be size_t (no in-band signaling).
> Return values tend to have in-band signaling for errors and thus need to
> be ssize_t.
FYI, the response was positive and a rough transcript of the session is
available from <https://etherpad.net/p/LPC2019_TC>. I'll be there at the
glibc BoF available to comment.
Maciej