Ben Noordhuis
5d19aa84f0
unix, win: rework uv_dlopen() API
2012-05-03 19:36:40 +02:00
Bert Belder
b9504f7987
Rename uv_platform_socket_t to uv_os_sock_t
2012-05-03 16:05:05 +02:00
Bert Belder
d60d94e0c3
Unix: implement uv_poll
2012-05-03 15:52:56 +02:00
Bert Belder
d7a71761c4
Windows: implement uv_poll
2012-05-03 15:52:52 +02:00
Bert Belder
19aca7a7c0
Windows: add uv_msafd_poll, to support overlapped socket polling
2012-05-02 03:45:00 +02:00
Bert Belder
99a995a6b8
uv_spawn: support setting the child process' user and group id
2012-04-28 02:38:41 +02:00
Bert Belder
1b6329dd3e
Style fixes
2012-04-25 00:30:07 +02:00
Igor Zinkovsky
d5acfd0c05
64bit offsets for fs operations and cleanup uv_fs_* for uv-win
2012-04-18 11:05:27 -07:00
Ben Noordhuis
3c415975d9
unix: don't conditionally compile kqueue fs watcher
...
Always compile in the kqueue-based fs event watcher and handle it at run-time
if the kernel doesn't actually support it.
Works around build issues when -mmacosx-version-min is not set properly.
Fixes joyent/node#3075 .
2012-04-10 23:22:32 +02:00
Bert Belder
5f38ba1a89
Move private req and handle fields to platform headers
...
And fix other problems introduced with UV_HANDLE_TYPE_MAP and UV_REQ_TYPE_MAP.
2012-04-05 01:28:24 +02:00
Ben Noordhuis
ed395e0619
unix: replace handle->next_watcher
...
Remove the next_watcher and replace it with a linked list. Said list is named
endgame_handles (because the uv-win calls it that) and contains all the handles
that are in the UV_CLOSING state.
The goal of this commit is two-fold:
a) remove a dependency on libev, and
b) share more code with uv-win in the future
A nice side effect is that it shaves a few bytes off a uv_handle_t.
2012-04-04 05:22:20 -07:00
Ben Noordhuis
effa3b65b1
Rename __unused to UV__UNUSED.
...
__unused is - contrary to its name - used in glibc.
The ANSI/ISO standards reserve all identifiers starting with two underscores so
it's generally a good idea not to use those.
2012-04-03 17:41:50 +02:00
Ben Noordhuis
8895c9e672
unix: use uv_timer_t for c-ares' timeout timer
2012-04-03 03:23:57 +02:00
Ben Noordhuis
42095c85a0
Remove UV_ARES_TASK_PRIVATE_FIELDS.
...
It's only used internally, it doesn't have to be part of a public header file.
2012-04-03 02:44:50 +02:00
Ben Noordhuis
1ab8f5a3c5
Conditionally define __unused.
...
Fixes compiler warning '"__unused" redefined' on OS X.
Reported by Saúl Ibarra Corretgé.
2012-03-30 22:40:53 +02:00
Igor Zinkovsky
70925c3bb9
windows: Enable passing of TCP connections over IPC
2012-03-29 18:18:46 -07:00
Ben Noordhuis
ef47a627ad
unix: move libeio specific fields to uv-unix.h
2012-03-21 02:11:18 +01:00
Ben Noordhuis
681aa831fa
Mark rbtree functions with __attribute__((unused)).
2012-03-16 02:35:05 +01:00
Ben Noordhuis
7a2bd05493
Fix include guard in tree.h and ngx-queue.h
...
The C99 standard reserves all identifiers (including macros) that start with an
underscore and a capital letter.
Fixes #260 .
2012-03-15 02:23:22 +01:00
Ben Noordhuis
d3efefb043
linux: share inotify fd across event loop
...
Previously, a new inotify fd was created for each watcher, making it quite easy
to run into the system-wide fs.inotify.max_user_instances limit (usually 128).
Fixes #300 .
2012-02-23 09:21:30 -08:00
Bert Belder
1d942e2ad4
Merge branch 'v0.6'
2012-02-13 20:02:39 +01:00
Bert Belder
6c80bf34d3
Clean up error handling in win/fs.c, add some error mappings
2012-02-13 20:01:19 +01:00
Ben Noordhuis
c5aa86bd39
Remove uv_import() and uv_export().
...
Not needed anymore now that support for isolates has been removed from Node.
This commit reverts the following commits:
812e410 test: fix up stream import/export test
e34dc13 unix: implement uv_import() and uv_export()
d1a0e8e test: fix undefined macro error
2ce0058 import/export streams accross loops
2012-02-12 15:49:54 +01:00
Ben Noordhuis
e34dc13496
unix: implement uv_import() and uv_export()
2012-01-30 21:44:47 +01:00
Igor Zinkovsky
2ce0058251
import/export streams accross loops
2012-01-30 21:44:27 +01:00
Ben Noordhuis
6d9c9a533f
Add uv_loop_refcount() function, debug tool.
2012-01-14 00:33:08 +01:00
Igor Zinkovsky
4d1d02fd18
windows: ensure that uv_fs_event callbacks have long names
2011-12-30 14:59:28 -08:00
Igor Zinkovsky
60630dab0f
windows: enable pending pipe instances knob
2011-12-01 13:48:57 -08:00
Ben Noordhuis
224584c53e
sunos: check that event ports supports fs watching
2011-11-10 20:04:55 +01:00
Igor Zinkovsky
78f4b120a1
windows: knob for tuning number of concurrent accept requests
2011-10-31 23:37:45 -07:00
Bert Belder
90e15f1110
Implement uv_dlopen and friends
2011-10-29 00:52:34 +02:00
Ben Noordhuis
3e4af533ae
sunos: implement file watcher API
2011-10-26 03:49:34 +00:00
Bert Belder
fb7138614d
Improve ansi escape code support on windows
2011-10-20 19:31:24 -07:00
Igor Zinkovsky
28234d7336
windows: ref pipe writes to keep the event loop alive
2011-10-20 15:14:55 -07:00
Igor Zinkovsky
54982a23ef
windows: stdio over non-overlapped pipes
2011-10-20 15:14:39 -07:00
Bert Belder
51e9dbc2bb
Work around windows udp bug, allow zero reads
2011-10-20 15:01:31 -07:00
Igor Zinkovsky
72b5976e83
windows: support utf8 in uv_fs functions
...
fixes #201
2011-10-12 13:24:22 -07:00
Igor Zinkovsky
4ac13090ca
fix mingw build
2011-10-11 10:45:02 -07:00
Ryan Dahl
5656e3c8bd
Prepare for writable TTY to be blocking
2011-10-10 13:25:46 -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
Igor Zinkovsky
34f719d7a5
windows ipc fixes
2011-10-06 10:17:42 -07:00
Igor Zinkovsky
81c4043c83
ipc on windows
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
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
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
Igor Zinkovsky
52511b9ddc
windows: implement uv_loop_new+uv_loop_delete
2012-01-16 17:07:49 -08:00
Ben Noordhuis
71f6c0edb8
Merge remote-tracking branch 'origin/v0.6'
...
Conflicts:
src/win/util.c
2012-01-16 18:07:49 +01:00