search for: handler_data

Displaying 11 results from an estimated 11 matches for "handler_data".

2004 Aug 25
0
[PATCH] move highest_fd calculations to ioloop-select.c
...ovecot-1.0-test35.vanilla/src/lib/ioloop-select.c dovecot-1.0-test35/src/lib/ioloop-select.c --- dovecot-1.0-test35.vanilla/src/lib/ioloop-select.c 2004-08-23 17:46:41.000000000 +0400 +++ dovecot-1.0-test35/src/lib/ioloop-select.c 2004-08-25 10:55:25.000000000 +0400 @@ -17,8 +17,27 @@ struct ioloop_handler_data { static fd_set tmp_read_fds, tmp_write_fds; +static void update_highest_fd(struct ioloop *ioloop) +{ + struct io *io; + int max_highest_fd; + + max_highest_fd = ioloop->highest_fd-1; + ioloop->highest_fd = -1; + + for (io = ioloop->ios; io != NULL; io = io->next) { +...
2004 Aug 30
0
[PATCH] [RFC] epoll based ioloop handler (now with patch)
...your option) any later version. + */ + +/* @UNSAFE: whole file */ + +#include "lib.h" +#include "ioloop-internal.h" + +#ifdef IOLOOP_EPOLL + +#include <sys/epoll.h> +#include <unistd.h> + +#define INITIAL_EPOLL_EVENTS 128 +#define EPOLL_IOS_PER_FD 2 + +struct ioloop_handler_data { + int epfd; + int events_size, events_pos; + struct epoll_event *events; + + unsigned int idx_size; + struct io_list **fd_index; +}; + +struct io_list { + int count; + struct io *ios[EPOLL_IOS_PER_FD]; +}; + +void io_loop_handler_init(struct ioloop *ioloop) +{ + struct ioloop_handler_data *data;...
2004 Oct 25
0
[PATCH] Request for testing: BSD kqueue ioloop handler
...include "lib.h" +#include "iolist.h" +#include "ioloop-internal.h" + +#ifdef IOLOOP_KQUEUE + +#include <sys/types.h> +#include <sys/event.h> +#include <sys/time.h> +#include <unistd.h> + +#define INITIAL_KQUEUE_EVENTS 128 + +struct ioloop_handler_data { + int kq; + + unsigned int events_size, events_pos, events_changed; + struct kevent *events; + + unsigned int idx_size; + struct io_list **fd_index; +}; + +void io_loop_handler_init(struct ioloop *ioloop) +{ + struct ioloop_handler_data *data; + + ioloop->handler_data = data = + p_new(ioloop-...
2003 Apr 16
1
PATCH Add support for kqueue in ioloop subsystem
...This code is placed in the public domain. */ #include "lib.h" #include "ioloop-internal.h" #ifdef IOLOOP_KEVENT #include <sys/time.h> #include <sys/types.h> #include <sys/event.h> #ifndef KEVENT_SET_SIZE # define KEVENT_SET_SIZE 16 #endif struct ioloop_handler_data { int kq; /* kqueue descriptor */ struct kevent event; /* a kevent struct which we pass around */ }; void io_loop_handler_init(struct ioloop *ioloop) { struct ioloop_handler_data *data; ioloop->handler_data = data = p_new(ioloop->pool, struct ioloop_handler_data, 1); data->kq = k...
2004 Aug 23
1
[PATCH] pass struct io * to io_loop_handle_add()/io_loop_handle_remove()
...oo #define IO_POLL_INPUT (POLLIN|POLLPRI|POLLERR|POLLHUP|POLLNVAL) #define IO_POLL_OUTPUT (POLLOUT|POLLERR|POLLHUP|POLLNVAL) -void io_loop_handle_add(struct ioloop *ioloop, int fd, - enum io_condition condition) +void io_loop_handle_add(struct ioloop *ioloop, struct io *io) { struct ioloop_handler_data *data = ioloop->handler_data; + enum io_condition condition = io->condition; unsigned int old_size; - int index; + int index, fd = io->fd; if ((unsigned int) fd >= data->idx_size) { /* grow the fd -> index array */ @@ -97,11 +97,11 @@ void io_loop_handle_add...
2005 Nov 07
1
ioloop-select bug in alpha 4
...cot-1.0.alpha4/src/lib/ioloop-select.c 2005-11-06 22:07:13.000000000 -0 800 @@ -113,7 +113,7 @@ sizeof(fd_set)); memcpy(&tmp_write_fds, &ioloop->handler_context->write_fds, sizeof(fd_set)); - memcpy(&tmp_except_fds, &ioloop->handler_data->except_fds, + memcpy(&tmp_except_fds, &ioloop->handler_context->except_fds, sizeof(fd_set)); ret = select(ioloop->handler_context->highest_fd + 1, Thanks, Kevin
2004 Oct 25
0
[PATCH] move iolist functions into separate file
.../* @UNSAFE: whole file */ #include "lib.h" +#include "iolist.h" #include "ioloop-internal.h" #ifdef IOLOOP_EPOLL @@ -21,13 +22,6 @@ #define INITIAL_EPOLL_EVENTS 128 -enum { - EPOLL_LIST_INPUT, - EPOLL_LIST_OUTPUT, - - EPOLL_IOS_PER_FD -}; - struct ioloop_handler_data { int epfd; int events_size, events_pos; @@ -37,10 +31,6 @@ struct ioloop_handler_data { struct io_list **fd_index; }; -struct io_list { - struct io *ios[EPOLL_IOS_PER_FD]; -}; - void io_loop_handler_init(struct ioloop *ioloop) { struct ioloop_handler_data *data; @@ -74,58 +64,6 @@ voi...
2020 Aug 07
0
Wine release 5.0.2
...bject' in Object.create. msvcrt: Stop forwarding iswctype functions to ntdll. Markus Engel (1): user32: Force undefined bits in GetKeyState() and GetKeyboardState() to zero. Martin Storsjo (2): ntdll: Properly return errors when failing to unwind. ntdll: Pass a nonnull handler_data when continuing after a collided unwind on arm64. Mas Ahmad Muhammad (1): comdlg32: Enlarge list area in CHOOSE_FONT window. Michael M?ller (2): opengl32: Treat invalid pixel types as PFD_TYPE_RGBA in wglChoosePixelFormat. ddraw: Make ddraw1_vtbl and ddraw_surface1_vtbl writable...
2020 Aug 28
0
Wine release 5.16
...arm64 sigcontext access for darwin. loader: Fix the generic case in get_self_exe(). winedump: Fix dumping of rare arm64 unwind opcodes. include: Update ARM64 context flag definitions to match current SDKs. ntdll: Add initial tests for arm64 RtlVirtualUnwind. ntdll: Set handler_data correctly in arm64 RtlVirtualUnwind. ntdll/tests: Add defines for the complete set of arm64 unwidning opcodes. ntdll/tests: Support testing float registers in the arm64 virtual unwind test. ntdll: Implement the arm64 machine frame and context unwind opcodes. ntdll/tests: Add...
2020 May 22
0
Wine release 5.9
...CurrentProcessExplicitAppUserModelID. Markus Engel (2): user32: Force undefined bits in GetKeyState() and GetKeyboardState() to zero. user32/tests: Add more tests for GetKeyState(). Martin Storsjo (5): ntdll: Fix arm64 unwind across ELF/PE boundaries. ntdll: Pass a nonnull handler_data when continuing after a collided unwind on arm64. ntdll: Properly restore x29/x30 for arm64 packed unwind data with local stack. ucrtbase: Add tests and fix more zero length __stdio_common_vs[w]printf cases. ucrtbase: Extend the printf tests even further. Michael Stefaniuc (1):...
2020 Jun 05
0
Wine release 5.10
...xplorerframe: Return S_OK in ITaskbarList::SetOverlayIcon. Martin Storsjo (12): configure: Pass -fasynchronous-unwind-tables to the compiler. ntdll: Fix handling of the save_lrpair unwind opcode. ntdll: Fix byte vs register units in unwind_packed_data. ntdll: Pass a nonnull handler_data in when continuing after a collided unwind. ntdll: Store the real stack pointer in RtlCaptureContext. ntdll: Fix unwinding functions that end with a branch instruction. wine/asm.h: Use __ASM_CFI on clang too, despite not defining __GCC_HAVE_DWARF2_CFI_ASM. ntdll: Implement R...