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
Bert Belder
fbc2154052
Merge branch 'v0.6'
2012-02-24 01:30:22 +01:00
Brandon Philips
fca18c33ac
win: fs: handle EOF in read
...
in luvit after upgrade libuv from 243cfc to d3efef readSync started
failing. It seems that the code cleanup stopped handling EOF
Trivially reproduced with this
local fs = require('fs')
print(fs.readFileSync('foo.luvit'))
2012-02-24 00:58:53 +01:00
Ben Noordhuis
d3efefb043
linux: share inotify fd across event loop
...
Previously, a new inotify fd was created for each watcher, making it quite easy
to run into the system-wide fs.inotify.max_user_instances limit (usually 128).
Fixes #300 .
2012-02-23 09:21:30 -08:00
Ben Noordhuis
09c722e72b
common: make uv__set_*_error() return -1
...
So you can do `if (errno) return uv__set_sys_error(loop, errno);`.
2012-02-23 05:57:36 -08:00
Ben Noordhuis
4240f0d710
test: check uv_fs_*() return values
2012-02-23 05:43:21 -08:00
Ben Noordhuis
a5082e8271
test: add proper type casts
2012-02-23 05:42:45 -08:00
Ben Noordhuis
8f716a9348
.gitignore gyp build artifacts
2012-02-23 01:11:17 +01:00
Igor Zinkovsky
c0e7044862
windows: avoid IOCP short-circuit if non-ifs lsps are detected
2012-02-22 11:58:40 -08:00
Ben Noordhuis
e504719e17
linux: fix signedness issue in uv_exepath()
...
readlink() returns -1 on error. The <= 0 check failed to catch that because the
return value was implicitly cast to size_t, which is unsigned.
2012-02-21 13:26:45 +01:00
Frank Denis
75ab1ba774
linux: uclibc <0.9.32 doesn't have <ifaddrs.h>
...
uclibc didn't provide ifaddrs.h before version 0.9.32 It explicitly didn't
install it because (quoting) "the corresponding functionality is disabled". So,
fix libuv on uclibc < 0.9.32 by returning ENOSYS for uv_interface_addresses()
2012-02-18 00:12:45 +01:00
Bert Belder
86ebe48660
Windows: add error mappings that map to EPIPE
2012-02-16 23:58:14 +01:00
Frank Denis
372ed18986
Add more fixes for Dragonfly BSD.
2012-02-14 14:49:31 +01:00
Frank Denis
e19724912d
Fix libuv on OpenBSD. struct kproc2 doesn't exist any more.
2012-02-14 14:49:31 +01:00
Frank Denis
783753e57f
Remove unused variables on NetBSD.
2012-02-14 14:49:31 +01:00
Ben Noordhuis
b8649fdf00
unix: don't flush tty on switch to raw mode
...
Drain, don't flush the tty when switching from cooked to raw mode. Prevents
buffered keystrokes from getting lost. Switching back to cooked mode still
flushes.
Fixes joyent/node#2744 .
2012-02-13 22:41:36 +01:00
Bert Belder
1d942e2ad4
Merge branch 'v0.6'
2012-02-13 20:02:39 +01:00
Bert Belder
bc8b99097a
win: add ERROR_FILENAME_EXCED_RANGE mapping, fix fs_file_nametoolong test
2012-02-13 20:01:36 +01:00
Bert Belder
6c80bf34d3
Clean up error handling in win/fs.c, add some error mappings
2012-02-13 20:01:19 +01:00
Ben Noordhuis
c1cea705ba
windows: map WSAETIMEDOUT to UV_ETIMEDOUT
2012-02-13 14:08:27 +01:00
Ben Noordhuis
4e1f2b1f64
Merge remote-tracking branch 'origin/v0.6'
2012-02-12 16:10:05 +01:00
Ben Noordhuis
c5aa86bd39
Remove uv_import() and uv_export().
...
Not needed anymore now that support for isolates has been removed from Node.
This commit reverts the following commits:
812e410 test: fix up stream import/export test
e34dc13 unix: implement uv_import() and uv_export()
d1a0e8e test: fix undefined macro error
2ce0058 import/export streams accross loops
2012-02-12 15:49:54 +01:00
Igor Zinkovsky
f9be43a564
support half-duplex pipes
2012-02-09 13:33:15 -08:00
Igor Zinkovsky
53eb9935cb
fix windows build
2012-02-09 13:15:37 -08:00
Ben Noordhuis
62206c2db0
Clarify API doc comments in uv.h
2012-02-09 22:12:32 +01:00
Luis Lavena
c800043112
Add missing IPV6_HOPLIMIT definition for MinGW
...
Closes GH-307
2012-02-07 14:34:40 +01:00
Nathan Rajlich
dbc046cb7f
Add EXDEV to the errno map.
2012-02-06 21:32:16 +01:00
Ben Noordhuis
4a5f3bbd51
eio: don't use futimes() on linux
...
uclibc does not provide the syscall wrapper. Translate it into a direct utimesat
syscall if available, else fail with ENOSYS.
2012-02-06 20:35:56 +01:00
Ben Noordhuis
e53302fcea
Explicitly export libuv symbols if gcc >= 4.
...
Only export symbols that are part of the libuv API, hide everything else.
Prevents symbol clashes in applications and libraries that depend on libuv and
speeds up link times to boot.
2012-02-06 17:05:47 +01:00
Roman Shtylman
9fa2cf2eac
test: add multicast TTL test
2012-02-06 15:02:39 +01:00