diff options
author | jkh <jkh@FreeBSD.org> | 1999-03-10 03:50:38 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1999-03-10 03:50:38 +0000 |
commit | 8b554b3ae8532ebe2e712966a2a763146180ab68 (patch) | |
tree | 4b36327dbe640eeb09fe9fef494ffdc0c25e4804 /release/dumpnlist.c | |
parent | 313dc063d005651bf16714a28ecb6267f05aae63 (diff) | |
download | FreeBSD-src-8b554b3ae8532ebe2e712966a2a763146180ab68.zip FreeBSD-src-8b554b3ae8532ebe2e712966a2a763146180ab68.tar.gz |
We don't use this anymore - nuke it.
Diffstat (limited to 'release/dumpnlist.c')
-rw-r--r-- | release/dumpnlist.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/release/dumpnlist.c b/release/dumpnlist.c deleted file mode 100644 index d482310..0000000 --- a/release/dumpnlist.c +++ /dev/null @@ -1,48 +0,0 @@ -#include <sys/types.h> -#include <sys/fcntl.h> -#include <unistd.h> -#include <stdlib.h> -#include <nlist.h> -#include <stdio.h> - -struct nlist nl[] = { - {"_isa_devtab_bio"}, - {"_isa_devtab_cam"}, - {"_isa_devtab_tty"}, - {"_isa_devtab_net"}, - {"_isa_devtab_null"}, - {"_isa_biotab_wdc"}, - {"_isa_biotab_fdc"}, - {"_eisadriver_set"}, - {"_eisa_dev_list"}, - {"_pcidevice_set"}, - {"_device_list"}, -#ifdef DO_SCSI - {"_scbusses"}, - {"_scsi_cinit"}, - {"_scsi_dinit"}, - {"_scsi_tinit"}, -#endif - {""}, -}; - -int -main(int ac, char **av) -{ - int i, len; - - i = nlist(av[1], nl); - if (i == -1) { - fprintf(stderr, "nlist returns error for %s\n", av[1]); - perror("nlist"); - return 1; - } - len = (sizeof(nl) / sizeof(struct nlist)) - 1; - printf("%d\n", len); - for (i = 0; i < len; i++) { - printf("%s\n", nl[i].n_name); - printf("%d %d %d %ld\n", - nl[i].n_type, nl[i].n_other, nl[i].n_desc, nl[i].n_value); - } - return 0; -} |