diff options
Diffstat (limited to 'release')
-rw-r--r-- | release/Makefile | 8 | ||||
-rw-r--r-- | release/dumpnlist.c | 48 |
2 files changed, 2 insertions, 54 deletions
diff --git a/release/Makefile b/release/Makefile index 71d964a..9bc3164 100644 --- a/release/Makefile +++ b/release/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.471 1999/02/10 09:15:27 jkh Exp $ +# $Id: Makefile,v 1.472 1999/02/14 13:56:14 des Exp $ # # make release CHROOTDIR=/some/dir BUILDNAME=somename [ RELEASETAG=tag ] # @@ -420,7 +420,7 @@ release.7: # +-----------------------------------------+ # -release.8: write_mfs_in_kernel dumpnlist +release.8: write_mfs_in_kernel rm -rf ${RD}/mfsfd mkdir ${RD}/mfsfd cd ${RD}/mfsfd && \ @@ -599,10 +599,6 @@ fixit.flp: write_mfs_in_kernel: ${.CURDIR}/write_mfs_in_kernel.c ${CC} ${CFLAGS} -o write_mfs_in_kernel ${.CURDIR}/write_mfs_in_kernel.c -# Add -DDO_SCSI to CFLAGS to enable scsi frobbing support. -dumpnlist: ${.CURDIR}/dumpnlist.c - ${CC} ${CFLAGS} -o dumpnlist ${.CURDIR}/dumpnlist.c - installCRUNCH: .if !defined(CRUNCH) @echo "CRUNCH undefined in installCRUNCH" && exit 1 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; -} |