isaacs
8988af58f4
Externalize node::no_deprecation
13 years ago
Ben Noordhuis
09150b0616
node: replace NODE_STAT_STRUCT with uv_statbuf_t
13 years ago
Ben Noordhuis
067be2b3fe
node: fix namespacing issue in ev-emul.h
Always use C linkage, prevent accidental name mangling.
13 years ago
Ben Noordhuis
7de6eba061
node: preemptively unbreak windows build
No one has complained about it so far but I'm sure MSVC doesn't like things
like __attribute__((unused)). Include the libev and libeio shims only on
non-Windows platforms.
13 years ago
Ben Noordhuis
1b22f5376b
build: install eio-emul.h
13 years ago
Ben Noordhuis
f405517de1
build: install ev-emul.h
13 years ago
Ben Noordhuis
eef57dddf4
core: use proper #include directives
13 years ago
Joel Brandt
b9c5eee7d9
add NODE_EXTERN to node::Start
13 years ago
Ben Noordhuis
e4a8d2617b
addon: add AtExit() function
Lets native addons register exit hooks that run after the event loop has quit
but before the VM is killed.
Fixes #3147 .
13 years ago
isaacs
ac1aaddc00
MakeCallback: Return the callback return value
13 years ago
isaacs
7407be896e
MakeCallback: Accept Function or Symbol argument
13 years ago
Igor Zinkovsky
052aaa4c4d
windows: use 64bit offsets for uv_fs apis
13 years ago
Ben Noordhuis
ff4a9d381d
core: use proper #include directives
13 years ago
Ben Noordhuis
74a8215a86
Revert support for isolates.
It was decided that the performance benefits that isolates offer (faster spin-up
times for worker processes, faster inter-worker communication, possibly a lower
memory footprint) are not actual bottlenecks for most people and do not outweigh
the potential stability issues and intrusive changes to the code base that
first-class support for isolates requires.
Hence, this commit backs out all isolates-related changes.
Good bye, isolates. We hardly knew ye.
13 years ago
Roman Shtylman
e97b961815
add node::SetMethod and node::SetPrototypeMethod
defines cannot be used if the callback is a templated and has
multiple template arguments. The comma separating the arguments
breaks the preprocessor argument handling. Using a templated function
is clearer and more idiomatic in c++.
13 years ago
Igor Zinkovsky
6c0c00a205
fix windows build
13 years ago
Ryan Dahl
20ba454ef9
Add node::Loop() and don't inc node_isolate.h in *.cc
node::Loop() replaces the NODE_LOOP macro. This avoids hitting
v8::Isolate::GetCurrent() for each loop lookup when HAVE_ISOLATE==0
13 years ago
Ryan Dahl
f168f7d702
Remove node_isolate.h from node.h
13 years ago
Ben Noordhuis
09dc577931
build: move internals to separate header file
13 years ago
Ben Noordhuis
356992fe4d
isolates: isolate-ify the main loop
13 years ago
Ryan Dahl
9d792f3183
Add node::Loop() and don't inc node_isolate.h in *.cc
node::Loop() replaces the NODE_LOOP macro. This avoids hitting
v8::Isolate::GetCurrent() for each loop lookup when HAVE_ISOLATE==0
13 years ago
Ryan Dahl
87bb848268
Remove node_isolate.h from node.h
13 years ago
Ben Noordhuis
a778a25cab
build: move internals to separate header file
13 years ago
Ben Noordhuis
c3346f6760
isolates: isolate-ify the main loop
13 years ago
Bert Belder
823a443321
Rename FSError to UVException and move to node.cc
13 years ago
Ryan Dahl
b0030af135
Fixes #2140 . Fix illumos build.
13 years ago
Bert Belder
6ee73a2fee
Windows: ErrnoException shouldn't mix up crt and win32 errors
13 years ago
Igor Zinkovsky
24a69d22a0
process.kill to use uv_kill
13 years ago
Bert Belder
a56a95b652
Export some functions from node.h
13 years ago
Bert Belder
4a1efb2b9c
Support native extension loading on Windows
13 years ago
Bert Belder
889620dcd2
Wrap long lines, strip trailing whitespace
13 years ago
Bert Belder
1e2d777601
Remove outdated comment
13 years ago
Ryan Dahl
6cc42927d8
Display sys_errno when UV_UNKNOWN is returned
13 years ago
Ben Noordhuis
c4eaf7e5a9
crypto: implement randomBytes() and pseudoRandomBytes()
13 years ago
Igor Zinkovsky
bce41fac94
Use new uv_fs_ apis
This will cause master to be unstable for a while as we replace existing eio
calls with uv_fs calls.
14 years ago
Ben Noordhuis
7003d6eff5
Move ARRAY_SIZE macro to node.h
14 years ago
Peter Bright
13d6a1f67f
Basic VC++ compatibility work.
14 years ago
Mariano Iglesias
02ebcd8e26
Adding missing v8 namespace to NODE_PSYMBOL
14 years ago
Mariano Iglesias
075605f304
Adding missing v8 namespace to NODE_PSYMBOL
14 years ago
Henry Rawas
47a5d93256
Fix test-net-pingpong.js on windows
14 years ago
Ryan Dahl
650a308634
Move MakeCallback and SetErrno to node.cc
14 years ago
Bert Belder
9cec08e490
Batch of ev -> uv changes
14 years ago
Ryan Dahl
c8e447ee63
Fix timeouts with floating point numbers bug
fixes #897 .
14 years ago
Dean McNamee
f67e8f243c
Export more functions for initializing and starting node.
For greater flexibility in controlling node's initialization and startup, the
following new functions are exported.
- node::Init()
- node::SetupProcessObject()
- node::Load()
- node::EmitExit()
These are some of the major steps involved in node::Setup(). Exporting these
functions allows an embedding program to write a replacement for node::Start(),
and to have access to the node process object after it's created.
14 years ago
Ryan Dahl
55048cdf79
Update copyright headers
14 years ago
Ryan Dahl
161f7aacf7
Add missing v8:: namespace prefix
14 years ago
isaacs
0aa1a8a005
Closes GH-695 Add 'hex' encoding to Buffer
14 years ago
Konstantin Käfer
9e101f2b01
UCS-2 support
Closes GH-644.
14 years ago
Bert Belder
f48c36f74f
Use unicode and bigfile aware stat/fstat
14 years ago
Ryan Dahl
b57c1f51b9
Saner, yet still ugly, fix to displaying syntax errors
14 years ago