summaryrefslogtreecommitdiff
path: root/mmap
Commit message (Collapse)AuthorAgeFilesLines
* Use CreateFileMappingW on Unicode capable Windows.ivan2016-12-181-2/+14
| | | | | | | | | * mmap/win32/mmap.c (apr_mmap_create): Use CreateFileMappingW() if APR_HAS_UNICODE_FS and IF_WIN_OS_IS_UNICODE. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1774923 13f79535-47bb-0310-9956-ffa450edef68
* axe unused variablestrawick2010-05-281-1/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@949209 13f79535-47bb-0310-9956-ffa450edef68
* Once we know apr_off_t size > 0, we know we can foldwrowe2007-10-051-2/+2
| | | | | | it, as off_t is signed and size_t is unsigned. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@582097 13f79535-47bb-0310-9956-ffa450edef68
* Fix the typo.jorton2006-08-033-3/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@428317 13f79535-47bb-0310-9956-ffa450edef68
* Update license header.jorton2006-08-033-18/+18
| | | | git-svn-id: http://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.jerenkrantz2005-02-043-3/+6
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@151412 13f79535-47bb-0310-9956-ffa450edef68
* Remove .cvsignore files.jorton2004-11-181-4/+0
| | | | | | | Tipped-of-by: Uwe Zeisberger git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@76269 13f79535-47bb-0310-9956-ffa450edef68
* Add LFS support:jorton2004-03-271-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: Check for off64_t and necessary LFS functions, define apr_off_t as off64_t where available. Add --disable-lfs flag. Forward-port changes from 0.9.5 to define apr_off_t as long on systems systems with a 32-bit off_t which don't have LFS enabled. * include/apr.h.in: Let configure define APR_HAS_LARGE_FILES. * include/arch/netware/apr_arch_file_io.h: Redefine lseek and ftruncate. * include/arch/unix/apr_arch_file_io.h: Redefine stat, lstat, fstat, lseek, ftruncate here; define struct_stat. * file_io/unix/filestat.c: Use struct_stat. * file_io/unix/mktemp.c: Use mkstemp64 where available. * file_io/unix/open.c (apr_file_open): Use O_LARGEFILE by default when LFS is enabled. * file_io/unix/readwrite.c, file_io/unix/seek.c: Don't redefine lseek and ftruncate here. * mmap/unix/mmap.c (apr_mmap_create): Use mmap64 if available; otherwise check for overflow when LFS is enabled. * network_io/unix/sendrecv.c (apr_socket_sendfile) [Linux/HPUX]: Use sendfile64 if available; otherwise check for overflow when LFS is enabled. [solaris]: Use sendfilev64/sendfilevec64_t. * test/Makefile.in, test/test_apr.h, test/testlfs.c: Add tests. Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65027 13f79535-47bb-0310-9956-ffa450edef68
* Relicense APR under Apache License, Version 2.0jerenkrantz2004-02-133-147/+30
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64904 13f79535-47bb-0310-9956-ffa450edef68
* First whack at switching to a single top-level make. This adds a dependencygstein2004-02-051-13/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | upon Python at packaging time, but not at end-user config/build time. As far as I can tell, the build continues to function properly. (out-of-dir config/make not tested, and apr-iconv prolly needs some work) The buildconf scripts now generate a build-outputs.mk file which is included by the root's Makefile (via the build/gen-build.py script). bulid-outputs.mk specifies all of the various files present in the distribution. The top-level Makefiles were simplified to use an $(OBJECTS) symbol rather than 'find'ing them. Similarly, a $(HEADERS) symbol is used for the exports. The corresponding delete-* targets were eliminated since we have a precise set of inputs. The subdirs' Makefiles were removed since they are no longer called/used. The apr-util/uri Makefile was responsible for compiling a C program to generate the uri_delims.h file. That process was replaced by a Python script to generate the header (called by buildconf). The .c and .dsp were left for the Windows build to continue, but that should be revamped. build/apr_rules.mk was revamped somewhat to avoid recursion, but a lot of cleanup is still needed. Much of the recursive/local/x- logic is no longer needed and can be elimianated. rules.mk was created for inclusion by N makefiles, but that isn't really true any more, so it could probably be tossed (caveat: test/Makefile). Saved for a phase 2. Some additional work was added to properly clean up files in */build/, rather than relying on a makefile in there. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64891 13f79535-47bb-0310-9956-ffa450edef68
* remove these interfaces:trawick2003-09-032-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@64607 13f79535-47bb-0310-9956-ffa450edef68
* it's confusing as hell to get an allocated object back that's all zeros.jwoolley2003-07-141-0/+2
| | | | | | | | | | | yeah, yeah, we returned something other than APR_SUCCESS, but still. anyway, the win32 implementation already does this, so now we're consistent. Submitted by: Sander, Branko, Cliff git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64568 13f79535-47bb-0310-9956-ffa450edef68
* * mmap/unix/mmap.cstriker2003-03-101-1/+1
| | | | | | | (apr_mmap_create): Return errno instead of APR_ENOMEM. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64415 13f79535-47bb-0310-9956-ffa450edef68
* Consistently fail on all platforms.striker2003-03-062-0/+6
| | | | | | | | | | | | | * mmap/unix/mmap.c (apr_mmap_create): return APR_EINVAL when size == 0. * mmap/win32/mmap.c (apr_mmap_create): return APR_EINVAL when size == 0. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64403 13f79535-47bb-0310-9956-ffa450edef68
* rename apr_arch_fileio.h to apr_arch_file_io.h for consistencythommay2003-01-072-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64275 13f79535-47bb-0310-9956-ffa450edef68
* Namespace protection for include/arch/ header filesthommay2003-01-062-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aix/dso.h -> -> aix/apr_arch_dso.h beos/dso.h -> beos/apr_arch_dso.h beos/proc_mutex.h -> beos/apr_arch_proc_mutex.h beos/thread_cond.h -> beos/apr_arch_thread_cond.h beos/thread_mutex.h -> beos/apr_arch_thread_mutex.h beos/threadproc.h -> beos/apr_arch_threadproc.h beos/thread_rwlock.h -> beos/apr_arch_thread_rwlock.h netware/dso.h -> -> netware/apr_arch_dso.h netware/fileio.h -> -> netware/apr_arch_fileio.h netware/global_mutex.h -> netware/apr_arch_global_mutex.h netware/internal_time.h -> netware/apr_arch_internal_time.h netware/networkio.h -> netware/apr_arch_networkio.h netware/pre_nw.h -> netware/apr_arch_pre_nw.h netware/proc_mutex.h -> netware/apr_arch_proc_mutex.h netware/thread_cond.h -> netware/apr_arch_thread_cond.h netware/thread_mutex.h -> netware/apr_arch_thread_mutex.h netware/threadproc.h -> netware/apr_arch_threadproc.h netware/thread_rwlock.h -> netware/apr_arch_thread_rwlock.h os2/dso.h -> os2/apr_arch_dso.h os2/fileio.h -> os2/apr_arch_fileio.h os2/networkio.h -> os2/apr_arch_networkio.h os2/os2calls.h -> os2/apr_arch_os2calls.h os2/proc_mutex.h -> os2/apr_arch_proc_mutex.h os2/thread_cond.h -> os2/apr_arch_thread_cond.h os2/thread_mutex.h -> os2/apr_arch_thread_mutex.h os2/threadproc.h -> os2/apr_arch_threadproc.h os2/thread_rwlock.h -> os2/apr_arch_thread_rwlock.h os390/dso.h -> os390/apr_arch_dso.h unix/dso.h -> unix/apr_arch_dso.h unix/fileio.h -> unix/apr_arch_fileio.h unix/global_mutex.h -> unix/apr_arch_global_mutex.h unix/inherit.h -> unix/apr_arch_inherit.h unix/internal_time.h -> unix/apr_arch_internal_time.h unix/misc.h -> unix/apr_arch_misc.h unix/networkio.h -> unix/apr_arch_networkio.h unix/proc_mutex.h -> unix/apr_arch_proc_mutex.h unix/shm.h -> unix/apr_arch_shm.h unix/thread_cond.h -> unix/apr_arch_thread_cond.h unix/thread_mutex.h -> unix/apr_arch_thread_mutex.h unix/threadproc.h -> unix/apr_arch_threadproc.h unix/thread_rwlock.h -> unix/apr_arch_thread_rwlock.h win32/atime.h -> win32/apr_arch_atime.h win32/dso.h -> win32/apr_arch_dso.h win32/fileio.h -> win32/apr_arch_fileio.h win32/inherit.h -> win32/apr_arch_inherit.h win32/misc.h -> win32/apr_arch_misc.h win32/networkio.h -> win32/apr_arch_networkio.h win32/proc_mutex.h -> win32/apr_arch_proc_mutex.h win32/thread_cond.h -> win32/apr_arch_thread_cond.h win32/thread_mutex.h -> win32/apr_arch_thread_mutex.h win32/threadproc.h -> win32/apr_arch_threadproc.h win32/thread_rwlock.h -> win32/apr_arch_thread_rwlock.h win32/utf8.h -> win32/apr_arch_utf8.h git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64271 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright notices to 2003.thommay2003-01-013-3/+3
| | | | | | | No functional changes git-svn-id: http://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 gettingjwoolley2002-11-232-43/+29
| | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@64067 13f79535-47bb-0310-9956-ffa450edef68
* Add .deps to cvsignore since APR may now generate .deps files.jerenkrantz2002-04-221-0/+1
| | | | | | | (somehow CVS ignored updating these on the last commit.) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63287 13f79535-47bb-0310-9956-ffa450edef68
* Allow VPATH builds to properly generate build dependencies. This requiresjerenkrantz2002-04-221-0/+2
| | | | | | | | | | | | srcdir to always be available in a Makefile, so we need to stop adding this only when we use VPATH. Change the dependency generation to use .deps instead of appending to the Makefile. This makes us consistent with the dependency style of httpd-2.0. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63286 13f79535-47bb-0310-9956-ffa450edef68
* Make this match the new unix version.jwoolley2002-04-181-7/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63279 13f79535-47bb-0310-9956-ffa450edef68
* standardize some apr_foo_close() functions (call apr_pool_cleanup_run())trawick2002-04-161-7/+1
| | | | | | | | a couple of these functions didn't kill the cleanup if it failed; we might as well; the error isn't going to magically disappear next time we try git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63272 13f79535-47bb-0310-9956-ffa450edef68
* Sanitize some return types.jwoolley2002-04-102-8/+12
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63242 13f79535-47bb-0310-9956-ffa450edef68
* Fix a problem with the is_owner handling in the Unix and MMAP code thatjwoolley2002-04-102-22/+16
| | | | | | | | | | | | | would cause a cleanup to be killed that didn't exist in a certain set of circumstances (create, dup but don't transfer ownership, dup again, delete the second dup, boom). Also fix a potential problem in the Unix code where the ->mm pointer would not be set to NULL if munmap failed. Logic like that caused us headaches a while back in the directory cleanups. Reviewed by: Greg Ames, William Rowe git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63241 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.fielding2002-03-133-3/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63117 13f79535-47bb-0310-9956-ffa450edef68
* Fix a Win32 segfault in mod_ssl, since ssl used file bucket to mmapwrowe2002-02-211-9/+8
| | | | | | | transformation to process input. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63038 13f79535-47bb-0310-9956-ffa450edef68
* I've been getting compile warnings on FreeBSD 4.4/4.5 for months:sussman2002-01-252-7/+7
| | | | | | | | | | | | | | | "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: http://svn.apache.org/repos/asf/apr/apr/trunk@62832 13f79535-47bb-0310-9956-ffa450edef68
* Fix a compiler warning from an undeclared function.aaron2001-11-221-0/+1
| | | | | | | Submitted by: Joe Orton <joe@manyfish.co.uk> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62542 13f79535-47bb-0310-9956-ffa450edef68
* Missing includewrowe2001-11-211-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62540 13f79535-47bb-0310-9956-ffa450edef68
* New APR function apr_mmap_dup.ianh2001-11-212-0/+64
| | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@62536 13f79535-47bb-0310-9956-ffa450edef68
* Add APR_DECLARE to the functions in mmap.crbb2001-08-021-6/+7
| | | | | | | Submitted by: Sterling Hughes <sterling@designmultimedia.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62082 13f79535-47bb-0310-9956-ffa450edef68
* More crufty stuff, yes, it was my bug, and no, this is really horked sincewrowe2001-06-271-3/+6
| | | | | | | | we aren't distinguishing the size of the file backing the mmap from the size of the mmap'ed view. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61806 13f79535-47bb-0310-9956-ffa450edef68
* *) Complete the implementation of LARGEFILE support on Win32, althoughwrowe2001-06-061-5/+12
| | | | | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@61712 13f79535-47bb-0310-9956-ffa450edef68
* Make the apr_mmap_create() function use the native_flags variable.rbb2001-04-301-10/+4
| | | | | | | | This allows us to actually create WRITEABLE MMAPs. Submitted by: Ed Korthof <ed@apache.org> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61565 13f79535-47bb-0310-9956-ffa450edef68
* Fix the hosed #ifdef APR_HAVE_FOO_H tests, the #if HAVE_ tests, andwrowe2001-02-251-3/+3
| | | | | | | also cleanup s/#ifdef HAVE_FOO_H/#if APR_HAVE_FOO_H/ whrere appropriate. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61303 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright to 2001fielding2001-02-163-3/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61235 13f79535-47bb-0310-9956-ffa450edef68
* renaming various functions for consistency sakedougm2001-02-082-7/+7
| | | | | | | | | | | see: http://apr.apache.org/~dougm/apr_rename.pl PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61194 13f79535-47bb-0310-9956-ffa450edef68
* apr_mmap_t is defined as a void*.gstein2001-02-051-5/+5
| | | | | | | (caddr_t seems to be a BSDism rather than single unix) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61187 13f79535-47bb-0310-9956-ffa450edef68
* Get this working on beos again so we can serve pages!dreid2001-01-291-7/+9
| | | | | | | | Some of the code improvements were suggested by Carlos Hasan <chasan@acm.org>. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61170 13f79535-47bb-0310-9956-ffa450edef68
* Add remaining APR_DECLARE()s to all headers. Conditionally addedwrowe2001-01-182-4/+6
| | | | | | | | | | | | | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@61072 13f79535-47bb-0310-9956-ffa450edef68
* Libtool-ize APR.gstein2001-01-092-25/+8
| | | | | | | | | | | | | | | | | To simplify the task, I also shifted the Makefiles to include a rules.mk (based on APRUTIL's with a few tweaks). Still needs some work to remove the INCLUDES setup in all the Makefiles (these can be shared). buildconf now does more work (and generates some output) aclocal.m4 is based on a number of M4 files, rather than standalone apr/test/ has been updated but is probably broken in a few ways. objs/ is now gone. we link directly from the .lo files. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61037 13f79535-47bb-0310-9956-ffa450edef68
* Move apr_private.h.in from the include directory to the arch/unixrbb2000-12-082-2/+3
| | | | | | | | | | | directory. This removes all temptation to include apr_private.h from outside of APR, because it just isn't available. This also highlighted a bunch of holes in our header file setup. Basically, just directories that were never migrated to the curret setup. Submitted by: Will Rowe and Ryan Bloom git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60919 13f79535-47bb-0310-9956-ffa450edef68
* Implement Win32 MMAP support.wrowe2000-12-071-0/+165
| | | | git-svn-id: http://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 shouldrbb2000-12-071-3/+19
| | | | | | | | be write-able. Submitted by: Ryan Bloom and Will Rowe git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60908 13f79535-47bb-0310-9956-ffa450edef68
* This patch removes the dependencies from Makefile.in. Dependenciestrawick2000-11-151-37/+2
| | | | | | | | | | | | | | | | | will not be checked into CVS, as they are added to Makefile when the user runs "make depend." The exact mechanism for building dependencies is moved to a script called mkdep.sh in the APR helpers directory. Folks are free to make the mechanism more general (i.e., work on systems without gcc -MM), but for now it still requires gcc -MM. The patch also removes some commented out variable definitions and rules. BeOS- and OS/2-specific makefiles have not been updated. I'll post a patch to those or go ahead and commit them later, but David and Brian will get to test them. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60727 13f79535-47bb-0310-9956-ffa450edef68
* tweak the includes for the recent header reorg.gstein2000-11-091-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60681 13f79535-47bb-0310-9956-ffa450edef68
* Tie up some loose ends that fell through the cracks while I was fixingrbb2000-11-091-4/+3
| | | | | | | things the first time. The server compiles again after this change. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60664 13f79535-47bb-0310-9956-ffa450edef68
* prefix libapr functions and types with apr_dougm2000-08-022-12/+12
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60470 13f79535-47bb-0310-9956-ffa450edef68
* Stop using an incomplete type for MMAP files. The only sane way to reallyrbb2000-07-074-111/+40
| | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@60314 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup yesterday's patch to make APR use APR namespace protected macros.rbb2000-06-222-2/+2
| | | | | | | | | | | This makes APR use #if instead of #ifdef when using an APR macro. Since APR has stated that it will be using #if always, this is at least a step in that direction. This also fixes a problem with building MMAP that I think I introduced yesterday. Submitted by: Bill Stoddard git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60241 13f79535-47bb-0310-9956-ffa450edef68