commit | c16f3bd8a391a68427a95e15a3c1894198ff0377 | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Sat May 03 09:14:54 2003 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Sat May 03 09:14:54 2003 +0000 |
tree | 113dca8c40c8a42cb665e6bcc4af44f9f68bd230 | |
parent | e59e2bab8fe0fc3d20e815ac0f9b83d361d0d715 [diff] [blame] |
Patch #708495: Port more stuff to OpenVMS.
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index c2c723c..56033e8 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c
@@ -897,6 +897,10 @@ } #ifdef HAVE_FSTAT +# ifdef __VMS + /* on OpenVMS we must ensure that all bytes are written to the file */ + fsync(fd); +# endif if (fstat(fd, &st) == 0 && (size_t)map_size > st.st_size) { PyErr_SetString(PyExc_ValueError, "mmap length is greater than file size");