| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
inserted into a new ring without being removed first, corrupting the source ring.
Found and tested in the httpd zone on Helios.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@202460 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@178845 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
select.c (the only place it is used).
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@164182 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@158323 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
This also fixes a problem on Solaris 10 with the Event Ports.
Karma to Justin for telling me about APR_RING_CONCAT.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@157183 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@151412 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
* Add locking to prevent a race condition that the Event MPM hit.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@124350 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* include/arch/unix/apr_arch_poll_private.h
(pollset_lock_rings, pollset_unlock_rings): add a space after the if.
* poll/unix/port.c
(apr_pollset_remove): add a space after an if.
(apr_pollset_poll): wrap a long line, add a space after an if, remove some
extraneous parentheses that caused a long line to go past 80 columns.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@109938 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@106558 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
a backend to APR Pollset.
Best Docs: http://developers.sun.com/solaris/articles/event_completion.html
I have only been able to test this on Solaris 10 on x86 with gcc.
If anyone could test on Sparc with other compilers that would be great.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@106156 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
library was in arch/unix/ msvc attempted to include the sub-includes
from that same path instead of from arch/win32/ which occured
earlier in the -I path list.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@106076 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added the APR_POLLSET_THREADSAFE flag for apr_pollset_create().
The flag is only supported by the KQueue or EPoll backends at this time.
All others should return ENOTIMPL.
Split poll/unix/poll.c into one file for each backend to better maintain them.
Tested On: FreeBSD 5.2.1, Linux 2.6 and OS X 10.3.6.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@105905 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
layout the args correctly. Style Only. No Functional Changes.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@105902 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@105899 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Tipped-of-by: Uwe Zeisberger
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@76269 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Now you don't get an Error when you should of gotten a HUP.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65573 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
(apr_pollset_destroy): Only run cleanup if using epoll/kqueue.
(apr_pollset_add): Fix warning for ye olde platforms still using poll().
* configure.in: Just check for kqueue() in an AC_CHECK_FUNCS.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65265 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
(Justin tweaked the cleanup code from Paul's last posted patch.)
Submitted by: Paul Querna
Reviewed by: Justin Erenkrantz, Joe Orton
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65261 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64904 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
upon Python at packaging time, but not at end-user config/build time. As far
as I can tell, the build continues to function properly. (out-of-dir
config/make not tested, and apr-iconv prolly needs some work)
The buildconf scripts now generate a build-outputs.mk file which is included
by the root's Makefile (via the build/gen-build.py script). bulid-outputs.mk
specifies all of the various files present in the distribution.
The top-level Makefiles were simplified to use an $(OBJECTS) symbol rather
than 'find'ing them. Similarly, a $(HEADERS) symbol is used for the exports.
The corresponding delete-* targets were eliminated since we have a precise
set of inputs.
The subdirs' Makefiles were removed since they are no longer called/used.
The apr-util/uri Makefile was responsible for compiling a C program to
generate the uri_delims.h file. That process was replaced by a Python script
to generate the header (called by buildconf). The .c and .dsp were left for
the Windows build to continue, but that should be revamped.
build/apr_rules.mk was revamped somewhat to avoid recursion, but a lot of
cleanup is still needed. Much of the recursive/local/x- logic is no longer
needed and can be elimianated. rules.mk was created for inclusion by N
makefiles, but that isn't really true any more, so it could probably be
tossed (caveat: test/Makefile). Saved for a phase 2.
Some additional work was added to properly clean up files in */build/,
rather than relying on a makefile in there.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64891 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
used with file descriptors >= FD_SETSIZE. (Unix systems with
no native poll())
Submitted by: Jeff Trawick
Reviewed and fixed by: Brad Nicholes
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64887 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
branch and was partially removed earlier.
* include/apr.h.in: Removed reference to apr_socket_from_file.
* apr.dsp, libapr.dsp, poll/unix/Makefile.in: Don't build pollacc.c.
* poll/unix/pollacc.c: Removed file.
PR: 25324
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64821 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
apr_pollset_poll. Basically if we have a single item pollset then we
don't need to have the descriptors arg set as the return value is sufficient.
I haven't added this for OS/2 as Brian may be moving the code into a
seperate file again.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64788 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
apr_poll is only intended for quick polling. More complex setups
should use the pollset structure that now exists.
testpoll commit coming shortly to reflect the change and test the
pollset code.
Brian - can you make sure the OS/2 code is OK?
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64781 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* include/apr_poll.h:
(apr_poll, apr_poll_setup, apr_poll_socket_add, apr_poll_socket_mask,
apr_poll_socket_remove, apr_poll_socket_clear,
apr_poll_revents_get): removed. these were deprecated a while back,
in favor of the apr_pollset_t interfaces.
* poll/os2/poll.c: removed. this implemented apr_poll() which was
deprecated by the new apr_pollset_t interfaces.
* poll/os/Makefile.in: remove reference to poll.lo
* poll/unix/poll.c:
- remove include of alloca.h; no longer needed
(apr_poll): removed both implementations
* poll/unix/pollacc.c:
(apr_poll_setup, apr_poll_socket_add, apr_poll_socket_mask,
apr_poll_socket_remove, apr_poll_socket_clear,
apr_poll_revents_get): removed these deprecated functions.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64757 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
* poll/unix/poll.c:
(struct apr_pollset_t): remove the 'pool' member
(apr_pollset_create): do not store the pool into the new struct
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64697 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64275 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
rtnevents whilst building the fd_set.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64262 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64261 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
No functional changes
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
We were getting spurious returned events because the select-based
poll implementation wasn't zeroing out previous results before
setting the current ones and returning.
Submitted by: Garrett Rooney <rooneg@electricjellyfish.net>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64241 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Submitted by: Ben Laurie <ben@algroup.co.uk>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64207 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Submitted by: INOUE Seiichiro <inoue@ariel-networks.com>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64206 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63879 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
a version that works properly with threads
Submitted by: David Hill [ddhill@zk3.dec.com]
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63854 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63843 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63805 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
putting invalid descriptors on the pollset after removing
from the middle of the array
Reported by: Rob Saccoccio <robs@fastcgi.com>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63801 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Submitted by: Rob Saccoccio <robs@fastcgi.com>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63797 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
in the httpd: add a "flags" argument to apr_pollset_create().
When we add support for OS-specific poll alternatives in the
future, I anticipate that we'll need to give apps a way to
pass hints to the pollset create function to help it pick
the best mechanism for a specific pollset. (E.g., there may
be situations where we'll want to use poll(2) even if the OS
has /dev/poll.) This "flags" argument is a placeholder to
make it possible to add such hints later.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63790 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
you unix folks already having trouble with h_errno v.s. errno?
Fix apr_poll to use apr_get_netos_error().
Submitted by: Rob Saccoccio <robs@fastcgi.com>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63787 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
the number of descriptors that select can handle
(this is why testpoll test #4 was failing on win32)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63779 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
the set contain only socket or pipe descriptors.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63777 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63775 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63774 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
These should really become HAVE_FILES_AS_SOCKETS or some other macro
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63773 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
We cannot ignore alloca/malloc failures.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63771 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63770 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
|