Ben Noordhuis
d0816aae52
sunos: fix free() of non-malloc'd pointer
2012-06-25 16:53:24 +02:00
saghul
431d61af31
win: map ERROR_PRIVILEGE_NOT_HELD to UV_EPERM
2012-06-25 16:37:08 +02:00
Bert Belder
0387c23759
windows: don't use CRT functions to implement (f)utimes and (f)stat
2012-06-22 20:04:07 +02:00
Bert Belder
3da9504beb
windows: map ERROR_INVALID_HANDLE to UV_EBADF
2012-06-22 20:04:07 +02:00
Bert Belder
d0950dd491
windows: whitespace fixes
2012-06-22 20:04:06 +02:00
Ben Noordhuis
171e2f71b9
Update libuv version macro.
2012-06-22 15:43:14 +02:00
Bert Belder
ea3e2cd480
windows: get rid of overly complicated uv_filetime_to_time_t helper
2012-06-22 01:45:19 +02:00
Bert Belder
d169ba1a1b
Make the stat benchmark run shorter
...
Man, Windows is so slow...
2012-06-22 01:16:52 +02:00
Ben Noordhuis
5dc024f676
bench: add thread pool I/O benchmark
2012-06-21 22:40:17 +02:00
Bert Belder
da59427c66
windows: don't set WT_EXECUTELONGFUNCTION for fs operations
2012-06-21 02:37:44 +02:00
Ben Noordhuis
14ffaa668d
unix, windows: stat: never pass NULL to cb
...
Never pass NULL to the fs_poll callback, use a zeroed out statbuf instead.
Makes the interface a little more convenient to use.
2012-06-20 17:56:37 +02:00
Bert Belder
6e8eb33249
windows: abort accept requests when a shared tcp server is closed
...
Just closing the listening socket handle does not cancel AcceptEx
operations when another handle is keeping the underlying socket
open. Thus the AcceptEx operations have to be explicitly canceled
in uv_tcp_close.
2012-06-20 03:33:15 +02:00
Bert Belder
b496c1221c
windows: reserve some room for zero-read minibuffer
2012-06-19 21:11:17 +02:00
Bert Belder
67090653df
windows: set the child_pid property for all IPC pipes in uv_spawn
2012-06-19 19:22:49 +02:00
isaacs
382f2a262b
sunos: allow suppression of ifaddrs.h
...
Older Solaris versions do not have this feature. This allows
them to set SUNOS_NO_IFADDRS to allow libuv to build.
Re: joyent/node#3465
2012-06-18 23:07:46 +02:00
Fedor Indutny
61a6e06ec2
sunos: fix assertion errors in uv__finish_close
2012-06-18 22:43:53 +02:00
Ben Noordhuis
c1d8e011f4
linux: fix typo in syscall name
2012-06-18 17:06:50 +02:00
Ben Noordhuis
6d67cf1952
unix, windows: update uv_fs_poll API
...
* the callback gets called only once on error, not repeatedly...
* ...unless the error reason changes from e.g. UV_ENOENT to UV_EACCES
* the callback receives pointers to uv_statbuf_t objects so it can inspect what
changed
2012-06-16 04:54:25 +02:00
Ben Noordhuis
7ca524e133
unix: stat: detect sub-second changes on darwin
2012-05-31 20:32:33 +02:00
Ben Noordhuis
5ff2b6121f
unix: stat: detect sub-second changes on linux
2012-05-31 20:32:32 +02:00
Ben Noordhuis
cc7c8542a5
unix, windows: add stat() based file watcher
...
Monitors a file path for changes. Supersedes ev_stat.
2012-05-31 20:32:24 +02:00
Bert Belder
9a3dff35c0
test: make the test-hrtime less likely to time out
2012-06-14 22:41:41 +02:00
Bert Belder
b1649b6f77
windows: prevent accidental inheritance of sockets pending acceptance
2012-06-14 21:19:04 +02:00
Bert Belder
5d5688f241
unix: always set CLOEXEC flag for child process stdio FDs
2012-06-14 18:29:47 +02:00
Ben Noordhuis
2c983fb994
unix: fix memory leak in libev
...
Not everything that identifies itself as glibc really is glibc.
2012-06-14 04:03:05 +02:00
Ben Noordhuis
4d7f1e1864
unix: implement uv_disable_stdio_inheritance()
2012-06-14 01:20:49 +02:00
Bert Belder
ade6930241
windows: implement uv_disable_stdio_inheritance
2012-06-14 01:19:52 +02:00
Ben Noordhuis
94cb06fecf
unix: make uv__nonblock() EINTR resilient
...
It's underspecified if and when ioctl(FIONBIO) or fcntl() can return EINTR.
Let's take the safe route.
2012-06-14 01:19:34 +02:00
Ben Noordhuis
b3a97f8981
unix: make uv__cloexec() EINTR resilient
...
It's somewhat underspecified if and when fcntl() can return EINTR. It never
does on Linux for F_GETFD or F_SETFD but let's not make any assumptions.
2012-06-14 01:19:34 +02:00
Bert Belder
07c6ac2b55
windows: move child stdio buffer ops to a separate file
2012-06-13 19:17:13 +02:00
Bert Belder
9f44b0e393
windows: fix serious typo in init_child_stdio
2012-06-13 01:30:43 +02:00
Ben Noordhuis
95e89c6a0e
unix, windows: share uv__handle_init()
2012-06-13 01:28:58 +02:00
Bert Belder
b7e150ee91
windows: uv_kill() should report UV_ESRC when the victim is already dead
2012-06-12 17:00:16 +02:00
Bert Belder
048422d865
windows: fix some comments
2012-06-12 17:00:15 +02:00
Ben Noordhuis
84f0d96ae0
unix: reset error status in uv_dlopen()
...
Fixes a bug where uv_dlopen() mistakenly reported failure because of previous
errors.
2012-06-12 01:48:21 +02:00
Bert Belder
e0c6114e32
windows: remove run-time RB_INSERT check from release builds
2012-06-11 22:19:24 +02:00
Ben Noordhuis
3b417d10bc
linux: add eventfd and eventfd2 syscalls
2012-06-11 04:20:03 +02:00
Ben Noordhuis
78bc0d6134
unix: implement async handles in libuv
...
Replace libev backed async handles with a pure libuv implementation.
2012-06-11 04:19:31 +02:00
Ben Noordhuis
ddb5f55922
unix: simplify uv__make_pipe() and uv__make_socketpair()
2012-06-11 02:47:39 +02:00
Bert Belder
5c30443555
unix: uv_async handles should not be unref'ed automatically
2012-06-10 02:25:20 +02:00
George Yohng
fbe99743d5
windows: uv_interface_addresses() should not report disconnected adapters
2012-06-09 22:38:15 +02:00
Ben Noordhuis
0ae026dc84
bench: add lots-of-timers benchmark
2012-06-09 18:42:06 +02:00
Maciej Małecki
c92788e503
test: fix test runner progress bar
...
Make % completed indicator actually show % completed instead of 0 %.
2012-06-09 18:09:26 +02:00
saghul
6a47e3ac7c
windows: add missing include for limits.h
2012-06-09 02:51:18 +02:00
Bert Belder
b5a15f5cdf
test: fix test-tcp-shutdown-after-write bug
...
It was calling uv_read_start before the uv_connect call had completed.
Although we want to allow this in the future, right now it's not
supported.
2012-06-08 03:11:53 +02:00
Ben Noordhuis
23b4e38d20
unix: make uv_shutdown() return UV_ENOTCONN
...
Return UV_ENOTCONN when the stream is not connected, not UV_EINVAL. Aligns
with uv-win.
2012-06-08 02:48:28 +02:00
Ben Noordhuis
dea45940cd
unix: fix req cb / close cb invoke delay
...
Finalization of closed handles and associated requests was sometimes delayed
until an external event (network I/O, timeout, etc.) happened. This commit
addresses that.
2012-06-08 01:37:39 +02:00
Mark Cavage
9cb8bdc74e
sunos: uv_interface_addresses needlessly #ifdef'd out
2012-06-07 10:51:45 -07:00
Ben Noordhuis
053d3afcbf
Make ngx_queue_foreach() impl more explicit.
2012-06-07 17:00:33 +02:00
Ben Noordhuis
59cda86709
unix, test: make NANOSEC a 64 bits unsigned int
...
Avoids accidental overflow / truncation when it's used in 32 bits arithmetic.
2012-06-07 17:00:01 +02:00