Ben Noordhuis
3f910a0196
unix, windows: map EHOSTDOWN errno
...
Fixes: https://github.com/libuv/libuv/issues/195
PR-URL: https://github.com/libuv/libuv/pull/212
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
2015-02-19 15:38:12 +01:00
Saúl Ibarra Corretgé
02e1ebd40b
include: remove unneeded EADDRINFO errno
...
EADDRINFO is not a readl errno, it was used to signal any error that
getaddrinfo would return, but we return actual errors now.
2014-08-07 21:24:55 +02:00
Saúl Ibarra Corretgé
a098ac66dd
unix, windows: return system error on EAI_SYSTEM
2014-06-16 10:09:45 +02:00
Fedor Indutny
7d5ac7b9cc
Merge branch 'v0.10'
...
Conflicts:
include/uv.h
src/unix/error.c
2014-04-03 17:04:32 +04:00
Fedor Indutny
9aa48312bc
Merge remote-tracking branch 'origin/v0.10'
...
Conflicts:
AUTHORS
ChangeLog
include/uv.h
src/unix/error.c
src/unix/process.c
src/version.c
2014-03-06 20:45:15 +04:00
Saúl Ibarra Corretgé
2f58bb6018
unix, windows: map ERANGE errno
2014-02-25 09:51:44 +01:00
Fedor Indutny
aaaefe32ca
errno: add ETXTBSY
...
Add `ETXTBSY` which could be returned by file system reads on some
unixes and emulate it with -148 (`ERROR_PATH_BUSY`) on windows.
2014-02-24 15:41:17 +04:00
Saúl Ibarra Corretgé
4a023fc078
unix, windows: map ENOPROTOOPT errno
...
Fixes #1143
2014-02-24 09:19:12 +01:00
Saúl Ibarra Corretgé
107be2bed3
unix, windows: map EFBIG errno
2014-02-14 17:03:19 +01:00
Steven Kabbes
dbe9905799
libuv: add more getaddrinfo errors
2013-11-25 00:53:07 +01:00
Ben Noordhuis
f2ab62ec10
include: add E2BIG status code mapping
...
Forgotten in commit 3ee4d3f . Add it now and renumber the other status
codes. The Windows status code mappings may not be exhaustive.
Fixes #959 .
2013-10-20 14:00:29 +02:00
Ben Noordhuis
3ee4d3f183
unix, windows: return error codes directly
...
This commit changes the libuv API to return error codes directly rather
than storing them in a loop-global field.
A code snippet like this one:
if (uv_foo(loop) < 0) {
uv_err_t err = uv_last_error(loop);
fprintf(stderr, "%s\n", uv_strerror(err));
}
Should be rewritten like this:
int err = uv_foo(loop);
if (err < 0)
fprintf(stderr, "%s\n", uv_strerror(err));
The rationale for this change is that it should make creating bindings
for other languages a lot easier: dealing with struct return values is
painful with most FFIs and often downright buggy.
2013-07-07 09:51:00 +02:00