[PATCH 2/4] getaddrinfo: Avoid negating error values

Joseph S. Myers joseph@codesourcery.com
Mon Dec 9 18:23:00 GMT 2013


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



More information about the Libc-alpha mailing list