svn commit: r211276 - head/lib/libc/net

Hajimu UMEMOTO ume at freebsd.org
Tue Oct 5 15:44:36 UTC 2010


Hi,

>>>>> On Mon, 4 Oct 2010 20:40:44 +0300
>>>>> Kostik Belousov <kostikbel at gmail.com> said:

kostikbel> Yes, I saw that commit. And there is a software in wild that does expect
kostikbel> return value 0 and NULL returned pointer when protocol was not found,
kostikbel> as opposed to some processing error. The interpretation of non-zero
kostikbel> error code is "We did something wrong, or system configuration is wrong,
kostikbel> etc". While zero error code and NULL pointer is perceived as "Wrong
kostikbel> protocol name supplied".

Okay, I found the description in Ubuntu's manpage.  So, I've committed
to return zero when no protocol entry is found.

Sincerely,

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume at mahoroba.org  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/


More information about the svn-src-head mailing list