summaryrefslogtreecommitdiffstats
path: root/Modules/mmapmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #23524: Replace _PyVerify_fd function with calls to ↵Steve Dower2015-04-121-1/+3
| | | | _set_thread_local_invalid_parameter_handler.
* Issue #23752: _Py_fstat() is now responsible to raise the Python exceptionVictor Stinner2015-03-301-13/+12
| | | | Add _Py_fstat_noraise() function when a Python exception is not welcome.
* Issue #23753: Python doesn't support anymore platforms without stat() orVictor Stinner2015-03-241-4/+0
| | | | | | | fstat(), these functions are always required. Remove HAVE_STAT and HAVE_FSTAT defines, and stop supporting DONT_HAVE_STAT and DONT_HAVE_FSTAT.
* Issue #23001: Few functions in modules mmap, ossaudiodev, socket, ssl, andSerhiy Storchaka2015-03-201-11/+17
| | | | | codecs, that accepted only read-only bytes-like object now accept writable bytes-like object too.
* Fix compiler warning in mmapmodule.c (compare signed/unsigned integers)Victor Stinner2015-03-181-1/+1
|
* Issue #23694: Enhance _Py_open(), it now raises exceptionsVictor Stinner2015-03-171-1/+0
| | | | | | | | * _Py_open() now raises exceptions on error. If open() fails, it raises an OSError with the filename. * _Py_open() now releases the GIL while calling open() * Add _Py_open_noraise() when _Py_open() cannot be used because the GIL is not held
* Issue #23152: Implement _Py_fstat() to support files larger than 2 GB on ↵Steve Dower2015-02-211-4/+4
| | | | | | Windows. fstat() may fail with EOVERFLOW on files larger than 2 GB because the file size type is an signed 32-bit integer.
* Issue #15696: Add a __sizeof__ implementation for mmap objects on Windows.Serhiy Storchaka2014-08-191-0/+16
|
* Issue #16136: Remove VMS support and VMS-related codeChristian Heimes2013-12-211-6/+0
|
* Issue #18571: Implementation of the PEP 446: file descriptors and file handlesVictor Stinner2013-08-271-4/+4
| | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
* Issue #4885: Add weakref support to mmap objects. Patch by Valerie Lambert.Antoine Pitrou2013-08-051-1/+7
|
* MergeRichard Oudkerk2013-02-131-11/+11
|\
| * Issue #16743: Fix mmap overflow check on 32 bit WindowsRichard Oudkerk2013-02-131-11/+11
| |
* | MERGE: #15676: mmap: add empty file check prior to offset check <- Previous ↵Jesus Cea2012-09-101-0/+1
|\ \ | |/ | | | | patch was incomplete (fix 2)
| * #15676: mmap: add empty file check prior to offset check <- Previous patch ↵Jesus Cea2012-09-101-0/+1
| | | | | | | | was incomplete (fix 2)
* | #15676: mmap: add empty file check prior to offset check <- Previous patch ↵Jesus Cea2012-09-101-0/+5
|\ \ | |/ | | | | was incomplete
| * #15676: mmap: add empty file check prior to offset check <- Previous patch ↵Jesus Cea2012-09-101-0/+5
| | | | | | | | was incomplete
* | Closes #15676: mmap: add empty file check prior to offset checkJesus Cea2012-09-091-0/+5
|\ \ | |/
| * Closes #15676: mmap: add empty file check prior to offset checkJesus Cea2012-09-091-0/+5
| |
* | Whitespace.Stefan Krah2012-03-061-14/+14
| |
* | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-141-1/+1
| |
* | PEP 3151 / issue #12555: reworking the OS and IO exception hierarchy.Antoine Pitrou2011-10-121-16/+10
| |
* | Add API for static strings, primarily good for identifiers.Martin v. Löwis2011-10-091-1/+3
| | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
* | Merge with 3.2 (Issue #12404).Ross Lagerwall2011-06-251-1/+2
|\ \ | |/
| * Issue 12404: Remove C89 incompatible code from mmap module.Ross Lagerwall2011-06-251-1/+2
| | | | | | | | Patch by Akira Kitada.
* | Issue #12021: Make mmap's read() method argument optional. Patch by PetriCharles-François Natali2011-06-081-2/+24
| | | | | | | | Lehtinen.
* | Checking if an unsigned long is < 0 is pointless.Brett Cannon2011-06-071-3/+3
|/ | | | Found by LLVM/clang 2.9.
* (Merge 3.1) Issue #11277: mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS XVictor Stinner2011-05-011-0/+9
|\ | | | | | | | | to get around a mmap bug with sparse files. Patch written by Steffen Daode Nurpmeso.
| * Issue #11277: mmap calls fcntl(fd, F_FULLFSYNC) on Mac OS X to get around aVictor Stinner2011-05-011-0/+9
| | | | | | | | mmap bug with sparse files. Patch written by Steffen Daode Nurpmeso.
* | Merge fix for issue #11391Antoine Pitrou2011-03-061-5/+10
|\ \ | |/
| * Issue #11391: Writing to a mmap object created withAntoine Pitrou2011-03-061-5/+10
| | | | | | | | | | `mmap.PROT_READ|mmap.PROT_EXEC` would segfault instead of raising a TypeError. Patch by Charles-François Natali.
| * Merged revisions 88460,88464,88466,88486,88511,88652 via svnmerge fromAntoine Pitrou2011-02-281-48/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88460 | antoine.pitrou | 2011-02-21 19:03:13 +0100 (lun., 21 févr. 2011) | 4 lines Issue #10276: Fix the results of zlib.crc32() and zlib.adler32() on buffers larger than 4GB. Patch by Nadeem Vawda. ........ r88464 | antoine.pitrou | 2011-02-21 20:05:08 +0100 (lun., 21 févr. 2011) | 3 lines Fix issues on 32-bit systems introduced by r88460 ........ r88466 | antoine.pitrou | 2011-02-21 20:28:40 +0100 (lun., 21 févr. 2011) | 3 lines Fix compile error under MSVC introduced by r88460. ........ r88486 | antoine.pitrou | 2011-02-22 00:41:12 +0100 (mar., 22 févr. 2011) | 5 lines Issue #4681: Allow mmap() to work on file sizes and offsets larger than 4GB, even on 32-bit builds. Initial patch by Ross Lagerwall, adapted for 32-bit Windows. ........ r88511 | antoine.pitrou | 2011-02-22 22:42:56 +0100 (mar., 22 févr. 2011) | 4 lines Issue #11277: finally fix Snow Leopard crash following r88460. (probably an OS-related issue with mmap) ........ r88652 | antoine.pitrou | 2011-02-26 16:58:05 +0100 (sam., 26 févr. 2011) | 4 lines Issue #9931: Fix hangs in GUI tests under Windows in certain conditions. Patch by Hirokazu Yamamoto. ........
| * Merged revisions 88131 via svnmerge fromAntoine Pitrou2011-01-201-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88131 | antoine.pitrou | 2011-01-20 22:07:24 +0100 (jeu., 20 janv. 2011) | 6 lines Issue #10955: Fix a potential crash when trying to mmap() a file past its length. Initial patch by Ross Lagerwall. This fixes a regression introduced by r88022. ........
| * Merged revisions 88036 via svnmerge fromAntoine Pitrou2011-01-151-0/+1
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88036 | antoine.pitrou | 2011-01-15 18:25:58 +0100 (sam., 15 janv. 2011) | 3 lines Fix mmap and test_mmap under Windows too (followup to r88022) ........
| * Merged revisions 88022 via svnmerge fromAntoine Pitrou2011-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88022 | antoine.pitrou | 2011-01-15 17:17:07 +0100 (sam., 15 janv. 2011) | 7 lines Issue #10916: mmap should not segfault when a file is mapped using 0 as length and a non-zero offset, and an attempt to read past the end of file is made (IndexError is raised instead). Patch by Ross Lagerwall. Requested by Georg. ........
| * Merged revisions 85678 via svnmerge fromR. David Murray2010-12-111-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85678 | r.david.murray | 2010-10-17 21:14:06 -0400 (Sun, 17 Oct 2010) | 5 lines #678250: Make mmap flush a noop on ACCESS_READ and ACCESS_COPY. Patch by Sébastien Sablé. This solves a test_mmap failure on AIX. ........
| * Merged revisions 86159 via svnmerge fromHirokazu Yamamoto2010-11-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86159 | hirokazu.yamamoto | 2010-11-04 21:09:08 +0900 | 2 lines Issue #5391: mmap.read_byte() should return unsigned value [0, 255] instead of signed value [-127, 128]. ........
| * Merged revisions 84076 via svnmerge fromAntoine Pitrou2010-08-151-1/+1
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84076 | antoine.pitrou | 2010-08-15 20:07:50 +0200 (dim., 15 août 2010) | 4 lines Fix other warnings under 64-bit Windows. ........
| * Merged revisions 83407 via svnmerge fromBrian Curtin2010-08-011-0/+5
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83407 | brian.curtin | 2010-08-01 10:26:26 -0500 (Sun, 01 Aug 2010) | 3 lines Fix #8105. Add validation to mmap.mmap so invalid file descriptors don't cause a crash on Windows. ........
| * Recorded merge of revisions 81032 via svnmerge fromAntoine Pitrou2010-05-091-1009/+1009
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines Recorded merge of revisions 81029 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........ ................
| * Merged revisions 73684 via svnmerge fromHirokazu Yamamoto2009-06-291-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r73684 | hirokazu.yamamoto | 2009-06-29 23:54:12 +0900 | 14 lines Merged revisions 73677,73681 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r73677 | hirokazu.yamamoto | 2009-06-29 22:25:16 +0900 | 2 lines Issue #6344: Fixed a crash of mmap.read() when passed a negative argument. Reviewed by Amaury Forgeot d'Arc. ........ r73681 | hirokazu.yamamoto | 2009-06-29 23:29:31 +0900 | 1 line Fixed NEWS. ........ ................
* | Merged revisions 88486 via svnmerge fromAntoine Pitrou2011-02-211-48/+59
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88486 | antoine.pitrou | 2011-02-22 00:41:12 +0100 (mar., 22 févr. 2011) | 5 lines Issue #4681: Allow mmap() to work on file sizes and offsets larger than 4GB, even on 32-bit builds. Initial patch by Ross Lagerwall, adapted for 32-bit Windows. ........
* | Issue #10955: Fix a potential crash when trying to mmap() a file past itsAntoine Pitrou2011-01-201-0/+11
| | | | | | | | | | | | length. Initial patch by Ross Lagerwall. This fixes a regression introduced by r88022.
* | Fix mmap and test_mmap under Windows too (followup to r88022)v3.2rc1Antoine Pitrou2011-01-151-0/+1
| |
* | Issue #10916: mmap should not segfault when a file is mapped using 0 asAntoine Pitrou2011-01-151-1/+1
| | | | | | | | | | | | | | length and a non-zero offset, and an attempt to read past the end of file is made (IndexError is raised instead). Patch by Ross Lagerwall. Requested by Georg.
* | Merge branches/pep-0384.Martin v. Löwis2010-12-031-2/+2
| |
* | Issue #5391: mmap.read_byte() should return unsigned value [0, 255]Hirokazu Yamamoto2010-11-041-1/+1
| | | | | | | | instead of signed value [-127, 128].
* | #678250: Make mmap flush a noop on ACCESS_READ and ACCESS_COPY.R. David Murray2010-10-181-0/+4
| | | | | | | | Patch by Sébastien Sablé. This solves a test_mmap failure on AIX.
* | Issue #2643: msync() is not called anymore when deallocating an open mmapAntoine Pitrou2010-09-211-1/+0
| | | | | | | | object, only munmap().
* | Fix other warnings under 64-bit Windows.Antoine Pitrou2010-08-151-1/+1
| |