is reading a unix-partition file from dosmerge broken?
Derek E. Terveer
det at hawkmoon.MN.ORG
Sat Mar 25 07:09:10 AEST 1989
I just ran into something really weird using dosmerge, and i don't think its my
fault this time! (:-)
I have a relatively simple program (written in msc5.1) that accepts on the
command line a file name argument and then opens that file and reads lines from
it using fgets(). The file name that i supplied happened to be on the unix
partition (i was running in dosmerge on a seperate dos partition, drive e:).
Now the weird thing is that my debugging statement, which showed the value of
the read line just after the call to fgets(), was revealing that after about 15
or 20 reads, the input line was different than what was in the file. Then it
looked like the file pointer got hosed, 'cause it appeared that the next 20
lines or so were read from a completely different location in the file (almost
as if a random rewind()/lseek() sequence had been done).
However, if i copied the unix-partition file over to the dos partition and then
named *that* file on the command line, all my problems completely disappeared!
This, with no recompiling between runs.
Perhaps there is some problem with accessing files on the unix-partition from
within dosmerge?
derek
--
Derek Terveer det at hawkmoon.MN.ORG || ..!uunet!rosevax!elric!hawkmoon!det
w(612)681-6986 h(612)688-0667
"A proper king is crowned" -- Thomas B. Costain
More information about the Comp.unix.microport
mailing list