summaryrefslogtreecommitdiff
path: root/dso/unix/dso.c
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright notices for 2005.jorton2005-06-141-1/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.1.x@190596 13f79535-47bb-0310-9956-ffa450edef68
* Add Support for DragonFly BSD.pquerna2005-01-211-1/+2
| | | | | | | | PR: #29858 Submitted By: Jeroen Ruigrok <asmodai tendra.org> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@125880 13f79535-47bb-0310-9956-ffa450edef68
* Relicense APR under Apache License, Version 2.0jerenkrantz2004-02-131-49/+10
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64904 13f79535-47bb-0310-9956-ffa450edef68
* After some less than considerable discussion on-list, it seems like therewrowe2003-02-161-1/+1
| | | | | | | | | are no compelling arguments to retain the 'BIND_NOSTART' option on HP/UX, and several compelling reasons to drop it, including c++ static creators and possibly even some cases of c static initialization. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64357 13f79535-47bb-0310-9956-ffa450edef68
* Namespace protection for include/arch/ header filesthommay2003-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-011-1/+1
| | | | | | | No functional changes git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
* standardize on a couple of easy to test for error codes for DSO errors.rbb2002-12-291-5/+5
| | | | | | | This doesn't work fully on Windows yet, that is the next commit. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64233 13f79535-47bb-0310-9956-ffa450edef68
* Don't pass BIND_VERBOSE to shl_load(), else it dumps errors to stderrjorton2002-12-111-1/+1
| | | | | | | by default. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64143 13f79535-47bb-0310-9956-ffa450edef68
* When encountering a link error when loading a DSO on Darwin, print the error.jerenkrantz2002-09-131-1/+8
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63863 13f79535-47bb-0310-9956-ffa450edef68
* Correct shared library support on Darwin to not fatally error out whenjerenkrantz2002-06-241-2/+7
| | | | | | | | | | | | | | | | | a shared library does not exist. This does retain the Mach-O bundle and Mach-O dynamically linked shared library support on Darwin. Also improvements relating to testdso: - Get testdso to actually link. - Add support for a second DSO to load in testdso. - Build mod_test.slo and libmod_test.slo with and without the -module option. This checks that both types of dynamic libraries can be loaded. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63521 13f79535-47bb-0310-9956-ffa450edef68
* OK. This is admittedly anal. But the whole idea behind cpp macrosjim2002-05-021-2/+3
| | | | | | | | | | | | | | is to avoid things like "we know NSLINKMODULE_OPTION_NONE is 0" and making such shortcuts as this. This makes it clear what exactly we are setting, and though admittedly verbose, the tradeoff of a few bytes of source is worth it :) PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63347 13f79535-47bb-0310-9956-ffa450edef68
* Minor formattingjim2002-05-011-1/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63344 13f79535-47bb-0310-9956-ffa450edef68
* Fix compile breakagejim2002-05-011-2/+2
| | | | | | | | | | PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63342 13f79535-47bb-0310-9956-ffa450edef68
* Or'ing NSLINKMODULE_OPTION_NONE is verbose.wsanchez2002-05-011-11/+3
| | | | | | | Darwin comment is true on all platforms. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63341 13f79535-47bb-0310-9956-ffa450edef68
* To support modules like PHP, which implement their ownjim2002-04-221-3/+9
| | | | | | | | | | | | | | loaded extensions, Darwin needs to place their public symbols in the global table. In Rhapsody, we simply set bindNow to False to achieve the same goal. PR: Obtained from: Submitted by: Marko Karppinen <markonen@php.net> Reviewed by: Jim Jagielski, Fred Sanchez git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63294 13f79535-47bb-0310-9956-ffa450edef68
* Load libraries if they not MH_BUNDLE, but if they are not, itrbb2002-03-201-11/+25
| | | | | | | | | | | just attempts to link them as shared libs. This is required to get the JVM loaded through APR. Submitted by: Pier Fumagalli <pier@betaversion.org> Reviewed by: Ryan Bloom git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63166 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.fielding2002-03-131-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63117 13f79535-47bb-0310-9956-ffa450edef68
* Support a special pathname syntax for apr_dso_load()/dlopen() sotrawick2001-11-301-1/+14
| | | | | | | | | | | | that an APR app can open shared libraries that for whatever reason (e.g., libtool) have been stuffed in an archive. This special archive.a(dso.so) syntax is required for the way libtool likes to build shared libraries on AIX. dlopen() support for such a library requires that the RTLD_MEMBER flag be enabled. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62582 13f79535-47bb-0310-9956-ffa450edef68
* (apr_dso_load) initialize os_handle to NULL to stop apr_dso_load from ↵fitz2001-11-201-1/+1
| | | | | | returning false positives. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62525 13f79535-47bb-0310-9956-ffa450edef68
* Update *ressym on success in the Darwin DSO load path.jerenkrantz2001-11-201-0/+1
| | | | | | | | Submitted by: Sander Temme <sctemme@covalent.net> Reviewed by: Justin Erenkrantz git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62524 13f79535-47bb-0310-9956-ffa450edef68
* Removed NetWare from the DSO #ifdef confusionbnicholes2001-11-131-21/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62514 13f79535-47bb-0310-9956-ffa450edef68
* Fix leak of NSObjectFileImage handle.wsanchez2001-11-121-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62507 13f79535-47bb-0310-9956-ffa450edef68
* Basically added a call to apr_dso_load() to make sure that any module thatbnicholes2001-08-281-0/+21
| | | | | | | | is loaded by APR will be autounloaded by the OS when all references to the module are released git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62233 13f79535-47bb-0310-9956-ffa450edef68
* include stdlib.h for malloc() and free() prototypes (Darwin)trawick2001-07-021-1/+4
| | | | | | | | fix the DSO_USE_DYLD flavor of apr_dso_sym() so that it returns a predictable value on success (Darwin) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61859 13f79535-47bb-0310-9956-ffa450edef68
* We have pools not contexts...dreid2001-04-291-7/+8
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61562 13f79535-47bb-0310-9956-ffa450edef68
* Fix DSO support on HPUX. We have to use ==, not = and it helps to returnrbb2001-04-271-2/+2
| | | | | | | errno so that debugging is easier. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61552 13f79535-47bb-0310-9956-ffa450edef68
* get apr_os_dso_handle_put workingdougm2001-04-251-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61548 13f79535-47bb-0310-9956-ffa450edef68
* store the pool handle in apr_os_dso_handle_put()trawick2001-04-191-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61540 13f79535-47bb-0310-9956-ffa450edef68
* implement apr_os_dso_handle_get|put() so that Apache builds again;trawick2001-04-191-0/+17
| | | | | | | | | | | Apache's exports.c reflected that the prototypes were added but the function wasn't actually implemented more implementations forthcoming as people figure out they can't link... git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61537 13f79535-47bb-0310-9956-ffa450edef68
* Clean up conditionals in unix DSO code so that we decide based on thewsanchez2001-04-191-15/+20
| | | | | | | | dynamic loading implementation, which we noticed at configure time, instead of by operating system, which should be simpler to maintain. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61534 13f79535-47bb-0310-9956-ffa450edef68
* Add dyld supportwsanchez2001-04-181-2/+48
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61529 13f79535-47bb-0310-9956-ffa450edef68
* include <string.h> for the strerror() prototype on HP-UX 11trawick2001-02-161-0/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61239 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright to 2001fielding2001-02-161-1/+1
| | | | 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-2/+2
| | | | | | | | | | | 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
* watch out for a double-unload. one manually from apr_dso_unload(), followedgstein2001-01-191-10/+14
| | | | | | | | | by one through the pool cleanup. 1) protect the unload by setting/checking the handle to NULL 2) unload "runs" the cleanup to also remove it from the pool cleanup git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61078 13f79535-47bb-0310-9956-ffa450edef68
* All platforms now register a cleanup when a DSO is loaded. This justrbb2001-01-191-0/+9
| | | | | | | | makes a practice uniform across all platforms. In the past, this was done differently on different platforms. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61076 13f79535-47bb-0310-9956-ffa450edef68
* Add linkage declarations to the DSO functions.rbb2001-01-121-7/+7
| | | | | | | Submitted by: Gregory Nicholls <gnicholls@level8.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61055 13f79535-47bb-0310-9956-ffa450edef68
* Fix VPATH support. APR builds now cleanly in a separate build directory.sascha2000-12-151-1/+1
| | | | | | | Submitted by: Mo DeJong <mdejong@cygnus.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60956 13f79535-47bb-0310-9956-ffa450edef68
* Get apr_dso_error working properly on Unix.rbb2000-12-031-1/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60857 13f79535-47bb-0310-9956-ffa450edef68
* Get NULL defined on some systems (e.g., FreeBSD 3.4).trawick2000-11-271-0/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60800 13f79535-47bb-0310-9956-ffa450edef68
* Move all of the dso private header files to an arch directory underrbb2000-11-091-1/+1
| | | | | | | | | 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@60652 13f79535-47bb-0310-9956-ffa450edef68
* prefix libapr functions and types with apr_dougm2000-08-021-7/+7
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60470 13f79535-47bb-0310-9956-ffa450edef68
* ap_dso_sym:trawick2000-07-301-4/+8
| | | | | | | | | | | . if using dlsym() to look for the symbol, use dlerror() to store an error message if dlsym() fails . slightly increase the chances that the HP-UX code will actually work by avoiding the reference to retval (compile problem) and updating *ressym (run-time problem) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60458 13f79535-47bb-0310-9956-ffa450edef68
* ap_dso_init() isn't needed. if/when a platform needs it, thengstein2000-07-151-4/+0
| | | | | | | | | | | ap_initialize() can be used to init DSO support. or set up a lazy initialization for it. solves the questions, "when do I call it? can I call it more than once?" Submitted by: Ben Collins-Sussman <sussman@red-bean.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60376 13f79535-47bb-0310-9956-ffa450edef68
* allocate *res_handle before setting (*res_handle)->errormsgdougm2000-06-251-1/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60252 13f79535-47bb-0310-9956-ffa450edef68
* constification.ben2000-06-111-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60175 13f79535-47bb-0310-9956-ffa450edef68
* Fix bad call to ap_pcalloc() in ap_dso_load(); the bug led to a storagetrawick2000-06-061-1/+1
| | | | | | | overlay as not enough storage was allocated for the ap_dso_handle_t. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60145 13f79535-47bb-0310-9956-ffa450edef68
* Fix building with DSO support. If any module is configured to berbb2000-06-011-0/+4
| | | | | | | | | | | compiled for shared support then APR_HAS_DSO is enabled and -ldl is added to the LIBS variable. -ldl may need to be modified based on platform. If no modules are designated as shared then APR_HAS_DSO is disabled and nothing is added to LIBS. In basic testing this compiled without errors or warnings. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60122 13f79535-47bb-0310-9956-ffa450edef68
* Rework DSO error reporting to be more flexible & informative.bjh2000-05-311-9/+9
| | | | | | | | | | This patch covers os/2, unix & win32. Other platforms still need some adjustment (BeOS, AIX). Reviewed by: rbb, gstein git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60120 13f79535-47bb-0310-9956-ffa450edef68
* Update the ap_dso_error API to work with other platforms.rbb2000-05-291-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60116 13f79535-47bb-0310-9956-ffa450edef68