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
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
Ben Noordhuis
16124bb34e
sunos: fix uv_udp_set_ttl and uv_udp_multicast_ttl
...
The argument to setsockopt(IP_TTL|IP_MULTICAST_TTL) should be a char, not an int
like on other Unices.
2012-01-28 00:11:47 +01:00
Ben Noordhuis
3de0411591
Merge remote-tracking branch 'origin/v0.6'
2012-01-27 22:23:26 +01:00
Ben Noordhuis
3f1bad2050
test: add missing return statement in fs_stat_root
2012-01-27 22:10:20 +01:00
Bert Belder
92b260c065
windows: fix stat("c:\\") regression
2012-01-27 22:09:55 +01:00
Bert Belder
f9252750e7
Fix windows build
2012-01-27 16:29:57 +01:00
Ben Noordhuis
9c76d0d742
unix: turn on SO_REUSEPORT for UDP sockets
...
Required on BSD-like systems for local UDP multicast. Without it, the bind()
call fails with EADDRINUSE.
2012-01-27 00:49:57 +01:00
Ben Noordhuis
b88bc43543
unix: implement uv_udp_set_multicast_loop()
2012-01-24 00:07:22 +01:00
Ben Noordhuis
e710fdb518
unix: implement uv_udp_set_ttl()
2012-01-24 00:07:22 +01:00
Ben Noordhuis
02b41f63dc
Add missing UV_EXTERN declarations in uv.h
2012-01-24 00:07:22 +01:00
Bert Belder
6554954e3e
Windows: add error mapping for WSAENOBUFS
2012-01-23 20:21:56 +01:00
Brandon Benvie
3ade5f0011
Windows: Add support for interpreting axiterm-style colors.
2012-01-23 20:06:24 +01:00
Maciej Małecki
24e6c7ec86
unix: map ENAMETOOLONG to UV_ENAMETOOLONG
...
With tests. Closes #295
2012-01-23 19:33:09 +01:00
Igor Zinkovsky
edbabe6f83
windows: set error using WSAGetLastError
2012-01-22 18:00:07 -08:00
Igor Zinkovsky
726e36cf7c
implement uv_udp_set_multicast_ttl and uv_udp_set_broadcast on windows
2012-01-22 17:52:20 -08:00
Dan VerWeire
497b1ecd00
unix: add uv_udp_set_broadcast() and uv_udp_set_multicast_ttl()
2012-01-21 03:06:47 +01:00
Dan VerWeire
b674187c38
unix: set SO_REUSEADDR before binding
2012-01-21 03:06:43 +01:00
Ben Noordhuis
32b291d5be
build: don't set -mmacosx-version-min
...
It sets __MAC_OS_X_VERSION_MIN_REQUIRED__, which is what we use for feature
detection.
2012-01-19 16:20:44 +01:00
Ben Noordhuis
646c80bb41
build: generate Makefiles on OS X
2012-01-19 15:01:23 +01:00
Ben Noordhuis
98f3446c43
unix: don't close kqueue fd in kqueue_fork()
...
The file descriptor is not inherited by the child process. Trying to close it is
not just useless, it's actively harmful - if the close() call succeeds, it will
have closed an altogether different file descriptor.
2012-01-19 14:48:41 +01:00
Ben Noordhuis
bf8ccfce18
unix: fix segfault in uv_guess_handle()
...
Fixes #293 .
2012-01-17 17:47:33 +01:00
Ben Noordhuis
0e6e4abedc
unix: fix udp recv_start refcount
...
Calling uv_udp_recv_start() should not bump the event loop's reference count.
Fixes failing test udp_ref2.
2012-01-14 01:44:27 +01:00
Ben Noordhuis
6d9c9a533f
Add uv_loop_refcount() function, debug tool.
2012-01-14 00:33:08 +01:00
Ben Noordhuis
ac218a7ed5
test: add lots of refcount tests
2012-01-14 00:22:20 +01:00
Ben Noordhuis
dc3b80a50f
test: add udp4_echo_server helper
2012-01-14 00:11:43 +01:00
Ben Noordhuis
a13584bec7
unix: remove unused #define
2012-01-13 15:59:53 +01:00
Ben Noordhuis
52fba1a38f
unix: fix compiler warning
2012-01-12 16:00:31 +01:00
Igor Zinkovsky
855764406e
windows: improve uv_fs_stat performance (by about 60%)
2012-01-11 19:21:47 -08:00
Ben Noordhuis
803f5a096e
linux: fix build on older distros
2012-01-09 15:43:00 +01:00