Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle.Prune svn:mergeinfo from the new branch, as nothing has been mergedhere.Additional commits post-branch will follow.Approved by: re (implicit)Sponsored by: The FreeBSD Foundation
Remove "extern" from function prototypes, and fix some (but not all)style(9) violations.MFC after: 1 week
Remove casts from {c,m,re}alloc() and simplify sizeof().MFC after: 1 week
#include the right header so we get prototypes for our own functions.MFC after: 1 week
Further #include cleanup.MFC after: 1 week
Provide correct prototypes for functions with no arguments.MFC after: 1 week
Replace malloc() + memset() with calloc. This corrects a misuse ofmemset() as a side effect.
If perform-actual-lookups is enabled, getservbyname() matches an entryeven when proto is not valid.Submitted by: Michael Bushkov <bushman__at__rsu.ru>
- Extend the nsswitch to support Services, Protocols and Rpc databases.- Make nsswitch support caching.Submitted by: Michael Bushkov <bushman__at__rsu.ru>Sponsored by: Google Summer of Code 2005