Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

CMOVNTQ and multiple file access (Developers)

posted by RayeR Homepage, CZ, 21.06.2012, 04:32

I tried to compile and run test program mentioned above under MSDOS 6.22 on FAT16 and it creates 1 lost cluster per every run (instead of returning NULL on second fopen call). I tried gcc 4.7.0, 4.7.1 and very old 2.95 and all behaved the same so it's not new gcc bug but rather libc / DOS bug.

#include <stdio.h>

main() {
FILE *f, *f2;
char test[10000];
f=fopen("test1","wb");
if (f==NULL)
  puts("f1 error");
fwrite(test,1,10000,f);
f2=fopen("test1","wb");
if (f2==NULL)
  puts("f2 error");
fwrite(test,1,10000,f2);
}

---
DOS gives me freedom to unlimited HW access.

 

Complete thread:

Back to the forum
Board view  Mix view
22762 Postings in 2122 Threads, 402 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum