mirror of
https://github.com/dschmenk/apple2pi.git
synced 2024-11-30 22:50:47 +00:00
flush writes
This commit is contained in:
parent
d1fb5cd02b
commit
684af54c43
@ -183,6 +183,8 @@ int vdrvwrite(int afd, int drive, int block)
|
|||||||
lseek(vfd, block * 512, 0);
|
lseek(vfd, block * 512, 0);
|
||||||
if (write(vfd, block_buff, 512) != 512)
|
if (write(vfd, block_buff, 512) != 512)
|
||||||
err = 0x27; /* ProDOS I/O error */
|
err = 0x27; /* ProDOS I/O error */
|
||||||
|
else
|
||||||
|
fsync(vfd);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
err = 0x28; /* ProDOS No device connected error */
|
err = 0x28; /* ProDOS No device connected error */
|
||||||
|
Loading…
Reference in New Issue
Block a user