Ben Noordhuis
dd31265751
unix: move check code from core.c to check.c
2012-04-04 05:25:34 +02:00
Ben Noordhuis
f1a19e6d34
unix: move prepare code from core.c to prepare.c
2012-04-04 05:25:34 +02:00
Ben Noordhuis
f7359a335c
unix: move async code from core.c to async.c
2012-04-04 05:25:34 +02:00
Ben Noordhuis
fd987a26fe
unix: move timer code from core.c to timer.c
2012-04-04 05:25:27 +02:00
Ben Noordhuis
c733cb807d
build: sort source files
2012-04-04 05:12:02 +02: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
396d1383fe
Merge branch 'v0.6'
2012-04-02 23:50:27 +02:00
Ben Noordhuis
9c8f6dd4f9
build: define _DARWIN_USE_64_BIT_INODE=1 on OS X
...
Fixes a segmentation fault on some OS X systems due to sizeof(struct stat)
mismatches.
2012-04-02 23:49:53 +02:00
Brian White
9d3c00046f
test: ensure valid uptime value
2012-04-01 21:15:51 +02:00
Brian White
442aa1f469
win: use performance counter instead of GetTickCount for uptime
2012-04-01 21:15:38 +02:00
Vladimir Dronnikov
b309f2e2e6
Add uv_is_closing()
...
Closes #367 .
2012-04-01 21:05:50 +02:00
Ben Noordhuis
685b36ba66
linux: tidy up syscall code
2012-03-31 00:19:01 +00:00
Ben Noordhuis
4632163190
sunos: don't use fopen()
...
FILE uses an unsigned char to store the file descriptor so it cannot handle
situations where there are more than 256 open file descriptors.
2012-03-31 00:04:37 +00: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
4360018774
add missing uv_tcp_close declaration
2012-03-30 11:49:31 -07:00
Igor Zinkovsky
ab8c3b85c1
export uv_is_readable & uv_is_writable
2012-03-29 18:38:33 -07:00
Igor Zinkovsky
c3daa44c25
windows: explicitly disallow sending non-listening or non-connected
...
TCP sockets over IPC
2012-03-29 18:19:01 -07:00
Igor Zinkovsky
70925c3bb9
windows: Enable passing of TCP connections over IPC
2012-03-29 18:18:46 -07:00
Bulat Shakirzyanov
31ff9863a1
unix: fix TARGET_OS_IPHONE conditional
2012-03-28 15:45:44 +02:00
Bert Belder
6e0ca3aa8f
Merge branch 'v0.6'
...
Conflicts:
src/unix/linux/inotify.c
2012-03-27 23:46:23 +02:00
Bert Belder
1795427ab0
Windows: never call fs event callbacks after closing the watcher
2012-03-27 23:00:26 +02:00
Bert Belder
aff078390f
Test: verify that uv_close from an fs event callback works properly
2012-03-27 23:00:26 +02:00
Bert Belder
732cf91d6d
Test: verify that no callbacks are made after closing an fs event watcher
2012-03-27 23:00:26 +02:00
Bert Belder
89303f365e
Fs event tests: don't fail if a previously failed test left stray files
2012-03-27 23:00:25 +02:00
Bert Belder
7e8fe3ece7
test-fs-event.c: style
2012-03-27 23:00:25 +02:00
Aaron Bieber
40e6373263
unix: fix compiler warning
...
Fix warning "for loop initial declaration used outside C99 mode" on openbsd.
2012-03-27 17:34:18 +02:00
Vladimir Dronnikov
2b3ba91eb9
build: make make clean really clean
2012-03-27 16:14:06 +02:00
saghul
e729a82e7d
build: don't link against the Carbon framework
...
Unused. The Makefile doesn't link against it either.
2012-03-26 00:13:55 +02:00
Ben Noordhuis
8409a6765b
unix: ignore ECONNABORTED errors from accept()
...
ECONNABORTED means that the connection was torn down by the peer before the
TCP handshake completed. Ignore it, there's nothing we can do and it simplifies
error handling for libuv users.
2012-03-21 15:42:29 -07:00
Ben Noordhuis
c9c9d805da
unix: ignore ECONNABORTED errors from accept()
...
ECONNABORTED means that the connection was torn down by the peer before the
TCP handshake completed. Ignore it, there's nothing we can do and it simplifies
error handling for libuv users.
2012-03-21 07:07:20 -07:00
Ben Noordhuis
8ce8bfaa40
test: fix format string warnings
2012-03-21 06:26:10 -07:00
Charlie McConnell
8e59042310
unix: map ENETUNREACH to UV_ENETUNREACH
...
UV_ENETUNREACH already exists, but was not mapped properly on unix.
2012-03-21 02:11:43 +01:00
Ben Noordhuis
4ff0898c5f
unix: replace uv__close() with close()
...
uv__close() was deprecated a while ago. It's been an alias for close() ever
since. Remove it.
2012-03-21 02:11:18 +01:00
Ben Noordhuis
ef47a627ad
unix: move libeio specific fields to uv-unix.h
2012-03-21 02:11:18 +01:00
Ben Noordhuis
49d4e1884b
linux: use CLOCK_BOOTTIME if available
...
Use CLOCK_BOOTTIME to calculate the system uptime. Fall back to CLOCK_MONOTONIC
if CLOCK_BOOTTIME is not available (all pre-2.6.39 kernels).
The problem with CLOCK_MONOTONIC is that it doesn't increase when the system is
suspended, making the uptime differ from what the uptime(1) tool reports.
2012-03-19 07:55:16 -07:00
Ben Noordhuis
379ca428ef
test: fix compiler warnings
...
* remove unused variables and functions
* replace %llu with %zu when printing size_t variables
2012-03-16 02:46:51 +01:00
Bert Belder
4ae316bcc9
Windows: fix compiler warnings
2012-03-16 02:38:37 +01:00
Ben Noordhuis
681aa831fa
Mark rbtree functions with __attribute__((unused)).
2012-03-16 02:35:05 +01:00
Ben Noordhuis
87151c8a7b
Use RB_GENERATE_STATIC, not RB_GENERATE_INTERNAL.
2012-03-16 02:35:05 +01:00
Bert Belder
163d8de392
Add UV_ENOSPC and mappings to it
...
Closes GH-337
2012-03-16 02:32:06 +01:00
Bert Belder
aff94a069c
Add UV_ENOSPC and mappings to it
...
Closes GH-337
2012-03-16 02:31:12 +01:00
Ben Noordhuis
dfda5009c2
unix, win: store ares handles in a binary tree
...
Store the uv_ares_task_t handles in a red-black tree, not a linked list.
Fixes #72 .
2012-03-16 00:49:29 +01:00
Ben Noordhuis
c21184c103
test: make variables in benchmark-ares static
2012-03-16 00:48:06 +01:00
Ben Noordhuis
6031156602
test: silence compiler warning
...
main_proc is never read without having been initialized first but gcc 4.4.x
fails to infer that.
2012-03-15 16:09:06 +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
66a959c405
linux: try inotify_init if inotify_init1 returns ENOSYS
...
The kernel may be older than the kernel headers that libuv is compiled against.
2012-03-15 01:09:16 +01:00
Ben Noordhuis
6dcce92d44
unix: replace C99/C++ comments, fix build
2012-03-15 01:09:16 +01:00
Ben Noordhuis
1b6df97690
linux: try inotify_init if inotify_init1 returns ENOSYS
...
The kernel may be older than the kernel headers that libuv is compiled against.
2012-03-15 01:01:21 +01:00