summaryrefslogtreecommitdiff
path: root/shmem
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright notices for 2005.jorton2005-06-144-4/+8
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.1.x@190596 13f79535-47bb-0310-9956-ffa450edef68
* Remove .cvsignore files.jorton2004-11-183-12/+0
| | | | | | | Tipped-of-by: Uwe Zeisberger git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@76269 13f79535-47bb-0310-9956-ffa450edef68
* * shmem/unix/shm.c (apr_shm_remove): Ensure that the file is removedjorton2004-09-211-3/+11
| | | | | | | | even if the shm segment has already been destroyed; close the file before returning. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65337 13f79535-47bb-0310-9956-ffa450edef68
* Continue clearing my TODO list.dreid2004-06-291-7/+21
| | | | | | | | This provides for better "naming" of anon areas, adds a missing function and tidies up some code. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65236 13f79535-47bb-0310-9956-ffa450edef68
* * include/apr_shm.c (apr_shm_remove): Add prototype.jorton2004-06-014-0/+68
| | | | | | | | | | | | * shmem/unix/shm.c (apr_shm_remove): New function. * shmem/beos/shm.c, shmem/win32/shm.c, shmem/os2/shm.c (apr_shm_remove): APR_ENOTIMPL stubs. Submitted by: Amit Athavale <amit_athavale@persistent.co.in> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65143 13f79535-47bb-0310-9956-ffa450edef68
* * shmem/unix/shm.c (apr_shm_create): Answer some FIXMEs: wrong, yes, no.jorton2004-05-271-4/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65135 13f79535-47bb-0310-9956-ffa450edef68
* * shmem/unix/shm.c (apr_shm_attach): Remove palloc->ENOMEM checking.jorton2004-05-271-15/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65134 13f79535-47bb-0310-9956-ffa450edef68
* * shmem/unix/shm.c (shm_cleanup_owner): Simplify error handling.jorton2004-05-271-14/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65133 13f79535-47bb-0310-9956-ffa450edef68
* Relicense APR under Apache License, Version 2.0jerenkrantz2004-02-134-196/+40
| | | | 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-053-42/+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
* * shmem/unix/shm.c (apr_shm_create): Fix build with Tru64 "cc -std";jorton2003-11-051-2/+2
| | | | | | | cast MAP_FAILED to (void *). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64723 13f79535-47bb-0310-9956-ffa450edef68
* Comment what res_name_from_filename is doingwrowe2003-03-271-0/+9
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64451 13f79535-47bb-0310-9956-ffa450edef68
* rename apr_arch_fileio.h to apr_arch_file_io.h for consistencythommay2003-01-071-1/+1
| | | | 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-014-4/+4
| | | | | | | No functional changes git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
* *) Renames done (deprecated functions wrapped):thommay2002-11-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | apr_filename_of_pathname -> apr_filepath_name_get apr_get_groupid -> apr_gid_get apr_get_groupname -> apr_gid_name_get apr_compare_groups -> apr_gid_compare apr_parse_addr_port -> apr_port_addr_parse apr_shutdown -> apr_socket_shutdown apr_bind -> apr_socket_bind apr_listen -> apr_socket_listen apr_accept -> apr_socket_accept apr_connect -> apr_socket_connect apr_send -> apr_socket_send apr_sendv -> apr_socket_sendv apr_sendto -> apr_socket_sendto apr_implode_gmt -> apr_time_exp_gmt_get apr_get_home_directory -> apr_uid_homepath_get apr_get_userid -> apr_uid_get apr_current_userid -> apr_uid_current apr_compare_users -> apr_uid_compare apr_get_username -> apr_uid_name_get apr_recvfrom -> apr_socket_recvfrom apr_sendfile -> apr_socket_sendfile apr_recv -> apr_socket_recv git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64043 13f79535-47bb-0310-9956-ffa450edef68
* More handle leakage. We need to be explicit when we create a duplicatewrowe2002-07-311-11/+3
| | | | | | | handle for a child or all our children's children end up with the polution. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63747 13f79535-47bb-0310-9956-ffa450edef68
* More WinCE Portingwrowe2002-06-041-4/+31
| | | | | | | | | Antique patches that need to get out of my tree, into CVS. Submitted by: Mladen Turk <mturk@mappingsoft.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63464 13f79535-47bb-0310-9956-ffa450edef68
* Add .deps to cvsignore since APR may now generate .deps files.jerenkrantz2002-04-223-0/+3
| | | | | | | (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-223-0/+6
| | | | | | | | | | | | 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-3/+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
* Update our copyright for this year.fielding2002-03-134-4/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63117 13f79535-47bb-0310-9956-ffa450edef68
* get rid of some questions now that Aaron has checked it overtrawick2002-03-041-5/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63079 13f79535-47bb-0310-9956-ffa450edef68
* preserve the proper alignment when we use the start of the sharedtrawick2002-03-041-6/+13
| | | | | | | memory for metadata git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63078 13f79535-47bb-0310-9956-ffa450edef68
* Get the shmem code building again on beos.dreid2002-02-141-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62985 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Fix option flags attaching to an existing shared memory block.bjh2002-02-121-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62947 13f79535-47bb-0310-9956-ffa450edef68
* not allocating memory for the metadata..ianh2002-02-051-1/+1
| | | | | | | | | Thanks Jin. Submitted by: Jin Hong <jinh@cnet.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62912 13f79535-47bb-0310-9956-ffa450edef68
* Fix a few attempts to add to a void *ptr in the Unix shared memorytrawick2002-02-041-3/+3
| | | | | | | | | | | | code. PR: 9710 Submitted by: Per Ekman [pek@pdc.kth.se] Reviewed by: Jeff Trawick, who expanded Per's fix to a couple of more places (so all breakage is mine :) ) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62911 13f79535-47bb-0310-9956-ffa450edef68
* Fixed up some comments -- got rid of FIXMEs that have been fixed.aaron2002-01-301-6/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62875 13f79535-47bb-0310-9956-ffa450edef68
* Implement shared memory cleanup handlers on Unix for both the originalaaron2002-01-291-66/+98
| | | | | | | | creating process' pool (cleans up after apr_shm_create) and an attaching process' pool (cleans up after apr_shm_attach). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62848 13f79535-47bb-0310-9956-ffa450edef68
* Mladen Turk's <mturk@mappingsoft.com> WinCE port.wrowe2002-01-281-4/+8
| | | | | | | | | | | | | | | | | | | Nearly, the apr.hw patch needs some review. In short, several quite standard ansi headers (e.g. time.h) aren't present in the WinCT port, but these changes require corresponding changes to apr.h.in. I changed Mladen's #define'd symbol names for the macro blocks to IF_WIN_OS_IS_UNICODE and ELSE_WIN_OS_IS_ANSI to make the code a bit more readable, and drop the global apr_os_level from each macro invocation. Also, I changed the scope of his APR_HAS_ANSI_FS to local scope, since it has no application in the public headers. Mladen's patch helps NT as well, allowing the /D WINNT flag to define NT-only compilations. With WINNT defined, all UNICODE/ANSI os version tests drop out entirely. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62837 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Implement apr_os_shm_get/put.bjh2002-01-281-2/+17
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62836 13f79535-47bb-0310-9956-ffa450edef68
* Simple workaround, for now. Aaron is researching, but if somethingwrowe2002-01-254-0/+43
| | | | | | | | | obscure is already obvious to OS2/BeOS folks, feel free to round out. I suspect it's simply the pointer to the phys mem, filling out the internals of apr_shm_t, but I'm not certain. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62831 13f79535-47bb-0310-9956-ffa450edef68
* Win32 requires an apr_os accessor for shm regions. This allows us towrowe2002-01-251-0/+32
| | | | | | | | | | | take the handle and do interesting things, such as passing it (after duping it) into the child. Unix implementation is simply the address of the shm region, AFAICT, but Aaron is reviewing. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62830 13f79535-47bb-0310-9956-ffa450edef68
* Fix a small problem with the name of the area we create. This isdreid2002-01-241-1/+1
| | | | | | | temporary but gets the server running again. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62826 13f79535-47bb-0310-9956-ffa450edef68
* Problem resolved; how exactly I'm not certain, but we have no faultswrowe2002-01-241-16/+2
| | | | | | | | | | creating either anon or named memory now. Of course, reattaching a detached processes anon handle requires some further efforts. An apr_shm_os_get/put should help. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62822 13f79535-47bb-0310-9956-ffa450edef68
* Major updates to the Unix shmem implementation:aaron2002-01-231-79/+199
| | | | | | | | | | | | | | | | - Name-based shmem now works on all tested platforms (linux, solaris) and on all shmem flavors. - All critical FIXMEs are now fixed. - Much more robust error checking. - Properly implemented attach/detach and destroy routines. - Fixed a couple bugs having to do with the segment length. - Temp files/mmaped files are now removed after use. - mmaped files, temp files, and segments are now created exclusively, meaning that the create function will fail if the file already exists (this has important security implications). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62816 13f79535-47bb-0310-9956-ffa450edef68
* Add some more comments and more robust error checking.aaron2002-01-221-8/+11
| | | | | | | | | | Changed the return error from apr_shm_attach if filename == NULL. Normally in APR input parameters are not explicitly checked, but since in apr_shm a NULL filename has a special meaning (anonymous memory) it will now return APR_EINVAL in that case. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62814 13f79535-47bb-0310-9956-ffa450edef68
* Implement apr_shm_detach for name-based shmget().aaron2002-01-171-2/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62800 13f79535-47bb-0310-9956-ffa450edef68
* Fix a bug in the APR_USE_SHMEM_SHMGET type of name-based sharedaaron2002-01-161-22/+18
| | | | | | | | | | | memory. When a segment has been marked for deletion, other processes are not allowed to attach to that segment. This also fixes the problem with the name-based portion of the testshm.c test. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62798 13f79535-47bb-0310-9956-ffa450edef68
* Remove some cruft from the Unix shm implementation.aaron2002-01-161-19/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62796 13f79535-47bb-0310-9956-ffa450edef68
* Mark SysV anon shared memory segments for deletion,jim2002-01-151-0/+5
| | | | | | | so if we crash, they are removed git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62792 13f79535-47bb-0310-9956-ffa450edef68
* After running testshm, this commit gets us passing all the tests OK.dreid2002-01-131-12/+30
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62777 13f79535-47bb-0310-9956-ffa450edef68
* More shmem fixes...dreid2002-01-121-7/+27
| | | | | | | | | - change the p -> pool and add a pool accessor - add the attach/detach code - adjust the name we give an area so it's more descriptive git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62762 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Add shm pool accessor.bjh2002-01-121-0/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62758 13f79535-47bb-0310-9956-ffa450edef68
* Few changes that actually get us building well enough for apache. More todreid2002-01-111-4/+8
| | | | | | | follow. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62754 13f79535-47bb-0310-9956-ffa450edef68
* First step to getting shmem building on beos.dreid2002-01-112-7/+7
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62753 13f79535-47bb-0310-9956-ffa450edef68
* Simple solutions? No, but document some observations.wrowe2002-01-111-2/+22
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62747 13f79535-47bb-0310-9956-ffa450edef68
* HP compiler doesn't like using < operator with pointer and scalartrawick2002-01-111-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62745 13f79535-47bb-0310-9956-ffa450edef68
* get some pointer arithmetic to compile on picky compilerstrawick2002-01-101-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62740 13f79535-47bb-0310-9956-ffa450edef68