Personal tools
You are here: Home Projects C++ Cfront releases Release 3.0.3 source incl-master proto-headers netdb.h
Document Actions

netdb.h

by Michael L Powell last modified 2007-01-26 03:21

Click here to get the file

Size 2.5 kB - File type text/plain

File contents

/*ident	"@(#)cls4:incl-master/proto-headers/netdb.h	1.1" */
#usedby bsd2 bsd3 sunos3 sunos4 sunos4.1 alliant hpux2.0 hpux hpux8.0 svr4 sgi-svr4 solaris
/*******************************************************************************
 
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

#os sunos3 sunos4 sunos4.1 alliant hpux2.0 hpux hpux8.0
#hide getrpcbyname
#hide getrpcbynumber
#endos


#expand netdb.h

extern "C" {
#os svr4
        hostent*        gethostbyname(char*);
        hostent*        gethostbyaddr(char*, int, int);
#endos
#os bsd2 bsd3 sunos3 sunos4 sunos4.1 solaris alliant hpux2.0 hpux hpux8.0 sgi-svr4
        hostent*        gethostbyname(const char*);
        hostent*        gethostbyaddr(const char*, int, int);
#endos
	hostent*	gethostent();
	int		sethostent(int);
	int		endhostent();

	netent*		getnetbyname(const char*);
#os bsd2 bsd3 sunos3 sunos4 sunos4.1 alliant svr4 sgi-svr4 solaris
	netent*		getnetbyaddr(long, int);
#endos
#os hpux2.0 hpux hpux8.0
	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 hpux8.0
	rpcent*		getrpcent();
	rpcent*		getrpcbyname(const char *);
	rpcent*		getrpcbynumber(int);
	int 		setrpcent(int);
	int 		endrpcent();
#endos
}

#endif
« November 2024 »
Su Mo Tu We Th Fr Sa
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: