glibc at the Toolchains microconference at LPC 2019
Maciej W. Rozycki
macro@wdc.com
Sat Sep 14 04:33:00 GMT 2019
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
More information about the Libc-alpha
mailing list