Add h_addr_list to hostent
authorKevin Dunlap <kjd@ucbvax.Berkeley.EDU>
Thu, 8 Aug 1985 09:41:51 +0000 (01:41 -0800)
committerKevin Dunlap <kjd@ucbvax.Berkeley.EDU>
Thu, 8 Aug 1985 09:41:51 +0000 (01:41 -0800)
SCCS-vsn: include/netdb.h 5.2

usr/src/include/netdb.h

index 260a730..e8fec12 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)netdb.h     5.1 (Berkeley) %G%
+ *     @(#)netdb.h     5.2 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -18,7 +18,8 @@ struct        hostent {
        char    **h_aliases;    /* alias list */
        int     h_addrtype;     /* host address type */
        int     h_length;       /* length of address */
        char    **h_aliases;    /* alias list */
        int     h_addrtype;     /* host address type */
        int     h_length;       /* length of address */
-       char    *h_addr;        /* address */
+       char    **h_addr_list;  /* list of addresses from name server */
+#define        h_addr  h_addr_list[0]; /* address, for backward compatiblity */
 };
 
 /*
 };
 
 /*