Commit Graph

522 Commits

Author SHA1 Message Date
Ben Noordhuis
a3d495c0bc win: make uv_process_kill(proc, 0) report process status 2011-10-11 21:36:54 +02:00
Roman Shtylman
a3d1f6fd6f add uv_udp_set_membership for unix multicast support
- test-udp-multicast-join tests that multicast packets can be received
- stub src/win/udp.c until support added
2011-10-11 21:25:20 +02:00
Igor Zinkovsky
40b64a81cb windows: don't alloc readdir buffer for empty dirs 2011-10-11 11:47:05 -07:00
Igor Zinkovsky
4ac13090ca fix mingw build 2011-10-11 10:45:02 -07:00
Ben Noordhuis
47d22acfb2 unix: stub kqueue support functions on old platforms 2011-10-11 16:53:42 +02:00
Ben Noordhuis
f7f518aa7e sunos: fix uv_spawn()
SunOS does not set POLLHUP when the read end of a pipe is closed.
2011-10-10 23:59:54 +00:00
Ryan Dahl
5656e3c8bd Prepare for writable TTY to be blocking 2011-10-10 13:25:46 -07:00
Ben Noordhuis
41e8574920 unix: don't alloc memory for readdir on empty dir 2011-10-10 16:27:55 +02:00
Igor Zinkovsky
9f6024a6fa windows: fixes crash in pipe.c 2011-10-07 15:05:01 -07:00
Bert Belder
81c09cb2e3 win: add error mappings for ECONNRESET 2011-10-07 15:53:28 +02:00
Ryan Dahl
1c72aebd78 unix: IPC stdio stream should be duplex 2011-10-07 01:41:42 -07:00
Igor Zinkovsky
012fc0799f windows: fixes #193. Ensures that uv_fs_event deals with short and long names 2011-10-06 19:39:06 -07:00
Ben Noordhuis
5816f2d21c unix: avoid unnecessary read() syscall 2011-10-07 02:32:52 +02:00
Ryan Dahl
e3bcecdc42 unix: clean up messy code 2011-10-06 14:52:44 -07:00
Ryan Dahl
60c639fd57 Merge branch 'ipc2' 2011-10-06 10:18:13 -07:00
Igor Zinkovsky
34f719d7a5 windows ipc fixes 2011-10-06 10:17:42 -07:00
Igor Zinkovsky
90e88aabf6 remove stdio.c 2011-10-06 10:17:42 -07:00
Igor Zinkovsky
81c4043c83 ipc on windows 2011-10-06 10:17:42 -07:00
Ryan Dahl
61fab8d1ba unix: return UV_UNKNOWN_HANDLE when read2 doesn't recv one
unix passes ipc test on this comment.
2011-10-06 10:17:42 -07:00
Ryan Dahl
c920db9fd1 unix: handle passing kind of working 2011-10-06 10:17:42 -07:00
Ryan Dahl
bb6b629e6a make test-ipc accept the pending tcp server 2011-10-06 10:17:18 -07:00
Ryan Dahl
45306f2e7f unix: implement uv_write2 2011-10-06 10:17:18 -07:00
Ryan Dahl
6921d2fc07 Add argument to uv_pipe_init for IPC, unix impl 2011-10-06 10:17:07 -07:00
okuoku
d1016de597 FreeBSD: Fix FreeBSD build. 2011-10-06 17:00:50 +02:00
Ben Noordhuis
c7870465aa error reporting: return sensible messages for synthetic errors 2011-10-06 01:17:46 +02:00
Erick Tryzelaar
0303197a57 win: unify uv_{tcp,udp}_set_socket.
Fixes #205.
2011-10-04 16:48:19 -07:00
Erick Tryzelaar
4c329060ca unix,win: Start unifying shared bind code. 2011-10-04 16:46:39 -07:00
Erick Tryzelaar
85368e8d45 unix,win: Start unifying shared tcp connect code. 2011-10-04 16:46:39 -07:00
Erick Tryzelaar
e3f2631127 unix: bad connect addresses should error with EINVAL 2011-10-04 16:46:39 -07:00
Erick Tryzelaar
65fa8873f7 win: Fix error message. 2011-10-04 16:46:39 -07:00
Ryan Dahl
b590e12148 Fix darwin build 2011-10-04 16:44:36 -07:00
Ben Noordhuis
8e9a3384c9 unix: implement kqueue file watcher API
kqueue fds are not embeddable into other pollsets (select, poll, kqueue).
Hack the libev event loop to receive kqueue events with filter flags intact.
2011-10-04 23:28:36 +02:00
Fedor Indutny
a35591bbfc os: implement loadavg (not working on cygwin/win) 2011-10-04 18:15:14 +02:00
Fedor Indutny
33cb8775bc os: implement memory bindings
* us_get_free_memory
* us_get_total_memory
2011-10-04 18:10:35 +02:00
Ben Noordhuis
914a6fa241 sunos: pull in uv__set_sys_error prototype 2011-10-01 22:43:47 +00:00
Ryan Dahl
fe18438416 add uv_tty_reset_mode() 2011-09-30 13:09:06 -07:00
Ryan Dahl
153d3c7c57 unix: allow tty raw mode to be turned off 2011-09-30 11:21:51 -07:00
saghul
b594dba248 unix: fix memcpy when copying hints on uv_getaddrinfo 2011-09-29 15:32:26 +02:00
Igor Zinkovsky
c9ae7a6f95 windows: don't strip the trailing slash from filename if it follows a device name 2011-09-28 12:59:39 -07:00
Igor Zinkovsky
4fb120f649 windows: fix error reporting for uv_fs_ functions 2011-09-28 12:46:37 -07:00
Igor Zinkovsky
e7a53aed48 fix windows build 2011-09-28 11:52:08 -07:00
Erick Tryzelaar
23796d208c Fixes #76. Unify OS error reporting
As a nice fringe benefit, this also shaves a word
off of a windows TCP handle by replacing "uv_err_t
bind_error" with "int bind_error".
2011-09-27 19:05:33 -07:00
Erick Tryzelaar
1d7e61fafa unix,win: Check bind receives right socket type 2011-09-27 19:05:33 -07:00
Erick Tryzelaar
c260a39645 unix,win: Check connect receives right socket type 2011-09-27 19:05:33 -07:00
Erick Tryzelaar
17d4686bad win: Actually exit if uv_udp_bind only wants IPv6. 2011-09-27 19:05:33 -07:00
Erick Tryzelaar
efa720d1ba win: Removing uv_udp_connect6
This function isn't exposed or used internally. Nor
is there a windows implementation for IPv4, or
unix implementation for IPv4 or IPv6.

