Commit Graph

882 Commits

Author SHA1 Message Date
Ben Noordhuis
c7870465aa error reporting: return sensible messages for synthetic errors 2011-10-06 01:17:46 +02:00
Erick Tryzelaar
0303197a57 win: unify uv_{tcp,udp}_set_socket.
Fixes #205.
2011-10-04 16:48:19 -07:00
Erick Tryzelaar
4c329060ca unix,win: Start unifying shared bind code. 2011-10-04 16:46:39 -07:00
Erick Tryzelaar
85368e8d45 unix,win: Start unifying shared tcp connect code. 2011-10-04 16:46:39 -07:00
Erick Tryzelaar
e3f2631127 unix: bad connect addresses should error with EINVAL 2011-10-04 16:46:39 -07:00
Erick Tryzelaar
65fa8873f7 win: Fix error message. 2011-10-04 16:46:39 -07:00
Ryan Dahl
b590e12148 Fix darwin build 2011-10-04 16:44:36 -07:00
Ben Noordhuis
8e9a3384c9 unix: implement kqueue file watcher API
kqueue fds are not embeddable into other pollsets (select, poll, kqueue).
Hack the libev event loop to receive kqueue events with filter flags intact.
2011-10-04 23:28:36 +02:00
Fedor Indutny
a35591bbfc os: implement loadavg (not working on cygwin/win) 2011-10-04 18:15:14 +02:00
Fedor Indutny
33cb8775bc os: implement memory bindings
* us_get_free_memory
* us_get_total_memory
2011-10-04 18:10:35 +02:00
Ben Noordhuis
6221904013 sunos: fix gyp build 2011-10-02 00:14:44 +00:00
Ben Noordhuis
914a6fa241 sunos: pull in uv__set_sys_error prototype 2011-10-01 22:43:47 +00:00
Ryan Dahl
fe18438416 add uv_tty_reset_mode() 2011-09-30 13:09:06 -07:00
Ryan Dahl
153d3c7c57 unix: allow tty raw mode to be turned off 2011-09-30 11:21:51 -07:00
Ben Noordhuis
e53d125d5c Update AUTHORS and .mailmap 2011-09-29 15:39:57 +02:00
saghul
b594dba248 unix: fix memcpy when copying hints on uv_getaddrinfo 2011-09-29 15:32:26 +02:00
Igor Zinkovsky
c9ae7a6f95 windows: don't strip the trailing slash from filename if it follows a device name 2011-09-28 12:59:39 -07:00
Igor Zinkovsky
4fb120f649 windows: fix error reporting for uv_fs_ functions 2011-09-28 12:46:37 -07:00
Igor Zinkovsky
e7a53aed48 fix windows build 2011-09-28 11:52:08 -07:00
Erick Tryzelaar
23796d208c Fixes #76. Unify OS error reporting
As a nice fringe benefit, this also shaves a word
off of a windows TCP handle by replacing "uv_err_t
bind_error" with "int bind_error".
2011-09-27 19:05:33 -07:00
Erick Tryzelaar
1d7e61fafa unix,win: Check bind receives right socket type 2011-09-27 19:05:33 -07:00
Erick Tryzelaar
c260a39645 unix,win: Check connect receives right socket type 2011-09-27 19:05:33 -07:00
Erick Tryzelaar
17d4686bad win: Actually exit if uv_udp_bind only wants IPv6. 2011-09-27 19:05:33 -07:00
Erick Tryzelaar
efa720d1ba win: Removing uv_udp_connect6
This function isn't exposed or used internally. Nor
is there a windows implementation for IPv4, or
unix implementation for IPv4 or IPv6.

However, sockets do support UDP connections (which
just let you use send/recv instead of
sendto/recvfrom), so as an alternative, we could
add support for uv_udp_connect* for all OSs.
2011-09-27 19:05:33 -07:00
Bert Belder
14cdc80a05 win tty: Fix typo 2011-09-28 03:43:28 +02:00
Bert Belder
1d3b880e2f Add uv_tty_t size to benchmark-sizes 2011-09-28 03:43:28 +02:00
Igor Zinkovsky
9b5dfd1a1e fix mingw build 2011-09-27 16:45:52 -07:00
Igor Zinkovsky
a1f98d55b1 fix c-ares on windows 2011-09-27 16:09:57 -07:00
Ben Noordhuis
2e4eca3b5e c-ares: upgrade to 1.7.5 2011-09-27 16:04:25 -07:00
Ryan Dahl
10c5293cae Update list of supported features 2011-09-27 13:24:51 -07:00
Bert Belder
2c0fca9a41 win: Fix crash when calling uv_close from shutdown callback 2011-09-27 19:12:40 +02:00
Bert Belder
bdac72cc93 win tty: Implement uv_close and uv_shutdown 2011-09-27 19:12:39 +02:00
Bert Belder
554cb78eeb win tty: Use NULL consistently, don't mix with INVALID_HANDLE_VALUE 2011-09-27 19:12:33 +02:00
Bert Belder
f5f005d51d tty-win: fix absolute cursor positioning 2011-09-27 16:10:38 +02:00
Bert Belder
b0a9d601c8 win: tty fixes 2011-09-27 12:41:38 +02:00
Bert Belder
8f563e2963 Revert c-ares upgrade and includes fix
It broke the windows build.
This reverts commit 083c97e28b and commit b288afdf14.
2011-09-27 12:39:55 +02:00
Ryan Dahl
2ebb2272c3 Add tcp reference count tests 2011-09-26 22:51:08 -07:00
Ryan Dahl
3e5aa06c49 Add two timer ref count tests 2011-09-26 22:01:21 -07:00
Ryan Dahl
2c0179197f Make libev verify itself in debug build 2011-09-26 21:07:05 -07:00
Ben Noordhuis
9673abeab5 unix: fix pointer ownership bug
libuv realloc'd a pointer that belonged to and was later freed by libev.
2011-09-27 01:02:44 +02:00
Igor Zinkovsky
f6a365ed91 fix tcp_write_error for windows 2011-09-26 14:39:02 -07:00
Ben Noordhuis
b288afdf14 common: fix includes
Don't rely on c-ares to pull in the headers for inet_addr, net_pton and
inet_ntop. c-ares 1.7.4 did but 1.7.5 does not.
2011-09-26 22:41:17 +02:00
Ben Noordhuis
083c97e28b c-ares: upgrade to 1.7.5 2011-09-26 22:41:17 +02:00
Bert Belder
622eb99113 win: implement tty
loose end: line-buffered input reads ascii, not unicode
2011-09-26 19:31:32 +02:00
Bert Belder
77bc00e9ad win: uv_pipe_queue_read should set read_pending flag 2011-09-25 04:09:25 +02:00
Bert Belder
985f1a1b2d cleanup 2011-09-25 04:09:21 +02:00
Ben Noordhuis
d31a57dc78 unix: fix NULL pointer dereference 2011-09-25 02:53:27 +02:00
Ben Noordhuis
01441ab02f unix: fix close() of potentially uninitialized fd 2011-09-25 02:49:21 +02:00
Ben Noordhuis
8f617b93bc unix: darwin < 10.6 does not have fdatasync, use fsync 2011-09-24 05:20:07 +02:00
Ryan Dahl
3ca382be74 One more README cleanup' 2011-09-23 11:29:31 -07:00