[Python-checkins] python/dist/src/Modules posixmodule.c,2.297,2.298

Tim Peters tim.one@comcast.net
Tue, 22 Apr 2003 23:02:14 -0400


> Modified Files:
> 	posixmodule.c
> Log Message:
> Enable os.fsync() for Windows, mapping it to MS's _commit() there.  The
> docs here are best-guess:  the MS docs I could find weren't clear, and
> some even claimed _commit() has no effect on Win32 systems (which is
> easily shown to be false just by trying it).

Oops!  This was the only part of the patch to posixmodule.c that did
anything:

> ***************
> *** 113,116 ****
> --- 113,118 ----
>   #define HAVE_SYSTEM	1
>   #define HAVE_CWAIT	1
> + #define HAVE_FSYNC	1
> + #define fsync _commit
>   #else
>   #if defined(PYOS_OS2) && defined(PYCC_GCC) || defined(__VMS)

All the rest was accidental trimming of trailing whitespace.