summaryrefslogtreecommitdiff
path: root/include/apr_mmap.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespaces.Ivan Zhakov2022-11-191-8/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905407 13f79535-47bb-0310-9956-ffa450edef68
* Remove Windows apr_mmap_t members pstart, psize and poffset.Yann Ylavic2021-03-021-4/+0
| | | | | | | They are only used locally in apr_mmap_create(). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1887062 13f79535-47bb-0310-9956-ffa450edef68
* Align apr_mmap()ing offset to a page boundary. PR 65158.Yann Ylavic2021-03-021-3/+4
| | | | | | | | | | | | | | | This is requirement for unix systems, and otherwise can cause failures or undefined behaviour with some filesystems. Add apr_mmap_t->poffset on unixes to track the offset to the previous page, relative to the user requested/actual offset. This allows ->mm and ->size to still point to the actual data, while munmap() still deletes the full range from the start of the page. Tests updated accordingly. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1887060 13f79535-47bb-0310-9956-ffa450edef68
* Fix doc errors in APR header files.Jeff Trawick2013-06-251-1/+1
| | | | | | | | PR: 55133 Submitted by: Mike Rumph <mike.rumph oracle.com> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1496407 13f79535-47bb-0310-9956-ffa450edef68
* Fix the typo.Joe Orton2006-08-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428317 13f79535-47bb-0310-9956-ffa450edef68
* Update license header.Joe Orton2006-08-031-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428313 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright year to 2005 and standardize on current copyright owner line.Justin Erenkrantz2005-02-041-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@151412 13f79535-47bb-0310-9956-ffa450edef68
* Relicense APR under Apache License, Version 2.0Justin Erenkrantz2004-02-131-49/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64904 13f79535-47bb-0310-9956-ffa450edef68
* axe this entirelyCliff Woolley2003-09-031-15/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64609 13f79535-47bb-0310-9956-ffa450edef68
* remove these interfaces:Jeff Trawick2003-09-031-8/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | apr_compare_groups apr_compare_users apr_current_userid apr_explode_localtime apr_explode_time apr_filename_of_pathname apr_get_groupid apr_get_groupname apr_get_home_directory apr_get_userid apr_get_username apr_group_name_get apr_implode_gmt apr_lstat FNM_NOMATCH FNM_NOESCAPE FNM_PATHNAME FNM_PERIOD FNM_CASE_BLIND change the function args to this interface: apr_mmap_dup this function's args changed in a previous commit, so mention that in CHANGES apr_socket_create git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64607 13f79535-47bb-0310-9956-ffa450edef68
* Rebalance our exposed headers such that everything is nested properlyWilliam A. Rowe Jr2003-03-051-8/+10
| | | | | | | | | | | | | | between extern "C" blocks and doxygen blocks, that we never include other headers within our own header's extern "C" block, that we always tag the entire file contents for doxygen (within the APR_HEADER_H only-once block), and generally clean up doxygen so that it is all consistent and generates respectable (although not yet 'great') results. Major TODO after 0.9.2 releases; fill in the apr.h APR_HAVE/APR_HAS and apr_type_t documentation!!! git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64397 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright notices to 2003.Thom May2003-01-011-1/+1
| | | | | | | No functional changes git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
* Fixed the apr_mmap_dup ownership problem for disjoint pools by gettingCliff Woolley2002-11-231-7/+12
| | | | | | | | | rid of the is_owner thing completely. Instead, we place all of the dup'ed apr_mmap_t's in a ring with each other (essentially the same as refcounting the mmaped region but without the where-do-you-store-it pitfall). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64067 13f79535-47bb-0310-9956-ffa450edef68
* Go through doxygen output and remove as many errors and warnings as I could.Justin Erenkrantz2002-11-101-3/+12
| | | | | | | | | | | No code changes. (Note removal of #define duplication in apr_poll.h/apr_network_io.h of the APR_POLL* values. This appears to have been an oversight and is now just in apr_poll.h) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64009 13f79535-47bb-0310-9956-ffa450edef68
* Added apr_file_setaside() function to move an apr_file_t fromBrian Pane2002-07-021-2/+18
| | | | | | | | one pool to another without a dup of the file descriptor. Also added apr_mmap_setaside() for consistency, per Cliff's suggestion git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63553 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.Roy T. Fielding2002-03-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63117 13f79535-47bb-0310-9956-ffa450edef68
* I've been getting compile warnings on FreeBSD 4.4/4.5 for months:Ben Collins-Sussman2002-01-251-2/+2
| | | | | | | | | | | | | | | "warning: declaration of `mmap' shadows global declaration" This should fix the problem. * apr_mmap.h (apr_mmap_delete, apr_mmap_offset): rename argument to 'mm'. * mmap/unix/mmap/mmap.c (apr_mmap_delete): same. * mmap/unix/mmap/common.c (apr_mmap_offset): same. * mmap/win32/mmap/mmap.c (apr_mmap_delete): same. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62832 13f79535-47bb-0310-9956-ffa450edef68
* add APR_MMAP_CANDIDATE macro to test if filelength is an mmap candidateDoug MacEachern2001-11-281-0/+3
| | | | | | | | | | | (greater than or equal to APR_MMAP_THRESHOLD and less than APR_MMAP_LIMIT) PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62571 13f79535-47bb-0310-9956-ffa450edef68
* namespace protect MMAP_{THRESHOLD,LIMIT} with APR_ prefixDoug MacEachern2001-11-281-5/+9
| | | | | | | | | | PR: Obtained from: Submitted by: Reviewed by: Cliff Woolley git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62570 13f79535-47bb-0310-9956-ffa450edef68
* move MMAP_{THRESHOLD,LIMIT} defines to apr_mmap.h so they can be used elsewhereDoug MacEachern2001-11-271-0/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62569 13f79535-47bb-0310-9956-ffa450edef68
* New APR function apr_mmap_dup.Ian Holsman2001-11-211-0/+15
| | | | | | | | | this is used in the MMAP bucket setaside function for a performance win. Mod_file_cache will also use this Submitted by: Brian Pane <bpane@pacbell.net> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62536 13f79535-47bb-0310-9956-ffa450edef68
* Changes to make Doxygen workIan Holsman2001-08-181-10/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62196 13f79535-47bb-0310-9956-ffa450edef68
* You can't map more bytes than a size_t ... eliminate an abused apr_off_tWilliam A. Rowe Jr2001-07-121-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61931 13f79535-47bb-0310-9956-ffa450edef68
* *) Complete the implementation of LARGEFILE support on Win32, althoughWilliam A. Rowe Jr2001-06-061-3/+3
| | | | | | | | | | | | the mmap semantics still need a touch of work. *) Fix the APR_XTHREAD support, and apr_sendfile mechanics, so we can handle cross-threaded file handles on Win32. Sorry, it's rather hard to untangle one from the other to create two patches. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61712 13f79535-47bb-0310-9956-ffa450edef68
* Here's food for thought ... how big is a mmap, the size of the mappedWilliam A. Rowe Jr2001-04-031-4/+4
| | | | | | | memory, or the size of the file that can be mapped? git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61443 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright to 2001Roy T. Fielding2001-02-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61235 13f79535-47bb-0310-9956-ffa450edef68
* Add remaining APR_DECLARE()s to all headers. Conditionally addedWilliam A. Rowe Jr2001-01-181-5/+10
| | | | | | | | | | | | | | | | | | | | APR_DECLARES() to the sources, based on compilation emits (there are many that should be changed eventually, but the compiler will emit errors if those sources are added for win32). This change also splits libapr from apr, so the two projects are compiled seperately. Both .dsp files must be kept up-to-date with source file revisions. Finally, libapr.def is no longer needed - so it is gone. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61072 13f79535-47bb-0310-9956-ffa450edef68
* Implement Win32 MMAP support.William A. Rowe Jr2000-12-071-0/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60912 13f79535-47bb-0310-9956-ffa450edef68
* Allow APR programmers to determine if an MMAP is read-only or if it shouldRyan Bloom2000-12-071-2/+11
| | | | | | | | be write-able. Submitted by: Ryan Bloom and Will Rowe git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60908 13f79535-47bb-0310-9956-ffa450edef68
* Protect a couple of functions with the appropriate #if's.Ryan Bloom2000-12-021-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60849 13f79535-47bb-0310-9956-ffa450edef68
* A couple of header files that are needed by BeOS to build.David Reid2000-12-021-0/+4
| | | | | | | | Submitted by: Sam TH <sam@uchicago.edu> Reviewed by: David Reid <dreid@apache.org> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60844 13f79535-47bb-0310-9956-ffa450edef68
* Make the APR headers sane.Greg Stein2000-11-261-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | *) Reduce the dependencies between APR headers. This assists APR clients who generate dependencies, and (used to) pick up "all" of the APR headers. Basically, this was trimming back the headers to just what was needed. Some unneeded system headers were removed, too. The most common headers to put back in were: apr.h, apr_pools.h, and apr_errno.h. *) move apr_pool_t declaration and a few pool functions from apr_general.h to apr_pools.h. *) move kill_conditions and process_chain from apr_pools.h to apr_thread_proc.h. *) move apr_note_subprocess() from apr_general.h to apr_thread_proc.h *) add stdio.h to apr_pools.c (compensate for removal from apr_general.h) *) add apr_lib.h to apr_strnatcmp.c (compensate for apr_strings.h no longer including apr_lib.h) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60796 13f79535-47bb-0310-9956-ffa450edef68
* Document all of the public APR structures with DocBook.Ryan Bloom2000-08-051-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60477 13f79535-47bb-0310-9956-ffa450edef68
* prefix libapr functions and types with apr_Doug MacEachern2000-08-021-7/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60470 13f79535-47bb-0310-9956-ffa450edef68
* Update apr_mmap.h to use ScanDocRyan Bloom2000-07-231-33/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60420 13f79535-47bb-0310-9956-ffa450edef68
* Stop using an incomplete type for MMAP files. The only sane way to reallyRyan Bloom2000-07-071-1/+14
| | | | | | | | | store an MMAP file as far as I can see is as a void * and a length. BeOS requires another variable, but it doesn't do any harm to expose that too. This cleans up some code for Apache, and it makes sense IMHO. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60314 13f79535-47bb-0310-9956-ffa450edef68
* Change the format for APR function documentation. This uses the perldocRyan Bloom2000-04-161-18/+33
| | | | | | | | | scripts to generate either plain text, html, or any other format perldoc can generate. This also fixes the comments to say ap_pool instead of ap_context. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59869 13f79535-47bb-0310-9956-ffa450edef68
* Change ap_context_t to ap_pool_t. This compiles, runs, and serves pagesRyan Bloom2000-04-141-1/+1
| | | | | | | on Linux, but probably breaks somewhere. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59856 13f79535-47bb-0310-9956-ffa450edef68
* more documentation movementdgaudet2000-04-141-2/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59841 13f79535-47bb-0310-9956-ffa450edef68
* fix the rest of the struct foo_t to struct ap_foo_t. Next is removing theRyan Bloom2000-04-031-1/+1
| | | | | | | struct's where possible. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59769 13f79535-47bb-0310-9956-ffa450edef68
* Update to Apache Software License version 1.1Roy T. Fielding2000-03-311-32/+31
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59754 13f79535-47bb-0310-9956-ffa450edef68
* Fix all the License issues. Including:Ryan Bloom2000-03-101-9/+9
| | | | | | | | | s/Apache Group/Apache Software Foundation/ s/1999/2000/ s/Sascha's license/ASF license git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59688 13f79535-47bb-0310-9956-ffa450edef68
* hange the way that we test for the size of ssize_t, using code suggested byDavid Reid1999-11-131-9/+3
| | | | | | | | | | | Ralf after I found that the test failed on FreeBSD. Update the mmap code to use a much simpler API than previously. I'll add documentation as well as support for this in http_core.c over the weekend. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59473 13f79535-47bb-0310-9956-ffa450edef68
* This adds a new mmap function for both BeOS and unix.David Reid1999-11-041-0/+2
| | | | | | | Also a couple of small corrections to previous code. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59453 13f79535-47bb-0310-9956-ffa450edef68
* Add the new functions and also argument names :-)David Reid1999-11-031-9/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59444 13f79535-47bb-0310-9956-ffa450edef68
* OK, here is the file I missed form the mmap commit last night.David Reid1999-10-211-0/+90
PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59401 13f79535-47bb-0310-9956-ffa450edef68