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
Ben Noordhuis
99748250f2
unix: link to libkvm on freebsd
...
Fixes 'undefined reference' linker errors to kvm_open(), kvm_close(), etc.
2011-09-28 00:57:20 +02:00
Ben Noordhuis
c89a75f5a2
unix: fix compiler warning in kqueue.c, tcp.c, udp.c
...
Include <unistd.h>, it contains the definition of close().
2011-09-28 00:57:20 +02:00
Ben Noordhuis
ceff85dcfb
unix: fix compile error in freebsd.c
...
Fixes joyent/node#2606 .
2011-09-28 00:57:20 +02:00
Ben Noordhuis
9db39bb7bd
unix: don't use C99 comments in C89 source
2011-09-28 00:57:19 +02:00
Ben Noordhuis
1cca230d76
Merge remote-tracking branch 'origin/v0.6'
2012-01-23 13:27:47 +01:00
Ben Noordhuis
517bfc8902
Merge branch 'v0.6'
2012-01-19 16:22:21 +01:00
Ben Noordhuis
454e0212b0
unix: clean up udp read/write watchers
2012-01-18 20:19:59 +01:00
Ben Noordhuis
28b0867f03
unix: clean up udp shutdown sequence
2012-01-18 20:18:57 +01:00
Ben Noordhuis
ee10cb77bd
unix: use container_of() instead of w->data
2012-01-18 19:34:22 +01:00
Ben Noordhuis
dd7e6f0163
test: don't use malloc/free in test-timer
2012-01-18 19:00:55 +01:00
Ben Noordhuis
6ede034a7e
test: #include missing <string.h>
2012-01-18 15:56:43 +01:00
Ben Noordhuis
1161d31aea
test: move container_of() macro into task.h
2012-01-18 15:56:40 +01:00
Ben Noordhuis
fbbc085448
Rename COUNTOF() to ARRAY_SIZE().
...
Consistent with Node, it has an ARRAY_SIZE() macro but not COUNTOF().
2012-01-18 15:48:31 +01:00
Ben Noordhuis
dee86dd5b0
unix: don't retry close() on EINTR
...
Linux 2.6 always closes the file descriptor, even on EINTR. Retrying the close()
call isn't merely useless, it's actively harmful - the file descriptor may have
been acquired by another thread.
2012-01-18 15:06:30 +01:00
Igor Zinkovsky
52511b9ddc
windows: implement uv_loop_new+uv_loop_delete
2012-01-16 17:07:49 -08:00
Igor Zinkovsky
f5bd21f181
conform to ANSI C
2012-01-16 13:52:45 -08:00
Ben Noordhuis
71f6c0edb8
Merge remote-tracking branch 'origin/v0.6'
...
Conflicts:
src/win/util.c
2012-01-16 18:07:49 +01:00
Fedor Indutny
e7758e126f
unix: remove eio_set_max_poll_reqs
...
* added test
2012-01-16 14:49:13 +01:00
Igor Zinkovsky
26512731e3
remove uv_thread_self
2012-01-13 17:24:30 -08:00
Igor Zinkovsky
94a5c7b002
fix warnings in windows build
2012-01-11 18:12:51 -08:00
Daisuke Murase
e8494dddc0
unix: use EVRUN_ONCE in uv_run_once()
...
EVRUN_NOWAIT means "poll and don't block". Use EVRUN_ONCE instead, "wait for
single event".
2012-01-11 10:15:25 +01:00
Ryan Dahl
51ea46de45
Merge remote branch 'origin/v0.6'
2012-01-09 11:31:13 -08:00
Ryan Dahl
4ad33e9748
Revert "Add uv_pipe_pair for communication between threads"
...
Not needed. We took a different approach for isolates.
This reverts commit 5cc6090fdf .
2012-01-09 11:22:46 -08:00
Ryan Dahl
5cc6090fdf
Add uv_pipe_pair for communication between threads
...
This is only the Unix implementation and test.
2011-12-29 22:41:08 -08:00
Ryan Dahl
3dd4ecb493
unix: expose uv__make_socketpair, uv__make_pipe in unix/internal.h
2011-12-29 22:37:33 -08:00
Ben Noordhuis
0db56ea41a
windows: implement uv_thread_self()
2011-12-29 01:40:49 +01:00
Ben Noordhuis
85f6b7952b
Fix Windows build, uv_eio_channel is Unix only.
2011-12-28 14:42:46 +01:00
Ben Noordhuis
d6a06b8689
test: eio callbacks should run in their owning threads
2011-12-22 03:42:54 +01:00
Ben Noordhuis
271aa1806c
unix: eio_init() is not thread-safe, run atomically
2011-12-22 03:38:34 +01:00