Igor Zinkovsky
ee115bfd8d
windows: fail uv_spawn() if options.file is NULL
2011-09-19 16:03:38 -07:00
Ben Noordhuis
37e8bf2556
unix: fix dangling pointer free() bug
2011-09-19 17:23:23 +02:00
Erick Tryzelaar
70e1032094
unix: Fix uv_getaddrinfo from deleting invalid data
...
If the uv_getaddrinfo_t handle is owned by its
data pointer, deleting the data in the callback
could cause uv_getaddrinfo_done to call freeaddrinfo
on an invalid pointer.
2011-09-19 17:11:34 +02:00
Ben Noordhuis
75a088ebf1
unix: remove failed write requests from stream->write_queue_size
2011-09-16 16:17:23 -07:00
Ben Noordhuis
3c0684e832
unix: pass error to write callback in stream cleanup
2011-09-16 16:17:23 -07:00
Ryan Dahl
d0a46a5551
HAVE_FUTIMES on osx
2011-09-16 16:03:48 -07:00
Ryan Dahl
2640aae125
unix: Reset flags for stdio fds after fork
2011-09-15 15:24:09 -07:00
Erick Tryzelaar
905fe71341
unix: fix a compiler warning
2011-09-15 22:33:32 +02:00
Igor Zinkovsky
58dd32750e
windows: ERROR_PATH_NOT_FOUND -> UV_ENOENT mapping
2011-09-14 14:04:41 -07:00
Igor Zinkovsky
4197fc76b1
windows: make file handles non-inheritable by default to match node behavior
2011-09-14 13:33:55 -07:00
Igor Zinkovsky
2931bdcf54
windows: strip '\??\' from readlink path buffer.
2011-09-14 12:58:18 -07:00
Igor Zinkovsky
65c8a727a3
uv_fs_ functions to return result in sync mode
2011-09-14 11:47:49 -07:00
Ben Noordhuis
76216d8057
unix: handle readdir errors in uv__fs_after()
2011-09-14 17:59:44 +02:00
Ben Noordhuis
337ff16526
unix: revert "eio: fix memory leak in eio__scandir()"
...
This reverts commit b450d87719 .
It turns out that libeio doesn't actually leak memory but it does do an
unnecessary (and confusing!) allocation that is not free'd until after
the user callback returns.
2011-09-14 17:59:41 +02:00
Ben Noordhuis
4b9b692bb7
unix: fix off-by-one error in comparison
...
Only 3 of the 4 buffer list entries were being used.
2011-09-14 04:50:05 +02:00
Ben Noordhuis
3c96410902
unix: bring back uv__stream_destroy()
...
This is the revised version of reverted commit 431195c .
2011-09-14 04:48:56 +02:00
Ben Noordhuis
bca49960fb
unix: handle stream write errors properly
...
1. Ensure that failed writes don't leave the write queue in an inconsistent
state. Before, write requests were handed back to the user but were not
removed from the write queue. The cause of at least one use-after-free bug.
2. Pass the error to the callback on the next iteration of the event loop
instead of returning it immediately.
2011-09-14 04:16:45 +02:00
Ben Noordhuis
066dc6bcc8
unix: fix argument check / write request init order
2011-09-14 01:42:57 +02:00
Ben Noordhuis
21936ebf24
unix: remove unnecessary variable
2011-09-14 01:40:55 +02:00
Ben Noordhuis
d70c760338
unix: fix write queue double init
2011-09-14 01:38:51 +02:00
isaacs
3c00d87b42
Add EEXIST handling
...
Additionally, map ERROR_ALREADY_EXISTS to EEXIST on Windows. I'm a bit
unsure about this mapping. Could a windows person confirm?
2011-09-12 16:36:35 -07:00
Ryan Dahl
e7eeacb4ae
unix: implement uv_tty_set_mode
2011-09-12 14:52:59 -07:00
Ryan Dahl
4484d61fe1
Add interfaces for uv_pipe_open, uv_tty_init, uv_tty_set_mode
...
Nothing works - no tests. This is just to coordinate efforts between Bert
and I.
2011-09-12 14:32:14 -07:00
Ben Noordhuis
2f2223f2b2
sunos: fix compiler errors, sun is a #define
2011-09-12 23:14:54 +02:00
Ryan Dahl
828b6eb11d
unix: remove uv_init
2011-09-12 11:32:41 -07:00
Bert Belder
bb15c0e268
win: make uv_hrtime() thread-safe
2011-09-12 11:32:41 -07:00
Bert Belder
f790b689a7
Remove uv_init from uv.h and windows backend
2011-09-12 11:32:41 -07:00
Ben Noordhuis
b450d87719
eio: fix memory leak in eio__scandir()
2011-09-12 18:01:43 +02:00
Erick Tryzelaar
af936a97df
Fix a typo that broke windows compilation.
2011-09-10 16:49:08 +02:00
Erick Tryzelaar
efa1b54076
Subclass uv_getaddrinfo_t from uv_req_t.
...
This patch also fixes #155 . Since we no longer
memset clear the uv_getaddrinfo_t, the user can
now set the `uv_getaddrinfo_t->data` field without
problems.
2011-09-10 01:46:26 -07:00
Ben Noordhuis
eb987bcc5c
unix: deduplicate stream init logic
...
Move shared init logic into uv__stream_init().
2011-09-10 01:40:47 +02:00
Ben Noordhuis
bd6066cb34
unix: fix readdir cleanup assertion
2011-09-10 00:14:42 +02:00
Ben Noordhuis
ca5346f9ce
unix: revert 98b9f58 and 431195c for now, corrupts memory
2011-09-09 23:40:10 +02:00
Bert Belder
e95a29ee18
Add mapping for ECONNABORTED
2011-09-09 05:23:07 +02:00
Bert Belder
12e689dcf8
win: the ddk got the NTSTATUS_FROM_WIN32 wrong
2011-09-09 04:39:41 +02:00
Igor Zinkovsky
cfa1423f96
fix fs_file_noent on windows
2011-09-08 18:23:19 -07:00
Bert Belder
0d373eb0b1
win: fix bug in fs__readlink
2011-09-09 01:25:52 +02:00
Bert Belder
2d1c672e2d
More MinGW fixes
2011-09-08 23:49:46 +02:00
Erick Tryzelaar
5b567b29a8
Fix src/win/getaddrinfo.c for mingw-w64.
2011-09-08 14:28:18 -07:00
Bert Belder
06d69a82ee
Make MinGW happy again
2011-09-08 20:19:32 +02:00
Ben Noordhuis
431195c944
unix: run callbacks of pending writes when handle is closed
2011-09-08 19:15:22 +02:00
Bert Belder
c2741514bc
win: fix spawn() bug
2011-09-08 18:01:42 +02:00
Matthew Sporleder
4320874fcf
unix: netbsd support
2011-09-08 13:20:43 +02:00
Ben Noordhuis
cc91989cc2
unix: fix buffer overrun in uv__strlcpy()
...
Reported by Thomas Shinnick.
2011-09-06 15:44:47 +02:00
Bert Belder
3d538af06b
win: correctly manage child process stdio handles
2011-09-06 03:20:16 +02:00
Ben Noordhuis
79d9f81881
unix: implement uv_fs_futime, add tests for uv_fs_utime and uv_fs_futime
2011-09-06 02:52:52 +02:00
Bert Belder
58ef43eee7
win: use win32 api for file reading and writing
2011-09-06 00:45:56 +02:00
Ben Noordhuis
b7d88070d8
fs: add UV_ENOENT error code, add test
2011-09-06 00:17:59 +02:00
Ben Noordhuis
efcd273d68
unix: translate fs errno codes to libuv error codes
2011-09-06 00:17:18 +02:00
Ben Noordhuis
bb0c6e6d53
unix: move linux feature detection macros to internal.h
2011-09-05 16:05:28 +02:00