# $NetBSD: Makefile,v 1.2 2004/11/29 05:02:52 lukem Exp $
# $FreeBSD$
WARNS= 3
PROG= getent
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.\" $FreeBSD$
.Dd August 24, 2005
.Dt GETENT 1
.Os
A
.Nm
command appeared in
.Nx 3.0 .
.Nx 3.0 ,
and was imported into
.Fx 7.0 .
It was based on the command of the same name in
.Tn Solaris
and
*/
#include <sys/cdefs.h>
#if 0
#ifndef lint
__RCSID("$NetBSD: getent.c,v 1.7 2005/08/24 14:31:02 ginsbach Exp $");
#endif /* not lint */
#endif
__FBSDID("$FreeBSD$");
#include <sys/socket.h>
#include <sys/param.h>
#include <assert.h>
#include <ctype.h>
#include <arpa/nameser.h>
#include <net/if.h>
#include <net/if_ether.h>
#include <netinet/if_ether.h>
#include <netinet/in.h> /* for INET6_ADDRSTRLEN */