| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
_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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64767 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64030 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
(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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62171 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62019 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
combined
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60051 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60023 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59724 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59587 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59564 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
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
|