summaryrefslogtreecommitdiff
path: root/poll/unix
Commit message (Collapse)AuthorAgeFilesLines
* Fix corruption of the pollset rings on Solaris 10. A pfd_elem_t was being ↵pquerna2005-06-301-0/+4
| | | | | | | | | 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
* - Remove unused variable.pquerna2005-05-281-1/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@178845 13f79535-47bb-0310-9956-ffa450edef68
* Remove setting FD_SETSIZE from apr.hw tomturk2005-04-221-0/+5
| | | | | | 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
* * poll/unix/epoll.c (apr_pollset_poll): Remove unused variable.jorton2005-03-201-1/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@158323 13f79535-47bb-0310-9956-ffa450edef68
* Replace looping code with an O(1) APR_RING_CONCAT.pquerna2005-03-123-15/+3
| | | | | | | | 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
* Update copyright year to 2005 and standardize on current copyright owner line.jerenkrantz2005-02-045-5/+10
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@151412 13f79535-47bb-0310-9956-ffa450edef68
* * Fix compiler warning for type mismatch on nget.pquerna2005-01-061-1/+6
| | | | | | | * 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
* Fix some style problems in the poll code, no functional changes.rooneg2004-12-061-4/+5
| | | | | | | | | | | | | * 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
* * poll/unix/poll.c (apr_pollset_remove): Remove unused variable.jorton2004-11-251-1/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@106558 13f79535-47bb-0310-9956-ffa450edef68
* Added support for Solaris 10 Event Completion Framework aspquerna2004-11-221-0/+336
| | | | | | | | | | | | 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
* Things get wonky on win32 with includes, because the includedwrowe2004-11-211-0/+6
| | | | | | | | 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
* This commit may break the win32 or netware builds because of the added files.pquerna2004-11-204-704/+968
| | | | | | | | | | | | | 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
* * poll/unix/poll.c: Remove trailing more whitespace and fix 'apr_poll' to ↵pquerna2004-11-201-2/+3
| | | | | | 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
* * poll/unix/poll.c: Remove Trailing Whitespace. No Functional Changes.pquerna2004-11-191-6/+6
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@105899 13f79535-47bb-0310-9956-ffa450edef68
* Remove .cvsignore files.jorton2004-11-181-4/+0
| | | | | | | Tipped-of-by: Uwe Zeisberger git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@76269 13f79535-47bb-0310-9956-ffa450edef68
* Fix KQueue for Pollset.pquerna2004-11-141-1/+3
| | | | | | | 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
* * poll/unix/poll.c (backend_cleanup): Only define if using epoll/kqueue.jorton2004-07-071-1/+7
| | | | | | | | | | (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
* Add support for KQueue and sys_epoll to apr_pollset.jerenkrantz2004-07-061-12/+355
| | | | | | | | | | (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
* 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
* First whack at switching to a single top-level make. This adds a dependencygstein2004-02-051-16/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Return an error instead of silently failing when apr_poll() istrawick2004-01-301-0/+12
| | | | | | | | | | | 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
* Completely remove apr_socket_from_file which is deprecated on the 0.9jorton2003-12-092-76/+1
| | | | | | | | | | | | | | | 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
* This small fix allows for the passing of NULL as the descriptors arg indreid2003-11-221-2/+4
| | | | | | | | | | | 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
* Add back apr_poll as it shouldn't have been removed.dreid2003-11-211-1/+200
| | | | | | | | | | | | | 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
* Remove the old/deprecated apr_poll interface.gstein2003-11-172-322/+5
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Avoid the temptation to remember the pool. That can lead to disaster.gstein2003-10-281-2/+2
| | | | | | | | | * 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
* rename apr_arch_fileio.h to apr_arch_file_io.h for consistencythommay2003-01-072-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64275 13f79535-47bb-0310-9956-ffa450edef68
* Namespace protection for include/arch/ header filesthommay2003-01-062-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Simplify select-based apr_poll to avoid an extra for loop and clearjorton2003-01-031-4/+2
| | | | | | | rtnevents whilst building the fd_set. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64262 13f79535-47bb-0310-9956-ffa450edef68
* fix the clearing of the pollset in the select-based implementationbrianp2003-01-031-3/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64261 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright notices to 2003.thommay2003-01-012-2/+2
| | | | | | | No functional changes git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
* Fix apr_poll behavior on Darwin/Win32 (now passing testpoll.)wrowe2002-12-311-0/+4
| | | | | | | | | | | 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
* I forgot the ;.rbb2002-12-241-1/+1
| | | | | | | 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
* Fix an infinite loop in apr_poll_socket_clear.rbb2002-12-241-0/+1
| | | | | | | 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
* include <alloca.h> on any system that has it, not just on Tru64trawick2002-09-201-2/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63879 13f79535-47bb-0310-9956-ffa450edef68
* Include alloca.h on Tru64 to ensure that alloca gets redefined tobrianp2002-09-091-0/+4
| | | | | | | | 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
* Bugfix for apr_pollset_remove()brianp2002-09-011-0/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63843 13f79535-47bb-0310-9956-ffa450edef68
* Cleaned up the code for handling invalid descriptor types in apr_pollbrianp2002-08-111-7/+9
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63805 13f79535-47bb-0310-9956-ffa450edef68
* Changed apr_poll_socket_remove() and apr_poll() to avoidbrianp2002-08-072-3/+28
| | | | | | | | | 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
* Set the result array in the select-based version of apr_pollset_poll()brianp2002-08-061-0/+1
| | | | | | | 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
* One more update to the pollset API before we start using itbrianp2002-08-041-1/+2
| | | | | | | | | | | | | | | 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
* apr_get_netos_error() must be implemented on all platforms. Aren'twrowe2002-08-041-4/+4
| | | | | | | | | | | 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
* On systems without poll, limit apr_pollset's capacity tobrianp2002-08-031-0/+6
| | | | | | | | 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
* NetWare can't handle mixed descriptor sets. Added code to make sure thatbnicholes2002-08-021-4/+55
| | | | | | | 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
* fix a compile break on stock FreeBSD 3.4 (gcc 2.7.2.3)trawick2002-08-021-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63775 13f79535-47bb-0310-9956-ffa450edef68
* Features, not platforms, correct?wrowe2002-08-021-6/+6
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63774 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup the last emit ... one final fd-as-socket problem.wrowe2002-08-021-0/+4
| | | | | | | 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 safely ignore palloc failures [we can segv in the allocator].wrowe2002-08-021-0/+8
| | | | | | | We cannot ignore alloca/malloc failures. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63771 13f79535-47bb-0310-9956-ffa450edef68
* use apr_os_sock_t for socket descriptor variablesbrianp2002-08-021-26/+7
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63770 13f79535-47bb-0310-9956-ffa450edef68
* Remove the memory leak from the apr_poll implementation. On all systems,rbb2002-08-021-9/+16
| | | | | | | | | | 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