Bert Belder
f813598587
src,test: use consistent naming style for private names
2018-06-06 11:37:43 -07:00
Bert Belder
613a821a30
src: rename/remove macros that clang says have reserved names
2018-05-17 01:31:28 -07:00
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
dfeefa8780
error: remove error mapping for ERROR_DEVICE_FEATURE_NOT_SUPPORTED
2018-05-02 03:36:23 +02:00
Bert Belder
47497ee19d
ws: report the correct error when WSAStartup() fails
2018-03-09 00:42:30 +01: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
b5864f3a0f
afd: report EPERM+ERROR_DEVICE_FEATURE_NOT_SUPPORTED for non-afd sockets
2017-12-07 18:01:49 +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
283aa5fe76
error: map ERROR_NOT_SUPPORTED to EPERM
2017-12-05 04:46:30 +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
dc1369886d
error: map ERROR_*_SYSTEM_RESOURCES to ENOMEM
2017-12-04 20:06:39 +01:00
Bert Belder
63d3e3b2bc
src: merge ntstatus.h into nt.h
2017-12-03 18:58:43 +01: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
07b5e727a3
error: avoid clang signed/unsigned comparison warning
2017-09-10 20:40:42 +02:00
Bert Belder
89099e3103
src: major refactor
2017-09-10 20:39:19 +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
e910b2bc72
src: include windows headers in a central location
2017-09-03 20:55:37 +02:00
Bert Belder
22f02b1e01
src: add facility for mapping between ntstatus, win(sock), c errors
2017-09-03 18:59:06 +02:00