summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix the hosed #ifdef APR_HAVE_FOO_H tests, the #if HAVE_ tests, andWilliam A. Rowe Jr2001-02-251-5/+5
| | | | | | | also cleanup s/#ifdef HAVE_FOO_H/#if APR_HAVE_FOO_H/ whrere appropriate. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61303 13f79535-47bb-0310-9956-ffa450edef68
* rename miss: s/apr_clear_pool/apr_pool_clear/gDoug MacEachern2001-02-191-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61257 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
* doh. need a spellchekker for these rename scripts. ↵Doug MacEachern2001-02-131-6/+6
| | | | | | s/apr_lock_aquire/apr_lock_acquire/g; git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61232 13f79535-47bb-0310-9956-ffa450edef68
* renaming various functions for consistency sakeDoug MacEachern2001-02-081-48/+48
| | | | | | | | | | | 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
* Eliminate the APR_SIG* aliases for standard signal names,Roy T. Fielding2001-01-281-3/+3
| | | | | | | since they serve no useful purpose. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61150 13f79535-47bb-0310-9956-ffa450edef68
* Add APR_DECLARE to some of APR's function declarations. This helps withRyan Bloom2001-01-111-5/+5
| | | | | | | | linking on some platforms. Submitted by: Gregory Nicholls <gnicholls@level8.com> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61046 13f79535-47bb-0310-9956-ffa450edef68
* Libtool-ize APR.Greg Stein2001-01-092-24/+8
| | | | | | | | | | | | | | | | | 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
* Keep apr_terminate from seg faulting on terminate. This isRyan Bloom2001-01-061-2/+8
| | | | | | | | | | | happening on systems that do not NULL out locks when they are destroyed. To keep this from happening, we set the locks to NULL after destroying them in apr_terminate, and we have to check for NULL in free_blocks. Submitted by: Allan Edwards and Gregory Nicholls <gnicholls@level8.com> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61027 13f79535-47bb-0310-9956-ffa450edef68
* Back out the changes to ALLOC_STATS that weren't ready yet.Ryan Bloom2001-01-051-70/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61018 13f79535-47bb-0310-9956-ffa450edef68
* We need to initialize have_corkable_tcp to 0, otherwise on platformsRyan Bloom2001-01-051-0/+70
| | | | | | | | that can't cork, we get a syntax error when we check #if HAVE_CORKABLE_TCP, because HAVE_CORKABLE_TCP is empty git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61017 13f79535-47bb-0310-9956-ffa450edef68
* Fix the compile break in apr_pools.cRyan Bloom2001-01-031-1/+1
| | | | | | | Submitted by: Jeff Trawick <trawickj@bellsouth.net> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61013 13f79535-47bb-0310-9956-ffa450edef68
* Remove some left overs from the NULL pool code. This was only in debugRyan Bloom2001-01-031-6/+0
| | | | | | | code, but it should go away. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61010 13f79535-47bb-0310-9956-ffa450edef68
* We should not be assigning permanent_pool inside of make_sub_pool. ThisRyan Bloom2001-01-031-3/+1
| | | | | | | | | | runs the risk of overwriting permanent_pool, which would be VERY bad. By moving this back to apr_init_alloc, we know that it should only be called by apr_initialize. This does mean that we can NEVER call apr_initialize twice in the same program, but that should already be taken care of. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61009 13f79535-47bb-0310-9956-ffa450edef68
* Remove the ability to allocate out of a NULL pool. This was always a badRyan Bloom2001-01-021-6/+0
| | | | | | | | | idea, because it opened up memory leaks. It is very likely that this will expose some seg faults and some memory leaks, but I have tried to find and fix most of the already. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61002 13f79535-47bb-0310-9956-ffa450edef68
* Begin to remove the ability to allocate out of NULL pools. The firstRyan Bloom2000-12-311-13/+26
| | | | | | | | | | | | | 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: https://svn.apache.org/repos/asf/apr/apr/trunk@60997 13f79535-47bb-0310-9956-ffa450edef68
* Fix lib directory build on non-unix platforms after moving apr_private.hBrian Havard2000-12-081-1/+3
| | | | | | | into include/arch/unix git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60921 13f79535-47bb-0310-9956-ffa450edef68
* put the pool functions in the pool code.Greg Stein2000-12-061-0/+68
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60905 13f79535-47bb-0310-9956-ffa450edef68
* Change POOL_DEBUG into APR_POOL_DEBUG. This allows us to detect the macroRyan Bloom2000-12-011-21/+21
| | | | | | | | | when we scan the APR header files to generate the export list. If we use POOL_DEBUG, then we can't determine when the debug functions are available and when they aren't. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60825 13f79535-47bb-0310-9956-ffa450edef68
* Make the APR headers sane.Greg Stein2000-11-261-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | *) Reduce the dependencies between APR headers. This assists APR clients who generate dependencies, and (used to) pick up "all" of the APR headers. Basically, this was trimming back the headers to just what was needed. Some unneeded system headers were removed, too. The most common headers to put back in were: apr.h, apr_pools.h, and apr_errno.h. *) move apr_pool_t declaration and a few pool functions from apr_general.h to apr_pools.h. *) move kill_conditions and process_chain from apr_pools.h to apr_thread_proc.h. *) move apr_note_subprocess() from apr_general.h to apr_thread_proc.h *) add stdio.h to apr_pools.c (compensate for removal from apr_general.h) *) add apr_lib.h to apr_strnatcmp.c (compensate for apr_strings.h no longer including apr_lib.h) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60796 13f79535-47bb-0310-9956-ffa450edef68
* This patch removes the dependencies from Makefile.in. DependenciesJeff Trawick2000-11-151-37/+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
* #include <string.h>, for memset().Ryan Bloom2000-11-091-0/+3
| | | | | | | Submitted by: Karl Fogel <kfogel@collab.net> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60672 13f79535-47bb-0310-9956-ffa450edef68
* Fix dependency on misc.hMartin Kraemer2000-11-091-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60668 13f79535-47bb-0310-9956-ffa450edef68
* Fix dependency on vanished misc.hMartin Kraemer2000-11-091-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60667 13f79535-47bb-0310-9956-ffa450edef68
* Allow lib directory to compile after the header file move.Ryan Bloom2000-11-091-4/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60662 13f79535-47bb-0310-9956-ffa450edef68
* Renamed all MODULE_EXPORT symbols to AP_MODULE_DECLARE and all symbolsWilliam A. Rowe Jr2000-10-161-18/+18
| | | | | | | | | | for CORE_EXPORT to AP_CORE_DECLARE (namespace protecting the wrapper) and retitled API_EXPORT as AP_DECLARE and APR_EXPORT as APR_DECLARE. All _VAR_ flavors changes to _DATA to be absolutely clear. Thank you Greg, for the most obvious suggestion. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60587 13f79535-47bb-0310-9956-ffa450edef68
* Squishing bugs.William A. Rowe Jr2000-10-111-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60577 13f79535-47bb-0310-9956-ffa450edef68
* Fix inserting elements at the head and tail of a ring when the ring isTony Finch2000-09-091-0/+5
| | | | | | | | | empty. Avoiding referring to the element type in the macros resulted in some double dereferences that did the wrong thing. Reported by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60522 13f79535-47bb-0310-9956-ffa450edef68
* Remaining cleanup of ap_ -> apr_ and AP_ -> APR_ transformation...William A. Rowe Jr2000-08-062-8/+8
| | | | | | | | | | | | | see src/lib/apr/apr_compat.h for most details. Also a few minor nits to get Win32 to build. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60481 13f79535-47bb-0310-9956-ffa450edef68
* prefix libapr functions and types with apr_Doug MacEachern2000-08-022-87/+87
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60470 13f79535-47bb-0310-9956-ffa450edef68
* - fix POOL_DEBUG ... restored the ap_pool_joins that dreid removed.dgaudet2000-07-261-11/+13
| | | | | | | | | - removed the apr_abort foo since every caller was passing it NULL anyway; and this is debugging code, so i don't have any qualms about using stderr or abort(). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60453 13f79535-47bb-0310-9956-ffa450edef68
* Move apr_tables.c and apr_hash.c from apr/lib to apr/tables. This isRyan Bloom2000-07-243-1123/+1
| | | | | | | | just to help organize all of the APR .c files in directories that make sense. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60442 13f79535-47bb-0310-9956-ffa450edef68
* Move the ap_signal code form apr_signal.c in lib to signals.c inRyan Bloom2000-07-241-6/+0
| | | | | | | | threadproc/unix. All in the name of removing the lib directory once and for all. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60441 13f79535-47bb-0310-9956-ffa450edef68
* Move apr_getpass.c and apr_md5.c from apr/lib to apr/passwd. The directoryRyan Bloom2000-07-243-910/+2
| | | | | | | | | | name is probably wrong, but at least this moves everything dealing with passwords to a common directory. If people hate the name, we can fix/change it later. We never actually came up with a name on the list, so rather than wait, I just moved things. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60438 13f79535-47bb-0310-9956-ffa450edef68
* Update dependenciesSascha Schumann2000-07-231-29/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60426 13f79535-47bb-0310-9956-ffa450edef68
* Remove all of the ap_exec* functions. Nobody is currently using theseRyan Bloom2000-07-212-388/+1
| | | | | | | | functions, and since we don't really have a fork function in APR, I'm not sure having exec functions makes sense. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60402 13f79535-47bb-0310-9956-ffa450edef68
* Move apr_fnmatch.c from lib/apr/lib to lib/apr/strings. Just the next moveRyan Bloom2000-07-212-245/+1
| | | | | | | to clean out the lib/apr/lib directory. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60399 13f79535-47bb-0310-9956-ffa450edef68
* Move all APR functions related to strings to their own directory, andRyan Bloom2000-07-218-1754/+6
| | | | | | | | | 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: https://svn.apache.org/repos/asf/apr/apr/trunk@60398 13f79535-47bb-0310-9956-ffa450edef68
* Restore the reference to perl's use of DJB's hash function;Tony Finch2000-07-181-7/+7
| | | | | | | | Fix the name of the chi^2 distribution; Let the compiler decide how to multiply by 33. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60391 13f79535-47bb-0310-9956-ffa450edef68
* Clarify the rumor around this stuff a little bit more by cut & pasting aRalf S. Engelschall2000-07-141-4/+31
| | | | | | | | | | | | little bit of explanation I wrote in the source of one of my forthcoming libraries. In short: The trick of the multiplier 33 is not that it is magic, it is more because it can be easily replaced with a shift+add function. So, let's actually do it here or the whole trick would be null. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60374 13f79535-47bb-0310-9956-ffa450edef68
* fix deletion: it didn't decrement the count of items in the hashGreg Stein2000-07-131-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60363 13f79535-47bb-0310-9956-ffa450edef68
* fix apr_hash_set() -- it wasn't replacing valuesGreg Stein2000-07-131-3/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60358 13f79535-47bb-0310-9956-ffa450edef68
* const-ify the hash table interfaces/implementationGreg Stein2000-07-101-12/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60322 13f79535-47bb-0310-9956-ffa450edef68
* const-ify the cleanup functionsGreg Stein2000-07-081-7/+7
| | | | | | | remove some useless "struct" keywords in apr_pools.h git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60319 13f79535-47bb-0310-9956-ffa450edef68
* Update dependancies in APRRyan Bloom2000-07-071-34/+34
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60315 13f79535-47bb-0310-9956-ffa450edef68
* use ap_size_t rather than "int" or "long"Greg Stein2000-07-071-17/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60308 13f79535-47bb-0310-9956-ffa450edef68
* Move some private information for pools from a public header file to theRyan Bloom2000-07-051-0/+10
| | | | | | | C file. Just a good idea to keep private information private. :-) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60304 13f79535-47bb-0310-9956-ffa450edef68
* Fix some code after the last cleanup. This just makes the tables compileRyan Bloom2000-07-051-1/+1
| | | | | | | again, bu making them use the correct macro. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60303 13f79535-47bb-0310-9956-ffa450edef68
* Include strings.h for strcasecmp(), strncasecmp(), and bzero().Jeff Trawick2000-06-281-0/+3
| | | | | | | | | | Include time.h for time(). This removes a bunch of compiler warnings with gcc -Wall on AIX. Submitted by: Jeff Trawick, Victor Orlikowski git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60276 13f79535-47bb-0310-9956-ffa450edef68
* A string constant was straddling a newline. Badness.Greg Stein2000-06-261-4/+9
| | | | | | | | | | | (separate fix by Greg: #if an Apache function call out of existence, and optimize the function by computing length once and memcpy'ing) Submitted by: "Victor J. Orlikowski" <vjo@raleigh.ibm.com> Reviewed by: Greg Stein git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60262 13f79535-47bb-0310-9956-ffa450edef68