summaryrefslogtreecommitdiff
path: root/shmem
Commit message (Collapse)AuthorAgeFilesLines
* Some modest improvements pointed out by Aaron.William A. Rowe Jr2002-01-091-10/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62729 13f79535-47bb-0310-9956-ffa450edef68
* This now builds with Aaron's new apr_shm.h header. I'll not drop itWilliam A. Rowe Jr2002-01-091-0/+259
| | | | | | | into the libapr/apr.dsp files until that header is committed. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62728 13f79535-47bb-0310-9956-ffa450edef68
* Add the ability to pass flags to both apr_file_open and apr_mktemp.Ryan Bloom2002-01-081-1/+1
| | | | | | | | | The reason for this, is that it is very possible to want a temp file that isn't deleted when the file is closed. It also makes sense to have the flags in the apr_file_t if possible. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62716 13f79535-47bb-0310-9956-ffa450edef68
* Agree with Jeff [thanks] ... completion doesn't need to be so wordy.William A. Rowe Jr2002-01-052-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62708 13f79535-47bb-0310-9956-ffa450edef68
* get shmem.c to compile again after changes to apr_shmem.hJeff Trawick2002-01-051-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62707 13f79535-47bb-0310-9956-ffa450edef68
* Normalize an opaque type to our current conventions.William A. Rowe Jr2002-01-053-24/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62706 13f79535-47bb-0310-9956-ffa450edef68
* roll the extra apr_lock_create_np() functionality into apr_lock_create()Jeff Trawick2001-12-291-1/+2
| | | | | | | | | | | and get rid of apr_lock_create_np(); apr_lock_create() has a new parameter for specifying the lock mechanism (or APR_LOCK_DEFAULT to let APR choose) (same for apr_proc_mutex_create_np() and apr_proc_mutex_create()) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62684 13f79535-47bb-0310-9956-ffa450edef68
* Fix handling of named shared memoryBrian Havard2001-12-291-1/+6
| | | | | | | | Allocate some extra space for heap structures so that a block of the same size as the reqsize can be allocated later with apr_shm_malloc(). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62681 13f79535-47bb-0310-9956-ffa450edef68
* bye byeGreg Stein2001-08-311-11/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62264 13f79535-47bb-0310-9956-ffa450edef68
* when creating a shared memory segment using SysV, be sureJeff Trawick2001-08-301-0/+4
| | | | | | | | | | | to specify that the segment will go away when the last user detaches This fixes a problem with Apache leaving behind a shared memory segments at termination. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62256 13f79535-47bb-0310-9956-ffa450edef68
* fix some bad retcodes (adding APR_OS_START_SYSERR to errno) in theJeff Trawick2001-08-301-4/+4
| | | | | | | | | | | shared memory code for unix there are still some unexpected uses of APR_EGENERAL and a general lack of cleanup of previous steps when something goes wrong (not always a reasonable thing to do with shared memory) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62254 13f79535-47bb-0310-9956-ffa450edef68
* Fix a segfault when we try to memset NULL (the user is out of memory inJustin Erenkrantz2001-08-301-1/+2
| | | | | | | | | | | | | | | that shared memory segment). apr_shm_malloc will either return valid memory or NULL, so this is a useful check. When using libc's malloc(), that isn't necessarily the case. However, this patch requires the caller to check for a NULL return which they probably don't do anyway, so the segfault gets moved out of APR and into the caller. That's good enough for now... PR: Graham's posts to dev@apr git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62250 13f79535-47bb-0310-9956-ffa450edef68
* Remove MM from the source tree. We don't use it anymore.Ryan Bloom2001-08-2329-16127/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62214 13f79535-47bb-0310-9956-ffa450edef68
* get shmem.c to compile on platforms that have different names for SHM_RGreg Ames2001-08-201-0/+6
| | | | | | | | | and SHM_W (e.g. OS/390) Submitted by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62203 13f79535-47bb-0310-9956-ffa450edef68
* don't do arithmetic with void *Jeff Trawick2001-08-151-3/+3
| | | | | | | | this definitely clears up warnings on Tru64 and should get APR building again on HP-UX, where this is an error git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62165 13f79535-47bb-0310-9956-ffa450edef68
* Remove all warnings from the shared memory code.Ryan Bloom2001-08-141-4/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62161 13f79535-47bb-0310-9956-ffa450edef68
* Fix the new shared memory code. We need to pass a pointer toRyan Bloom2001-08-141-3/+3
| | | | | | | | | | an apr_file_t to apr_file_open. Also, apr_os_file_get returns a status value, not the OS file descriptor. This gets Apache running again on Linux. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62160 13f79535-47bb-0310-9956-ffa450edef68
* Fix warnings.Roy T. Fielding2001-08-131-17/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62157 13f79535-47bb-0310-9956-ffa450edef68
* More fallout from MM's departure.Justin Erenkrantz2001-08-131-2/+4
| | | | | | | | | | - Fix buildconf to not build MM's configure - Add the line in apr.h.in for MAP_ANON mmap usage - Fix munmap to have the right parameters - Add APR_WANT_MEMFUNC to import memset in shmem.c. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62156 13f79535-47bb-0310-9956-ffa450edef68
* Move the necessary shared memory code from MM into APR and remove ourJustin Erenkrantz2001-08-132-50/+186
| | | | | | | | | | | | | | | | | | | dependency upon MM. (This commit does not delete the MM files - they are still there for the time being.) MM has a bunch of features that we do not need (locking, three different APIs, etc, etc, etc.) Also clean up the migrated code while I'm at it to be cleaner. This code works on Solaris with shmget. I'll be testing it again with Linux in a few. This really needs to get hammered to make sure that I didn't miss anything. This gets us moving in the right direction. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62155 13f79535-47bb-0310-9956-ffa450edef68
* Peter Moore reported this small typo...David Reid2001-08-121-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62148 13f79535-47bb-0310-9956-ffa450edef68
* Wrap all APR functions in APR_DECLARE macro.Ryan Bloom2001-08-103-28/+28
| | | | | | | Submitted by: Sterling Hughes <sterling@designmultimedia.com> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62139 13f79535-47bb-0310-9956-ffa450edef68
* Make some of the checks clearer and remove the debugging stuff thatDavid Reid2001-06-071-39/+6
| | | | | | | | | | is no longer needed. Submitted by: Greg Stein Reviewed by: David Reid git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61732 13f79535-47bb-0310-9956-ffa450edef68
* Stop some compiler warnings on beos...David Reid2001-06-061-6/+6
| | | | git-svn-id: https://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 codeDavid Reid2001-05-091-40/+0
| | | | | | | can be simplified. git-svn-id: https://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 toDavid Reid2001-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: https://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,Jeff 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: https://svn.apache.org/repos/asf/apr/apr/trunk@61265 13f79535-47bb-0310-9956-ffa450edef68
* Enable use of the new build directory.Roy T. Fielding2001-02-181-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61254 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright to 2001Roy T. Fielding2001-02-162-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61235 13f79535-47bb-0310-9956-ffa450edef68
* Add Darwin/Mac OS.Wilfredo Sanchez2001-02-082-1/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61197 13f79535-47bb-0310-9956-ffa450edef68
* renaming various functions for consistency sakeDoug MacEachern2001-02-082-6/+6
| | | | | | | | | | | see: http://apr.apache.org/~dougm/apr_rename.pl PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://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,William A. Rowe Jr2001-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: https://svn.apache.org/repos/asf/apr/apr/trunk@61156 13f79535-47bb-0310-9956-ffa450edef68
* stop monkeying around with MM's object filesGreg Stein2001-01-101-7/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61044 13f79535-47bb-0310-9956-ffa450edef68
* Libtool-ize APR.Greg Stein2001-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: https://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 toDavid Reid2001-01-061-0/+4
| | | | | | | | | | work. Submitted by: Justin Sherrill <justin@shiningsilence.com> Peter Moore <peter@cdws.com.au> git-svn-id: https://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'tDavid Reid2000-12-312-1/+15
| | | | | | | been working on BeOS for a while. Oh well, here is the fix. git-svn-id: https://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 theDavid Reid2000-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: https://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 setDavid Reid2000-12-131-1/+1
| | | | | | | | the correct values. This caused the tests to fail on BeOS and maybe other systems as well. git-svn-id: https://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 sizeRyan Bloom2000-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: https://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 twoRyan Bloom2000-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: https://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 makefilesJeff Trawick2000-11-151-24/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60732 13f79535-47bb-0310-9956-ffa450edef68
* This patch removes the dependencies from Makefile.in. DependenciesJeff Trawick2000-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: https://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/Brian Havard2000-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: https://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 underRyan Bloom2000-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: https://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 orderSascha Schumann2000-10-221-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60606 13f79535-47bb-0310-9956-ffa450edef68
* back this out, should have never been touched.William A. Rowe Jr2000-10-061-2/+2
| | | | | | | Submitted by: rbb git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60555 13f79535-47bb-0310-9956-ffa450edef68
* Completed review for new tests:William A. Rowe Jr2000-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: https://svn.apache.org/repos/asf/apr/apr/trunk@60554 13f79535-47bb-0310-9956-ffa450edef68
* Multiple build and configuration fixesRyan Bloom2000-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: https://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-compilingRyan Bloom2000-10-052-28/+33
| | | | | | | | | PR: 6379 Submitted by: "R�diger" Kuhlmann <Tadu@gmx.de> Reviewed by: Ryan Bloom git-svn-id: https://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.Brian Havard2000-08-061-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60486 13f79535-47bb-0310-9956-ffa450edef68