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] dynarray: Set errno on overflow-induced allocation failure


On 08/30/2017 11:01 AM, DJ Delorie wrote:
Ah, ok.  Consistency is good :-)

It's not just consistency, it's utility. If a memory allocator fails due to a request for 2**64 bytes of memory, ENOMEM is more likely to communicate useful info to the end user than any other errno value would.


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