Bert Belder
bc4126bfaa
Windows: skip GetFileAttributes call when opening a file
...
It wasn't working, and everything seemed to work fine nonetheless. Removing it just saves a syscall.
2012-05-10 16:38:36 +02:00
Ben Noordhuis
cb58a5634d
sunos: remove unused uv_fs_event_t field
2012-05-05 21:23:01 +00:00
Ira Cooper
7326962ec3
sunos: make fs.watch scale better
...
Instead of using one port per watch, use one port for all the watches.
2012-05-05 00:44:30 +00:00
Ben Noordhuis
936795a2c8
windows: map ERROR_WRITE_PROTECT to UV_EROFS
2012-05-01 16:53:00 +02:00
Maciej Małecki
edb40b16ce
unix: map EROFS to UV_EROFS
...
Conflicts:
src/unix/error.c
2012-05-01 16:52:48 +02:00
Fedor Indutny
0efa3cf4d3
err: handle EIO errors on win/unix
2012-05-01 16:43:00 +02:00
Bert Belder
32f6f6e2c7
Windows: map ERROR_NOT_SAME_DEVICE to UV_EXDEV
2012-05-01 16:20:52 +02:00
Erik Dubbelboer
e2b6f423cb
test-spawn failed to build on linux
...
- added missing header file
- converted c++ style comment to c style comment
2012-04-28 23:55:54 +02:00
Bert Belder
d41cc9118d
Windows: uv_spawn2 reports the wrong error when setuid/setgid is specified
2012-04-27 21:58:44 +02:00
Bert Belder
aea5db5da1
Windows: add mappings for UV_ENOENT
2012-04-27 21:24:27 +02:00
Bert Belder
66647bf934
Test for setuid/setgid
2012-04-27 21:05:15 +02:00
Bert Belder
c42ba103b7
Temporary API to support spawn with uid and gid options
2012-04-27 17:41:56 +02:00
Ben Noordhuis
06ae804e03
linux: add IN_MOVE_SELF to inotify event mask
...
Partially fixes joyent/node#3172 , behavior is now consistent with inotifywait.
2012-04-25 01:27:43 +02:00
Igor Zinkovsky
e6d4bca2ec
remove left-over cast fixes #3160
2012-04-23 10:52:53 -07:00
Ben Noordhuis
21bee8c36f
unix: call pipe handle connection cb on accept() error
2012-04-22 19:32:47 +02:00
Ben Noordhuis
cf6dc082ca
unix: handle EWOULDBLOCK in uv__read()
2012-04-22 19:32:47 +02:00
Ben Noordhuis
01cc491853
unix: handle EWOULDBLOCK in uv__write()
2012-04-22 19:32:47 +02:00
Ben Noordhuis
df22d5935e
unix: handle EWOULDBLOCK in uv__server_io()
2012-04-22 19:32:46 +02:00
Ben Noordhuis
73cc3677fc
unix: map EWOULDBLOCK to UV_EAGAIN
2012-04-22 19:32:46 +02:00
isaacs
f9fcaf5ccf
Map ENOMEM to UV_ENOMEM
2012-04-20 08:16:55 -07:00
Ben Noordhuis
d68b3d960b
unix: add uv_fs_read64, uv_fs_write64 and uv_fs_ftruncate64
2012-04-06 01:47:18 +02:00
Igor Zinkovsky
ea50126358
add 64bit offset fs functions
2012-04-05 16:01:29 -07:00
Bert Belder
3506cd1dc5
Windows: don't report ENOTSOCK when attempting to bind an udp handle twice
2012-04-05 17:25:21 +02:00
Bert Belder
cda7a28039
Windows: backport pipe-connect-to-file fixes from master
...
Conflicts:
src/win/pipe.c
commit e53ab6675ba12d97ad6d93c9913a473ba5172617
Author: Bert Belder <bertbelder@gmail.com>
Date: Fri Mar 9 17:04:03 2012 +0100
Windows: report UV_ENOTSOCK when we opened a file instead of a pipe
Makes the pipe_connect_to_file test pass on Windows.
commit 8cbbfbe4c6489868470a7e410f80d4729f4091bf
Author: Igor Zinkovsky <igorzi@microsoft.com>
Date: Thu Mar 1 14:32:59 2012 -0800
test: make pipe_connect_to_file succeed with ECONNREFUSED
commit 6bbccf1fe0
Author: Igor Zinkovsky <igorzi@microsoft.com>
Date: Thu Mar 1 12:11:12 2012 -0800
windows: return UV_ENOTSOCK when doing uv_pipe_connect to a file
2012-04-05 16:47:49 +02:00
Ben Noordhuis
9c8f6dd4f9
build: define _DARWIN_USE_64_BIT_INODE=1 on OS X
...
Fixes a segmentation fault on some OS X systems due to sizeof(struct stat)
mismatches.
2012-04-02 23:49:53 +02:00
Bert Belder
1795427ab0
Windows: never call fs event callbacks after closing the watcher
2012-03-27 23:00:26 +02:00
Bert Belder
aff078390f
Test: verify that uv_close from an fs event callback works properly
2012-03-27 23:00:26 +02:00
Bert Belder
732cf91d6d
Test: verify that no callbacks are made after closing an fs event watcher
2012-03-27 23:00:26 +02:00
Bert Belder
89303f365e
Fs event tests: don't fail if a previously failed test left stray files
2012-03-27 23:00:25 +02:00
Bert Belder
7e8fe3ece7
test-fs-event.c: style
2012-03-27 23:00:25 +02:00
Ben Noordhuis
8409a6765b
unix: ignore ECONNABORTED errors from accept()
...
ECONNABORTED means that the connection was torn down by the peer before the
TCP handshake completed. Ignore it, there's nothing we can do and it simplifies
error handling for libuv users.
2012-03-21 15:42:29 -07:00
Bert Belder
4ae316bcc9
Windows: fix compiler warnings
2012-03-16 02:38:37 +01:00
Bert Belder
163d8de392
Add UV_ENOSPC and mappings to it
...
Closes GH-337
2012-03-16 02:32:06 +01:00
Ben Noordhuis
66a959c405
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:09:16 +01:00
Ben Noordhuis
6dcce92d44
unix: replace C99/C++ comments, fix build
2012-03-15 01:09:16 +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