Commit Graph

1073 Commits

Author SHA1 Message Date
Ben Noordhuis
0d8cb08f83 Merge branch 'v0.6' 2011-12-08 16:31:52 +01:00
Ben Noordhuis
b89c31b936 unix: fix warning: return 0 in function returning void 2011-12-06 22:20:30 +01:00
Ben Noordhuis
0db3274f8a unix: check UV_CLOSING flag in uv__write()
uv__write() runs after the read callbacks have fired. Said callbacks may have
closed the handle, handle that graciously.
2011-12-05 16:56:30 +01:00
Ben Noordhuis
34e95d1a4c unix: make it safe to delete the default loop
Fixes a potential free() of non-malloc'ed memory.
2011-12-04 13:20:23 +01:00
Ben Noordhuis
248ca5d612 unix: translate ETIMEDOUT to UV_ETIMEDOUT 2011-12-03 23:31:02 +01:00
Ben Noordhuis
f5c2a4a1ae Merge branch 'v0.6'
Conflicts:
	src/unix/core.c
	src/win/winapi.h
2011-12-02 18:15:04 +01:00
Igor Zinkovsky
60630dab0f windows: enable pending pipe instances knob 2011-12-01 13:48:57 -08:00
Bert Belder
9c064fbbd2 Win: utf-8 decoder bug when compiling with gcc 2011-12-01 22:45:58 +01:00
Bert Belder
2a6a4a0864 Fix MinGW and MinGW-w64 builds 2011-12-01 22:45:40 +01:00
Yuki Okumura
f71f5a02e6 Win: lower case tlhelp32.h to support cross compilation 2011-12-01 22:42:35 +01:00
Igor Zinkovsky
dceb3e65ca uv_cwd + uv_chdir 2011-12-01 12:27:12 -08:00
Ben Noordhuis
ec37d05d66 Revert "build: compile with -D__DARWIN_64_BIT_INO_T on OS X"
This reverts commit 01fbe7bf37.

__DARWIN_64_BIT_INO_T is a no-op in most cases and might be actively harmful in
some others.
2011-12-01 21:02:29 +01:00
Bert Belder
eb6d754a06 Win: utf-8 decoder bug when compiling with gcc 2011-12-01 19:40:12 +01:00
Bert Belder
ee49c7a2b6 Fix MinGW and MinGW-w64 builds
Closes GH-222 and GH-267.
Thanks Yuki Okumura and Yasuhiro Matsumoto for providing fixes.
2011-12-01 15:47:49 +01:00
Yuki Okumura
7c50415db6 Win: lower case tlhelp32.h to support cross compilation 2011-12-01 15:29:10 +01:00
Bert Belder
b471b33da8 Bump required windows headers to Vista
This does not mean that XP/2k3 is no longer supported - we just need the
headers so we can use newer APIs on later windows versions.
2011-12-01 15:23:35 +01:00
Ben Noordhuis
fadfd0f5b2 Update AUTHORS and .mailmap 2011-12-01 14:24:25 +01:00
Bruce Mitchener
c69ccfabc2 Remove incorrect documentation comment.
The callback for uv_close does not have a status parameter.
2011-12-01 14:22:47 +01:00
Bruce Mitchener
b684deb4f4 Note that uv_is_active works on timers. 2011-11-30 14:48:57 +01:00
Bruce Mitchener
d513d9bb41 Fix typos. 2011-11-30 14:35:13 +01:00
Bert Belder
fce90652ed Windows: avoid the loop starvation bug. Closes GH-154 2011-11-28 19:36:41 +01:00
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