Ben Noordhuis
7a2bd05493
Fix include guard in tree.h and ngx-queue.h
...
The C99 standard reserves all identifiers (including macros) that start with an
underscore and a capital letter.
Fixes #260 .
2012-03-15 02:23:22 +01:00
Ben Noordhuis
1b6df97690
linux: try inotify_init if inotify_init1 returns ENOSYS
...
The kernel may be older than the kernel headers that libuv is compiled against.
2012-03-15 01:01:21 +01:00
okuoku
db413f3806
win: Fix MinGW32 build
2012-03-12 02:24:50 +01:00
Ben Noordhuis
8c78cb40ff
unix: replace C99/C++ comments, fix build
2012-03-09 09:15:43 -08:00
Ben Noordhuis
e190162975
test: test cross-process handle send/recv
2012-03-09 09:12:53 -08:00
Ben Noordhuis
71eea07a95
unix: add support for receiving UNIX sockets
...
Until now, all received file descriptors were reported as being UV_TCP streams:
AF_INET/AF_INET6 sockets of type SOCK_STREAM.
This commit adds support for AF_UNIX/AF_FILE sockets (UV_NAMED_PIPE in libuv
nomenclature).
Support for UV_UDP handles (AF_INET/AF_INET6 sockets of type SOCK_DGRAM) still
needs to be implemented.
2012-03-09 09:12:51 -08:00
Bert Belder
8ffad48818
Make the thread_create benchmark not time out
2012-03-09 17:53:48 +01:00
Bert Belder
0d6aa2a2e5
Windows: output newline before output from passed tests
2012-03-09 17:15:00 +01:00
Bert Belder
18b37d4a49
Windows: fix compiler warnings
2012-03-09 17:04:26 +01:00
Bert Belder
019118c3ab
Windows: report UV_ENOTSOCK when we opened a file instead of a pipe
...
Makes the pipe_connect_to_file test pass on Windows.
2012-03-09 17:04:03 +01:00
Bert Belder
e99fba47c8
Merge remote-tracking branch 'origin/v0.6'
...
Conflicts:
src/win/pipe.c
test/run-tests.c
2012-03-09 16:41:12 +01:00
Bert Belder
5d21056277
Windows: make sure that shutdown_cb is always called
...
This patch changes how uv-win uses the UV_SHUTTING and UV_SHUT flags.
UV_SHUT is now only used for tcp handles to track whether shutdown() has
actually been called. UV_SHUTTING has the more generic meaning of
"no longer readable". It would be good to replace it by an actual
UV_READABLE flag in the future.
This makes the shutdown_close_tcp and shutdown_close_pipe tests pass on
windows.
2012-03-09 16:31:16 +01:00
Bert Belder
95296dfa3c
Windows: make the refcount tests pass
2012-03-09 16:31:15 +01:00
Bert Belder
18823270aa
Windows: fix connecting a pipe in the thread pool
...
The code didn't function. Fixes the pipe_pound benchmarks.
2012-03-09 16:31:15 +01:00
Bert Belder
3aa6069abf
Windows test runner: show process name instead of test name
...
If a test failed we would previously see:
Output from process `test_foo`: blah
Output from process `test_foo`: (nothing)
This commit changes it to:
Output from process `test_foo`: blah
Output from process `foo_helper`: (nothing)
2012-03-09 16:31:14 +01:00
Bert Belder
50216706c2
Test runner: fix compiler warnings
2012-03-09 16:31:13 +01:00
Bert Belder
f285caf0b5
Test counters_init: fix compiler warnings
2012-03-09 16:31:13 +01:00
Bert Belder
aafa7db1d4
Test benchmark_pound: fix compilation problem
2012-03-09 16:31:12 +01:00
Bert Belder
abc4f56ff0
Test chown_root: make it pass on windows
2012-03-09 16:31:11 +01:00
Bert Belder
09a0d61e7b
Test cwd_and_chdir: don't chdir to "" or "c:"
...
It should not strip the trailing (back)slash from a root directory.
2012-03-09 16:31:02 +01:00
Bert Belder
422a898a7f
Tests: verify that shutdown_cb is always called
2012-03-09 05:00:11 +01:00
Bert Belder
fb65d74c84
Tests: verify that uv_write and uv_shutdown ref the event loop
2012-03-09 05:00:11 +01:00
Bert Belder
ec97ba8014
Windows uv_fs_stat: cap st_nlink to SHRT_MAX
2012-03-09 05:00:10 +01:00
Bert Belder
87752ac38b
Fold trailing whitespace
2012-03-09 05:00:09 +01:00
Bert Belder
e53d7e3a11
Make test-tty pass with redirected stdio
2012-03-08 17:02:05 +01:00
Bert Belder
743cab9f9d
Test runner: avoid process_wait failure when the test process didn't start
2012-03-08 16:44:30 +01:00
Bert Belder
f43f1a7016
Windows: avoid uv_guess_handle crash in when fd < 0
...
Happens only when using a debug version of the crt.
2012-03-08 16:43:56 +01:00
Frank Denis
1c8cf617f9
windows: initialize ares handles list
...
We need to initialize the ares handles linked list or else bad things can happen
when we try to perform async lookups.
2012-03-08 15:12:23 +01:00
Bert Belder
2ef5798c6f
Merge remote-tracking branch 'origin/v0.6'
...
Conflicts:
src/unix/core.c
2012-03-08 03:22:10 +01:00
Bert Belder
1ac71a31e9
Map EBUSY and ENOTEMPTY errors
2012-03-07 21:26:37 +01:00
Brandon Philips
d07f2466d0
test: fs: add tests for read EOF
...
This fix was merged without tests:
https://github.com/philips/libuv/tree/fix-read-on-windows-to-handle-eof
So take tests from igorzi:
46024bf33d
2012-03-07 14:33:33 +01:00
Frank Denis
4f1782a54b
cygwin: we need to include uv-common.h for uv__set_sys_error()
2012-03-07 14:28:47 +01:00
Nathan Rajlich
5505f2e906
Fix typo in uv.h
2012-03-05 17:32:26 +01:00
Luis Lavena
5110465c42
build: add missing libs required to compile under MinGW
...
GetProcessMemoryInfo is in psapi and
GetAdaptersAddresses is in iphlpapi
2012-03-05 16:09:26 +01:00
Ben Noordhuis
a93dc7ef11
build: link against libdl on linux
2012-03-05 15:36:27 +01:00
Shigeki Ohtsu
b55801f225
win, unix: add uv_dlerror() and uv_dlerror_free()
2012-03-02 16:39:21 +01:00
Igor Zinkovsky
702f905f73
test: make pipe_connect_to_file succeed with ECONNREFUSED
2012-03-01 14:32:59 -08:00
Igor Zinkovsky
6bbccf1fe0
windows: return UV_ENOTSOCK when doing uv_pipe_connect to a file
2012-03-01 12:11:29 -08:00
Ben Noordhuis
b3fe183040
unix: fix fs_event refcount bug on darwin
...
The event loop got unref'd twice when the handle was closed.
2012-03-01 16:42:05 +01:00
Ben Noordhuis
44c9f63cb1
unix: don't rely on libev to track timer state
...
An obscure libev bug sometimes makes it miss state changes. Keep track of the
state ourselves.
Fixes joyent/node#2515 .
2012-03-01 16:41:58 +01:00
Ben Noordhuis
0459097745
unix: fix fs_event refcount bug on darwin
...
The event loop got unref'd twice when the handle was closed.
2012-02-29 15:55:54 +01:00
Ben Noordhuis
2f886c892e
unix: don't rely on libev to track timer state
...
An obscure libev bug sometimes makes it miss state changes. Keep track of the
state ourselves.
Fixes joyent/node#2515 .
2012-02-28 17:24:50 +01:00
Ben Noordhuis
ec0eff955e
Revert b3e0ad4, 149d32c, e99fdf0 and ea9baef.
...
Detaching doesn't work yet, the setsid() call fails and leaves the child process
attached to the parent's session.
Revert "test: Add test case for spawning detached child processes."
Revert "win: Implement options.detached for uv_spawn() for Windows."
Revert "unix: Implement options.detached for uv_spawn() for unix."
Revert "Add "detached" member to uv_process_options_t to denote whether a child
process should spawn detached from its parent."
This reverts commit ea9baef95c .
This reverts commit e99fdf0df6 .
This reverts commit 149d32cb96 .
This reverts commit b3e0ad4db8 .
2012-02-28 15:29:05 +01:00
Igor Zinkovsky
9a5c1bad90
windows: fix time conversion in stat
2012-02-27 13:11:09 -08:00
Ben Noordhuis
57c5fa1af1
unix: fix build on iOS
...
_NSGetEnviron() doesn't exist on iOS, use plain `extern char **environ` instead.
2012-02-26 00:36:28 +01:00
Charlie McConnell
ea9baef95c
test: Add test case for spawning detached child processes.
2012-02-24 15:15:00 +01:00
Charlie McConnell
e99fdf0df6
win: Implement options.detached for uv_spawn() for Windows.
2012-02-24 15:15:00 +01:00
Charlie McConnell
149d32cb96
unix: Implement options.detached for uv_spawn() for unix.
2012-02-24 15:15:00 +01:00
Charlie McConnell
b3e0ad4db8
Add "detached" member to uv_process_options_t to denote whether a child process should spawn detached from its parent.
2012-02-24 15:15:00 +01:00
Frank Denis
f6c8e78db9
Fix memory leak in uv_exepath() on OSX.
2012-02-24 13:09:43 +01:00