info-mtools
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mtools] Working with the floppy drive under cygwin...


From: Murphy McCauley
Subject: [mtools] Working with the floppy drive under cygwin...
Date: Tue, 29 Apr 2003 05:08:25 -0700

Two little changes and Cygwin can read and write to and from the floppy.
Everything seems to work okay at first glance.

*** real/devices.c      Tue Apr 29 05:01:19 2003
--- mine/devices.c      Tue Apr 29 04:37:34 2003
***************
*** 73,78 ****
--- 73,86 ----
  #define devices const_devices
  
  
+ #ifdef __CYGWIN__
+ #define predefined_devices
+ struct device devices[] = {
+    {"\\\\\\\\.\\\\A:", 'A', GENFD },
+ };
+ #endif /* CYGWIN */
+ 
+ 
  #ifdef OS_aux
  #define predefined_devices
  struct device devices[] = {


*** real/mcat.c Tue Apr 29 04:59:05 2003
--- mine/mcat.c Tue Apr 29 04:33:26 2003
***************
*** 22,28 ****
--- 22,32 ----
        exit(1);
  }
  
+ #ifdef __CYGWIN__
+ #define BUF_SIZE 512
+ #else
  #define BUF_SIZE 16000
+ #endif
  
  static size_t bufLen(size_t blocksize, mt_size_t totalSize, mt_off_t
address)
  {


_______________________________________________
mtools mailing list
address@hidden
http://www.tux.org/mailman/listinfo/mtools


reply via email to

[Prev in Thread] Current Thread [Next in Thread]