However, sockets do support UDP connections (which
just let you use send/recv instead of
sendto/recvfrom), so as an alternative, we could
add support for uv_udp_connect* for all OSs.
2011-09-27 19:05:33 -07:00
Bert Belder
14cdc80a05 win tty: Fix typo 2011-09-28 03:43:28 +02:00
Igor Zinkovsky
a1f98d55b1 fix c-ares on windows 2011-09-27 16:09:57 -07:00
Ben Noordhuis
2e4eca3b5e c-ares: upgrade to 1.7.5 2011-09-27 16:04:25 -07:00
Bert Belder
2c0fca9a41 win: Fix crash when calling uv_close from shutdown callback 2011-09-27 19:12:40 +02:00
Bert Belder
bdac72cc93 win tty: Implement uv_close and uv_shutdown 2011-09-27 19:12:39 +02:00
Bert Belder
554cb78eeb win tty: Use NULL consistently, don't mix with INVALID_HANDLE_VALUE 2011-09-27 19:12:33 +02:00
Bert Belder
f5f005d51d tty-win: fix absolute cursor positioning 2011-09-27 16:10:38 +02:00
Bert Belder
b0a9d601c8 win: tty fixes 2011-09-27 12:41:38 +02:00
Bert Belder
8f563e2963 Revert c-ares upgrade and includes fix
It broke the windows build.
This reverts commit 083c97e28b and commit b288afdf14.
2011-09-27 12:39:55 +02:00
Ben Noordhuis
9673abeab5 unix: fix pointer ownership bug
libuv realloc'd a pointer that belonged to and was later freed by libev.
2011-09-27 01:02:44 +02:00
Ben Noordhuis
b288afdf14 common: fix includes
Don't rely on c-ares to pull in the headers for inet_addr, net_pton and
inet_ntop. c-ares 1.7.4 did but 1.7.5 does not.
2011-09-26 22:41:17 +02:00
Ben Noordhuis
083c97e28b c-ares: upgrade to 1.7.5 2011-09-26 22:41:17 +02:00
Bert Belder
622eb99113 win: implement tty
loose end: line-buffered input reads ascii, not unicode
2011-09-26 19:31:32 +02:00
Bert Belder
77bc00e9ad win: uv_pipe_queue_read should set read_pending flag 2011-09-25 04:09:25 +02:00
Ben Noordhuis
d31a57dc78 unix: fix NULL pointer dereference 2011-09-25 02:53:27 +02:00
Ben Noordhuis
01441ab02f unix: fix close() of potentially uninitialized fd 2011-09-25 02:49:21 +02:00
Ben Noordhuis
8f617b93bc unix: darwin < 10.6 does not have fdatasync, use fsync 2011-09-24 05:20:07 +02:00
Ryan Dahl
03d0c57ea2 Remove uv_is_tty. Use uv_guess_handle instead. 2011-09-23 10:01:45 -07:00
Erick Tryzelaar
7e8645d101 unix,win: Make uv_freeaddrinfo to clean up addrinfo
Fixes #196
2011-09-23 09:31:01 -07:00
Fedor Indutny
7ce34f2ada added missing headers file 2011-09-23 09:20:20 -07:00
Ryan Dahl
03652596cf unix: add uv_guess_handle and uv_tty_get_winsize 2011-09-22 19:35:46 -07:00
Igor Zinkovsky
f9ad0a7bf6 windows: fire UV_CHANGE in case of overflow 2011-09-22 15:09:07 -07:00
Ben Noordhuis
3368d6c1a2 unix: stub file watcher implementation
The file watcher API has not been implemented on all Unices yet.
Provide stubs on those platforms so libuv at least compiles.
2011-09-22 23:55:05 +02:00
Igor Zinkovsky
019e6edf47 windows: NextEntryOffset is relative, not absolute 2011-09-22 10:36:35 -07:00
Ben Noordhuis
bee7112de0 unix: move container_of and SAVE_ERRNO to internal.h 2011-09-22 00:51:46 +02:00
Ben Noordhuis
2a1c32a60c linux: implement file watcher API 2011-09-21 13:23:49 -07:00
Igor Zinkovsky
1e0757ffda windows: file watcher 2011-09-21 13:13:34 -07:00
Ben Noordhuis
12d3680cd4 unix: fix warning: implicit declaration of function ‘isatty’ 2011-09-21 19:26:25 +02:00
Ben Noordhuis
236b96a8cf unix: define HAVE_FUTIMES on freebsd 2011-08-17 07:01:29 +02:00
Ben Noordhuis
c455f37803 unix: freebsd doesn't have fdatasync, do a full fsync instead 2011-08-17 06:40:39 +02:00
Ryan Dahl
c03d42607e More tty on unix fixes 2011-09-20 14:59:30 -07:00
Ryan Dahl
2ef8f359ee tty fixes for unix 2011-09-20 13:14:16 -07:00
Ryan Dahl
c1374ba587 Add uv_is_tty() 2011-09-20 11:48:47 -07:00
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
Ben Noordhuis
a9ba756bfd unix: fix warning: comparison between signed and unsigned integer expressions 2011-09-05 15:04:16 +02:00
Ben Noordhuis
d9176108d2 unix: fix event loop not being unref'd on eio error 2011-09-05 15:03:52 +02:00
Ben Noordhuis
ed355d371e unix: fix const correctness warnings 2011-09-05 14:23:41 +02:00
Igor Zinkovsky
a8017fd8a2 windows: update uv_fs_* functions to work with req.path 2011-09-04 23:58:31 -07:00
Igor Zinkovsky
b90459fc81 windows: use _stati64 2011-09-04 23:31:25 -07:00
Ryan Dahl
991f6ee044 unix: Set req->result to -1 on async uv_fs_readdir error
fixes test/simple/test-fs-error-messages.js in node.
2011-09-04 18:45:45 -07:00
Ryan Dahl
be3b37854e win: initialize req.path = NULL. 2011-09-04 18:38:42 -07:00
Peter Bright
e1af07e831 Open files with sharing enabled. Fixes node's issue #1449.
https://github.com/joyent/node/issues/1449
2011-09-04 18:37:28 -07:00
Ryan Dahl
a18860aec6 Add uv_fs_t.path on unix and tests
Windows implementation missing https://github.com/joyent/libuv/issues/177
2011-09-04 18:05:11 -07:00
Ryan Dahl
b6ede6c724 unix: uv_fs_readdir sync skips . and ..
Fixes test fs_async_dir
2011-09-04 17:13:05 -07:00
Ryan Dahl
142a70292b unix: fix fs_chmod 2011-09-04 16:09:45 -07:00
Ryan Dahl
a52a2c781a Fix warning on darwin 2011-09-04 15:48:54 -07:00
Ben Noordhuis
d3f60da67c unix: implement uv_fs_readlink 2011-09-05 00:12:16 +02:00
Peter Bright
7db243dc6f Bring inline with node common.gypi.
Win32 readlink()
2011-09-04 13:24:45 -07:00
Igor Zinkovsky
060026ced3 windows: uv_fs_link + uv_fs_symlink 2011-09-04 13:24:35 -07:00
Bert Belder
7b87ff7c9b win: rename uv_loop_t.ares_channel to ares_chan to avoid confusing g++ 2011-09-04 21:54:31 +02:00
Bert Belder
360f4119e4 Make getsockname/getpeername handle uninitialized sockets better 2011-09-04 19:18:56 +02:00
Bert Belder
12b01e95f9 Specialize uv_xxx_getsockname, add uv_tcp_getpeername 2011-09-04 04:49:13 +02:00
Ben Noordhuis
18af13795f unix: fix warning: implicit declaration of function ‘strerror’ 2011-09-04 03:45:28 +02:00
Ben Noordhuis
b680703178 unix: fix warning: implicit declaration of function ‘memcpy’ 2011-09-04 03:45:15 +02:00
Luis Lavena
6422a14a8f windows: correct a preprocessor typo
GCC chokes on ##name## concatenation (since . and prepare are invalid
tokens)
2011-09-04 02:26:53 +02:00
Igor Zinkovsky
cf5ed86a79 windows: implement missing fs functions 2011-09-03 12:23:27 -07:00
Ryan Dahl
b89f4f34a4 implement uv_fs_utime 2011-09-01 17:40:57 -07:00
Ryan Dahl
b47fa77eb5 unix/fs.c: Apply macro magic, implement symlink, link, chown, fchown 2011-09-01 17:12:31 -07:00
Ryan Dahl
9f932f92cf add test fs_chmod, implement uv_fs_fchmod and uv_fs_chmod on unix 2011-09-01 15:36:01 -07:00
Ryan Dahl
2e6035895c Add test for uv_fs_fstat, implement on unix. 2011-09-01 14:15:06 -07:00
Igor Zinkovsky
716e8eab39 windows: fix issue with SetFileCompletionNotificationModes on 64bit xp 2011-09-01 13:46:07 -07:00
Igor Zinkovsky
22197ebf3f windows: include _stat struct into uv_fs_t 2011-09-01 11:54:43 -07:00
Ryan Dahl
836cc204b6 unix: Fix test-gethostbyname 2011-08-31 15:37:16 -07:00
Ryan Dahl
6fd340b8ca unix: split out stream into its own file 2011-08-31 13:41:22 -07:00
Ryan Dahl
38ce213b6a unix: split out pipe 2011-08-31 13:29:17 -07:00
Ryan Dahl
510407c03d unix: split out tcp module 2011-08-31 13:11:38 -07:00
Ryan Dahl
e553f96f94 unix: split out uv_spawn into src/unix/process.c 2011-08-31 11:50:08 -07:00
Ryan Dahl
490c83dd35 move src/uv-unix.c to src/unix/core.c 2011-08-31 11:26:43 -07:00
Ryan Dahl
6144c93bbc unix: split out error code into separate file 2011-08-31 11:23:29 -07:00
Ryan Dahl
e97958ac3b unix: Split out c-ares integration into separate file 2011-08-31 11:23:29 -07:00
Ryan Dahl
58461d5ae7 split out unix's udp source 2011-08-31 11:23:29 -07:00
Ryan Dahl
ea4271fa90 submit error to correct loop 2011-08-31 01:43:09 -07:00
Ryan Dahl
1408ac4c4f Move src/ev to src/unix/ev 2011-08-31 00:33:14 -07:00
Ryan Dahl
5fd68a016a Move unix platform files into src/unix 2011-08-31 00:29:47 -07:00
Ryan Dahl
231298a5e8 move eio stuff into src/unix 2011-08-31 00:24:07 -07:00
Ryan Dahl
e3f910d0a9 Multiplicity update on unix
Does not yet support multithreaded use of the thread pool.
2011-08-30 23:55:08 -07:00
Bert Belder
78debf9f67 win: multiplicity 2011-08-31 04:19:16 +02:00
Ryan Dahl
56dcaf9b06 unix: multiplicity 2011-08-31 04:18:55 +02:00
Ben Noordhuis
0ba44cfd4e ev: improve feature detection on linux 2011-08-30 12:49:48 +02:00
Jeroen Janssen
2af955dbf4 Fix posix dirent usage
Fixes #161
2011-08-30 03:16:03 -07:00
Ryan Dahl
ca1171132e win: stub out missing uv_fs functions 2011-08-30 01:53:24 -07:00
Ryan Dahl
a6ed1757ab unix: implement uv_fs_lstat 2011-08-30 01:32:53 -07:00
Ryan Dahl
894c005c42 unix: fix fs_async_sendfile 2011-08-30 00:52:43 -07:00
Ryan Dahl
1a4ead53d6 unix: implement uv_queue_work 2011-08-29 22:57:34 -07:00
Ryan Dahl
0e81406bfb unix fs_async_dir works 2011-08-29 22:08:51 -07:00
Ryan Dahl
5d524fff1a unix passes test fs_file_async 2011-08-29 20:41:45 -07:00
Jorge Chamorro Bieling
cbbb254e57 Fix for joyent/node#1506, OSX threaded write()s bug 2011-08-29 15:21:11 -07:00
Ryan Dahl
3be275bad7 Begin implementation of UNIX uv_fs_ functions
Adding this incomplete work now to ease rebase troubles later as it moves
the functions to src/unix/fs.c and introduces src/unix/internal.h.
2011-08-29 14:36:45 -07:00
Igor Zinkovsky
925564e968 windows: improve error handling for fs functions 2011-08-27 13:59:34 -07:00
Igor Zinkovsky
3ea037ccb0 windows: free fs arguments inside uv_fs_req_cleanup 2011-08-26 18:11:31 -07:00
Ryan Dahl
7cad73aa47 Fix build for UNIX 2011-08-26 11:26:24 -07:00
Igor Zinkovsky
25175c7071 uv_fs & uv_work APIs 2011-08-26 11:00:53 -07:00
Clifford Heath
835782a980 eio: Mac OSX 10.5 (Leopard) does not have fdatasync 2011-08-26 18:08:42 +02:00
Bert Belder
39aac4a5fc win: better shutdown for pipes 2011-08-26 02:21:33 +02:00
Bert Belder
27c52a6034 win: stop reading on tcp receive error 2011-08-26 02:21:32 +02:00
Ben Noordhuis
6490c6a38e unix: improve accept4 syscall feature check 2011-08-26 00:16:07 +02:00
Ryan Dahl
40efa9c731 win: Fix uv_getsockname for UDP 2011-08-24 17:40:35 -07:00
Bert Belder
1f28f81236 Fix mingw missing IPV6_V6ONLY 2011-08-24 15:38:51 +02:00
Bert Belder
1870c18f3c win: change uv_getsockname signature to support udp 2011-08-24 04:55:08 +02:00
Bert Belder
5c9d749a57 win: udp support 2011-08-24 04:55:08 +02:00
Ben Noordhuis
36ce74f2ca Add UDP support to libuv. 2011-08-24 04:55:01 +02:00
Ben Noordhuis
52024061e4 Make uv_getsockname() operate on uv_handle_t handles. 2011-08-24 04:17:36 +02:00
Bert Belder
5cae6e4e57 win: use uv_req_t.overlapped.Internal field to propagate request errors 2011-08-23 21:24:14 +02:00
Bert Belder
811828719f win: store the tcp deferred bind error in uv_tcp_t.bind_error, remove uv_handle_t.error 2011-08-23 20:41:16 +02:00
Bert Belder
b931e93c3f win: get rid of deferring bind errors for uv_pipe_t
It doesn't work anyway
2011-08-23 20:41:15 +02:00