new copyright
[unix-history] / usr / src / include / netdb.h
index ff1bbfe..4637338 100644 (file)
@@ -1,31 +1,29 @@
-/*
- * Copyright (c) 1980,1983,1988 Regents of the University of California.
+/*-
+ * Copyright (c) 1980, 1983, 1988 Regents of the University of California.
  * All rights reserved.
  *
  * All rights reserved.
  *
- * Redistribution and use in source and binary forms are permitted
- * provided that this notice is preserved and that due credit is given
- * to the University of California at Berkeley. The name of the University
- * may not be used to endorse or promote products derived from this
- * software without specific prior written permission. This software
- * is provided ``as is'' without express or implied warranty.
+ * %sccs.include.redist.c%
  *
  *
- *     @(#)netdb.h     5.9 (Berkeley) %G%
+ *     @(#)netdb.h     5.11 (Berkeley) %G%
  */
 
  */
 
+#define        _PATH_HEQUIV    "/etc/hosts.equiv"
+#define        _PATH_HOSTS     "/etc/hosts"
+#define        _PATH_NETWORKS  "/etc/networks"
+#define        _PATH_PROTOCOLS "/etc/protocols"
+#define        _PATH_SERVICES  "/etc/services"
+
 /*
 /*
- * Structures returned by network
- * data base library.  All addresses
- * are supplied in host order, and
- * returned in network order (suitable
- * for use in system calls).
+ * Structures returned by network data base library.  All addresses are
+ * supplied in host order, and returned in network order (suitable for
+ * use in system calls).
  */
 struct hostent {
        char    *h_name;        /* official name of host */
        char    **h_aliases;    /* alias list */
        int     h_addrtype;     /* host address type */
        int     h_length;       /* length of address */
  */
 struct hostent {
        char    *h_name;        /* official name of host */
        char    **h_aliases;    /* alias list */
        int     h_addrtype;     /* host address type */
        int     h_length;       /* length of address */
-       char    **h_addr_list;  /* list of addresses from name server */
-#define        h_addr  h_addr_list[0]  /* address, for backward compatiblity */
+       char    *h_addr;        /* address */
 };
 
 /*
 };
 
 /*