summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/mmap.cc
Commit message (Collapse)AuthorAgeFilesLines
* make the MMap Grow Error a fatal one as while in theory the code shouldDavid Kalnischkies2010-06-261-1/+1
| | | | never segfault it still tend to do it so better show it directly
* * contrib/mmap.cc:David Kalnischkies2010-05-131-2/+2
| | | | - clarify "MMap reached size limit" error message, thanks Ivan Masár!
* * apt-pkg/contrib/mmap.{h,cc}:David Kalnischkies2010-02-271-11/+59
| | | | | | - add char[] fallback for filesystems without shared writable mmap() like JFFS2. Thanks to Marius Vollmer for writing and to Loïc Minier for pointing to the patch! (Closes: #314334)
* extent the mmap to be able to handle currently not implementedDavid Kalnischkies2009-11-091-42/+85
| | | | (but planed) growable mmaps
* * apt-pkg/contrib/mmap.cc:Julian Andres Klode2009-08-021-1/+1
| | | | - Fix FTBFS on GNU/kFreeBSD by disabling DynamicMMap::Grow() on non-Linux architectures (as it uses mremap).
* merge with lp:apt/debian-sidDavid Kalnischkies2009-07-261-1/+1
| | | | | Remove a bug (= an evil amok running if) introduced by the merge in 1817 which cause a segfault in the destructor for the dynamic mmap.
* merge from the donkult branchMichael Vogt2009-07-241-4/+11
|\
| * [apt-pkg] yet another bit of mmap and pkgcachegen housekeepingDavid Kalnischkies2009-07-231-6/+14
| | | | | | | | | | | | | | | | | | * add mmap error message also to the dynamic mmap * remove some more {Ver,Desc} == 0 checks in for loops * try to respect the given flags to the dynamic mmap * open cached caches not as ReadOnly and not as Shared, so we always have a copy of the cache in the memory we can modify (e.g. set the hold state on-the-fly)
* | The 'not dead yet' releaseMichael Vogt2009-07-211-34/+79
|\| | | | | | | | | | | | | | | | | | | | | * add hook for MarkInstall and MarkDelete (closes: #470035) * add the various foldmarkers in apt-pkg & cmdline (no code change) * versions with a pin of -1 shouldn't be a candidate (Closes: #355237) * prefer mmap as memory allocator in MMap instead of a static char array which can (at least in theory) grow dynamic * eliminate (hopefully all) segfaults in pkgcachegen.cc and mmap.cc which can arise if cache doesn't fit into the mmap (Closes: #535218) * display warnings instead of errors if the parts dirs doesn't exist * honor the dpkg hold state in new Marker hooks (closes: #64141)
| * eliminate (hopefully all) segfaults in pkgcachegen.cc and mmap.ccDavid Kalnischkies2009-07-211-45/+23
| | | | | | | | | | | | | | which can arise if cache doesn't fit into the mmap (Closes: #535218) This removes also the previously introduced SegfaultSignalHandler: The handler works, but is ugly by design...
| * add a segfault handler to MMap to show the Cache-Limit message, whichDavid Kalnischkies2009-07-081-0/+24
| | | | | | | | can be deactivated with MMap::SegfaultHandler=false (Closes: 535218)
| * [contrib/mmap] implements a theoretical dynamic growing mmapDavid Kalnischkies2009-07-081-21/+63
|/ | | | | | | | | based on Michael Vogts patch in #195018 this commit implements the use of mmap (as preferred) instead of a static char array. In theory this made it possible to grow the mmap as needed, but as it is currently impossible to move the mmap around in the memory the grow is likely to fail but it improve the memory usage a bit, so it is not totally useless for now - and maybe we can adjust the pointers in the future...
* Added instruction how to work around MMap error in MMap error message.Eugene V. Lyubimkin2008-11-261-2/+4
|
* fix various -Wall warningsMichael Vogt2008-10-281-2/+3
|
* * apt-pkg/acquire-item.cc:Michael Vogt2007-09-271-2/+2
| | | | | - fix crash in diff acquire code * apt-pkg/contrib/mmap.cc: - don't fail if msync() returns > 0
* * make apt build with g++ 4.3Michael Vogt2007-09-101-0/+2
|
* * remove all the remaining #pragma implementationMichael Vogt2007-06-081-4/+0
|
* * leak fix for debian #250583Michael Vogt2005-09-281-2/+2
|
* Ensure the memory buffer is 0'dArch Librarian2004-09-201-1/+2
| | | | | | Author: jgg Date: 2001-05-27 05:19:30 GMT Ensure the memory buffer is 0'd
* Join with aliencodeArch Librarian2004-09-201-8/+15
| | | | | | Author: jgg Date: 2001-02-20 07:03:16 GMT Join with aliencode
* More or group patchesArch Librarian2004-09-201-3/+3
| | | | | | Author: jgg Date: 1999-10-02 04:14:53 GMT More or group patches
* Fixed msync thingyArch Librarian2004-09-201-3/+1
| | | | | | Author: jgg Date: 1999-08-30 04:20:26 GMT Fixed msync thingy
* Fixed sign conversionArch Librarian2004-09-201-1/+3
| | | | | | Author: jgg Date: 1999-08-28 01:49:07 GMT Fixed sign conversion
* A few functions migrated aroundArch Librarian2004-09-201-2/+2
| | | | | | Author: jgg Date: 1999-08-02 03:07:47 GMT A few functions migrated around
* Small range check bugArch Librarian2004-09-201-3/+4
| | | | | | Author: jgg Date: 1999-07-18 05:58:40 GMT Small range check bug
* Support for memory-only cachingArch Librarian2004-09-201-18/+49
| | | | | | Author: jgg Date: 1999-04-18 06:36:36 GMT Support for memory-only caching
* Fixes for mmap and yodlArch Librarian2004-09-201-5/+4
| | | | | | Author: jgg Date: 1999-03-18 04:32:45 GMT Fixes for mmap and yodl
* Backed out previous apt-pkg/contrib/mmap.cc fix/kludge/...Arch Librarian2004-09-201-2/+2
| | | | | | Author: doogie Date: 1999-03-18 04:10:21 GMT Backed out previous apt-pkg/contrib/mmap.cc fix/kludge/change.
* modified apt-pkg/contrib/mmap.cc to not use the define ...Arch Librarian2004-09-201-2/+3
| | | | | | | | Author: doogie Date: 1999-03-18 03:20:24 GMT modified apt-pkg/contrib/mmap.cc to not use the define PAGE_SIZE by removing '#include <sys/user.h>' and adding 'static int PAGE_SIZE = getpagesize();' to msync();
* Fix for hurdArch Librarian2004-09-201-1/+5
| | | | | | Author: jgg Date: 1999-02-05 02:26:13 GMT Fix for hurd
* Needs Unpack fixesArch Librarian2004-09-201-1/+4
| | | | | | Author: jgg Date: 1998-11-23 07:02:58 GMT Needs Unpack fixes
* Widened the mmap sizeArch Librarian2004-09-201-2/+2
| | | | | | Author: jgg Date: 1998-11-12 03:14:39 GMT Widened the mmap size
* Progress and combined cache generatorArch Librarian2004-09-201-1/+4
| | | | | | Author: jgg Date: 1998-07-26 04:49:26 GMT Progress and combined cache generator
* Class File name change to FileFdArch Librarian2004-09-201-3/+3
| | | | | | Author: jgg Date: 1998-07-19 04:42:10 GMT Class File name change to FileFd
* Compile of apt-cacheArch Librarian2004-09-201-6/+9
| | | | | | Author: jgg Date: 1998-07-15 05:56:42 GMT Compile of apt-cache
* First draft of make system and name change to apt-pkgArch Librarian2004-09-201-4/+4
| | | | | | Author: jgg Date: 1998-07-12 23:58:20 GMT First draft of make system and name change to apt-pkg
* SyncArch Librarian2004-09-201-1/+5
| | | | | | Author: jgg Date: 1998-07-07 04:17:00 GMT Sync
* CheckpointArch Librarian2004-09-201-2/+3
| | | | | | Author: jgg Date: 1998-07-04 22:32:11 GMT Checkpoint
* CheckpointArch Librarian2004-09-201-7/+9
| | | | | | Author: jgg Date: 1998-07-04 05:57:34 GMT Checkpoint
* Base revisionsArch Librarian2004-09-201-0/+227
Author: jgg Date: 1998-07-02 02:58:12 GMT Base revisions