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
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
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
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
Bert Belder
443445a3c6
Windows: reset brightness when reverting to default text color
2012-02-05 19:54:26 +01:00
Maciej Małecki
e2565c332a
win: map ERROR_CANT_RESOLVE_FILENAME to UV_ENAMETOOLONG
2012-02-03 22:20:14 +01:00
Maciej Małecki
0596c59bc3
test: test if UV_ELOOP mapping works
2012-02-03 22:20:14 +01:00
Maciej Małecki
3ff3626e52
unix: map ELOOP to UV_ELOOP
2012-02-03 22:20:14 +01:00
Ben Noordhuis
2f182f4451
unix: map ECONNABORTED
2012-02-03 16:20:24 +01:00
Bert Belder
267e75dda2
Windows: better stat implementation
2012-02-02 17:03:40 +01:00
Igor Zinkovsky
495853ee2b
windows: map ERROR_ACCESS_DENIED to UV_EPERM
2012-02-01 12:38:14 -08:00
Ben Noordhuis
65bbf02dc5
build: bump _WIN32_WINNT to 0x600
...
Commit b471b33 updated the Makefile, this commit updates the gyp file.
2012-02-01 15:26:01 +01:00
isaacs
6e995bd0b0
Update AUTHORS
2012-01-31 19:43:13 -08:00
isaacs
243cfcd078
Merge remote-tracking branch 'ry/v0.6'
2012-01-31 18:00:59 -08:00
Brandon Philips
4cfda74de4
uv.h: add EPERM to errno map to fix regression
...
EPERM isn't mapped in so chown returns an unknown error. This is a
regression from 0.4.12.
philips:node/ (master*) $ cat chown.js
var fs = require('fs')
fs.chown("/tmp/foobar", 100, 100, function(er){ console.log(er);})
philips:node/ (master*) $ ls -la /tmp/foobar
total 0
drwxr-xr-x 2 root wheel 68 Jan 24 17:21 .
0.4
---
philips:node/ (master*) $ /usr/local/Cellar/node/0.4.12/bin/node chown.js
{ stack: [Getter/Setter],
arguments: undefined,
type: undefined,
message: 'EPERM, Operation not permitted \'/tmp/foobar\'',
errno: 1,
code: 'EPERM',
path: '/tmp/foobar' }
master
------
philips:node/ (master*) $ ./node chown.js
{ [Error: UNKNOWN, unknown error '/tmp/foobar'] errno: -1, code: 'UNKNOWN', path: '/tmp/foobar' }
AFTER
-----
philips:node/ (master*) $ ./node chown.js
{ [Error: EPERM, operation not permitted '/tmp/foobar'] errno: 49, code: 'EPERM', path: '/tmp/foobar' }
2012-01-31 16:37:26 -08:00
Bert Belder
3eb94e92f7
Implement udp multicast methods on windows
...
uv_udp_set_membership is not supported for UDP-IPv6 sockets yet.
2012-01-31 17:29:22 +01:00
Bert Belder
62d9360477
Windows: enable SO_REUSEADDR for datagram sockets
2012-01-31 17:29:21 +01:00
Bert Belder
8c8e6532bf
test-multicast-join: don't attempt to bind to a multicast address
...
Does not work on Windows. Bind to a normal interface first, then join the
multicast group instead.
2012-01-31 17:29:21 +01:00
Ben Noordhuis
45d7bd88c9
unix: explain SO_REUSEADDR and SO_REUSEPORT
2012-01-31 16:52:27 +01:00
Ben Noordhuis
cd16ba5186
test: add UDP broadcast/multicast/ttl tests
2012-01-31 16:52:27 +01:00
Bert Belder
7b83b99fdc
Windows: try to set up vc environment when not running from vs command prompt
2012-01-31 14:28:21 +01:00
Ben Noordhuis
812e410772
test: fix up stream import/export test
2012-01-30 21:45:04 +01:00
Ben Noordhuis
e34dc13496
unix: implement uv_import() and uv_export()
2012-01-30 21:44:47 +01:00
Ben Noordhuis
abdc3efffe
unix: add uv__dup()
2012-01-30 21:44:27 +01:00
Ben Noordhuis
d1a0e8e7e2
test: fix undefined macro error
2012-01-30 21:44:27 +01:00
Igor Zinkovsky
2ce0058251
import/export streams accross loops
2012-01-30 21:44:27 +01:00
Ben Noordhuis
cdb44df86d
unix: add UNREACHABLE() macro
...
Asserts and aborts when program flow reaches a place it shouldn't.
2012-01-30 21:44:27 +01:00
isaacs
98c0498dbc
unix: Remove assert in uv__pipe_accept
...
This assert unnecessarily prevents people from using the pipe_wrap
class in node to send file descriptors over sockets.
2012-01-30 11:28:54 -08:00
Ben Noordhuis
f9b478cfd8
test: add windows-only uv_fs_stat regression test
2012-01-28 16:52:46 +01:00
Brandon Benvie
74cff551d5
windows: fix off-by-one error in uv_fs_stat
...
uv__is_root typo caused incorrect fs.exists results in Node.
2012-01-28 16:52:44 +01:00
Ben Noordhuis
332b72e589
sunos: fix uv_udp_set_ttl and uv_udp_set_multicast_loop
...
It turns out that setsockopt(IP_TTL) *does* expect an int, whereas
setsockopt(IP_MULTICAST_LOOP) needs a char.
2012-01-28 01:19:49 +01:00