[Python-checkins] python/dist/src/Modules posixmodule.c,2.216.4.9,2.216.4.10

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Wed, 23 Apr 2003 13:14:17 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv14722/Modules

Modified Files:
      Tag: release22-maint
	posixmodule.c 
Log Message:
fsync():  Implemented for Windows, via calling MS _commit.  This counts
as "a bug" because there's no other way in core Python to ensure that
bytes written are actually on disk.  At least ZODB wants this guarantee,
for robustness against crashes.


Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.216.4.9
retrieving revision 2.216.4.10
diff -C2 -d -r2.216.4.9 -r2.216.4.10
*** posixmodule.c	11 Feb 2003 23:19:32 -0000	2.216.4.9
--- posixmodule.c	23 Apr 2003 20:14:12 -0000	2.216.4.10
***************
*** 73,76 ****
--- 73,78 ----
  #ifdef _MSC_VER		/* Microsoft compiler */
  #define HAVE_GETCWD     1
+ #define HAVE_FSYNC	1
+ #define fsync _commit
  #ifdef MS_WIN32
  #define HAVE_SPAWNV	1