summaryrefslogtreecommitdiff
path: root/acconfig.h
Commit message (Collapse)AuthorAgeFilesLines
* * acconfig.h: Remove unused HAVE_isascii and HAVE_INT64_C defines, andjorton2003-11-171-8/+0
| | | | | | | _IS_GLOBAL defines for which configure.in already provides templates. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64768 13f79535-47bb-0310-9956-ffa450edef68
* * configure.in, acconfig.h: Remove unused USE_THREADS define.jorton2003-11-171-1/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64767 13f79535-47bb-0310-9956-ffa450edef68
* * build/apr_common.m4, acconfig.h: Use the third argument tojorton2003-11-171-2/+0
| | | | | | | AC_DEFINE for the DIRENT_TYPE and DIRENT_INODE templates. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64766 13f79535-47bb-0310-9956-ffa450edef68
* Move the apr_filepath_list_split_impl and apr_filepath_list_merge_implbrane2003-02-161-0/+5
| | | | | | | | | | prototypes from include/arch/unix/apr_arch_file_io.h into a new private header, include/arch/apr_private_common.h, and include that from the various apr_private.h instances. Update the filepath.c and filepath_util.c files to reflect this change. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64361 13f79535-47bb-0310-9956-ffa450edef68
* Introduce detection of dirent->d_fileno (or ->d_ino) and dirent->d_typewrowe2002-12-141-0/+2
| | | | | | | and fill out the apr_fileinfo_t members from apr_dir_read. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64169 13f79535-47bb-0310-9956-ffa450edef68
* Simplify logic of /dev/*random search, reducing to a single AC_DEFINEjorton2002-11-141-1/+0
| | | | | | | | expansion for the DEV_RANDOM variable. This allows the removal of DEV_RANDOM from acconfig.h even with autoheader 2.13. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64034 13f79535-47bb-0310-9956-ffa450edef68
* Add back USE_THREADS and DEV_RANDOM to fix build with autoconf 2.13.jorton2002-11-141-0/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64030 13f79535-47bb-0310-9956-ffa450edef68
* - define DEV_RANDOM as a string literal so it doesn't have to bejorton2002-11-141-1/+0
| | | | | | | | converted into one later. - remove DEV_RANDOM from acconfig.h git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64029 13f79535-47bb-0310-9956-ffa450edef68
* Have APR_CHECK_SIZEOF_EXTENDED and APR_CHECK_DEFINE pass the thirdjorton2002-11-141-18/+0
| | | | | | | | | argument to AC_DEFINE(_UNQUOTED); remove corresponding lines from acconfig.h. (dropping the third argument to APR_CHECK_DEFINE) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64028 13f79535-47bb-0310-9956-ffa450edef68
* Switch to passing three arguments to the AC_DEFINE macro wherejorton2002-11-141-17/+0
| | | | | | | | appropriate, removing the corresponding #undef's in acconfig.h. (use of accconfig.h is "deprecated and discouraged" in autoconf 2.5x) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64027 13f79535-47bb-0310-9956-ffa450edef68
* Remove the memory leak from the apr_poll implementation. On all systems,rbb2002-08-021-0/+2
| | | | | | | | | | this will support any number of files/sockets. On modern systems, this will allocate on the stack. On older systems we fall back to malloc/free. Note: We will rarely ever use malloc/free. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63769 13f79535-47bb-0310-9956-ffa450edef68
* Remove autoconf checks that were related to the now removed xlate.jerenkrantz2002-07-201-1/+0
| | | | | | | (This autoconf code has already been duplicated in apr-util.) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63720 13f79535-47bb-0310-9956-ffa450edef68
* Fix a problem with global mutexes on OS/390 when something othertrawick2002-05-091-0/+5
| | | | | | | | | | | | | | than the default mechanism (fcntl) was used. The mutexes didn't necessarily block out other threads in the same process. This commit also adds the infrastructure to allow any individual process mutex mechanism to be declared as global for a platform so that APR doesn't wastefully use an extra thread mutex for any operations on a global mutex based on that process mutex mechanism. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63376 13f79535-47bb-0310-9956-ffa450edef68
* Add support for EGD-compatible entropy gatherers (such as EGD or PRNGd).jerenkrantz2002-01-081-0/+2
| | | | | | | At configure-time, specify --with-egd=/path/to/egd/socket. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62715 13f79535-47bb-0310-9956-ffa450edef68
* get rid of cruft associated with 1.3-era symbols USEBCOPY andtrawick2001-11-291-3/+0
| | | | | | | | | | NEED_RLIM_T iff anybody ever needs this we'll do some autodetection; but nobody ever uses these symbols git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62575 13f79535-47bb-0310-9956-ffa450edef68
* Use strerror_r() where available, since strerror() isn't alwaystrawick2001-11-121-0/+1
| | | | | | | | thread-safe. Example systems where strerror() isn't thread-safe: Linux+glibc, AIX git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62503 13f79535-47bb-0310-9956-ffa450edef68
* Remove variable that is no longer needed since we no longer depend on MM.jerenkrantz2001-08-161-2/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62171 13f79535-47bb-0310-9956-ffa450edef68
* Move the necessary shared memory code from MM into APR and remove ourjerenkrantz2001-08-131-0/+1
| | | | | | | | | | | | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@62155 13f79535-47bb-0310-9956-ffa450edef68
* Support the AIX, glibc2, and Solaris variants of gethostby{name|addr}_r.jerenkrantz2001-07-311-0/+1
| | | | | | | | | | | | | | Use gethostbyaddr_r function when available. The AIX gurus will have to test this to make sure I got their prototype right. This compiles on Solaris. Submitted by: Sterling Hughes <sterling@designmultimedia.com> (Modified by Justin) Reviewed by: Justin Erenkrantz git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62063 13f79535-47bb-0310-9956-ffa450edef68
* Fix accept filters by making all the various macro names agree with each other.jwoolley2001-07-251-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62019 13f79535-47bb-0310-9956-ffa450edef68
* Add thread-safe resolver - with a high thread count, we can run intojerenkrantz2001-07-211-0/+1
| | | | | | | | | | | | | problems using a non-thread safe resolver function. We'll attempt to use gethostbyname_r if: APR_HAS_THREADS is defined, libc_r doesn't have gethostbyname (BSD), and gethostbyname_r even exists. I've tested this on Solaris 7. Ian Holsman has reported success on Solaris 8 (I wonder if he didn't have IPv6 support turned on - that would cause it to use the non-getaddrinfo() code path). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61976 13f79535-47bb-0310-9956-ffa450edef68
* tighten up the checking for sysV semaphore support...trawick2001-07-021-0/+1
| | | | | | | | Darwin didn't have full support but it did have semget() and semctl(), resulting in a build error... git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61857 13f79535-47bb-0310-9956-ffa450edef68
* This is a much larger commit than I meant to have, but a lot hasdreid2001-06-061-42/+0
| | | | | | | | | | | | | | | | | | | | | | | been changed in my tree today :) - remove the sms code I committed yesterday - add an apr_pool_t to the sms structure - add locking code to the tracking sms This threw up an issue with locking, so next - change the locking code to add an owner and ref counting so we can lock multiple times from the same thread. this was needed by the apr_sms_tracking_reset code where we lock and then call free which locks again... I haven't added the locking changes for os2 or win32 after the problems I created with my last commit :) Changes to testlock on the way. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61716 13f79535-47bb-0310-9956-ffa450edef68
* A couple of changes...dreid2001-06-051-12/+12
| | | | | | | | | | - rename the CLEANUP macros so they make more sense (I hope) - cntxt -> pool in the lock code and macro's No functional change. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61702 13f79535-47bb-0310-9956-ffa450edef68
* OK, this basically adds a function that allows us to createdreid2001-06-051-0/+42
| | | | | | | | | | | | | | | | | | | | | | | apr_lock_t's using an apr_sms_t for the memory. It's a very small first step, and at present is only intended to be used internally in APR, hence the position of the function definitions in the locks.h file. Given that we don't want to duplicate code where we don't have to, I've added some macros that allow us to do memory allocations regardless of whether we have a pool or sms. This also highlighted that we haven't yet managed to change our member names from cntxt to pool everywhere! The surprise comes in just how far reaching the apr_pool_t goes. As apr_lock.h uses ap_sms_t and apr_sms.h uses apr_lock_t I've moved the tyepdef's into apr.h.in, but this may be bogus... Hopefully this will allow us to get locking into sms and so start moving forward again, and at the same time it starts to throw up the problems for changing our memory system throughout APR. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61698 13f79535-47bb-0310-9956-ffa450edef68
* Clean up conditionals in unix DSO code so that we decide based on thewsanchez2001-04-191-0/+4
| | | | | | | | 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
* Carefully select an appropriate native type for apr_int64_t andfielding2001-04-121-0/+2
| | | | | | | | | | define its format as APR_INT64_T_FMT and literal using APR_INT64_C(). Submitted by: Justin Erenkrantz, William Rowe Reviewed by: Roy Fielding git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61500 13f79535-47bb-0310-9956-ffa450edef68
* Configure elements of FreeBSD's accept_filter for APR.dreid2001-04-031-0/+1
| | | | | | | | Obtained from: Ryan Bloom <rbb@covalent.com> Reviewed by: David Reid <dreid@apache.org> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61437 13f79535-47bb-0310-9956-ffa450edef68
* Add APR_OS_PROC_T_FMT. Hopefully this will be used to get ridtrawick2001-03-011-0/+1
| | | | | | | | of various unfortunate constructs in Apache (like using %ld for pid_t but then casting the arg to long). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61331 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_sigwait to the apr_private.h file. This allows us to removerbb2001-02-211-0/+6
| | | | | | | | a couple of #ifdefs, and standardize some code. This macro comes directly from the Apache code. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61277 13f79535-47bb-0310-9956-ffa450edef68
* This patch adds support for TCP_NOPUSH to APR. Basically we look fordreid2001-01-041-0/+4
| | | | | | | | | | | | | | | | | TCP_CORK or TCP_NOPUSH and if we find them we define APR_HAVE_CORKABLE_TCP. Once defined we then make os_cork and os_uncork available. At present they're not used except in the apr_sendfile code, but there may be uses for the routines in other areas of our network code as well, hence the change. In addition I've changed SOL_TCP to IPPROTO_TCP as this is more portable. Also tiny change to the way we check the version number in configure.in to decide if we want to use sendfile on FreeBSD. Submitted by: Tony Finch <dot@dotat.at> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61016 13f79535-47bb-0310-9956-ffa450edef68
* Add APR_SIZE_T_FMT to help work around the fact that apr_size_t/trawick2000-12-011-0/+1
| | | | | | | | apr_ssize_t is long on AIX. Get the other APR_xx_T_FMT variables defined properly on AIX. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60840 13f79535-47bb-0310-9956-ffa450edef68
* Provide a socklen_t to the user of APR as a portability aid. Sometrawick2000-09-221-4/+0
| | | | | | | | | | | | | | | | | | systems have unsigned sockaddr len parameters; others have signed. When passing the length by address (as to accept()) a warning is generated if the sign is not correct. This patch assumes that, if no native socklen_t is provided, apr_socklen_t is always signed; that can be easily tweaked for certain platforms later. Inside APR, apr_socklen_t is only used currently in the Unix implementation. Submitted by: Victor J. Orlikowski <v.j.orlikowski@gte.net> Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60538 13f79535-47bb-0310-9956-ffa450edef68
* The strcasecmp()->stricmp() mapping is done in apr_general.h so don't dobjh2000-07-071-4/+0
| | | | | | | | it in apr_private.h as well as it causes redefinition warnings all through the APR build. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60313 13f79535-47bb-0310-9956-ffa450edef68
* Remove a duplicate definition of ap_inline. This is provided by apr.h, sorbb2000-06-201-23/+0
| | | | | | | we don't need it in ap_private.h. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60231 13f79535-47bb-0310-9956-ffa450edef68
* Add support to ap_xlate_open() for an app to specify that thetrawick2000-06-141-0/+1
| | | | | | | | | | | charset of the locale is to be used for the source or target charset. At EBCDIC initialization, use the locale charset as one of the pair when setting up the default translation handles for content. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60203 13f79535-47bb-0310-9956-ffa450edef68
* Next part of adding support for BONE. Basically this sets up defines thatdreid2000-06-131-0/+7
| | | | | | | we can use to know what level of support BeOS has available. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60194 13f79535-47bb-0310-9956-ffa450edef68
* Allow buildconf to work again. Basiaclly #undef HAVE_BONE_VERSION so thatrbb2000-06-131-0/+3
| | | | | | | autoconf knows what to do with the AC_DEFINE for it. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60193 13f79535-47bb-0310-9956-ffa450edef68
* Change the APR configure process to call MM's configure script earlyrbb2000-06-101-0/+2
| | | | | | | | | | instead of at the end of the script. With this change, APR can determine if shared memory is provided using a file that multiple platforms can open, or if it is acheived using some sort of shared memory (including MMAP'ed files). This information is used in Apache to provide some optimizations. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60163 13f79535-47bb-0310-9956-ffa450edef68
* Add a couple of checks necessary because unix and BeOS code are beingrbb2000-05-161-0/+2
| | | | | | | combined git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60051 13f79535-47bb-0310-9956-ffa450edef68
* fix a typo in a commenttrawick2000-05-041-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60023 13f79535-47bb-0310-9956-ffa450edef68
* Substitute sigthreadmask for pthread_sigmask, if necessary.sascha2000-05-021-4/+0
| | | | | | | | | | | | Note that the behaviour of sigprocmask in a multi-threaded program is undefined. The AIX 4.3 documentation explicitly says "The sigprocmask, sigsetmask, and sigblock subroutines must not be used in a multi-threaded application." This change allows us to build the Dexter and mpmt_pthread MPM on AIX. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60012 13f79535-47bb-0310-9956-ffa450edef68
* Move apr_config.h and apr_config.hw to apr_private.h and apr_private.hw.rbb2000-04-221-3/+3
| | | | | | | | This should make the fact that this is a private header file more obvious. This also updates all of the references to apr_config.h git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59924 13f79535-47bb-0310-9956-ffa450edef68
* Here's my first stab at getting mod_auth_digest working under 2.0stoddard2000-04-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | quick change summary: - moved the random byte generation into APR This patch adds ap_generate_random_bytes() - now uses ap_time_t - compiles and runs on linux - tested with amaya still to do: - test win32 (This will have to be someone with a windows box :-) I think I did everything correctly. APR_HAS_RANDOM should be defined on windows and there is a lib/apr/misc/win32/rand.c which is basically a copy of what mod_auth_digest used to use. - error handling cleanup Since there is not currently a usable ap_strerror it is commented out. win32 error handling is virtually non-existant. I just don't know enough about win32 to touch this stuff. Brian Submitted by: Brian Martin Reviewed by: Bill Stoddard (very quick review, moving in right direction) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59866 13f79535-47bb-0310-9956-ffa450edef68
* Fix warnings, update dependencies.ben2000-03-181-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59724 13f79535-47bb-0310-9956-ffa450edef68
* Fix the logic for ap_signal, so it is exposed in external header files in APR.rbb2000-03-021-16/+0
| | | | | | | Also change the header file included in http_log.c. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59676 13f79535-47bb-0310-9956-ffa450edef68
* Namespace protect the HAVE_SEMUN variable that was added. This has notrbb2000-01-241-1/+0
| | | | | | | | been tested fully, because I don't have access to a platform that uses semaphores, but the logic is sound. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59617 13f79535-47bb-0310-9956-ffa450edef68
* Typedef socklen_t instead of defining it.sascha2000-01-111-0/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59587 13f79535-47bb-0310-9956-ffa450edef68
* Use always ap_signal() in APR to avoid redefining the system call signal()sascha1999-12-311-2/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59564 13f79535-47bb-0310-9956-ffa450edef68
* Clean up APR's configure script a bit. This commit also allows Apache torbb1999-12-221-0/+1
| | | | | | | | | | specify that APR should be built without threads for the prefork MPM. This is broken if we then try to configure Apache again using a threaded MPM, but this is easily fixable, and I will be doing that soon. Lastly, I removed all thread calls from APR when it is told to build without threads. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59552 13f79535-47bb-0310-9956-ffa450edef68