blob: 1a8d3f965863fa630b9539b5dde7304f304dae7b [file] [log] [blame]
/* The equivalent of the Unix 'sync' system call: FlushVol.
Public domain by Guido van Rossum, CWI, Amsterdam (July 1987).
For now, we only flush the default volume
(since that's the only volume written to by MacB). */
#include "macdefs.h"
void
sync(void)
{
if (FlushVol((StringPtr)0, 0) == noErr)
return;
else {
errno= ENODEV;
return;
}
}