Commit Graph

1025 Commits

Author SHA1 Message Date
Igor Zinkovsky
08a5546753 windows: return UV_FILE for non-console FILE_TYPE_CHAR 2011-11-17 15:36:34 -08:00
Ryan Dahl
2007eb813d Set uv_write_t errno correctly
Fixes #206.
2011-11-16 13:02:18 -08:00
Ryan Dahl
4ae40b6a3f Bump version to v0.6 2011-11-14 16:14:10 -08:00
Ben Noordhuis
62d15a1e62 Update AUTHORS and .mailmap 2011-11-13 20:02:46 +01:00
Frank Denis
89ea3be6c2 Add support for DragonFly BSD by sharing code for FreeBSD. 2011-11-13 19:46:24 +01:00
Frank Denis
93faeb2189 Fix typo that broke libuv on NetBSD: psysconf() -> sysconf() 2011-11-13 19:42:57 +01:00
Ben Noordhuis
d4bfcc28c8 bench: fix compiler warnings 2011-11-11 18:52:34 +01:00
Ben Noordhuis
e2a794e346 test: remove dead code 2011-11-11 18:52:04 +01:00
Frank Denis
9322dd1724 Use (void) for a function taking no arguments - fix gcc -Wstrict-prototypes 2011-11-10 22:55:06 +01:00
Ben Noordhuis
224584c53e sunos: check that event ports supports fs watching 2011-11-10 20:04:55 +01:00
Ben Noordhuis
26806e2b1c sunos: add getaddrinfo() compatibility hack
getaddrinfo() returns EAI_MEMORY if strlen(hostname) >= MAXHOSTNAMELEN
2011-11-10 16:39:03 +00:00
Ben Noordhuis
04dfd46349 unix: remove unused uv__translate_lib_error() function 2011-11-10 15:26:12 +00:00
Ben Noordhuis
61ef8cc962 freebsd: remove unused variables 2011-11-10 13:57:58 +01:00
Ben Noordhuis
4889644301 Fix warning: comma at end of enumerator list 2011-11-10 11:37:08 +01:00
Ryan Dahl
6d5ba42436 Remove unnecessary errno 2011-11-09 18:07:13 -08:00
Ryan Dahl
808bb8ed0b Shared uv_strerror 2011-11-09 18:06:49 -08:00
Ryan Dahl
fd2b04d784 Alternative errno strategy 2011-11-09 17:47:24 -08:00
Igor Zinkovsky
f17d4837a8 windows: turn WSAECONNABORTED from WSARecv to UV_ECONNRESET 2011-11-09 14:57:41 -08:00
Ben Noordhuis
4794c12f58 linux: fall back to traditional syscalls if necessary
libuv uses feature checks to determine if newer syscalls like pipe2() are
available. This works fine until someone compiles libuv against kernel headers
that are newer than the actual kernel our software runs on.

Fall back to traditional (but race-y!) syscalls when the kernel reports ENOSYS
or EINVAL.
2011-11-09 15:38:51 +01:00
Igor Zinkovsky
942c68b80e windows: fix utf16->utf8 conversion in uv_fs_readdir 2011-11-08 19:23:30 -08:00
Ryan Dahl
196e14528f Map UV_ESRCH in uv_err_name 2011-11-08 16:59:05 -08:00
Bert Belder
2b7774ae49 Windows: return UV_ESRCH from uv_kill 2011-11-09 01:48:04 +01:00
Tj Holowaychuk
a378110f9e Add UV_ESRCH
Fixes #239.
2011-11-08 16:36:20 -08:00
Ryan Dahl
b7da0a69bf Add uv__new_artificial_error() 2011-11-08 15:11:16 -08:00
Igor Zinkovsky
f1859eb841 windows: convert WSAECONNABORTED to EOF 2011-11-07 16:53:27 -08:00
Ben Noordhuis
51df5e3b00 unix: map EISDIR 2011-11-07 09:20:54 +01:00
Ben Noordhuis
16d48befba win: add uv_loop_new() and uv_loop_delete() stubs 2011-11-06 04:08:43 +01:00
Ben Noordhuis
7b973eb4ad Fix uv_loop_new() and uv_default_loop() function prototypes. 2011-11-06 04:04:32 +01:00
Ben Noordhuis
c468e2ab88 test: fix memory buffer comparison 2011-11-05 03:09:12 +01:00
Ben Noordhuis
9dc67f5e61 test: don't use _O_RDWR, windows-ism 2011-11-05 03:07:36 +01:00
Ben Noordhuis
cee56c96f8 unix: unbreak linux build, broken in 1997e10 2011-11-05 02:58:48 +01:00
Bert Belder
1997e10b50 Add flags to uv_fs_event_init 2011-11-05 01:42:08 +01:00
Igor Zinkovsky
faca1402ef make uv_pipe_connect return void 2011-11-04 16:06:53 -07:00
Igor Zinkovsky
82cf0b38c0 windows: remove quotes from PATH in uv_spawn 2011-11-04 15:08:53 -07:00
Igor Zinkovsky
fe97c4dc63 windows: honor O_APPEND in uv_fs_open 2011-11-04 12:41:23 -07:00
saghul
677bb70bfb Added missing error codes to uv_err_name 2011-11-04 05:37:56 +01:00
Ryan Dahl
9c7ed0dad0 One more EACCESS -> EACCES 2011-11-03 16:30:19 -07:00
Ryan Dahl
681bd290e6 UV_EACCESS -> UV_EACCES
In order to match existing Node API. See
https://github.com/joyent/node/pull/2001
2011-11-03 16:17:12 -07:00
Ryan Dahl
147487afe6 UNIX: Error map ENOTSOCK 2011-11-03 16:08:58 -07:00
Ryan Dahl
0698e3f905 Fix UNIX pipe connect error reporting, add test 2011-11-03 15:47:43 -07:00
Igor Zinkovsky
ee8a681ace windows: uv_kill and uv_process_kill to terminate the process on SIGINT 2011-11-03 14:03:42 -07:00
Carter Allen
1393ee7d26 build: remove hard-coded GCC_VERSION setting (OS X/XCode) 2011-11-03 12:19:34 +01:00
Igor Zinkovsky
0fb3769586 windows: don't emit fs-event callback after uv_fs_event handle is closed 2011-11-02 19:10:04 -07:00
Ben Noordhuis
77a2477c3f unix: add EAI_NODATA #ifdef guard, freebsd doesn't have it 2011-11-03 02:38:31 +01:00
Ryan Dahl
e1bee05ecd UNIX: Loop on blocking streams
Also removes a superfluous syscall during uv_tty_init for writable TTY
streams.
2011-11-02 16:47:01 -07:00
Igor Zinkovsky
74b49e821b uv_kill 2011-11-02 14:34:07 -07:00
Ben Noordhuis
8d5c64adf5 unix: map EAFNOSUPPORT error code 2011-11-02 17:20:00 +01:00
Igor Zinkovsky
7a53924aed windows: call SetErrorMode on startup to ask the system not to handle critical errors 2011-11-01 15:36:04 -07:00
Igor Zinkovsky
90b0b7d099 windows: increase the number of OVERLAPPED_ENTRYs passed to GetQueuedCompletionStatusEx 2011-11-01 10:27:46 -07:00
Igor Zinkovsky
9c6103a479 windows: add tests for uv_tcp_simultaneous_accepts 2011-11-01 01:13:13 -07:00