Need internal names for {end,set}hostent().

This commit is contained in:
kleink 1998-10-14 19:41:03 +00:00
parent 0b11c41974
commit 7a85778bf7
2 changed files with 11 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: namespace.h,v 1.22 1998/10/14 19:13:02 kleink Exp $ */
/* $NetBSD: namespace.h,v 1.23 1998/10/14 19:41:03 kleink Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -119,6 +119,7 @@
#define drand48 _drand48
#define endfsent _endfsent
#define endgrent _endgrent
#define endhostent _endhostent
#define endnetent _endnetent
#define endnetgrent _endnetgrent
#define endprotoent _endprotoent
@ -276,6 +277,7 @@
#define setfsent _setfsent
#define setgrent _setgrent
#define setgroupent _setgroupent
#define sethostent _sethostent
#define sethostname _sethostname
#define setlogmask _setlogmask
#define setmode _setmode

View File

@ -1,4 +1,4 @@
/* $NetBSD: sethostent.c,v 1.9 1998/01/06 05:01:30 perry Exp $ */
/* $NetBSD: sethostent.c,v 1.10 1998/10/14 19:41:03 kleink Exp $ */
/*
* Copyright (c) 1985, 1993
@ -39,16 +39,22 @@
static char sccsid[] = "@(#)sethostent.c 8.1 (Berkeley) 6/4/93";
static char rcsid[] = "Id: sethostent.c,v 8.5 1996/09/28 06:51:07 vixie Exp ";
#else
__RCSID("$NetBSD: sethostent.c,v 1.9 1998/01/06 05:01:30 perry Exp $");
__RCSID("$NetBSD: sethostent.c,v 1.10 1998/10/14 19:41:03 kleink Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
#include <sys/param.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <netdb.h>
#include <resolv.h>
#ifdef __weak_alias
__weak_alias(sethostent,_sethostent);
__weak_alias(endhostent,_endhostent);
#endif
void _res_close __P((void));
void