getnetbydns.c (8870) | getnetbydns.c (11661) |
---|---|
1/*- 2 * Copyright (c) 1985, 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 39 unchanged lines hidden (view full) --- 48 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 49 * SOFTWARE. 50 * - 51 * --Copyright-- 52 */ 53 54#if defined(LIBC_SCCS) && !defined(lint) 55static char sccsid[] = "@(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93"; | 1/*- 2 * Copyright (c) 1985, 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 39 unchanged lines hidden (view full) --- 48 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 49 * SOFTWARE. 50 * - 51 * --Copyright-- 52 */ 53 54#if defined(LIBC_SCCS) && !defined(lint) 55static char sccsid[] = "@(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93"; |
56static char rcsid[] = "$Id: getnetbydns.c,v 1.2 1994/09/25 17:45:38 pst Exp $"; | 56static char rcsid[] = "$Id: getnetbydns.c,v 1.3 1995/05/30 05:40:46 rgrimes Exp $"; |
57#endif /* LIBC_SCCS and not lint */ 58 59#include <sys/param.h> 60#include <sys/socket.h> 61#include <netinet/in.h> 62#include <arpa/inet.h> 63#include <arpa/nameser.h> 64#include <netdb.h> 65#include <resolv.h> 66#include <stdio.h> | 57#endif /* LIBC_SCCS and not lint */ 58 59#include <sys/param.h> 60#include <sys/socket.h> 61#include <netinet/in.h> 62#include <arpa/inet.h> 63#include <arpa/nameser.h> 64#include <netdb.h> 65#include <resolv.h> 66#include <stdio.h> |
67#include <unistd.h> |
|
67#include <ctype.h> 68#include <errno.h> 69#include <string.h> 70#include <syslog.h> 71 72#define BYNAME 0 73#define BYADDR 1 74 --- 230 unchanged lines hidden --- | 68#include <ctype.h> 69#include <errno.h> 70#include <string.h> 71#include <syslog.h> 72 73#define BYNAME 0 74#define BYADDR 1 75 --- 230 unchanged lines hidden --- |