Google
 

Trailing-Edge - PDP-10 Archives - SRI_NIC_PERM_FS_1_19910112 - kcc-6/include/netdb.h
There are 8 other files named netdb.h in the archive. Click here to see a list.
/* <NETDB.H> - definitions for BSD network library routines
**
**	(c) Copyright Ken Harrenstien 1989
**
**	The BSD network routines are only partially supported.
*/

#ifndef _NETDB_INCLUDED
#define _NETDB_INCLUDED

#define gethostent	gthent	/* linker disambiguation */
#define gethostbyname	gthnam
#define gethostbyaddr	gthadr

#define gethostid	gtlsid
#define gethostname	gtlsnm

struct hostent {
    char *h_name;		/* official name of host */
    char **h_aliases;		/* alias list */
    int h_addrtype;		/* address type */
    int h_length;		/* length of address */
    char *h_addr;		/* address */
};

#define AF_INET		2	/* internet address type */
#define INET_ADDR_SIZE	4	/* size (in chars) of one */

struct hostent *gethostent(), *gethostbyname(), *gethostbyaddr();
void sethostent(), endhostent();

int gethostid(), gethostname();

#endif /* ifndef _NETDB_INCLUDED */