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 2/4] getaddrinfo: Avoid negating error values


On Mon, 9 Dec 2013, Pavel Simerda wrote:

> There's no reason for negating the error values in the current code.

Could you clarify the underlying analysis more?  Is it always the case in 
the present code that the error numbers get negated an even number of 
times on their way to the user, and this patch changes that number to be 
0?  What's the before-and-after interface for which functions return an 
error number, or a negated error number, and what are the users for 
functions whose return value semantics you've changed?  Do none of those 
functions have a comment above them describing the return value semantics, 
which would need updating?

-- 
Joseph S. Myers
joseph@codesourcery.com


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