summaryrefslogtreecommitdiff
path: root/shmem
Commit message (Collapse)AuthorAgeFilesLines
* Make some of the checks clearer and remove the debugging stuff thatdreid2001-06-071-39/+6
| | | | | | | | | | is no longer needed. Submitted by: Greg Stein Reviewed by: David Reid git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61732 13f79535-47bb-0310-9956-ffa450edef68
* Stop some compiler warnings on beos...dreid2001-06-061-6/+6
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61726 13f79535-47bb-0310-9956-ffa450edef68
* BeOS now uses it's own shmem files and doesn't need MM, so this codedreid2001-05-091-40/+0
| | | | | | | can be simplified. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61597 13f79535-47bb-0310-9956-ffa450edef68
* This is replacement shared memory code for BeOS. It's simple but seems todreid2001-04-303-0/+369
| | | | | | | | work and reduces the build problems that we've seen using MM. This can probably be improved on, but it's a starting point. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61570 13f79535-47bb-0310-9956-ffa450edef68
* In apr_shm_init(), check the retcode from mm_malloc(). Previously,trawick2001-02-201-0/+6
| | | | | | | | | we segfaulted here if mm_malloc() failed to get a lock. An example error scenario is when the lock file lives on a filesystem which doesn't support locking. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61265 13f79535-47bb-0310-9956-ffa450edef68
* Enable use of the new build directory.fielding2001-02-181-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61254 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
* Add Darwin/Mac OS.wsanchez2001-02-082-1/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61197 13f79535-47bb-0310-9956-ffa450edef68
* renaming various functions for consistency sakedougm2001-02-082-6/+6
| | | | | | | | | | | 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
* OS2 was chasing os2errno.h which we hid in a private platform directory,wrowe2001-01-281-2/+0
| | | | | | | | | | | | but apr_errno.h is public. It also called in <os.h> with possibly inappropriate headers, and if os2.h follows any other header's usual conventions, calling it the second time for more declarations can be dicey. Relocated <os2.h> into apr.h.in (accessable to all, since it's later leveraged by most), which simplifies a bunch of code, and relocate all of the os2errno values into apr_errno.h for APR_STATUS_IS_FOO tests. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61156 13f79535-47bb-0310-9956-ffa450edef68
* stop monkeying around with MM's object filesgstein2001-01-101-7/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61044 13f79535-47bb-0310-9956-ffa450edef68
* Libtool-ize APR.gstein2001-01-094-59/+25
| | | | | | | | | | | | | | | | | 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
* This header file is needed to allow the shared memory "fix" for BeOS todreid2001-01-061-0/+4
| | | | | | | | | | work. Submitted by: Justin Sherrill <justin@shiningsilence.com> Peter Moore <peter@cdws.com.au> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61028 13f79535-47bb-0310-9956-ffa450edef68
* I managed to miss these from a commit a while ago and so this hasn'tdreid2000-12-312-1/+15
| | | | | | | been working on BeOS for a while. Oh well, here is the fix. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60993 13f79535-47bb-0310-9956-ffa450edef68
* This allows BeOS shared memory to work across forks and thus thedreid2000-12-151-0/+37
| | | | | | | | | test program works! This was never an issue for Apache as we carefully avoid forking on BeOS but it's something other programs should not need to worry about. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60954 13f79535-47bb-0310-9956-ffa450edef68
* We need to define this correctly or it's never set and we don't setdreid2000-12-131-1/+1
| | | | | | | | the correct values. This caused the tests to fail on BeOS and maybe other systems as well. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60945 13f79535-47bb-0310-9956-ffa450edef68
* Fix a compile break on BeOS and FreeBSD. We don't want to add the sizerbb2000-12-021-1/+1
| | | | | | | | of the void *, we want to add the size of the apr_shmem_t * variable. Submitted by: Jeff Trawick and Sam TH <sam@uchicago.edu> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60850 13f79535-47bb-0310-9956-ffa450edef68
* MPMs that require multiple segments of shared memory now just use tworbb2000-12-025-5/+12
| | | | | | | | | | | | | | | | shared memory blocks to ensure that all of the memory is available. This removes the hack that added 80 bytes to each shared memory block. We end up needing two apr_shmem_t variables, because it is difficult to determine exactly how much memory will be needed. MM automatically tries to align the shared memory allocations, so we either need to pad the shared memory segments, or just use two different segments. This also changes APR and MM to take into account whatever memory those packages need to allocate when creating a shared memory segment. Any memory that APR and MM need is automatically added to the size requested by the program. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60842 13f79535-47bb-0310-9956-ffa450edef68
* OS/2 changes to the way dependencies are built in APR makefilestrawick2000-11-151-24/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60732 13f79535-47bb-0310-9956-ffa450edef68
* This patch removes the dependencies from Makefile.in. Dependenciestrawick2000-11-151-20/+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
* Fix OS/2 build after the move of private APR headers to the include/arch/bjh2000-11-141-9/+12
| | | | | | | | | | | | | | | | | | | area. This also messes with some unix stuff where it's shared with OS/2. The strategy used to get the right platform specific include files is: - Every Makefile.in contains something like OSDIR=$(INCDIR)/arch/@OSDIR@ DEFOSDIR=$(INCDIR)/arch/@DEFAULT_OSDIR@ INCLUDES=-I$(INCDIR) -I$(OSDIR) -I$(DEFOSDIR) - all APR private includes look like #include "fileio.h", ie no leading arch directory so no #ifdef'ing needed in shared .c files. This ensures that the include file for the target platform is always used if it exists, otherwise the default is used. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60720 13f79535-47bb-0310-9956-ffa450edef68
* Move all of the shmem private header files to an arch directory underrbb2000-11-092-12/+8
| | | | | | | | | the include directory. All private header files for APR are being moved. This allows platforms that only implement some of the APR types to compile cleanly. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60657 13f79535-47bb-0310-9956-ffa450edef68
* AC_INIT sets up the env for AC_CONFIG_AUX_DIR, so fix the ordersascha2000-10-221-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60606 13f79535-47bb-0310-9956-ffa450edef68
* back this out, should have never been touched.wrowe2000-10-061-2/+2
| | | | | | | Submitted by: rbb git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60555 13f79535-47bb-0310-9956-ffa450edef68
* Completed review for new tests:wrowe2000-10-061-2/+2
| | | | | | | | | | | | | | | APR_STATUS_IS_EACCES(s) APR_STATUS_IS_EEXIST(s) APR_STATUS_IS_ENAMETOOLONG(s) APR_STATUS_IS_ENOENT(s) Where the old EACCES et. al. still exist, we have a problem (not yet using APR at all) More to come... git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60554 13f79535-47bb-0310-9956-ffa450edef68
* Multiple build and configuration fixesrbb2000-10-052-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Build process: -add datadir and localstatedir substitutions -fix layout name -fix logfilename misspelling -fix evaluation of installation dir variables and -replace $foobar by $(foobar) to be usefull in the makefile Cross compile: -add rules for cross-compiling in rules.mk. Okay, rule to check for $CC_FOR_BUILD is still missing -use CHECK_TOOL instead of CHECK_PROG for ranlib -add missing "AR=@AR@" to severaly Makefile.in's -cache result for "struct rlimit" -compile all helper programs with native and cross compiler and use the native version to generate header file PR: 6384 Submitted by: "R�diger" Kuhlmann <Tadu@gmx.de> Reviewed by: Ryan Bloom git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60545 13f79535-47bb-0310-9956-ffa450edef68
* Prepare our autoconf setup for autoconf 2.14a and for cross-compilingrbb2000-10-052-28/+33
| | | | | | | | | PR: 6379 Submitted by: "R�diger" Kuhlmann <Tadu@gmx.de> Reviewed by: Ryan Bloom git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60544 13f79535-47bb-0310-9956-ffa450edef68
* Include apr_strings.h in a bunch more places that need it.bjh2000-08-061-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60486 13f79535-47bb-0310-9956-ffa450edef68
* prefix libapr functions and types with apr_dougm2000-08-022-20/+20
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60470 13f79535-47bb-0310-9956-ffa450edef68
* Add a patch that Ralf has already committed to 1.1.3 of MM. This allowsrbb2000-06-301-0/+3
| | | | | | | | MM to build on Linux on OS/390 Submitted by: Greg Ames <gregames@raleigh.ibm.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60286 13f79535-47bb-0310-9956-ffa450edef68
* The name is supposed to be set to NULL when anonymous shared mem is used.ronald2000-05-292-1/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60117 13f79535-47bb-0310-9956-ffa450edef68
* Fix some logic in mm's configuration that removes -g from CFLAGS.trawick2000-05-181-1/+1
| | | | | | | | | | | | | | | It incorrectly collapsed " -g " to "", which could lead to invalid CFLAGS. Example: input: -DAPACHE_XLATE -g -Wall otherstuff old output: -DAPACHE_XLATE-Wall otherstuff new output: -DAPACHE_XLATE -Wall otherstuff (Note: This fix will also be sent to rse.) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60066 13f79535-47bb-0310-9956-ffa450edef68
* Update MM to the latest version. retrieved fromrbb2000-05-0328-2213/+1173
| | | | | | | http://www.engelschall.com/sw/mm git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60018 13f79535-47bb-0310-9956-ffa450edef68
* Make `mm' an INCDIR in shmem/unix, so that the INCDIR rewriter cansascha2000-04-302-6/+5
| | | | | | | | | 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-302-2/+2
| | | | | | | Makefile.in, and Configure became configure. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59996 13f79535-47bb-0310-9956-ffa450edef68
* Fix mm's memcpy/memset macros; pointer arithmetic was broken.sascha2000-04-301-2/+2
| | | | | | | Patch submitted to author. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59995 13f79535-47bb-0310-9956-ffa450edef68
* Fix mm configuration on Solaris 8 x86 and OS/390. Don't requiretrawick2000-04-303-1/+16
| | | | | | | /sbin in PATH on FreeBSD. (all submitted to rse previously) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59994 13f79535-47bb-0310-9956-ffa450edef68
* back out APR_ prefix for TRUE,FALSEdougm2000-04-284-19/+19
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59983 13f79535-47bb-0310-9956-ffa450edef68
* Use $(MAKE) instead of make in Makefiles.rbb2000-04-281-3/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59982 13f79535-47bb-0310-9956-ffa450edef68
* prefix TRUE,FALSE with APR_dougm2000-04-284-19/+19
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59975 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup more files when make distclean is used. This should be all therbb2000-04-271-0/+1
| | | | | | | files that should be cleaned. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59967 13f79535-47bb-0310-9956-ffa450edef68
* Cleaned up the error codes a bit. Removed codes that aren't used anywhere,rbb2000-04-191-1/+1
| | | | | | | return errno instead of new error codes where appropriate. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59893 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
* this was including mm_test.o in the library, which happens to definedgaudet2000-04-141-1/+1
| | | | | | | | main(). i figure my fix here is about as ugly as what was in the Makefile before. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59848 13f79535-47bb-0310-9956-ffa450edef68
* more documentation movementdgaudet2000-04-141-71/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59841 13f79535-47bb-0310-9956-ffa450edef68
* Enforce explicit libtool modemartin2000-04-131-4/+8
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59831 13f79535-47bb-0310-9956-ffa450edef68
* use same canonical name for "bs2000" thruout apachemartin2000-04-132-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59830 13f79535-47bb-0310-9956-ffa450edef68
* On all the systems I could get hold of (Solaris, ReliantUNIX, BS2000, SINIX),martin2000-04-131-0/+6
| | | | | | | | | | | | | | | | | | SHM_R was always 0400, never 0x400. My assumption is that is usually (always) is. Feel free to change it to an OS test like this (if your OS differs): case `uname -s` in SunOS | POSIX-BC | SINIX-* | ReliantUNIX-* ) # BS2000 AC_DEFINE(SHM_R, 0400, [ ]) AC_DEFINE(SHM_W, 0200, [ ]) ;; *) AC_DEFINE(SHM_R, 0x400, [ ]) AC_DEFINE(SHM_W, 0x200, [ ]) ;; esac git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59829 13f79535-47bb-0310-9956-ffa450edef68
* First stage of migrating OS/2 code to new error code mappings, define & usebjh2000-04-081-4/+2
| | | | | | | macro for returning OS/2 error codes. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59815 13f79535-47bb-0310-9956-ffa450edef68
* Update to Apache Software License version 1.1fielding2000-03-313-68/+66
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59754 13f79535-47bb-0310-9956-ffa450edef68