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
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
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
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
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
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
985f1a1b2d
cleanup
2011-09-25 04:09:21 +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
Ryan Dahl
03652596cf
unix: add uv_guess_handle and uv_tty_get_winsize
2011-09-22 19:35:46 -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
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
Ryan Dahl
c1374ba587
Add uv_is_tty()
2011-09-20 11:48:47 -07: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
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
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
Bert Belder
f790b689a7
Remove uv_init from uv.h and windows backend
2011-09-12 11:32:41 -07: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
52eca75152
unix: uv_pipe_t should not depend on UV_TCP_PRIVATE_FIELDS
2011-09-10 01:39:46 +02:00
Bert Belder
3d538af06b
win: correctly manage child process stdio handles
2011-09-06 03:20:16 +02:00
Ben Noordhuis
b7d88070d8
fs: add UV_ENOENT error code, add test
2011-09-06 00:17:59 +02:00
Igor Zinkovsky
b90459fc81
windows: use _stati64
2011-09-04 23:31:25 -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
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
12b01e95f9
Specialize uv_xxx_getsockname, add uv_tcp_getpeername
2011-09-04 04:49:13 +02:00
Igor Zinkovsky
22197ebf3f
windows: include _stat struct into uv_fs_t
2011-09-01 11:54:43 -07:00
Ryan Dahl
cec94ee075
docs for uv_fs methods
2011-08-31 11:23:29 -07:00
Ryan Dahl
b47c474cfd
Move private headers into include/uv-private
2011-08-31 00:43:55 -07:00
Bert Belder
78debf9f67
win: multiplicity
2011-08-31 04:19:16 +02:00
Bert Belder
3aec77f9d4
bring back uv_init
2011-08-31 04:19:07 +02:00
Ryan Dahl
56dcaf9b06
unix: multiplicity
2011-08-31 04:18:55 +02: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
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
3a374ca7c9
add missing values to uv_fs_type
2011-08-26 21:51:39 -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
Bert Belder
39aac4a5fc
win: better shutdown for pipes
2011-08-26 02:21:33 +02:00
Ryan Dahl
80e5491886
Simplify UDP docs
2011-08-24 12:25:15 -07: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