Bert Belder
35fa2a6a51
Merge branch 'v0.6'
2011-11-25 12:46:17 +01:00
Bert Belder
01f64f6612
Win: get rid of UV_EAINONAME, use UV_ENOENT instead
2011-11-25 10:11:29 +01:00
Bert Belder
b4698d414b
Strip trailing whitespace
2011-11-25 10:03:27 +01:00
Igor Zinkovsky
cfa4112950
windows: make uv_fs_stat use open + fstat to support long paths
2011-11-24 19:18:17 -08:00
Bert Belder
3a50f8fca0
Win: fix uv_getaddrinfo error reporting
2011-11-25 02:05:07 +01:00
Bert Belder
45b976abd9
Win: add mapping for ERROR_ACCESS_DENIED
2011-11-25 00:59:40 +01:00
Bert Belder
ea63f06987
Win: ignore ECONNRESET when receiving udp packets
2011-11-24 19:16:24 +01:00
Bert Belder
261d792a7a
Win: map STATUS_HOPLIMIT_EXCEEDED status to WSAECONNRESET error
2011-11-24 19:16:18 +01:00
Bert Belder
0ded5d29cd
Win: fix improper treatment of real ntstatus codes as mapped win32 errors
2011-11-24 19:16:12 +01:00
Ben Noordhuis
ef811b1a4f
Merge branch 'v0.6'
2011-11-23 19:06:08 +01:00
Ben Noordhuis
96c230344d
linux: fix build when compiling with -std=c89 -pedantic
2011-11-23 19:05:46 +01:00
seebees
59f9a736b1
test: process should not wait for stdio before terminating
2011-11-23 17:34:18 +01:00
Ben Noordhuis
b52b8c7128
util: add uv_strlcpy() and uv_strlcat() functions
2011-11-23 17:29:02 +01:00
Ben Noordhuis
0834e73621
Merge branch 'v0.6'
2011-11-22 00:06:58 +01:00
Ben Noordhuis
92c9e95721
unix: fix stray pointer free() when HAVE_FUTIMES=0
...
uv_fs_futime() failed to initialize req.path when HAVE_FUTIMES=0.
uv_fs_req_cleanup() later on tried to free the bogus pointer.
2011-11-22 00:00:52 +01:00
Ben Noordhuis
45180fea27
bench: add thread creation benchmark
2011-11-21 21:27:36 +01:00
Ben Noordhuis
8e4ed88bbe
Wrap platform thread APIs.
2011-11-21 21:04:16 +01:00
Ben Noordhuis
5728bd4549
test: touching a file should generate only one fs event
2011-11-21 18:01:01 +00:00
Shimon Doodkin
1b9d00fb42
cygwin: fix undefined _SC_PAGESIZE
...
unistd.h was not included, when tried to build node 0.5.9 had an error of:
_SC_PAGESIZE undefined
2011-11-20 15:02:16 +01:00
Shimon Doodkin
57ae9cc4a8
cygwin: fix undefined _SC_PAGESIZE
...
unistd.h was not included, when tried to build node 0.5.9 had an error of:
_SC_PAGESIZE undefined
2011-11-20 14:56:01 +01:00
Ben Noordhuis
01fbe7bf37
build: compile with -D__DARWIN_64_BIT_INO_T on OS X
...
Fixes a struct stat size mismatch on 64 bits machines that made Node crash with
a EXC_BAD_ACCESS on startup.
Solution proposed by Paddy Byers.
2011-11-18 21:16:24 +01:00
Ben Noordhuis
e4680ccc62
windows: make SRWLock API usage more explicit
2011-11-18 12:59:10 +01:00
Ben Noordhuis
1fc1f28093
Wrap platform mutex and rwlock APIs.
...
Read/write locks are emulated with critical sections on Windows XP and Vista
because those platforms don't have a (complete) native read/write lock API.
2011-11-18 12:42:08 +01:00
Ben Noordhuis
2bd181a8d2
unix: properly disarm kqueue fs watcher
...
Fixes "Assertion failed: (revents == EV_LIBUV_KQUEUE_HACK),
function uv__fs_event, file ../src/unix/kqueue.c, line 58."
2011-11-18 01:40:11 +01:00
Ben Noordhuis
1e0aab06c9
unix: properly disarm kqueue fs watcher
...
Fixes "Assertion failed: (revents == EV_LIBUV_KQUEUE_HACK),
function uv__fs_event, file ../src/unix/kqueue.c, line 58."
2011-11-18 01:39:30 +01:00
Igor Zinkovsky
08a5546753
windows: return UV_FILE for non-console FILE_TYPE_CHAR
2011-11-17 15:36:34 -08:00
Igor Zinkovsky
b0b54bf88d
windows: return UV_FILE for non-console FILE_TYPE_CHAR
2011-11-17 15:18:32 -08:00
Ben Noordhuis
d5b26154f7
linux: improve kernel feature detection
...
Do not check for minimum kernel and glibc versions, just check that the kernel
headers export the syscall number and invoke the syscall directly. Effectively
bypasses glibc.
2011-11-17 18:05:53 +01:00
Ryan Dahl
2007eb813d
Set uv_write_t errno correctly
...
Fixes #206 .
2011-11-16 13:02:18 -08:00
Ryan Dahl
4ae40b6a3f
Bump version to v0.6
2011-11-14 16:14:10 -08:00
Ben Noordhuis
62d15a1e62
Update AUTHORS and .mailmap
2011-11-13 20:02:46 +01:00
Frank Denis
89ea3be6c2
Add support for DragonFly BSD by sharing code for FreeBSD.
2011-11-13 19:46:24 +01:00
Frank Denis
93faeb2189
Fix typo that broke libuv on NetBSD: psysconf() -> sysconf()
2011-11-13 19:42:57 +01:00
Ben Noordhuis
d4bfcc28c8
bench: fix compiler warnings
2011-11-11 18:52:34 +01:00
Ben Noordhuis
e2a794e346
test: remove dead code
2011-11-11 18:52:04 +01:00
Frank Denis
9322dd1724
Use (void) for a function taking no arguments - fix gcc -Wstrict-prototypes
2011-11-10 22:55:06 +01:00
Ben Noordhuis
224584c53e
sunos: check that event ports supports fs watching
2011-11-10 20:04:55 +01:00
Ben Noordhuis
26806e2b1c
sunos: add getaddrinfo() compatibility hack
...
getaddrinfo() returns EAI_MEMORY if strlen(hostname) >= MAXHOSTNAMELEN
2011-11-10 16:39:03 +00:00
Ben Noordhuis
04dfd46349
unix: remove unused uv__translate_lib_error() function
2011-11-10 15:26:12 +00:00
Ben Noordhuis
61ef8cc962
freebsd: remove unused variables
2011-11-10 13:57:58 +01:00
Ben Noordhuis
4889644301
Fix warning: comma at end of enumerator list
2011-11-10 11:37:08 +01:00
Ryan Dahl
6d5ba42436
Remove unnecessary errno
2011-11-09 18:07:13 -08:00
Ryan Dahl
808bb8ed0b
Shared uv_strerror
2011-11-09 18:06:49 -08:00
Ryan Dahl
fd2b04d784
Alternative errno strategy
2011-11-09 17:47:24 -08:00
Igor Zinkovsky
f17d4837a8
windows: turn WSAECONNABORTED from WSARecv to UV_ECONNRESET
2011-11-09 14:57:41 -08:00
Ben Noordhuis
4794c12f58
linux: fall back to traditional syscalls if necessary
...
libuv uses feature checks to determine if newer syscalls like pipe2() are
available. This works fine until someone compiles libuv against kernel headers
that are newer than the actual kernel our software runs on.
Fall back to traditional (but race-y!) syscalls when the kernel reports ENOSYS
or EINVAL.
2011-11-09 15:38:51 +01:00
Igor Zinkovsky
942c68b80e
windows: fix utf16->utf8 conversion in uv_fs_readdir
2011-11-08 19:23:30 -08:00
Ryan Dahl
196e14528f
Map UV_ESRCH in uv_err_name
2011-11-08 16:59:05 -08:00
Bert Belder
2b7774ae49
Windows: return UV_ESRCH from uv_kill
2011-11-09 01:48:04 +01:00
Tj Holowaychuk
a378110f9e
Add UV_ESRCH
...
Fixes #239 .
2011-11-08 16:36:20 -08:00