This commit was manufactured by cvs2svn to create tag
[python/dscho.git] / Mac / Compat / sync.c
blob944ba2358d5d1ed674954a8dae1517c826aca003
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 int
9 sync(void)
11 if (FlushVol((StringPtr)0, 0) == noErr)
12 return 0;
13 else {
14 errno= ENODEV;
15 return -1;