bc4bdbd6a8a103afbf6525f7ee13802147001894 |
|
06-Oct-2016 |
Benjamin Peterson <benjamin@python.org> |
make 'where' Py_ssize_t
/external/python/cpython2/Modules/mmapmodule.c
|
1df2cbed761401e83ccb684352e9ab9264fccfd9 |
|
06-Oct-2016 |
Benjamin Peterson <benjamin@python.org> |
mmap: do all internal arithmetic with Py_ssize_t while being very careful about overflow
/external/python/cpython2/Modules/mmapmodule.c
|
c06a6d0958e2eb4449605069b9c10d656ab756e8 |
|
19-Dec-2015 |
Serhiy Storchaka <storchaka@gmail.com> |
Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size. This allows sys.getsize() to work correctly with their subclasses with __slots__ defined.
/external/python/cpython2/Modules/mmapmodule.c
|
d7a4f9ef8d62f709d21cf66ece09456714f7c6f1 |
|
02-Aug-2015 |
Benjamin Peterson <benjamin@python.org> |
include fcntl.h on all *nix platforms (closes #24217) Patch by Jeffrey Armstrong.
/external/python/cpython2/Modules/mmapmodule.c
|
cbee972e358f2adc7399ccdf2b5a34b9229285ce |
|
19-Aug-2014 |
Serhiy Storchaka <storchaka@gmail.com> |
Issue #15696: Add a __sizeof__ implementation for mmap objects on Windows.
/external/python/cpython2/Modules/mmapmodule.c
|
36b9d413d757dd01f783031e1afed344c5c2ba61 |
|
13-Feb-2013 |
Richard Oudkerk <shibturn@gmail.com> |
Issue #16743: Fix mmap overflow check on 32 bit Windows
/external/python/cpython2/Modules/mmapmodule.c
|
8e03b4cae0cf37aac52827523fb3cf56894ffdf9 |
|
10-Sep-2012 |
Jesus Cea <jcea@jcea.es> |
#15676: mmap: add empty file check prior to offset check <- Previous patch was incomplete (fix 2)
/external/python/cpython2/Modules/mmapmodule.c
|
20f0ea1f610842c98bbfcf653f4414b88f767083 |
|
10-Sep-2012 |
Jesus Cea <jcea@jcea.es> |
#15676: mmap: add empty file check prior to offset check <- Previous patch was incomplete
/external/python/cpython2/Modules/mmapmodule.c
|
8b54d6d73312186b4736cdf69a4e2e46ba15784c |
|
10-Sep-2012 |
Jesus Cea <jcea@jcea.es> |
Closes #15676: mmap: add empty file check prior to offset check
/external/python/cpython2/Modules/mmapmodule.c
|
ffa8e2fb5637db784478e0f1f3c0d260dbae972e |
|
25-Jun-2011 |
Ross Lagerwall <rosslagerwall@gmail.com> |
Issue 12404: Remove C89 incompatible code from mmap module. Patch by Akira Kitada.
/external/python/cpython2/Modules/mmapmodule.c
|
112d48ac17647879fffa5275dd31dca8bfb3223b |
|
03-May-2011 |
Victor Stinner <victor.stinner@haypocalc.com> |
(Merge 3.1) Issue #11277: mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS X to get around a mmap bug with sparse files. Patch written by Steffen Daode Nurpmeso.
/external/python/cpython2/Modules/mmapmodule.c
|
d6f3a3e3a820d05b6ad1b6689db185152bab249d |
|
06-Mar-2011 |
Antoine Pitrou <solipsis@pitrou.net> |
Issue #11391: Writing to a mmap object created with `mmap.PROT_READ|mmap.PROT_EXEC` would segfault instead of raising a TypeError. Patch by Charles-François Natali.
/external/python/cpython2/Modules/mmapmodule.c
|
f4d2b3dc1091717b6dfe1e5c63a70feb2bb246d7 |
|
22-Feb-2011 |
Antoine Pitrou <solipsis@pitrou.net> |
Merged revisions 88486 via svnmerge from 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. ........
/external/python/cpython2/Modules/mmapmodule.c
|
8a0eede21de65f2d96c7e533e3c2aeca60a7859a |
|
20-Jan-2011 |
Antoine Pitrou <solipsis@pitrou.net> |
Merged revisions 88131 via svnmerge from 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. ........
/external/python/cpython2/Modules/mmapmodule.c
|
533aa25b4840bcfb0e119e7c73d66b7dc2e2b255 |
|
15-Jan-2011 |
Antoine Pitrou <solipsis@pitrou.net> |
Merged revisions 88036 via svnmerge from 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) ........
/external/python/cpython2/Modules/mmapmodule.c
|
9989d857ebfa6b29d724921e5fc229cd9d4dbb61 |
|
15-Jan-2011 |
Antoine Pitrou <solipsis@pitrou.net> |
Merged revisions 88022 via svnmerge from 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. ........
/external/python/cpython2/Modules/mmapmodule.c
|
2a4b3fce9d9976de0ae2e9f3e658a24b13b5fad6 |
|
11-Dec-2010 |
R. David Murray <rdmurray@bitdance.com> |
Merged revisions 85678 via svnmerge from 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. ........
/external/python/cpython2/Modules/mmapmodule.c
|
ba6c08e67077a368c21016171446c26eef5c27d2 |
|
01-Aug-2010 |
Brian Curtin <brian.curtin@gmail.com> |
Merged revisions 83407 via svnmerge from 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. ........
/external/python/cpython2/Modules/mmapmodule.c
|
c83ea137d7e717f764e2f31fc2544f522de7d857 |
|
09-May-2010 |
Antoine Pitrou <solipsis@pitrou.net> |
Untabify C files. Will watch buildbots.
/external/python/cpython2/Modules/mmapmodule.c
|
8839fd7372a373c0d63d56897c2593fff5738df0 |
|
29-Jun-2009 |
Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> |
Issue #6344: Fixed a crash of mmap.read() when passed a negative argument. Reviewed by Amaury Forgeot d'Arc.
/external/python/cpython2/Modules/mmapmodule.c
|
983a46543cbf310b5d5915d7bed8e4581cc1507d |
|
14-Jun-2009 |
Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> |
Issue #6271: mmap tried to close invalid file handle (-1) when annonymous. (On Unix) Patch by STINNER Victor.
/external/python/cpython2/Modules/mmapmodule.c
|
2ecd3c36b584692f46cddf209f7c09edddd21673 |
|
01-Apr-2009 |
Jack Diederich <jackdied@gmail.com> |
bounds check arguments to mmap.move(). All of them. Really. fixes crasher on OS X 10.5
/external/python/cpython2/Modules/mmapmodule.c
|
1d7d5325be5c766c3446dcf0fce4ebce73d83fa7 |
|
31-Mar-2009 |
Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> |
Issue #5387: Fixed mmap.move crash by integer overflow. (take2)
/external/python/cpython2/Modules/mmapmodule.c
|
40a6164afa79f6b97e7e40e0f35f6081fde437c2 |
|
31-Mar-2009 |
Jesse Noller <jnoller@gmail.com> |
Apply patch for netbsd multiprocessing support
/external/python/cpython2/Modules/mmapmodule.c
|
9d2ee5ded2ffd7e533776936ac3b34dbb782a847 |
|
31-Mar-2009 |
Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> |
Issue #5387: Fixed mmap.move crash by integer overflow.
/external/python/cpython2/Modules/mmapmodule.c
|
264fc12fbff471d137f61e5fd7152f5a7df9eb6c |
|
05-Mar-2009 |
Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> |
Issue #5385: Fixed mmap crash after resize failure on windows. Now uses NULL instead of INVALID_HANDLE_VALUE as invalid map handle because CreateFileMapping returns NULL when error occurs.
/external/python/cpython2/Modules/mmapmodule.c
|
b0e10c760c8b7907aee3253054f5ac65fe1b1d12 |
|
28-Feb-2009 |
Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> |
Issue #1733986: Fixed mmap crash in accessing elements of second map object with same tagname but larger size than first map. (Windows)
/external/python/cpython2/Modules/mmapmodule.c
|
f2dc885780278246d1a4572c822c4387142a84df |
|
28-Feb-2009 |
Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> |
Issue #5386: mmap.write_byte didn't check map size, so it could cause buffer overrun.
/external/python/cpython2/Modules/mmapmodule.c
|
17a837e4dba610d87409c3ed532d30aa68502108 |
|
17-Feb-2009 |
Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> |
Issue #5282: Fixed mmap resize on 32bit windows and unix. When offset > 0, The file was resized to wrong size.
/external/python/cpython2/Modules/mmapmodule.c
|
f6bbd0e71d986e0acefb4b3708d9129a9bce4a17 |
|
17-Feb-2009 |
Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> |
Issue #5292: Fixed mmap crash on its boundary access m[len(m)].
/external/python/cpython2/Modules/mmapmodule.c
|
66260995205ccdabbe4b8e4b2146634e7c0b90d8 |
|
19-Aug-2008 |
Thomas Heller <theller@ctypes.org> |
Fix strange character in the docstring.
/external/python/cpython2/Modules/mmapmodule.c
|
e7d8be80ba634fa15ece6f503c33592e0d333361 |
|
31-Jul-2008 |
Neal Norwitz <nnorwitz@gmail.com> |
Security patches from Apple: prevent int overflow when allocating memory
/external/python/cpython2/Modules/mmapmodule.c
|
dd96db63f689e2f0d8ae5a1436b3b3395eec7de5 |
|
09-Jun-2008 |
Gregory P. Smith <greg@mad-scientist.com> |
This reverts r63675 based on the discussion in this thread: http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
/external/python/cpython2/Modules/mmapmodule.c
|
593daf545bd9b7e7bcb27b498ecc6f36db9ae395 |
|
26-May-2008 |
Christian Heimes <christian@cheimes.de> |
Renamed PyString to PyBytes
/external/python/cpython2/Modules/mmapmodule.c
|
e139688d34cc12b23d3a310f10d4f440f75f7d08 |
|
17-Feb-2008 |
Facundo Batista <facundobatista@gmail.com> |
Issue 2112. mmap does not raises EnvironmentError no more, but a subclass of it. Thanks John Lenton.
/external/python/cpython2/Modules/mmapmodule.c
|
7adfad850a50722464775d57b5d16b850ecab56a |
|
15-Feb-2008 |
Christian Heimes <christian@cheimes.de> |
Bug #2111: mmap segfaults when trying to write a block opened with PROT_READ Thanks to Thomas Herve for the fix.
/external/python/cpython2/Modules/mmapmodule.c
|
e1027f9034b8a49d0ba6f42c2b1f08e006bc40f1 |
|
27-Jan-2008 |
Neal Norwitz <nnorwitz@gmail.com> |
Use int for the sign rather than a char. char can be signed or unsigned. It's system dependent. This might fix the problem with test_rfind failing.
/external/python/cpython2/Modules/mmapmodule.c
|
448654f1f86ad988a28655850bf1dbb163d26730 |
|
27-Jan-2008 |
Neal Norwitz <nnorwitz@gmail.com> |
Mostly reformat. Also set an error and return NULL if neither MS_WINDOWS nor UNIX is defined. This may have caused problems on cygwin.
/external/python/cpython2/Modules/mmapmodule.c
|
739a3c40e607dbdb5913197a3c869bb445b7fe04 |
|
26-Jan-2008 |
Neal Norwitz <nnorwitz@gmail.com> |
Cleanup the code a bit. test_rfind is failing on PPC and PPC64 buildbots, this might fix the problem.
/external/python/cpython2/Modules/mmapmodule.c
|
501dbbfb70b123e34f764f50cfd0bf68098c95a0 |
|
23-Jan-2008 |
Christian Heimes <christian@cheimes.de> |
Use Py_TYPE() instead of ->ob_type
/external/python/cpython2/Modules/mmapmodule.c
|
d02fc48f67b140e8605a1c9e986f78c8bb8df531 |
|
22-Jan-2008 |
Georg Brandl <georg@python.org> |
Fix for #1087741 patch.
/external/python/cpython2/Modules/mmapmodule.c
|
845c403c08c47085620de682f23a3e23dfa7ed19 |
|
21-Jan-2008 |
Georg Brandl <georg@python.org> |
#1087741: make mmap.mmap the type of mmap objects, not a factory function. Allow it to be subclassed.
/external/python/cpython2/Modules/mmapmodule.c
|
ef92802f7336370e591d6e142735eb1a630030a6 |
|
20-Jan-2008 |
Georg Brandl <georg@python.org> |
Switch mmap from old Py_FindMethod to new PyObject_GenericGetAttr attribute access. Fixes #1087735.
/external/python/cpython2/Modules/mmapmodule.c
|
5c60bfcfbf2dd50cc40210771fdc8d2cfc20cdad |
|
19-Jan-2008 |
Andrew M. Kuchling <amk@amk.ca> |
Patch #976880: add mmap .rfind() method, and 'end' paramter to .find(). Contributed by John Lenton.
/external/python/cpython2/Modules/mmapmodule.c
|
7c22ccc3dd9a51cfdbd0ac0df830ba9e622bcf80 |
|
10-Jan-2008 |
Andrew M. Kuchling <amk@amk.ca> |
Check for fd of -1 to save fsync() and fstat() call
/external/python/cpython2/Modules/mmapmodule.c
|
e93237dfcc4ee4feee62adafb4e7899487ca864b |
|
19-Dec-2007 |
Christian Heimes <christian@cheimes.de> |
#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
/external/python/cpython2/Modules/mmapmodule.c
|
9c4382f2a38b472a0220f91b3be90581628c13db |
|
31-Oct-2007 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix some compiler warnings for signed comparisons on Unix and Windows.
/external/python/cpython2/Modules/mmapmodule.c
|
8feafab3462500d33c0bc98787649db4502894f8 |
|
23-Oct-2007 |
Travis E. Oliphant <oliphant@enthought.com> |
Add phuang patch from Issue 708374 which adds offset parameter to mmap module.
/external/python/cpython2/Modules/mmapmodule.c
|
3ccec68a05abae43cf74dc7821c61ba88ab6cb46 |
|
28-Aug-2007 |
Thomas Wouters <thomas@python.org> |
Improve extended slicing support in builtin types and classes. Specifically: - Specialcase extended slices that amount to a shallow copy the same way as is done for simple slices, in the tuple, string and unicode case. - Specialcase step-1 extended slices to optimize the common case for all involved types. - For lists, allow extended slice assignment of differing lengths as long as the step is 1. (Previously, 'l[:2:1] = []' failed even though 'l[:2] = []' and 'l[:2:None] = []' do not.) - Implement extended slicing for buffer, array, structseq, mmap and UserString.UserString. - Implement slice-object support (but not non-step-1 slice assignment) for UserString.MutableString. - Add tests for all new functionality.
/external/python/cpython2/Modules/mmapmodule.c
|
6819210b9e4e5719a6f7f9c1725f8fa70a8936f6 |
|
21-Jul-2007 |
Martin v. Löwis <martin@v.loewis.de> |
PEP 3123: Provide forward compatibility with Python 3.0, while keeping backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT.
/external/python/cpython2/Modules/mmapmodule.c
|
670f875a7cccfb3b63196bb560a8dd3cf5950ad9 |
|
22-Aug-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Alexander Belopolsky pointed out that pos is a size_t
/external/python/cpython2/Modules/mmapmodule.c
|
076d1e0c0b1858a9086c63c237cbe13691231b0f |
|
21-Aug-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix a couple of ssize-t issues reported by Alexander Belopolsky on python-dev
/external/python/cpython2/Modules/mmapmodule.c
|
5ed4997e1f3eb0a849e6f97fed9c9830bf8e0f6f |
|
13-Aug-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Get rid of compiler warning
/external/python/cpython2/Modules/mmapmodule.c
|
e9ac0bb16945d021d3340a6b96edda82be784228 |
|
13-Aug-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Check return result of PyModule_GetDict(). Fix a bunch of refleaks in the init of the module. This would only be found when running python -v.
/external/python/cpython2/Modules/mmapmodule.c
|
8a87f5d37e6aab91ddc4c6491877b6cbd48a12cf |
|
12-Aug-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Patch #1538606, Patch to fix __index__() clipping. I modified this patch some by fixing style, some error checking, and adding XXX comments. This patch requires review and some changes are to be expected. I'm checking in now to get the greatest possible review and establish a baseline for moving forward. I don't want this to hold up release if possible.
/external/python/cpython2/Modules/mmapmodule.c
|
0e8bd7e1ccf7f47bc0bb920af899c77669016d3d |
|
10-Jun-2006 |
Martin v. Löwis <martin@v.loewis.de> |
Patch #1495999: Part two of Windows CE changes. - update header checks, using autoconf - provide dummies for getenv, environ, and GetVersion - adjust MSC_VER check in socketmodule.c
/external/python/cpython2/Modules/mmapmodule.c
|
96a8c3954cbdb186bc567a490dad8987508ce268 |
|
29-May-2006 |
Georg Brandl <georg@python.org> |
Make use of METH_O and METH_NOARGS where possible. Use Py_UnpackTuple instead of PyArg_ParseTuple where possible.
/external/python/cpython2/Modules/mmapmodule.c
|
2cfaa34dfa2919803a7caf7cfd99aa21d6c40e06 |
|
29-May-2006 |
Georg Brandl <georg@python.org> |
Correct some value converting strangenesses.
/external/python/cpython2/Modules/mmapmodule.c
|
38fff8c4e4276e4e57660a78f305e68bfa87874b |
|
07-Mar-2006 |
Guido van Rossum <guido@python.org> |
Checking in the code for PEP 357. This was mostly written by Travis Oliphant. I've inspected it all; Neal Norwitz and MvL have also looked at it (in an earlier incarnation).
/external/python/cpython2/Modules/mmapmodule.c
|
02cbf4ae4baff0dbe373351ebf182cbcfc05d6bd |
|
27-Feb-2006 |
Martin v. Löwis <martin@v.loewis.de> |
More unconsting.
/external/python/cpython2/Modules/mmapmodule.c
|
5bb8a155939865d213aca444c05cc6f355202232 |
|
18-Feb-2006 |
Martin v. Löwis <martin@v.loewis.de> |
Fix typo.
/external/python/cpython2/Modules/mmapmodule.c
|
151860752f9cc061019940e4ace6fd302c185e5b |
|
18-Feb-2006 |
Martin v. Löwis <martin@v.loewis.de> |
Fix size computation on Win64.
/external/python/cpython2/Modules/mmapmodule.c
|
2c98a7bbc672f9415621b1538554a5b33d242034 |
|
17-Feb-2006 |
Thomas Wouters <thomas@python.org> |
Fix typo.
/external/python/cpython2/Modules/mmapmodule.c
|
cfe7e0912caf11bc658cf630acca3aff4e59b205 |
|
17-Feb-2006 |
Martin v. Löwis <martin@v.loewis.de> |
Remove size restrictions.
/external/python/cpython2/Modules/mmapmodule.c
|
f28829577d229ba6b89e2a574da09d9fe2152460 |
|
17-Feb-2006 |
Tim Peters <tim.peters@gmail.com> |
mmap_flush_method(): Squash compiler warning about mixing signed and unsigned types in comparison.
/external/python/cpython2/Modules/mmapmodule.c
|
8f9cc29e74f19674a0c54eaf74c2fde9ecafbe75 |
|
17-Feb-2006 |
Tim Peters <tim.peters@gmail.com> |
Remove space between function name and left paren in function calls.
/external/python/cpython2/Modules/mmapmodule.c
|
23721ee96ce35ab35f664f371c8e01ac873b35dd |
|
17-Feb-2006 |
Tim Peters <tim.peters@gmail.com> |
Removed pointless parens around `return` expressions; deleted some curlies around one-line blocks.
/external/python/cpython2/Modules/mmapmodule.c
|
ec0a5f0add8ebcf39f5a5a10caaf3735d4265a65 |
|
17-Feb-2006 |
Tim Peters <tim.peters@gmail.com> |
Trimmed trailing whitespace.
/external/python/cpython2/Modules/mmapmodule.c
|
e564e7f939b88a88057261733ed3c3a17c01b3b7 |
|
17-Feb-2006 |
Tim Peters <tim.peters@gmail.com> |
new_mmap_object(), Windows flavor. On a box where sizeof(size_t) == 4, C doesn't define what happens when a size_t value is shifted right by 32 bits, and this caused test_mmap to fail on Windows in a debug build. So use different code to break the size apart depending on how large size_t actually is. This looks like an illusion, since lots of code in this module still appears to assume sizes can't be more than 32 bits (e.g., the internal _GetMapSize() still returns an int), but at least test_mmap passes again.
/external/python/cpython2/Modules/mmapmodule.c
|
dde176593df80c7398a3992da8abffd03dd3f908 |
|
16-Feb-2006 |
Thomas Wouters <thomas@python.org> |
More Py_ssize_t format characters.
/external/python/cpython2/Modules/mmapmodule.c
|
ad0a4629beac0600c4c4c3167b0d68be57ca674e |
|
16-Feb-2006 |
Martin v. Löwis <martin@v.loewis.de> |
Use Py_ssize_t for counts and sizes.
/external/python/cpython2/Modules/mmapmodule.c
|
3eaf2b50441a3c6eac87b6dcd4f602de825de64d |
|
16-Feb-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Update comment and make accurate.
/external/python/cpython2/Modules/mmapmodule.c
|
18e165558b24d29e7e0ca501842b9236589b012a |
|
15-Feb-2006 |
Martin v. Löwis <martin@v.loewis.de> |
Merge ssize_t branch.
/external/python/cpython2/Modules/mmapmodule.c
|
0e6bc8c260f640ceee515e9873353778472e0a00 |
|
05-Feb-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Patch #1407135, bug #1424041, make mmap.mmap(-1, length) work the same on both Unix (SVR4 and BSD) and Windows. Restores behaviour of passing -1 for anonymous memory on Unix. Use MAP_ANONYMOUS instead of _ANON since the latter is deprecated according to Linux (gentoo) man pages. Should we continue to allow mmap.mmap(0, length) to work on Windows? 0 is a valid fd. Will backport bugfix portions.
/external/python/cpython2/Modules/mmapmodule.c
|
d1cfc8ade1f661f02286f2b81123d4d436c6d9d0 |
|
05-Feb-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Whitespace normalization
/external/python/cpython2/Modules/mmapmodule.c
|
1ac754fa10f5d199d19911e21185d0970cb3073f |
|
19-Jan-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Check return result from Py_InitModule*(). This API can fail. Probably should be backported.
/external/python/cpython2/Modules/mmapmodule.c
|
3b4fff8079834433ba75ee0873c538410cd082c9 |
|
11-Jan-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix SF bug #1402308, segfault when using mmap(-1, ...) This didn't crash on Linux, but valgrind complained. I'm not sure if this test is valid on Windows. Will backport.
/external/python/cpython2/Modules/mmapmodule.c
|
8856fb750b3417fc4770ad70cce56b4aad61c225 |
|
18-Dec-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
SF Patch #1365916, mmap fails on AMD64 Fix some 64-bit issues due to mismatch format characters w/actual data types
/external/python/cpython2/Modules/mmapmodule.c
|
af68c874a6803b4e90b616077a602c0593719a1d |
|
10-Dec-2005 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Add const to several API functions that take char *. In C++, it's an error to pass a string literal to a char* function without a const_cast(). Rather than require every C++ extension module to put a cast around string literals, fix the API to state the const-ness. I focused on parts of the API where people usually pass literals: PyArg_ParseTuple() and friends, Py_BuildValue(), PyMethodDef, the type slots, etc. Predictably, there were a large set of functions that needed to be fixed as a result of these changes. The most pervasive change was to make the keyword args list passed to PyArg_ParseTupleAndKewords() to be a const char *kwlist[]. One cast was required as a result of the changes: A type object mallocs the memory for its tp_doc slot and later frees it. PyTypeObject says that tp_doc is const char *; but if the type was created by type_new(), we know it is safe to cast to char *.
/external/python/cpython2/Modules/mmapmodule.c
|
6eac2005bfdb1c2e48c8ebba234c61cc9ab9c4c6 |
|
02-Nov-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
Cleanup the previous checkin. Close the fd in the close method and invalidated it. Don't try to close a second time when deallocating.
/external/python/cpython2/Modules/mmapmodule.c
|
7b631793abc97edbcd26af56864961e264a86a24 |
|
02-Nov-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
Bug #1344508, Fix UNIX mmap leaking file descriptors. Will backport.
/external/python/cpython2/Modules/mmapmodule.c
|
335ffe88bb5e6241efe85693c3f40c0bd2f81bce |
|
20-Sep-2005 |
Armin Rigo <arigo@tunes.org> |
C89 compliance.
/external/python/cpython2/Modules/mmapmodule.c
|
38387b8b910beeea9c6c2ed6c7b1bd26724bd813 |
|
24-Aug-2005 |
Georg Brandl <georg@python.org> |
bug [ 728515 ] mmap's resize method resizes the file in win32 but not unix
/external/python/cpython2/Modules/mmapmodule.c
|
7fe60c0a0ae2fe4586491867c902bb13df403285 |
|
03-Mar-2005 |
Martin v. Löwis <martin@v.loewis.de> |
Patches #749830, #1144555: allow UNIX mmap size to default to current file size.
/external/python/cpython2/Modules/mmapmodule.c
|
16581c86148dbd599fd4c5ad2146f00499434c4b |
|
19-May-2004 |
Andrew M. Kuchling <amk@amk.ca> |
Set data pointer to NULL after an error; this keeps the mmap_dealloc() function from trying to do msync(-1);munmap(-1). 2.3 bugfix candidate, but this bug isn't critical enough that the fix has to go into 2.3.4
/external/python/cpython2/Modules/mmapmodule.c
|
ce59c04127cb82127e247f5e986b07cbb6c39c61 |
|
17-Jan-2004 |
Skip Montanaro <skip@pobox.com> |
Remove support for SunOS 4. Remove BAD_EXEC_PROTOYPE (leftover from IRIX 4 demolition).
/external/python/cpython2/Modules/mmapmodule.c
|
a3016678ed5697ae1a21ef328573c714a6d82b8c |
|
15-Jul-2003 |
Andrew M. Kuchling <amk@amk.ca> |
[Patch #708374] Only apply the check for file size if the file is a regular file, not a character or block device.
/external/python/cpython2/Modules/mmapmodule.c
|
c16f3bd8a391a68427a95e15a3c1894198ff0377 |
|
03-May-2003 |
Martin v. Löwis <martin@v.loewis.de> |
Patch #708495: Port more stuff to OpenVMS.
/external/python/cpython2/Modules/mmapmodule.c
|
69c2b883922a758ed84de2cf94b5485d7e078fd3 |
|
09-Apr-2003 |
Guido van Rossum <guido@python.org> |
Fix two crashes on Windows: - CHECK_VALID() was checking the wrong value for a closed fd - fseek(&_iob[fileno], ...) doesn't work for fileno >= 20
/external/python/cpython2/Modules/mmapmodule.c
|
4d933fe392c683990f6c73f4ce23bc845a896b79 |
|
07-Feb-2003 |
Neal Norwitz <nnorwitz@gmail.com> |
SF patch #682514, mmapmodule.c write fix for LP64 executables Make length an int so we get the right value from PyArg_ParseTuple(args, "s#", &str, &length) Will backport.
/external/python/cpython2/Modules/mmapmodule.c
|
e604c02a803f075efecb318f5fb584faf7bf12c4 |
|
10-Jan-2003 |
Neal Norwitz <nnorwitz@gmail.com> |
SF #665913, Fix mmap module core dump with unix Closing an mmap'ed file (calling munmap) twice on Solaris caused a core dump. Will backport.
/external/python/cpython2/Modules/mmapmodule.c
|
b567392bbf3c595a47b86ea4d6038af0ec28b383 |
|
05-Sep-2002 |
Neal Norwitz <nnorwitz@gmail.com> |
SF bug # 585792, Invalid mmap crashes Python interpreter Raise ValueError if user passes a size to mmap which is larger than the file.
/external/python/cpython2/Modules/mmapmodule.c
|
62b1ab1b314653c09757c533883447eda437306f |
|
23-Jul-2002 |
Mark Hammond <mhammond@skippinet.com.au> |
Replace DL_IMPORT with PyMODINIT_FUNC and remove "/export:init..." link command line for Windows builds. This should allow MSVC to import and build the Python MSVC6 project files without error.
/external/python/cpython2/Modules/mmapmodule.c
|
6238d2b024f061159b2613387ff700695c10deef |
|
30-Jun-2002 |
Martin v. Löwis <martin@v.loewis.de> |
Patch #569753: Remove support for WIN16. Rename all occurrences of MS_WIN32 to MS_WINDOWS.
/external/python/cpython2/Modules/mmapmodule.c
|
c9ffa068d1d1dc93f620994a532f219a4be08385 |
|
08-Mar-2002 |
Tim Peters <tim.peters@gmail.com> |
SF bug 515943: searching for data with \0 in mmap. mmap_find_method(): this obtained the string to find via s#, but it ignored its length, acting as if it were \0-terminated instead. Someone please run on Linux too (the extended test_mmap works on Windows). Bugfix candidate.
/external/python/cpython2/Modules/mmapmodule.c
|
43b936d08c51726205123ae1af5c5f8b5d3b6fcb |
|
18-Jan-2002 |
Martin v. Löwis <martin@v.loewis.de> |
Patch #477750: Use METH_ constants in Modules.
/external/python/cpython2/Modules/mmapmodule.c
|
cdc445122208cb90a59a468a7396b227e223c43a |
|
12-Jan-2002 |
Martin v. Löwis <martin@v.loewis.de> |
Include <unistd.h> in Python.h. Fixes #500924.
/external/python/cpython2/Modules/mmapmodule.c
|
146483964e2e94b0d1709be438a1b86f75b5d730 |
|
08-Dec-2001 |
Guido van Rossum <guido@python.org> |
Patch supplied by Burton Radons for his own SF bug #487390: Modifying type.__module__ behavior. This adds the module name and a dot in front of the type name in every type object initializer, except for built-in types (and those that already had this). Note that it touches lots of Mac modules -- I have no way to test these but the changes look right. Apologies if they're not. This also touches the weakref docs, which contains a sample type object initializer. It also touches the mmap test output, because the mmap type's repr is included in that output. It touches object.h to put the correct description in a comment.
/external/python/cpython2/Modules/mmapmodule.c
|
5ebfd36afa9093099ab23e4d1256274ae7ee6978 |
|
14-Nov-2001 |
Tim Peters <tim.peters@gmail.com> |
CVS patch #477161: New "access" keyword for mmap, from Jay T Miller. This gives mmap() on Windows the ability to create read-only, write- through and copy-on-write mmaps. A new keyword argument is introduced because the mmap() signatures diverged between Windows and Unix, so while they (now) both support this functionality, there wasn't a way to spell it in a common way without introducing a new spelling gimmick. The old spellings are still accepted, so there isn't a backward- compatibility issue here.
/external/python/cpython2/Modules/mmapmodule.c
|
10f9c075b975414d5e3a3e333d53626f7c815142 |
|
05-Nov-2001 |
Andrew M. Kuchling <amk@amk.ca> |
Remove obsolete e-mail address
/external/python/cpython2/Modules/mmapmodule.c
|
1baac7201e99cb83f0a153fb3764c8c8daa9414d |
|
16-Jul-2001 |
Thomas Wouters <thomas@python.org> |
Fix SF #441664: Python crash on del of a slice of a mmap Check for slice/item deletion, which calls slice/item assignment with a NULL value, and raise a TypeError instead of coredumping. Bugreport and suggested fix by Alex Martelli.
/external/python/cpython2/Modules/mmapmodule.c
|
d401eddf91870aa1d830ec6b5eb06affc15374a3 |
|
15-May-2001 |
Tim Peters <tim.peters@gmail.com> |
Fix new compiler warnings. Also boost "start" from (C) int to long and return a (C) long: PyArg_ParseTuple and Py_BuildValue may not let us get at the size_t we really want, but C int is clearly too small for a 64-bit box, and both the start parameter and the return value should work for large mapped files even on 32-bit boxes. The code really needs to be rethought from scratch (not by me, though ...).
/external/python/cpython2/Modules/mmapmodule.c
|
834f4dd7c921593674409b9088458f378ac00ca4 |
|
14-May-2001 |
Greg Stein <gstein@lyra.org> |
Fix the .find() method for memory maps. 1) it didn't obey the "start" parameter (and when it does, we must validate the value) 2) the return value needs to be an absolute index, rather than relative to some arbitrary point in the file (checking CVS, it appears this method never worked; these changes bring it into line with typical .find() behavior)
/external/python/cpython2/Modules/mmapmodule.c
|
d6283b84c8ab6aec059c226e1c3dec4d462093e0 |
|
09-May-2001 |
Tim Peters <tim.peters@gmail.com> |
Minor fiddling related to SF patch 416251 2.1c1 mmapmodule: unused vrbl cleanup
/external/python/cpython2/Modules/mmapmodule.c
|
cf96de052f656c400ecfd8302d6507e4f586c365 |
|
21-Apr-2001 |
Tim Peters <tim.peters@gmail.com> |
SF but #417587: compiler warnings compiling 2.1. Repaired *some* of the SGI compiler warnings Sjoerd Mullender reported.
/external/python/cpython2/Modules/mmapmodule.c
|
2caf8df86802fb24a23ed2cf57674618b5a8f674 |
|
14-Jan-2001 |
Tim Peters <tim.peters@gmail.com> |
SF bug 128713: type(mmap_object) blew up on Linux.
/external/python/cpython2/Modules/mmapmodule.c
|
5a53019b0d4780b270c0c8027e0e66b7183fb661 |
|
10-Jan-2001 |
Guido van Rossum <guido@python.org> |
Part of SF patch #102409 by jlt63 to support building these modules under CYGWIN as shared libraries (DLLs).
/external/python/cpython2/Modules/mmapmodule.c
|
0d9f9dcf67c4c044f27cbbc7d3852951869dee53 |
|
10-Jan-2001 |
Tim Peters <tim.peters@gmail.com> |
Windows mmap should (as the docs probably <wink> say) create a mapping without a name when the optional tagname arg isn't specified. Was actually creating a mapping with an empty string as the name.
/external/python/cpython2/Modules/mmapmodule.c
|
145f96eb36a0ec8cb9a7f5926f94fbbcf2beebcf |
|
01-Oct-2000 |
Fred Drake <fdrake@acm.org> |
my_getpagesize(): New function; returns the size of a page of memory. Versions are defined for Windows and Unix; the Unix flavor uses sysconf() to get the page size; this avoids the use of getpagesize(), which is deprecated and requires an additional library on some platforms (specifically, Reliant UNIX). This partially closes SourceForge bug #113797.
/external/python/cpython2/Modules/mmapmodule.c
|
4b36e6bde1f44d5b792f9276ee6a80985dda843d |
|
25-Sep-2000 |
Guido van Rossum <guido@python.org> |
For the benefit of SunOS 4.1.4, define MS_SYNC as 0 when it's undefined. ccording to MvL, this is safe: the MS_SYNC flag means that msync() returns when all I/O operations are scheduled; without it, it waits until they are complete, which is acceptable behavior.
/external/python/cpython2/Modules/mmapmodule.c
|
071864acb2ed0966fb3503e790a0e3faa15f3795 |
|
30-Jul-2000 |
Mark Hammond <mhammond@skippinet.com.au> |
More Windows changes. * After discussion with Trent, all INT_PTR references have been removed in favour of the HANDLE it should always have been. Trent can see no 64bit issues here. * In this process, I noticed that the close operation was dangerous, in that we could end up passing bogus results to the Win32 API. These result of the API functions passed the bogus values were never (and still are not) checked, but this is closer to "the right thing" (tm) than before. Tested on Windows and Linux.
/external/python/cpython2/Modules/mmapmodule.c
|
2cbed005b6303fa999076abd34e9c6e58d483d76 |
|
30-Jul-2000 |
Mark Hammond <mhammond@skippinet.com.au> |
Fixes for Windows (but also tested on Linux). Test suite now completes, and this module should not leak in the face of errors. Checkin that replaces the INT_PTR types with HANDLEs still TBD (but as that is a "spelling" patch, rather than a functional one, I will commit it seperately.
/external/python/cpython2/Modules/mmapmodule.c
|
7e47402264cf87b9bbb61fc9ff610af08add7c7b |
|
16-Jul-2000 |
Thomas Wouters <thomas@python.org> |
Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
/external/python/cpython2/Modules/mmapmodule.c
|
5cccf50931e9b8295e4fcd8b84bd2724c5c6b15b |
|
09-Jul-2000 |
Fredrik Lundh <fredrik@pythonware.com> |
- added (long) casts to a couple of Py_BuildValue calls, just for the sake of it. note that this only covers the unlikely case that size_t is smaller than a long; it's probably more likely that there are platforms out there where size_t is *larger* than a long, and mmapmodule cannot really deal with that today.
/external/python/cpython2/Modules/mmapmodule.c
|
54cf3dc88c06e2719dddd234057e91cf4f4ec302 |
|
09-Jul-2000 |
Fredrik Lundh <fredrik@pythonware.com> |
-- ANSI-fying, names (patch #100762 by Peter Schneider-Kamp, minus the indentation changes) -- added INT_PTR workaround to make it build under VC 5.0
/external/python/cpython2/Modules/mmapmodule.c
|
da13f89fee60ea0ec51403457272a2c47592877c |
|
05-Jul-2000 |
Andrew M. Kuchling <amk@amk.ca> |
Remove definition of _GNU_SOURCE, since Python.h now does it for us
/external/python/cpython2/Modules/mmapmodule.c
|
ce8e1dc39531c8bed47cef0dd9d05bd3e9c0bd66 |
|
01-Jul-2000 |
Guido van Rossum <guido@python.org> |
clean up warnings in Win32 build of mmapmodule.c
/external/python/cpython2/Modules/mmapmodule.c
|
ea34a84e543ecf0a05ea34fe5b7d84cb1bcd437d |
|
18-Jun-2000 |
Andrew M. Kuchling <amk@amk.ca> |
Patch from Lorenzo M. Catucci: I discovered the [MREMAP_MAYMOVE] symbol is only defined when _GNU_SOURCE is defined; therefore, here is the change: if we are compiling for linux, define _GNU_SOURCE before including mman.h, and all is done.
/external/python/cpython2/Modules/mmapmodule.c
|
6fef30e1fad0775b80e37d9465fe5cbe3531418d |
|
18-Jun-2000 |
Andrew M. Kuchling <amk@amk.ca> |
Support resizing the mapping depending on whether HAVE_MREMAP is defined Remove two unused variables
/external/python/cpython2/Modules/mmapmodule.c
|
70d2742fce9c971fffc2f0c25c93b7686da84f60 |
|
18-Jun-2000 |
Andrew M. Kuchling <amk@amk.ca> |
Patch from Trent Mick: The seek() method is broken for any 'whence' value (seek from start, current, orend) other than the default. I have a patch that fixes that as well as gets mmap'd files working on Linux64 and Win64.
/external/python/cpython2/Modules/mmapmodule.c
|
9bc5f3339ad175e4dedb312fa2c5faecbbb8bfee |
|
18-Jun-2000 |
Andrew M. Kuchling <amk@amk.ca> |
Removed MS_INVALIDATE flags
/external/python/cpython2/Modules/mmapmodule.c
|
7b9fb92932ff1d501229263a69a4434558b0271d |
|
18-Jun-2000 |
Andrew M. Kuchling <amk@amk.ca> |
Fix the size() method to return the size of the file on Unix, not the size of the mapped area. This seems to be what the Windows version does. This change requires keeping around the fd of the mapped file.
/external/python/cpython2/Modules/mmapmodule.c
|
841b9fbebba244912421326fb4b0192c935f6cfb |
|
03-Jun-2000 |
Andrew M. Kuchling <amk@amk.ca> |
Use PyArg_ParseTuple and specify the method names, following a suggestion from Greg Stein
/external/python/cpython2/Modules/mmapmodule.c
|
961fe17b4cd3275a63e05b9c8c4c8e2eca16de9c |
|
03-Jun-2000 |
Andrew M. Kuchling <amk@amk.ca> |
Add missing PyArg_NoArgs() calls to methods that didn't take arguments (Pointed out by Moshe Zadka)
/external/python/cpython2/Modules/mmapmodule.c
|
b18618dab7b6b85bb05b084693706e59211fa180 |
|
04-May-2000 |
Guido van Rossum <guido@python.org> |
Vladimir Marangozov's long-awaited malloc restructuring. For more comments, read the patches@python.org archives. For documentation read the comments in mymalloc.h and objimpl.h. (This is not exactly what Vladimir posted to the patches list; I've made a few changes, and Vladimir sent me a fix in private email for a problem that only occurs in debug mode. I'm also holding back on his change to main.c, which seems unnecessary to me.)
/external/python/cpython2/Modules/mmapmodule.c
|
36d4f8b0ecc33a6ce09783bd39dea9a8b4c191a5 |
|
10-Apr-2000 |
Guido van Rossum <guido@python.org> |
Correct fix by Mark Favas for the cast problems.
/external/python/cpython2/Modules/mmapmodule.c
|
e110dcfa8600d58771c3553dba7e021b020ed98f |
|
10-Apr-2000 |
Guido van Rossum <guido@python.org> |
I've had complaints about the comparison "where >= 0" before -- on IRIX, it doesn't even compile. Added a cast: "where >= (char *)0".
/external/python/cpython2/Modules/mmapmodule.c
|
1ef4e2d54e5419b7164572db13330ed0b241fd0a |
|
05-Apr-2000 |
Fred Drake <fdrake@acm.org> |
Mark Hammond <mhammond@skippinet.com.au>: This patch fixes the mmap module on Windows 9x.
/external/python/cpython2/Modules/mmapmodule.c
|
56a87a090558ea69a9857d05c3dcf286801bbd7a |
|
04-Apr-2000 |
Fred Drake <fdrake@acm.org> |
Patch from Hrvoje Niksic <hniksic@iskon.hr>: The bug is in mmap_read_line_method(), and its loop that searches for newlines. After the loop reaches EOF, eol is incremented and points after the end of the memory. This results in readline() method sometimes picking up and returning a byte after the end of the string. This is usually a bogus \0, but it could cause SIGSEGV if it's after the end of the page). The patch fixes the problem. Also, it uses memchr() for finding a character, which is in fact the "strnchr" the comment is asking for. memchr() is already used in Python sources, so there should be no portability problems.
/external/python/cpython2/Modules/mmapmodule.c
|
325942adb455885cd5342ac19641091c438a8ad4 |
|
31-Mar-2000 |
Guido van Rossum <guido@python.org> |
Removed three unused variables from the Windows code.
/external/python/cpython2/Modules/mmapmodule.c
|
09fdf07315d0bb1d5d31edad0f19ed326f9a7665 |
|
31-Mar-2000 |
Guido van Rossum <guido@python.org> |
Hacked for Win32 by Mark Hammond. Reformatted for 8-space tabs and fitted into 80-char lines by GvR. Mark writes: * the Win32 version now accepts the same args as the Unix version. The win32 specific "tag" param is now optional. The end result is that the exact same test suite runs on Windows (definately a worthy goal!). * I changed the error object. All occurences of the error, except for 1, corresponds to an underlying OS error. This one was changed to a ValueError (a better error for that condition), and the module error object is now simply EnvironmentError. All win32 error routines now call the new Windows specific error handler.
/external/python/cpython2/Modules/mmapmodule.c
|
1ed7d2d2b824b8a7ef80a284efa6eef75f4fd885 |
|
30-Mar-2000 |
Andrew M. Kuchling <amk@amk.ca> |
Added mmap module -- map a view of a file into memory on Win32 and Unix. (Needs testing on Win32.)
/external/python/cpython2/Modules/mmapmodule.c
|