This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] [BZ 20628] make mallinfo saturating


I considered that, but given that a 64-bit address space wraps "int" 4
billion times, I doubt allowing unsigned conversions adds much value.  I
chose INT_MAX because it's still "biggest" of the valid ABI-compliant
return values.  The ABI is broken anyway on 64-bit size_t systems, I
think the only real value in this type of patch is making sure the user
knows the value is "wrong", rather than trying to return useful data.

But yeah, just as easy to do it either way.  I'll get some popcorn and
let you regulars argue it out :-)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]