108 Commits

Author SHA1 Message Date
Bert Belder
6cb8c37efd doc: fix LICENSE copypasta, switch to BSD 2-clause 2017-09-10 20:49:53 +02:00
Bert Belder
d06696ee78 tree: remove RB_AUGMENT calls 2017-09-10 20:40:44 +02:00
Bert Belder
d36adf242a socket: simplify update queue management 2017-09-10 20:40:44 +02:00
Bert Belder
ddb39a9ab6 queue: add QUEUE_ENQUEUED() to determine if an element is in a queue 2017-09-10 20:40:44 +02:00
Bert Belder
dfab856583 queue: rename QUEUE_ADD to QUEUE_MERGE
The old name was really confusing.
2017-09-10 20:40:44 +02:00
Bert Belder
e64b96542e queue: prefix private macros with underscore 2017-09-10 20:40:44 +02:00
Bert Belder
2b3fddafd1 util: add unused() macro 2017-09-10 20:40:44 +02:00
Bert Belder
bbe28c8729 socket: separate public from private ep_sock_t fields 2017-09-10 20:40:44 +02:00
Bert Belder
8a09e0dbe0 build: disable msvc 'function not inlined' warning 2017-09-10 20:40:43 +02:00
Bert Belder
0534ee9077 all-in-one: format source code 2017-09-10 20:40:43 +02:00
Bert Belder
6e1e6fc83e all-in-one: strip include guards from header files 2017-09-10 20:40:43 +02:00
Bert Belder
8ae1c70dc7 clang-format: add style for formatting javascript source 2017-09-10 20:40:43 +02:00
Bert Belder
9bfda64ef3 build: enable more msvc warnings 2017-09-10 20:40:43 +02:00
Bert Belder
9061004ca2 epoll: make assignment in conditional expression palatable to msvc 2017-09-10 20:40:43 +02:00
Bert Belder
2a15b3a371 epoll: fix logic error in epoll_wait() timeout recomputation 2017-09-10 20:40:43 +02:00
Bert Belder
e36129b91b handle-tree: fix potential integer overflow in _handle_tree_compare 2017-09-10 20:40:42 +02:00
Bert Belder
c1e99cb100 handle-tree: avoid clang incomplete initializer warning 2017-09-10 20:40:42 +02:00
Bert Belder
07b5e727a3 error: avoid clang signed/unsigned comparison warning 2017-09-10 20:40:42 +02:00
Bert Belder
0ac3c921bd src: decorate internal APIs with EPOLL_INTERNAL 2017-09-10 20:40:42 +02:00
Bert Belder
8a3daba2ce all-in-one: basic support for building an all-in-one c file 2017-09-10 20:39:49 +02:00
Bert Belder
3d1bae5073 epoll: move the socket lookup tree to it's own file 2017-09-10 20:39:49 +02:00
Bert Belder
0d941fd52a epoll: split out socket related code 2017-09-10 20:39:42 +02:00
Bert Belder
1a8c20ef36 tree.h: remove splay 2017-09-10 20:39:42 +02:00
Bert Belder
91069b2271 epoll: split out poll request functions into poll-request.[ch] 2017-09-10 20:39:36 +02:00
Bert Belder
89099e3103 src: major refactor 2017-09-10 20:39:19 +02:00
Bert Belder
67265bf826 epoll.c: move epoll_create() implementation further down 2017-09-10 20:39:18 +02:00
Bert Belder
37a36ea741 epoll: mark local functions static 2017-09-10 20:39:18 +02:00
Bert Belder
b0586e2fe7 epoll: factor out _ep_get_related_sockets() 2017-09-10 20:39:18 +02:00
Bert Belder
ee6ba5e849 epoll: move smaller _ep_sock_data fields to the bottom 2017-09-10 20:39:18 +02:00
Bert Belder
667b9a4b1d epoll: use epoll_data_t for per-socket user data field 2017-09-10 20:39:18 +02:00
Bert Belder
196e807223 epoll: remove free_io_req logic 2017-09-10 20:39:11 +02:00
Bert Belder
65d44c9d7e epoll: split up epoll_ctl() implementation 2017-09-04 09:33:16 +02:00
Bert Belder
7baf2c9e73 epoll: rename stuff again 2017-09-04 09:19:11 +02:00
Bert Belder
815e6faf0a tree: remove CONSTCOND tags 2017-09-04 08:59:57 +02:00
Bert Belder
620a2108a2 afd: add IrDA provider guid 2017-09-04 07:58:13 +02:00
Bert Belder
8808304888 afd: rename and restyle msafd provider guid list, add labels 2017-09-04 07:56:52 +02:00
Bert Belder
5e93699a41 nt: do not re-load ntdll.dll
It's loaded into every process anyway.
2017-09-04 07:30:37 +02:00
Bert Belder
52dbb3f2a2 epoll: use container_of() instead of CONTAINING_RECORD() 2017-09-04 07:27:28 +02:00
Bert Belder
45afb2268e util: add container_of() macro 2017-09-04 07:27:11 +02:00
Bert Belder
0cd8b52b18 src: use int foo(void) for functions that don't take parameters 2017-09-04 07:20:59 +02:00
Bert Belder
2cd69e976a epoll: return proper (windows+errno) error codes 2017-09-04 07:20:59 +02:00
Bert Belder
1949b8f044 afd: use windows (and not winsock) error codes 2017-09-04 07:20:59 +02:00
Bert Belder
e967c93dad error: add return_error() and return_success() helper macros 2017-09-04 07:20:58 +02:00
Bert Belder
f353ab429e error: add we_set_win_error() and we_clear_win_error() apis 2017-09-04 06:37:17 +02:00
Bert Belder
d7586179eb error: redo and simplify error mapping functions 2017-09-04 06:37:13 +02:00
Bert Belder
e37ee111b1 error: slim down the error map 2017-09-04 05:50:53 +02:00
Bert Belder
e06d6555f6 nt: dynamically import RtlNtStatusToDosError 2017-09-04 05:08:38 +02:00
Bert Belder
6a92d5e905 nt: put parentheses around parameter list in X macro 2017-09-04 05:07:25 +02:00
Bert Belder
8520557b03 style: remove _s suffix from struct names 2017-09-04 00:48:28 +02:00
Bert Belder
e7673137be util: s/ARRAY_COUNT/array_count/ 2017-09-04 00:37:28 +02:00