Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Mtools-like utils for OSF?
@ 1994-10-05 16:03 Jesus Ramos
  1994-10-06  7:55 ` Ray Bellis
  0 siblings, 1 reply; 2+ messages in thread
From: Jesus Ramos @ 1994-10-05 16:03 UTC (permalink / raw)


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

Jesus Ramos
CCD R&D
ramos@cibadiag.com
chachi@acs.bu.edu



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Mtools-like utils for OSF?
  1994-10-05 16:03 Mtools-like utils for OSF? Jesus Ramos
@ 1994-10-06  7:55 ` Ray Bellis
  0 siblings, 0 replies; 2+ messages in thread
From: Ray Bellis @ 1994-10-06  7:55 UTC (permalink / raw)


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 <sys/types.h>
--8<--8<--
--
------------------------------------------------------------------------------
R. P. Bellis				E-Mail:	<Ray.Bellis@psy.ox.ac.uk>
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
------------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-10-06  7:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-10-05 16:03 Mtools-like utils for OSF? Jesus Ramos
1994-10-06  7:55 ` Ray Bellis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox