summaryrefslogtreecommitdiffstats
path: root/usr.bin/getent/getent.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-2/+2
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* tedu networks(5) support;schwarze2014-10-241-45/+1
| | | | OK florian@ henning@
* As reported by Marcus Merighi, hosts enumeration no longer works.schwarze2014-10-201-5/+4
| | | | | | | | | | The asr library no longer supports gethostent(3), and there is no reasonable way to implement it. Consequently, as suggested by guenther@, error out when hosts enumeration is requested. OK deraadt@ guenther@ florian@ Also remove the now useless calls to sethostent(3) and endhostend(3) as suggested by florian@.
* Use getaddrinfo() to display multiple addresses including IPv6.florian2013-03-301-6/+43
| | | | | | Pointed out by todd@. "The approach seems fine." deraadt@ OK todd@
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* getservbyport() wants network byte order; from NetBSDotto2006-05-071-2/+2
|
* Include arpa/inet.h after netinet/in.h, not before. deraadt@ OKmillert2006-03-121-4/+4
|
* various cleanups, work with ottoderaadt2005-11-101-162/+62
|
* Introducing getent(1) from NetBSD. ok deraadt@otto2005-11-101-0/+578