Bert Belder
|
5bcde85f8b
|
sock: call poll_group_acquire() and poll_group_release() directly
|
2018-05-02 03:50:42 +02:00 |
|
Bert Belder
|
c07cc8f7cc
|
poll-group: do away with the poll_group_allocator class
|
2018-05-02 03:50:42 +02:00 |
|
Bert Belder
|
dfeefa8780
|
error: remove error mapping for ERROR_DEVICE_FEATURE_NOT_SUPPORTED
|
2018-05-02 03:36:23 +02:00 |
|
Bert Belder
|
6a932e0daf
|
sock: rename 'afd_socket' to 'base_socket'
|
2018-05-02 03:06:35 +02:00 |
|
Bert Belder
|
607ed77216
|
sock: do not retrieve winsock protocol info for every socket
|
2018-05-02 03:06:35 +02:00 |
|
Bert Belder
|
a54e813d2f
|
sock: remove unnecessary header include
|
2018-05-02 03:06:35 +02:00 |
|
Bert Belder
|
2789bad793
|
afd: retrieve protocol info for afd driver socket on startup
|
2018-05-02 03:06:30 +02:00 |
|
Bert Belder
|
c69f361564
|
ws: move ws_get_base_socket() from afd.c to ws.c
|
2018-05-02 02:12:57 +02:00 |
|
Bert Belder
|
ba343a0898
|
afd: move afd provider guid list from header to c file
|
2018-05-01 23:57:54 +02:00 |
|
Bert Belder
|
de68d70f9c
|
port: fix unlikely bug in _ep_port_wait() time-out behavior
|
2018-05-01 22:44:32 +02:00 |
|
Bert Belder
|
9d61ddfddb
|
reflock: remove _sync_sub_and_fetch()
|
2018-05-01 22:11:13 +02:00 |
|
Bert Belder
|
06342920d6
|
tree: reduce code duplication
|
2018-05-01 22:02:45 +02:00 |
|
Bert Belder
|
e7e8385354
|
port: do not use separate poll groups for different socket types
It appears that this was never necessary after all.
|
2018-03-09 01:12:24 +01:00 |
|
Bert Belder
|
075e1cef0b
|
port: remove useless and ineffective locking from ep_port_delete()
|
2018-03-09 00:42:35 +01:00 |
|
Bert Belder
|
47497ee19d
|
ws: report the correct error when WSAStartup() fails
|
2018-03-09 00:42:30 +01:00 |
|
Bert Belder
|
002c7f0899
|
src: add ws.c and ws.h for winsock-related stuff
|
2018-03-09 00:42:26 +01:00 |
|
Bert Belder
|
7dc6890500
|
tree: remove header-based red-black tree implementation
|
2018-02-12 01:40:07 +01:00 |
|
Bert Belder
|
9799eec661
|
tree: implement simpler version without macros
|
2018-02-12 01:40:07 +01:00 |
|
Bert Belder
|
2af6b901ba
|
util: define static_assert even if clang pretends to be msvc
|
2017-12-10 05:51:48 +01:00 |
|
Bert Belder
|
d8cf151f30
|
port: change some internal method names
|
2017-12-09 23:28:23 +01:00 |
|
Bert Belder
|
b7ab093531
|
util: fix typo in _SSIZE_T_DEFINED
|
2017-12-09 23:28:23 +01:00 |
|
Bert Belder
|
206dff3f6a
|
util: don't redefine static_assert if it's already defined
|
2017-12-09 23:28:19 +01:00 |
|
Bert Belder
|
ac0f54621b
|
util: enable polyfills for gcc
|
2017-12-08 19:41:40 +01:00 |
|
Bert Belder
|
e10424bf58
|
win: polyfill ERROR_DEVICE_FEATURE_NOT_SUPPORTED definition for MinGW
|
2017-12-08 19:41:40 +01:00 |
|
Bert Belder
|
1a2743cf5e
|
win: gcc doesn't grok #pragma warning
|
2017-12-08 19:41:40 +01:00 |
|
Bert Belder
|
1ef60cb893
|
win: ensure definitions for Vista or later are included
|
2017-12-08 19:41:40 +01:00 |
|
Bert Belder
|
a2eeaa5f82
|
src: move variable declarations to top of block
|
2017-12-08 19:34:52 +01:00 |
|
Bert Belder
|
2b57c726c8
|
util: move 'unused_fn' macro to from rb.h to util.h
|
2017-12-08 19:34:52 +01:00 |
|
Bert Belder
|
1ad34ec3f3
|
util: rename 'unused' macro to 'unused_var'
|
2017-12-08 19:34:52 +01:00 |
|
Bert Belder
|
05c384b181
|
src: rename WEPOLL_INTERNAL_EXTERN to WEPOLL_INTERNAL_VAR
|
2017-12-08 19:34:52 +01:00 |
|
Bert Belder
|
d84e928508
|
win: add missing comment after final #endif
|
2017-12-08 19:34:51 +01:00 |
|
Bert Belder
|
d26c10f852
|
nt: remove unnecessary '#ifdef _NTDEF_' condition
|
2017-12-08 19:34:51 +01:00 |
|
Bert Belder
|
7dcc3d5eab
|
error: remove return_handle_error() and helpers
|
2017-12-07 22:06:11 +01:00 |
|
Bert Belder
|
0f68b70114
|
api: explicitly check handle validity in epoll_wait()
|
2017-12-07 22:04:17 +01:00 |
|
Bert Belder
|
093e6f5240
|
api: explicitly check handle validity in epoll_close()
|
2017-12-07 22:03:45 +01:00 |
|
Bert Belder
|
157cadf4e4
|
api: always check handle validity when epoll_ctl_mod() fails
|
2017-12-07 22:00:11 +01:00 |
|
Bert Belder
|
d448bdf8d8
|
error: make err_check_handle() an internal api
|
2017-12-07 21:37:58 +01:00 |
|
Bert Belder
|
097e4fef9a
|
port: epoll_ctl() to report EBADF when both op and sock are invalid
|
2017-12-07 19:07:01 +01:00 |
|
Bert Belder
|
b5864f3a0f
|
afd: report EPERM+ERROR_DEVICE_FEATURE_NOT_SUPPORTED for non-afd sockets
|
2017-12-07 18:01:49 +01:00 |
|
Bert Belder
|
42ccc11634
|
src: suppress warnings caused by Windows SDK headers
|
2017-12-07 04:42:37 +01:00 |
|
Bert Belder
|
99ce867424
|
src: polyfill the 'include' keyword for Visual Studio 2013
|
2017-12-07 04:41:51 +01:00 |
|
Bert Belder
|
f260365c45
|
port: plug memory leak where deleted socket would never be freed
|
2017-12-05 20:04:41 +01:00 |
|
Bert Belder
|
05bad1e58b
|
sock: move poll cancellation to _ep_sock_cancel_poll()
|
2017-12-05 20:04:41 +01:00 |
|
Bert Belder
|
eecfb0e5e3
|
port: make ep_port_release_poll_group() signature consistent
|
2017-12-05 20:04:41 +01:00 |
|
Bert Belder
|
50f84cdc6b
|
port: refactor socket update queue
|
2017-12-05 20:04:35 +01:00 |
|
Bert Belder
|
e5a8d83c8b
|
api: epoll_ctl() to return ENOTSOCK when sock argument is not a socket
|
2017-12-05 05:02:57 +01:00 |
|
Bert Belder
|
4159a14364
|
afd: make afd_get_protocol() error reporting more accurate
|
2017-12-05 04:47:59 +01:00 |
|
Bert Belder
|
283aa5fe76
|
error: map ERROR_NOT_SUPPORTED to EPERM
|
2017-12-05 04:46:30 +01:00 |
|
Bert Belder
|
a2f6609d57
|
api: report EINVAL if epoll_wait() is called with invalid maxevents
|
2017-12-04 23:21:39 +01:00 |
|
Bert Belder
|
11d7a0395f
|
api: report EINVAL when ephnd is a valid handle but not an epoll instance
|
2017-12-04 21:04:58 +01:00 |
|