4ba03ddd | 16-Jan-2013 |
Ben Noordhuis |
unix, windows: rename uv_run2 to uv_run This changes the prototype of uv_run() from: int uv_run(uv_loop_t* loop); To: int uv_run(uv_loop_t* loop, uv_run_mode m
unix, windows: rename uv_run2 to uv_run This changes the prototype of uv_run() from: int uv_run(uv_loop_t* loop); To: int uv_run(uv_loop_t* loop, uv_run_mode mode); Where `mode` is UV_RUN_DEFAULT, UV_RUN_ONCE or UV_RUN_NOWAIT. Fixes #683.
show more ...
|
4cbd5c7b | 15-Jan-2013 |
Ben Noordhuis |
test: remove bad tcp_write_error test It makes the assumption that if you try to write to a localhost socket often enough, eventually its send queue will fill up - which doesn't happ
test: remove bad tcp_write_error test It makes the assumption that if you try to write to a localhost socket often enough, eventually its send queue will fill up - which doesn't happen if the machine it's running on is fast enough.
show more ...
|
768b5246 | 14-Jan-2013 |
Ben Noordhuis |
unix: make stream.c more DRY |
c931e317 | 14-Jan-2013 |
Ben Noordhuis |
unix: make assertion message more descriptive |
8e3e60ff | 12-Jan-2013 |
Ben Noordhuis |
linux: only pack struct uv__epoll_event on x86_64 On i386, it does not need packing; it's 12 bytes packed or unpacked. On ARM, it's actively harmful: the struct is 12 bytes when pac
linux: only pack struct uv__epoll_event on x86_64 On i386, it does not need packing; it's 12 bytes packed or unpacked. On ARM, it's actively harmful: the struct is 12 bytes when packed and 16 bytes when unpacked.
show more ...
|
9cd9bd33 | 12-Jan-2013 |
Ben Noordhuis |
build: fix host/target arch detection Setting the target_arch without setting the host_arch as well was effectively broken. |
Revision tags: node-v0.9.6 |
|
9aab5d48 | 11-Jan-2013 |
Ben Noordhuis |
Revert "unix: improve uv_guess_handle() implementation" This reverts commit 98bcddc8dddb4b85425d846f546e81e8ccf633f8. It's making a lot of tests in the node.js test suite fail. |
fc42885d | 11-Jan-2013 |
Ben Noordhuis |
unix: set closed fd to -1, avoid double close bugs * abort() if close() fails * set fd to -1 after close() to prevent double close bugs |
2ec2a519 | 11-Jan-2013 |
Ben Noordhuis |
unix: clean up code in process.c |
6f679a4f | 11-Jan-2013 |
Ben Noordhuis |
unix: don't swap stdin file descriptors Bug introduced in 47f496a. It turns out the file descriptors of the stdin pipe don't have to be swapped around. |
2cecd0d3 | 10-Jan-2013 |
Bruce Mitchener |
include: fix typos in comments |
80f6a9c6 | 10-Jan-2013 |
Ben Noordhuis |
unix: omit second fcntl() call if possible Omit the fcntl() syscall when the O_NONBLOCK or FD_CLOEXEC is already set/clear because it's a no-op in that case. |
9eedd32e | 09-Jan-2013 |
Ben Noordhuis |
build: make clean target remove libuv.{a,so,dylib} |
bc0c61cd | 20-Dec-2012 |
Tim Bradshaw |
linux: ensure that all CPUs have model information |
Revision tags: node-v0.9.4, node-v0.8.17 |
|
98bcddc8 | 09-Dec-2012 |
Ben Leslie |
unix: improve uv_guess_handle() implementation uv_guess_handle is currently squelching both fifo and all sockets on to the UV_NAMED_PIPE type. Rather than treating all sockets as UV_
unix: improve uv_guess_handle() implementation uv_guess_handle is currently squelching both fifo and all sockets on to the UV_NAMED_PIPE type. Rather than treating all sockets as UV_NAMED_PIPE, use getsockopt() and getsockaddr() to determine if the socket is an AF_UNIX stream (in which case return UV_NAMED_PIPE), or an AF_INET stream (in which case return UV_TCP), or an AF_INET datagram socket (in which case return UV_UDP). Additionally, currently all other file descriptor types are squelched to the UV_FILE type. Instead, only file descriptors that are marked as regular files are treated as UV_FILE. All other types (such as directories, character and block devices) are now treated as UV_UNKNOWN_HANDLE.
show more ...
|
cb3c448d | 07-Jan-2013 |
Ben Noordhuis |
unix: fix GNU-ism introduced in edd1007 Don't use features.h, it's only available on GNU/glibc systems. |
f24335d4 | 06-Jan-2013 |
Ben Noordhuis |
test: fix #if defined checks Same as edd1007 but this time for the tests. |
fb725c08 | 06-Jan-2013 |
Ben Noordhuis |
test: simplify tcp_ref2b Said test doesn't need its own close callback, it can piggyback on the common close callback. |
ccb96b67 | 06-Jan-2013 |
Ben Noordhuis |
test: remove unused function declaration |
847182cd | 06-Jan-2013 |
Ben Noordhuis |
test, bench: make functions/variables static Make functions and variables that are local to the compilation unit static. Remove what turns out to be unused. |
7ff6f29b | 06-Jan-2013 |
Ben Noordhuis |
test, bench: ANSI-fy function prototypes Replace `void f()` with `void f(void)`; the former means "a function that takes any number of arguments, including none" while the latter is
test, bench: ANSI-fy function prototypes Replace `void f()` with `void f(void)`; the former means "a function that takes any number of arguments, including none" while the latter is what is actually intended: a function taking no arguments. The first form also isn't strictly conforming ANSI/ISO C.
show more ...
|
fa9c577e | 06-Jan-2013 |
Ben Noordhuis |
linux: fix race in uv_resident_set_memory() uv_resident_set_memory() used a global buffer to read data into, which is a decidedly unsafe thing to do in a multi-threaded environment. |
5b632858 | 06-Jan-2013 |
Ben Noordhuis |
unix, windows: ANSI-fy uv_tty_reset_mode() prototype |
edd10071 | 06-Jan-2013 |
Ben Noordhuis |
unix: fix up #if defined checks `#if FOO` (where FOO is undefined) is a legal construct in C89 and C99 but gcc, clang and sparse complain loudly about it at higher warning levels.
unix: fix up #if defined checks `#if FOO` (where FOO is undefined) is a legal construct in C89 and C99 but gcc, clang and sparse complain loudly about it at higher warning levels. Squelch those warnings. Makes the code more consistent as well.
show more ...
|
e62dd3ca | 06-Jan-2013 |
Ben Noordhuis |
unix: fix include in cygwin.c |