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
6921d2fc07
Add argument to uv_pipe_init for IPC, unix impl
2011-10-06 10:17:07 -07: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
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
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
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
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
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
Igor Zinkovsky
f9ad0a7bf6
windows: fire UV_CHANGE in case of overflow
2011-09-22 15:09:07 -07:00
Igor Zinkovsky
019e6edf47
windows: NextEntryOffset is relative, not absolute
2011-09-22 10:36:35 -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
Igor Zinkovsky
ee115bfd8d
windows: fail uv_spawn() if options.file is NULL
2011-09-19 16:03:38 -07: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
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
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
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
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