[svn-r1089] changed the call to open to HDopen since NT needs that 0_BINARY flag

in it to open binary files.
This commit is contained in:
Patrick Lu 1999-02-21 14:55:24 -05:00
parent 2052d2edae
commit ac8c4177aa

View File

@ -582,7 +582,7 @@ test_2 (hid_t fapl)
part[j] = (int)(i*25+j);
}
sprintf (filename, "extern_%lua.raw", (unsigned long)i+1);
fd = open (filename, O_RDWR|O_CREAT|O_TRUNC, 0666);
fd = HDopen (filename, O_RDWR|O_CREAT|O_TRUNC, 0666);
assert (fd>=0);
n = lseek (fd, (off_t)(i*10), SEEK_SET);
assert (n>=0 && (size_t)n==i*10);