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
Marek Jelen
d9fb84c02c
build: absorb CFLAGS from environment
2011-09-22 17:37:44 +02: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
2dae0c9e49
test: remove futimes sub-second precision checks, unreliable on freebsd
2011-08-17 07:02:00 +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
Ben Noordhuis
78f4acacf1
build: fix freebsd gyp build
2011-08-17 06:40:17 +02:00
Ben Noordhuis
9f8bc7b4b8
build: add test-tty to gyp file list, unbreaks build
2011-09-21 00:26:29 +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
Ben Noordhuis
6beeb5fc07
Update AUTHORS and .mailmap
2011-09-20 06:30:14 +02: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
8f6f324746
build: use -m32 only when host_arch != target_arch
...
Unbreaks the gyp build on x86_64 linux systems.
2011-09-19 16:57:39 +02:00
Ryan Dahl
2f18cf5ecf
Fix gyp build
2011-09-18 18:34:40 -07: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
Ben Noordhuis
4487531b06
test: check that write_queue_size updates after write error
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
f00a5e6503
ignore SIGPIPE in tests
2011-09-16 15:36:35 -07:00
Ryan Dahl
2640aae125
unix: Reset flags for stdio fds after fork
2011-09-15 15:24:09 -07:00
Erick Tryzelaar
533418d4da
test and bench: assert return values of *_init functions in tests
2011-09-15 22:33:48 +02:00
Erick Tryzelaar
905fe71341
unix: fix a compiler warning
2011-09-15 22:33:32 +02:00
Erick Tryzelaar
970018156f
test: fix compiling with gcc-4.5
2011-09-15 22:33:22 +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