version 1.3, 1999/08/19 22:17:38 |
version 1.4, 1999/08/20 09:20:39 |
|
|
static char rcsid[] = "$OpenBSD$"; |
static char rcsid[] = "$OpenBSD$"; |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
#include <stdio.h> |
|
#include <locale.h> |
|
#include <unistd.h> |
|
#include <sys/param.h> |
#include <sys/param.h> |
#include <sys/utsname.h> |
|
#include <err.h> |
#include <err.h> |
|
#include <locale.h> |
|
#include <stdio.h> |
|
#include <unistd.h> |
|
|
static void usage __P((void)); |
static void usage __P((void)); |
|
|
|
|
char *opts; |
char *opts; |
int c; |
int c; |
int short_form = 0; |
int short_form = 0; |
|
extern char *__progname; |
|
|
setlocale(LC_ALL, ""); |
setlocale(LC_ALL, ""); |
|
|
machine = strcmp (argv[0], "machine") == 0; |
machine = strcmp(__progname, "machine") == 0; |
if (machine) { |
if (machine) { |
arch = MACHINE; |
arch = MACHINE; |
opts = "a"; |
opts = "a"; |
|
|
break; |
break; |
default: |
default: |
usage(); |
usage(); |
/* NOTREASCHED */ |
/* NOTREACHED */ |
} |
} |
if (optind != argc) { |
if (optind != argc) { |
usage(); |
usage(); |