Ryan Dahl
abe0b1ea61
Better request API
...
Instead of uv_shutdown, uv_write, uv_connect taking raw uv_req_t we subclass
uv_req_t into uv_shutdown_t, uv_write_t, and uv_connect_t.
uv_req_init is removed.
2011-07-14 10:45:28 -07:00
Igor Zinkovsky
f5ff869488
allocate windows pipe handles on demand
2011-07-13 20:43:10 -07:00
Ben Noordhuis
9aff11026b
runner: bring back benchmark output
2011-07-14 03:33:56 +02:00
Ben Noordhuis
86341f8e02
Makefile: disable test-% and bench-% targets
...
Targets bench-% and test-% mess up dependency resolution, disable for now.
2011-07-14 03:32:19 +02:00
Bert Belder
4c2d0545fc
Whitespace fixes
2011-07-14 03:00:21 +02:00
Bert Belder
4a6efee4ce
uv-win: get rid of unused variables
2011-07-14 03:00:20 +02:00
Ben Noordhuis
a29b2099ac
Make it possible to run individual tests.
...
Fixes #100 .
2011-07-14 02:19:36 +02:00
Ben Noordhuis
f142a4b60a
uv-linux: remove unused variables
2011-07-13 23:59:30 +02:00
Ben Noordhuis
b50105e491
uv-unix: remove unused variable
2011-07-13 23:59:01 +02:00
Ben Noordhuis
932f0ad16b
uv-linux: fix warning: implicit declaration of function ‘readlink’
2011-07-13 23:46:30 +02:00
Ben Noordhuis
f560f75a17
uv-unix: fix warning: control reaches end of non-void function
2011-07-13 23:46:30 +02:00
Ben Noordhuis
e364dd15c1
uv-unix: fix warning: no return statement in function returning non-void
2011-07-13 23:46:30 +02:00
Ben Noordhuis
aad95b841e
uv-unix: increment check_init counter in uv_check_init()
2011-07-13 23:05:09 +02:00
Bert Belder
28650425e2
uv-win: refactor request processing
2011-07-13 21:49:15 +02:00
Ben Noordhuis
9c19391536
test-ping-pong: cast callback to expected prototype.
2011-07-13 18:06:05 +02:00
Ben Noordhuis
afc96b58c8
test-delayed-accept.c: fix type mismatch in comparison.
2011-07-13 18:06:05 +02:00
Ben Noordhuis
1a53b89847
test-hrtime: fix printf() compiler warning.
2011-07-13 18:06:05 +02:00
Ben Noordhuis
0ebd2ce02d
test-delayed-accept: remove unused variable.
2011-07-13 18:06:05 +02:00
Ben Noordhuis
d7389e6f89
test-async: remove unused variable.
2011-07-13 18:06:05 +02:00
Ben Noordhuis
4829ad5d04
test-getsockname: fix function prototype, clean up unused variable.
2011-07-13 18:06:05 +02:00
Bert Belder
b4f1d58ab3
Add test-getsockname to msvs project
2011-07-13 16:40:04 +02:00
Bert Belder
036d5db16f
test-getsockname: minor cleanups
2011-07-13 16:39:54 +02:00
Ben Noordhuis
48eb98c464
unix: implement uv_getsockname()
2011-07-13 00:55:35 +02:00
Ben Noordhuis
f852c517a1
Change uv_pipe_*() prototypes from char* to const char*.
2011-07-13 00:12:30 +02:00
Henry Rawas
6a67b51b4c
fix uv_getsockname for listening socket
2011-07-12 22:43:43 +02:00
Henry Rawas
6b32ebc54f
uv_getsockname
2011-07-12 09:57:08 -07:00
Igor Zinkovsky
2e49cc56d1
Rename uv_pipe_create to uv_pipe_bind.
...
Fixes issue #97 .
2011-07-11 15:24:35 -07:00
Ben Noordhuis
1a0e452de1
freebsd: add uv_hrtime().
2011-07-11 03:00:34 +02:00
Ben Noordhuis
cef595eedc
Fix indentation in src/uv-freebsd.c
2011-07-11 03:00:34 +02:00
Ben Noordhuis
33b1b7acb9
Fix compiler errors on FreeBSD.
...
Fixes #93 .
2011-07-11 02:43:01 +02:00
Ben Noordhuis
8d3d4a4244
Revert 9518ab65: Allow user to specify CC env var (CC=clang make)
...
Conditional assignment (assign if not set) to CC and AR never works
because their default values with GNU make are `cc` and `ar` respectively.
Build with `make AR=your-ar CC=your-cc` if you want to override them.
Fixes #89 .
2011-07-10 17:22:32 +02:00
Ben Noordhuis
e2b2df6d2b
Fix alloc-after-close error, properly disarm uv_tcp_t handle.
2011-07-10 16:50:28 +02:00
Igor Zinkovsky
b6a6dae34f
Named pipes implementation for Windows
2011-07-09 21:41:04 +02:00
Bert Belder
5aa8c005ec
Windows: call shutdown before closesocket to ensure graceful disconnect
2011-07-09 21:31:48 +02:00
Ben Noordhuis
f7a3789ee7
Remove zero-length buffers from the write queue.
...
Zero-length buffers were written out but not removed,
so the write loop never terminated.
Fixes failing node.js test test/simple/test-http-1.0.js
2011-07-09 01:25:39 +02:00
Igor Zinkovsky
e147155821
fix in uv_insert_pending_req to work with multiple requests
2011-07-08 11:49:04 -07:00
Robert Mustacchi
ee599ec114
Fix Linux build
2011-07-07 23:55:58 -07:00
Robert Mustacchi
8287551b91
Fix SunOS build
2011-07-07 23:55:50 -07:00
Ryan Dahl
6d8c499e35
Don't export the private CPP symbols.
2011-07-07 22:38:41 -07:00
Ryan Dahl
18fa8c0ecd
Move ev.h to include/
2011-07-07 21:55:01 -07:00
Robert Mustacchi
8c00b369b4
C99 compatibility.
...
Get 99% of the way there for --std=c89 -pedantic for core files. Also cleans
up follow up warnings and others in tests.
2011-07-07 21:39:08 -07:00
Robert Mustacchi
786789490e
Clean target missing prefix for object files
2011-07-07 21:39:07 -07:00
Robert Mustacchi
c946697e7c
C89 compatibility.
...
This changes the libev constants to be the corresponding negative values.
Without this the header file is not valid ISO C 89. This fix makes the uv
header compile fine in a simple C 89 program.
2011-07-07 21:39:07 -07:00
Robert Mustacchi
341ecab2ef
Remove extra dereference on hints
2011-07-07 21:39:07 -07:00
Ben Noordhuis
1717d42165
read() and write() return ssize_t, not size_t.
...
rv < 0 error checks were always false.
2011-07-08 00:40:13 +02:00
Ben Noordhuis
a74f339d17
Fix linux syscall detection.
2011-07-07 22:06:44 +02:00
Bert Belder
cb07847949
Remove obsolete file
2011-07-07 18:09:05 +02:00
Bert Belder
81bb15feed
Change msvc projects, more sanity in ares build config on windows
2011-07-07 18:07:53 +02:00
Ryan Dahl
9518ab6594
Allow user to specify CC env var (CC=clang make)
2011-07-07 08:32:37 -07:00
Ryan Dahl
ce8ff3031c
src/ and include/ directories
...
Helps #71 but does not update the MSVC files.
2011-07-07 07:52:57 -07:00