19 Commits

Author SHA1 Message Date
Bert Belder
3e3251e0d9
error: break up return_error() macro into two non-variadic macros
This prevents clang 6.x from emitting a
gnu-zero-variadic-macro-arguments warning.
2018-05-17 01:31:21 -07:00
Bert Belder
e3c63df748
error: make err_map_win_error_to_errno() a static function 2018-05-17 01:31:20 -07:00
Bert Belder
c3506ab046
error: remove unnecessary include from error.h 2018-05-03 14:40:51 +02:00
Bert Belder
7dcc3d5eab error: remove return_handle_error() and helpers 2017-12-07 22:06:11 +01:00
Bert Belder
d448bdf8d8 error: make err_check_handle() an internal api 2017-12-07 21:37:58 +01:00
Bert Belder
d83871797c error: add return_handle_error(value, handle, [error]) macro
This macro validates that `handle` is valid. If `handle` is valid, it
behaves just like `return_error(value, [error])`. If `handle` is
invalid, it sets errno to EBADF and GetLastError() returns
ERROR_INVALID_HANDLE.
2017-12-04 21:00:44 +01:00
Bert Belder
63d3e3b2bc src: merge ntstatus.h into nt.h 2017-12-03 18:58:43 +01:00
Bert Belder
2fc0bafb49 src: rename preprocessor constants 2017-11-21 15:04:37 +01:00
Bert Belder
955ca5d222 error: remove dead code from _return_error_helper() 2017-09-27 17:13:59 +02:00
Bert Belder
4eb7441254 error.h: place macros above function declarations 2017-09-27 17:13:59 +02:00
Bert Belder
01c82b9364 error: prefix internal APIs with 'err_' rather than 'we_' 2017-09-27 17:13:59 +02:00
Bert Belder
347ad5399e error: shrink the error-to-errno map 2017-09-27 17:13:54 +02:00
Bert Belder
562bf271df src: name header guard #defines consistently 2017-09-25 20:35:47 +02:00
Bert Belder
0ac3c921bd src: decorate internal APIs with EPOLL_INTERNAL 2017-09-10 20:40:42 +02:00
Bert Belder
89099e3103 src: major refactor 2017-09-10 20:39:19 +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
22f02b1e01 src: add facility for mapping between ntstatus, win(sock), c errors 2017-09-03 18:59:06 +02:00