summaryrefslogtreecommitdiff
path: root/misc/unix/start.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
* 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
* * misc/unix/start.cstriker2003-09-271-3/+6
| | | | | | | | | | | | | | | (apr_initialize): Remove atomics initialization from this function. Due to circular dependency, doing it here is too late. * memory/unix/apr_pools.c (apr_pool_initialize): Add atomics initialization to the release and debug versions. This has to happen here, since pools rely on mutexes, which can be backed by atomics. Atomics initialization requires a pool. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64655 13f79535-47bb-0310-9956-ffa450edef68
* Namespace protection for include/arch/ header filesthommay2003-01-061-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-011-1/+1
| | | | | | | No functional changes git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
* fix a compiler warningbrianp2002-07-051-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63569 13f79535-47bb-0310-9956-ffa450edef68
* Call apr_atomic_init() during apr_initialize() in case we'rebrianp2002-07-051-0/+4
| | | | | | | | on a platform where atomic ops are implemented using the fallback mutex implementation git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63567 13f79535-47bb-0310-9956-ffa450edef68
* fix typojwoolley2002-06-121-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63496 13f79535-47bb-0310-9956-ffa450edef68
* Correct const'ification of apr_app_initialize and internal relatedwrowe2002-04-131-1/+3
| | | | | | | | | functions, as pointed out by GStein. Also fix a -very- significant bug in win32/apr_app_initialize() where we misassigned the new env memory to env rather than *env as required. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63260 13f79535-47bb-0310-9956-ffa450edef68
* ** DEPRECATE old lock API: apr_lock.h **aaron2002-04-091-2/+0
| | | | | | | | | | | Resolve some circular includes (apr_thread_mutex.h needs apr_pools.h needs apr_allocator.h needs apr_thread_mutex.h ...). Remove all apr_lock.h related files (incl. arch-specific headers and implementations). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63234 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
* Changed apr_app_main to apr_app_initialize, but better yet - dropped allwrowe2002-02-181-40/+4
| | | | | | | | the illegible multiple-path fooness. See misc/win32/start.c for the same with lots of extra decoration. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63013 13f79535-47bb-0310-9956-ffa450edef68
* Removed the NetWare #ifdefs since NetWare now has its own version ofbnicholes2002-02-011-8/+4
| | | | | | | start.c git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62895 13f79535-47bb-0310-9956-ffa450edef68
* Introduce apr_app_main() for global consumption.wrowe2002-01-301-2/+16
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62872 13f79535-47bb-0310-9956-ffa450edef68
* Another update of the pools debug code.striker2002-01-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stats are added. Unlike the old situation, stats are always on in APR_POOL_DEBUG mode, no need to seperately activate them. Debug output formatting is improved (IMHO). I actually got the concept from subversion for this. We now show (in _VERBOSE mode): - action (CREATE, CLEAR, DESTROY) - memory in the current pool - memory in the current pool and its children - total used memory - address of the pool - pools tag - file and line number the action takes place - stats for the pool - allocs since last clear - total allocs - clears (number of times apr_pool_clear is called on the pool). Moved the declaration of apr_pool_clear up so it sits in the same group it sits in in the .c file. Renamed the apr_pool_xxx_dbg functions to apr_pool_xxx_debug. It wasn't really worth shortening the names in the first place. The user will (in general) never call apr_pool_xxx_debug directly. Removed some stale @deffunc lines. Doxygen doesn't need them anyway. Tag the pool created in apr_initialize(). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62773 13f79535-47bb-0310-9956-ffa450edef68
* Move us over to the new pools code. The debug code isn't in place yet,striker2001-12-141-17/+22
| | | | | | | | | | | so hold off on APR_POOL_DEBUG for a day. No API changes. Reviewed by: Justin Erenkrantz, Brian Pane git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62645 13f79535-47bb-0310-9956-ffa450edef68
* Introduce apr_os_level, an apr-private internal value for optimizingwrowe2001-11-271-0/+9
| | | | | | | | | the resolution of os versions under Win32. Since so many APIs rely on this determination, this should improve the performance. Pre-determine the version within the apr_initialize() call. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62556 13f79535-47bb-0310-9956-ffa450edef68
* Added a call to initialize the time functions for NetWarebnicholes2001-11-051-0/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62489 13f79535-47bb-0310-9956-ffa450edef68
* Added a Winsock cleanup call required by NetWarebnicholes2001-10-161-0/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62431 13f79535-47bb-0310-9956-ffa450edef68
* This patch sets us up to call the initialization routines for the unixtrawick2001-10-081-0/+2
| | | | | | | | | | | | proc_mutex routines when APR is initialized. This will allow the new lock API to use fcntl and sysv proc_mutex types. Submitted by: Aaron Bannert Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62408 13f79535-47bb-0310-9956-ffa450edef68
* On platforms where neither HAVE_GMTOFF nor HAVE___OFFSET is defined,jerenkrantz2001-08-311-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | like Solaris, the function "get_offset" in apr/time/unix/time.c is a bottleneck in time formatting. On these platforms, get_offset ignores its argument; it really computes the server's offset from GMT, normalized so that it's independent of daylight savings. Here's a new version of the get_offset patch that initializes the TZ offset from apr_initialize. I've attached the new include file that it uses, apr/include/arch/unix/internal_time.h -- Justin added the missing call to apr_initialize in testtime.c so that testtime works on Solaris and produces the "right" output. Submitted by: Brian Pane <bpane@pacbell.net> Reviewed by: Justin Erenkrantz, Roy Fielding git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62262 13f79535-47bb-0310-9956-ffa450edef68
* Added NETWARE to the WIN32 ifdef listbnicholes2001-08-021-3/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62095 13f79535-47bb-0310-9956-ffa450edef68
* Solve the linkage issue with a native-C (nonstd convention) declarationwrowe2001-06-061-1/+6
| | | | | | | | of apr_terminate (for atexit(apr_terminate), etc), and provide an alternate apr_terminate2 only for non-C languages ('pascal' convention.) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61715 13f79535-47bb-0310-9956-ffa450edef68
* *) Make the apr_pool_t structure private.gstein2001-04-261-6/+0
| | | | | | | | | | | *) rename apr_set_abort (in apr_general.h) to apr_pool_set_abort (in apr_pools.h) *) add apr_pool_get_abort (used in apr-util/xml/apr_xml.c) *) add apr_abortfunc_t type and use throughout *) some simplifications within apr_pools.c git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61551 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
* *) add apr_signal_get_description() to that platforms (which have signals)gstein2001-02-111-2/+8
| | | | | | | | | | can portably get descriptions for them. *) move signal stuff from apr.h to (new) apr_signal.h *) os2/signals.c was collapsed into unix/signals.c *) APR initialization will init the signal names (if needed) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61207 13f79535-47bb-0310-9956-ffa450edef68
* renaming various functions for consistency sakedougm2001-02-081-3/+3
| | | | | | | | | | | 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
* Add remaining APR_DECLARE()s to all headers. Conditionally addedwrowe2001-01-181-3/+3
| | | | | | | | | | | | | | | | | | | | 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
* Begin to remove the ability to allocate out of NULL pools. The firstrbb2000-12-311-3/+7
| | | | | | | | | | | | | problem to solve, is that we need an apr_lock in order to allocate pools, so that we can lock things out when allocating. So, how do we allocate locks without a pool to allocate from? The answer is to create a global_apr_pool, which is a bootstrapping pool. There should NEVER be a sub-pool off this pool, and it is static to an APR file. This is only used to allow us to allocate the locks cleanly, without using the NULL pool hack. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60997 13f79535-47bb-0310-9956-ffa450edef68
* put the pool functions in the pool code.gstein2000-12-061-58/+6
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60905 13f79535-47bb-0310-9956-ffa450edef68
* fix apr_get_userdata(): return NULL if the userdata hash table isn't theregstein2000-12-061-2/+5
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60902 13f79535-47bb-0310-9956-ffa450edef68
* When creating a sub-pool, we should inherit the parent pool's apr_abortrbb2000-12-031-2/+6
| | | | | | | function git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60851 13f79535-47bb-0310-9956-ffa450edef68
* Increment "initialize" every time a new APR user starts, so locks aren'tgregames2000-11-291-2/+1
| | | | | | | | | destroyed prematurely. What a great day - mod_info is really back! Thanks to two Ryans and a Jeff. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60815 13f79535-47bb-0310-9956-ffa450edef68
* Make apr_pool_t's use hashes instead of the hacked up datastruct thatrbb2000-11-291-44/+15
| | | | | | | | | it currently uses. Submitted by: Jon Travis <jtravis@covalent.net> Reviewed by: Ryan Bloom git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60806 13f79535-47bb-0310-9956-ffa450edef68
* apr_initialize should only setup apr if this is the first call, andrbb2000-11-271-3/+16
| | | | | | | | | | | | apr_terminate should only tear the locks down if this is the final call. This allows multiple stand-alone programs that all use APR to be combined cleanly without requiring a lot of if statements. Each program just calls apr_initialize and apr_terminate, but only the first and last calls respectively do anything. Submitted by: Doug MacEachern <dougm@covalent.net> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60801 13f79535-47bb-0310-9956-ffa450edef68
* prefix libapr functions and types with apr_dougm2000-08-021-20/+20
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60470 13f79535-47bb-0310-9956-ffa450edef68
* Move all APR functions related to strings to their own directory, andrbb2000-07-211-0/+1
| | | | | | | | | create a new header for those functions. This is the first step to removing the apr/lib directory completely, and moving those files/functions to descriptive directories. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60398 13f79535-47bb-0310-9956-ffa450edef68
* damn. went through all that work to const-ify "key" but missed the data.gstein2000-07-081-2/+5
| | | | | | | | I'll get the rest later, but this constifies the two core userdata functions. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60320 13f79535-47bb-0310-9956-ffa450edef68
* a while back, we said "segfault on invalid params rather than returning angstein2000-07-081-52/+46
| | | | | | | | | | error." this removes some of the error checking that was occurring in the "user data" functions. also saw some in the "get/set OS type" functions and nuked those; there are still checks for pool==NULL, though, since that would end up making us malloc() rather than segfault'ing. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60318 13f79535-47bb-0310-9956-ffa450edef68
* const-ify the userdata interfacesgstein2000-07-081-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60317 13f79535-47bb-0310-9956-ffa450edef68
* Remove ap_destroy_context from Apache 2.0. With the name change back torbb2000-05-221-6/+0
| | | | | | | | ap_pool_t, this function doesn't make sense. This also changes all references to ap_destroy_context back to ap_destroy_pool. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60079 13f79535-47bb-0310-9956-ffa450edef68
* Merging windows and Unix common misc files.rbb2000-05-171-1/+16
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60059 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
* Get APR's misc/unix building cleanly on OS/2 using include paths to getbjh2000-04-201-6/+2
| | | | | | | | the correct version of header files from other APR modules. This removes the need for a string of platform #ifdefs. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59903 13f79535-47bb-0310-9956-ffa450edef68
* APR_ENOCONT doesn't make any sense without contexts. Replaced them all withrbb2000-04-191-3/+3
| | | | | | | APR_ENOPOOL git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59892 13f79535-47bb-0310-9956-ffa450edef68
* Change ap_context_t to ap_pool_t. This compiles, runs, and serves pagesrbb2000-04-141-13/+9
| | | | | | | on Linux, but probably breaks somewhere. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59856 13f79535-47bb-0310-9956-ffa450edef68
* namespace cleanup in locks/unixdgaudet2000-04-141-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59847 13f79535-47bb-0310-9956-ffa450edef68
* more documentation movementdgaudet2000-04-141-61/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59841 13f79535-47bb-0310-9956-ffa450edef68
* Add more code sharing arrangements and a few minor updates/tweaks.dreid2000-04-051-0/+6
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59797 13f79535-47bb-0310-9956-ffa450edef68
* Finish the APR naming cleanup. This removes the struct's fromrbb2000-04-031-7/+7
| | | | | | | | 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