/*ident	"@(#)cls4:incl-master/proto-headers/netdb.h	1.1" */
#usedby bsd2 bsd3 sunos3 sunos4 sunos4.1 alliant hpux2.0 hpux

/*******************************************************************************
 
C++ source for the C++ Language System, Release 3.0.  This product
is a new release of the original cfront developed in the computer
science research center of AT&T Bell Laboratories.

Copyright (c) 1991 AT&T and UNIX System Laboratories, Inc.
Copyright (c) 1984, 1989, 1990 AT&T.  All Rights Reserved.

THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE of AT&T and UNIX System
Laboratories, Inc.  The copyright notice above does not evidence
any actual or intended publication of such source code.

*******************************************************************************/
#ifndef __NETDB_H
#define __NETDB_H

#hide	getrpcent
#hide	gethostbyname
#hide	gethostbyaddr
#hide	gethostent
#hide	sethostent
#hide	endhostent
#hide	getnetbyname
#hide	getnetbyaddr
#hide	getnetent
#hide	setnetent
#hide	endnetent
#hide	getservbyname
#hide	getservbyport
#hide	getservent
#hide	setservent
#hide	endservent
#hide	getprotobyname
#hide	getprotobynumber
#hide	getprotoent
#hide	setprotoent
#hide	endprotoent

#expand netdb.h

extern "C" {
	hostent*	gethostbyname(const char*);
	hostent*	gethostbyaddr(const char*, int, int);
	hostent*	gethostent();
	int		sethostent(int);
	int		endhostent();

	netent*		getnetbyname(const char*);
#os bsd2 bsd3 sunos3 sunos4 sunos4.1 alliant
	netent*		getnetbyaddr(long, int);
#endos
#os hpux2.0 hpux
	netent*		getnetbyaddr(int, int);
#endos
	netent*		getnetent();
	int		setnetent(int);
	int		endnetent();

	servent*	getservbyname(const char*, const char*);
	servent*	getservbyport(int, const char*);
	servent*	getservent();
	int		setservent(int);
	int		endservent();

	protoent*	getprotobyname(const char*);
	protoent*	getprotobynumber(int);
	protoent*	getprotoent();
	int		setprotoent(int);
	int		endprotoent();
#os sunos3 sunos4 sunos4.1 alliant hpux2.0 hpux
	rpcent*		getrpcent();
	rpcent*		getrpcbyname(const char *);
	rpcent*		getrpcbynumber(int);
	int 		setrpcent(int);
	int 		endrpcent();
#endos
}

#endif
