Altro materiale sulla risoluzione dei nomi, e inizio della trattazione di
[gapil.git] / listati / hostent.h
diff --git a/listati/hostent.h b/listati/hostent.h
new file mode 100644 (file)
index 0000000..2c34947
--- /dev/null
@@ -0,0 +1,8 @@
+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 */
+}
+#define h_addr  h_addr_list[0]  /* for backward compatibility */