Commit Graph

336 Commits

Author SHA1 Message Date
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