Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: bc4b5072ffd8747cc7bf967b456c2fe5d88ad15b authored by cvs2svn on 09 April 2002, 01:16:08 UTC
This commit was manufactured by cvs2svn to create tag 'r213'.
Tip revision: bc4b507
sync.c
/* 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"

int
sync(void)
{
	if (FlushVol((StringPtr)0, 0) == noErr)
		return 0;
	else {
		errno= ENODEV;
		return -1;
	}
}
back to top