From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2dfd5bd57fc21c93 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-06 04:59:13 PST Newsgroups: comp.unix.osf.osf1 Path: bga.com!news.sprintlink.net!howland.reston.ans.net!EU.net!uknet!comlab.ox.ac.uk!newshost!Ray.Bellis From: Ray.Bellis@psy.ox.ac.uk (Ray Bellis) Subject: Re: Mtools-like utils for OSF? Message-ID: In-reply-to: ramos@brixton's message of 5 Oct 1994 16:03:03 GMT Organization: O.U. Dept. of Experimental Psychology References: <36uino$aea@sundog.tiac.net> Date: 06 Oct 1994 07:55:33 GMT In article <36uino$aea@sundog.tiac.net> ramos@brixton (Jesus Ramos) writes: I'm looking for some utility like Mtools for OSF1 I need something that can read an write to a DOS FAT (what Mtools does) without having to mount the floppy. If someone has hacked with the mtools sources and got it to work, any help would be greatly appreciated. Thanks in advance Mtools requires hardly any porting at all to get working. The following patches are for mtools version 2.0.7. They simply fix the Makefile to provide the right flags and install program, and add a device table for the [r]fd0 devices on Alpha. Ray. --8<--8<-- diff -cr mtools-2.0.7/Makefile mtools-2.0.7.alpha/Makefile *** mtools-2.0.7/Makefile Thu Sep 10 16:10:46 1992 --- mtools-2.0.7.alpha/Makefile Thu Oct 06 08:52:59 1994 *************** *** 13,20 **** # for Xenix #CFLAGS = -O -M2e -DINT16 -DXENIX -DLOCKF #LDFLAGS = -s -M2e -i -f 5000 ! CFLAGS = -O -DSPARC -DBSD LDFLAGS = -s LD = $(CC) LINT = lint --- 13,26 ---- # for Xenix #CFLAGS = -O -M2e -DINT16 -DXENIX -DLOCKF #LDFLAGS = -s -M2e -i -f 5000 + # for Alpha/OSF + #CFLAGS = -O -DBSD -DFLOCK ! # For Alpha/OSF use installbsd ! INSTALL=installbsd ! #INSTALL=install ! ! CFLAGS = -O -DBSD -DFLOCK LDFLAGS = -s LD = $(CC) LINT = lint *************** *** 107,128 **** install: all -mkdir $(BINDIR) ! for prog in $(PROGS); do install $$prog $(BINDIR)/$$prog; gln -sf ../mtools/$$prog ${DESTDIR}/usr/local/bin; done ! install -c -m 644 Mattrib.1 $(MANDIR)/mattrib.$(MANEXT) ! install -c -m 644 Mcd.1 $(MANDIR)/mcd.$(MANEXT) ! install -c -m 644 Mcopy.1 $(MANDIR)/mcopy.$(MANEXT) ! install -c -m 644 Mdel.1 $(MANDIR)/mdel.$(MANEXT) ! install -c -m 644 Mdir.1 $(MANDIR)/mdir.$(MANEXT) ! install -c -m 644 Mformat.1 $(MANDIR)/mformat.$(MANEXT) ! install -c -m 644 Mlabel.1 $(MANDIR)/mlabel.$(MANEXT) ! install -c -m 644 Mmd.1 $(MANDIR)/mmd.$(MANEXT) ! install -c -m 644 Mrd.1 $(MANDIR)/mrd.$(MANEXT) ! install -c -m 644 Mread.1 $(MANDIR)/mread.$(MANEXT) ! install -c -m 644 Mren.1 $(MANDIR)/mren.$(MANEXT) ! install -c -m 644 Mtools.1 $(MANDIR)/mtools.$(MANEXT) ! install -c -m 644 Mtype.1 $(MANDIR)/mtype.$(MANEXT) ! install -c -m 644 Mwrite.1 $(MANDIR)/mwrite.$(MANEXT) ! install -c -m 644 Mkmanifest.1 $(MANDIR)/mkmanifest.$(MANEXT) clean: rm $(PROGS) *.o core a.out tags TAGS --- 113,134 ---- install: all -mkdir $(BINDIR) ! for prog in $(PROGS); do $(INSTALL) $$prog $(BINDIR)/$$prog; done ! $(INSTALL) -c -m 644 Mattrib.1 $(MANDIR)/mattrib.$(MANEXT) ! $(INSTALL) -c -m 644 Mcd.1 $(MANDIR)/mcd.$(MANEXT) ! $(INSTALL) -c -m 644 Mcopy.1 $(MANDIR)/mcopy.$(MANEXT) ! $(INSTALL) -c -m 644 Mdel.1 $(MANDIR)/mdel.$(MANEXT) ! $(INSTALL) -c -m 644 Mdir.1 $(MANDIR)/mdir.$(MANEXT) ! $(INSTALL) -c -m 644 Mformat.1 $(MANDIR)/mformat.$(MANEXT) ! $(INSTALL) -c -m 644 Mlabel.1 $(MANDIR)/mlabel.$(MANEXT) ! $(INSTALL) -c -m 644 Mmd.1 $(MANDIR)/mmd.$(MANEXT) ! $(INSTALL) -c -m 644 Mrd.1 $(MANDIR)/mrd.$(MANEXT) ! $(INSTALL) -c -m 644 Mread.1 $(MANDIR)/mread.$(MANEXT) ! $(INSTALL) -c -m 644 Mren.1 $(MANDIR)/mren.$(MANEXT) ! $(INSTALL) -c -m 644 Mtools.1 $(MANDIR)/mtools.$(MANEXT) ! $(INSTALL) -c -m 644 Mtype.1 $(MANDIR)/mtype.$(MANEXT) ! $(INSTALL) -c -m 644 Mwrite.1 $(MANDIR)/mwrite.$(MANEXT) ! $(INSTALL) -c -m 644 Mkmanifest.1 $(MANDIR)/mkmanifest.$(MANEXT) clean: rm $(PROGS) *.o core a.out tags TAGS diff -cr mtools-2.0.7/devices.c mtools-2.0.7.alpha/devices.c *** mtools-2.0.7/devices.c Thu Sep 10 16:11:17 1992 --- mtools-2.0.7.alpha/devices.c Wed Feb 09 08:54:18 1994 *************** *** 103,108 **** --- 103,115 ---- }; #endif /* SUN386 */ + #ifdef __alpha + struct device devices[] = { + {'A', "/dev/rfd0c", 0L, 12, 0, (int (*) ()) 0, 80, 2, 18}, + {'A', "/dev/rfd0c", 0L, 12, 0, (int (*) ()) 0, 80, 2, 9}, + {'\0', (char *) NULL, 0L, 0, 0, (int (*) ()) 0, 0, 0, 0} + }; + #endif /* __alpha */ #ifdef SPARC_ODD #include --8<--8<-- -- ------------------------------------------------------------------------------ R. P. Bellis E-Mail: Computing Officer MRC Centre in Brain and Behaviour Dept. of Experimental Psychology University of Oxford Whois: (RB83) South Parks Road Tel: +44 865 271359 Oxford OX1 3UD Fax: +44 865 310447 ------------------------------------------------------------------------------