version 1.8, 1999/11/15 19:41:00 |
version 1.9, 1999/11/19 03:50:49 |
|
|
/* $OpenBSD$ */ |
/* $OpenBSD$ */ |
/* $NetBSD: whois.c,v 1.5 1994/11/14 05:13:25 jtc Exp $ */ |
|
|
|
/* |
/* |
* Copyright (c) 1980, 1993 |
* Copyright (c) 1980, 1993 |
|
|
#ifndef lint |
#ifndef lint |
#if 0 |
#if 0 |
static char sccsid[] = "@(#)whois.c 8.1 (Berkeley) 6/6/93"; |
static char sccsid[] = "@(#)whois.c 8.1 (Berkeley) 6/6/93"; |
#endif |
#else |
static char rcsid[] = "$OpenBSD$"; |
static char rcsid[] = "$OpenBSD$"; |
|
#endif |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
|
|
struct hostent *hp; |
struct hostent *hp; |
struct sockaddr_in sin; |
struct sockaddr_in sin; |
|
|
|
#ifdef SOCKS |
|
SOCKSinit(argv[0]); |
|
#endif |
|
|
host = NULL; |
host = NULL; |
qnichost = NULL; |
qnichost = NULL; |
flags = 0; |
flags = 0; |
|
|
{ |
{ |
|
|
(void)fprintf(stderr, |
(void)fprintf(stderr, |
"usage: whois [-adgimpqrR] [-h hostname] name ...\n"); |
"usage: whois [-adgimpqQrR] [-h hostname] name ...\n"); |
exit(EX_USAGE); |
exit(EX_USAGE); |
} |
} |