"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "sockutils.c" between
libpcap-1.10.0.tar.gz and libpcap-1.10.1.tar.gz

About: libpcap is a packet filter library used by tools like tcpdump.

sockutils.c  (libpcap-1.10.0):sockutils.c  (libpcap-1.10.1)
skipping to change at line 530 skipping to change at line 530
/* close the socket anyway */ /* close the socket anyway */
closesocket(sock); closesocket(sock);
return -1; return -1;
} }
closesocket(sock); closesocket(sock);
return 0; return 0;
} }
/* /*
* gai_errstring() has some problems: * gai_strerror() has some problems:
* *
* 1) on Windows, Microsoft explicitly says it's not thread-safe; * 1) on Windows, Microsoft explicitly says it's not thread-safe;
* 2) on UN*X, the Single UNIX Specification doesn't say it *is* * 2) on UN*X, the Single UNIX Specification doesn't say it *is*
* thread-safe, so an implementation might use a static buffer * thread-safe, so an implementation might use a static buffer
* for unknown error codes; * for unknown error codes;
* 3) the error message for the most likely error, EAI_NONAME, is * 3) the error message for the most likely error, EAI_NONAME, is
* truly horrible on several platforms ("nodename nor servname * truly horrible on several platforms ("nodename nor servname
* provided, or not known"? It's typically going to be "not * provided, or not known"? It's typically going to be "not
* known", not "oopsie, I passed null pointers for the host name * known", not "oopsie, I passed null pointers for the host name
* and service name", not to mention they forgot the "neither"); * and service name", not to mention they forgot the "neither");
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)