summaryrefslogtreecommitdiff
path: root/mmap/unix
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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-101-4/+6
| | | | 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-101-16/+9
| | | | | | | | | | | | | 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-132-2/+2
| | | | git-svn-id: http://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:sussman2002-01-251-4/+4
| | | | | | | | | | | | | | | "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
* New APR function apr_mmap_dup.ianh2001-11-211-0/+32
| | | | | | | | | 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
* 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-162-2/+2
| | | | 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-081-4/+4
| | | | | | | | | | | 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-181-1/+2
| | | | | | | | | | | | | | | | | | | | 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
* 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
* Big commit. Basically, if APR defines a public feature macro, then APRrbb2000-06-223-3/+4
| | | | | | | | | should also use that macro internally. This keeps us from checking for multiple macros as we were doing in the SENDFILE case. It also means that APR is definately building the same way that external programs expect it to. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60239 13f79535-47bb-0310-9956-ffa450edef68
* OK so finally I get my cvs working again! These small diffsdreid2000-06-122-2/+2
| | | | | | | get mmap building on BeOS after the merge. Missed them last time around. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60177 13f79535-47bb-0310-9956-ffa450edef68
* trailing space caused build to break for me, remove it.dougm2000-06-111-1/+1
| | | | | | | | | | | did somebody say it's sunny outside? PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60176 13f79535-47bb-0310-9956-ffa450edef68
* Update dependencies.ben2000-06-111-14/+16
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60173 13f79535-47bb-0310-9956-ffa450edef68
* don't seek when setting up an mmapdgaudet2000-06-101-2/+3
| | | | | | | | | | PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60159 13f79535-47bb-0310-9956-ffa450edef68
* Small change to get mmap support for BeOS working again.dreid2000-06-011-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60128 13f79535-47bb-0310-9956-ffa450edef68
* Fix a typo in the new beos code in the unix dir.rbb2000-05-161-1/+1
| | | | | | | Submitted by: Greg Stein git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60048 13f79535-47bb-0310-9956-ffa450edef68
* Update the unix code to support BeOS. Remove the now un-necessary BeOSrbb2000-05-163-17/+39
| | | | | | | directory. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60046 13f79535-47bb-0310-9956-ffa450edef68
* Use ap_pcalloc instead of ap_palloc where it makes sense.rbb2000-04-301-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60005 13f79535-47bb-0310-9956-ffa450edef68
* Make `mm' an INCDIR in shmem/unix, so that the INCDIR rewriter cansascha2000-04-301-1/+0
| | | | | | | | | automatically adapt it for VPATH use. Remove $(OBJS): Makefile dependency to avoid unnecessary rebuilds. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59998 13f79535-47bb-0310-9956-ffa450edef68
* Update comment for depend target. The template makefiles are now calledsascha2000-04-301-1/+1
| | | | | | | Makefile.in, and Configure became configure. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59996 13f79535-47bb-0310-9956-ffa450edef68
* Move apr_config.h and apr_config.hw to apr_private.h and apr_private.hw.rbb2000-04-222-3/+3
| | | | | | | | This should make the fact that this is a private header file more obvious. This also updates all of the references to apr_config.h git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59924 13f79535-47bb-0310-9956-ffa450edef68
* Change ap_context_t to ap_pool_t. This compiles, runs, and serves pagesrbb2000-04-142-2/+2
| | | | | | | on Linux, but probably breaks somewhere. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59856 13f79535-47bb-0310-9956-ffa450edef68
* more namespace cleanupdgaudet2000-04-142-3/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59849 13f79535-47bb-0310-9956-ffa450edef68
* more documentation movementdgaudet2000-04-142-21/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59841 13f79535-47bb-0310-9956-ffa450edef68
* Remove all the buffered I/O code from APR. APR supports buffered I/O onlyrbb2000-04-061-1/+1
| | | | | | | | on platforms that only support FILE *'s, not ints. Of course, this is only true on POSIX systems. Other systems can do what they want. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59808 13f79535-47bb-0310-9956-ffa450edef68
* Finish the APR naming cleanup. This removes the struct's fromrbb2000-04-031-3/+3
| | | | | | | | apr_variable declarations. This works on Unix, but a test compile on other platforms would be a good idea. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59773 13f79535-47bb-0310-9956-ffa450edef68
* fix the rest of the struct foo_t to struct ap_foo_t. Next is removing therbb2000-04-032-4/+4
| | | | | | | struct's where possible. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59769 13f79535-47bb-0310-9956-ffa450edef68
* Update to Apache Software License version 1.1fielding2000-03-313-95/+93
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59754 13f79535-47bb-0310-9956-ffa450edef68
* Fix warnings, update dependencies.ben2000-03-181-6/+6
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59724 13f79535-47bb-0310-9956-ffa450edef68
* Updating more docs. :-)rbb2000-03-152-0/+21
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59705 13f79535-47bb-0310-9956-ffa450edef68
* Fix all the License issues. Including:rbb2000-03-103-27/+27
| | | | | | | | | s/Apache Group/Apache Software Foundation/ s/1999/2000/ s/Sascha's license/ASF license git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59688 13f79535-47bb-0310-9956-ffa450edef68
* Pointer arithmetic using void * is non-sense. GCC implicitly convertssascha2000-01-031-1/+1
| | | | | | | these constructs to char *. To support other compilers, we cast explicitly. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59567 13f79535-47bb-0310-9956-ffa450edef68
* Fix the build process for APR. There is no reason to build each libraryrbb1999-12-201-7/+7
| | | | | | | | | individually if we are just going to combine them into one library later. I am just commenting out those lines we don't need anymore. They will probably go away very soon, but I want to think about it a bit more. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59544 13f79535-47bb-0310-9956-ffa450edef68