getnetbydns.c (13408) | getnetbydns.c (17141) |
---|---|
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 --- 46 unchanged lines hidden (view full) --- 55 * 56 * Permission to use, copy, modify, and distribute this software for any 57 * purpose with or without fee is hereby granted, provided that the above 58 * copyright notice and this permission notice appear in all copies. 59 */ 60 61#if defined(LIBC_SCCS) && !defined(lint) 62static 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 --- 46 unchanged lines hidden (view full) --- 55 * 56 * Permission to use, copy, modify, and distribute this software for any 57 * purpose with or without fee is hereby granted, provided that the above 58 * copyright notice and this permission notice appear in all copies. 59 */ 60 61#if defined(LIBC_SCCS) && !defined(lint) 62static char sccsid[] = "@(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93"; |
63static char rcsid[] = "$Id: getnetbydns.c,v 1.4 1995/10/22 14:39:04 phk Exp $"; | 63static char rcsid[] = "$Id: getnetbydns.c,v 1.5 1996/01/13 09:03:51 peter Exp $"; |
64#endif /* LIBC_SCCS and not lint */ 65 66#include <sys/param.h> 67#include <sys/socket.h> 68#include <netinet/in.h> 69#include <arpa/inet.h> 70#include <arpa/nameser.h> 71 72#include <stdio.h> 73#include <netdb.h> 74#include <resolv.h> 75#include <ctype.h> 76#include <errno.h> 77#include <string.h> 78#include <unistd.h> 79#include <syslog.h> 80 81#include "res_config.h" 82 | 64#endif /* LIBC_SCCS and not lint */ 65 66#include <sys/param.h> 67#include <sys/socket.h> 68#include <netinet/in.h> 69#include <arpa/inet.h> 70#include <arpa/nameser.h> 71 72#include <stdio.h> 73#include <netdb.h> 74#include <resolv.h> 75#include <ctype.h> 76#include <errno.h> 77#include <string.h> 78#include <unistd.h> 79#include <syslog.h> 80 81#include "res_config.h" 82 |
83extern void _res_close __P((void)); |
|
83extern int h_errno; 84 85#define BYADDR 0 86#define BYNAME 1 87#define MAXALIASES 35 88 89#if PACKETSZ > 1024 90#define MAXPACKET PACKETSZ --- 220 unchanged lines hidden --- | 84extern int h_errno; 85 86#define BYADDR 0 87#define BYNAME 1 88#define MAXALIASES 35 89 90#if PACKETSZ > 1024 91#define MAXPACKET PACKETSZ --- 220 unchanged lines hidden --- |