Move setting of ioready 'wait' earlier in call chain, to
[python/dscho.git] / Mac / Compat / sync.c
blob1a8d3f965863fa630b9539b5dde7304f304dae7b
1 /* The equivalent of the Unix 'sync' system call: FlushVol.
2 Public domain by Guido van Rossum, CWI, Amsterdam (July 1987).
3 For now, we only flush the default volume
4 (since that's the only volume written to by MacB). */
6 #include "macdefs.h"
8 void
9 sync(void)
11 if (FlushVol((StringPtr)0, 0) == noErr)
12 return;
13 else {
14 errno= ENODEV;
15 return;