Ryan Dahl
de6e88c428
Fix segfault on test-crypto
Plus random cleanups. This code needs help.
14 years ago
Ryan Dahl
c7b24efd21
Move ev_loop out of javascript
14 years ago
Guillaume Tuton
07da49b095
Set FD_CLOEXEC flag on stdio FDs before spawning.
With regression test.
14 years ago
Ryan Dahl
a3750a9833
Remove unnecessary ref/unref in iowatcher cb
14 years ago
Ben Noordhuis
b4def4806c
Make writes to process.env update the real environment. Tests included.
14 years ago
Ryan Dahl
41c1563584
Remove old buffer api
14 years ago
Ryan Dahl
9c2969253b
Make sure watcher.set() isn't being called when active
14 years ago
Ryan Dahl
016fdab43e
Fix argv[6] comment in node_file
14 years ago
Micheil Smith
98e7d3506f
Rewrite libeio After callback to use req->result instead of req->errorno for error checking
14 years ago
Ryan Dahl
ccdd979a69
Changes to compile on solaris
14 years ago
isaacs
4c514a723c
Let exit listeners know the exit code
14 years ago
Jorge Chamorro Bieling
fd70d30a9c
make "node --eval" eval in the global scope.
14 years ago
Tim-Smart
79ecc8e9b7
Style changes.
14 years ago
Ryan Dahl
79944006e2
Move setTimeout and friends into timers module
14 years ago
Ryan Dahl
dcc4fffe4d
Add C++ API for constructing fast buffer from string
14 years ago
Paul Querna
6ea61acf29
remove old todo.
14 years ago
Paul Querna
1ce4684a27
Centralize error handling in SecureStream
and add a start method, to kick off SSL handshaking, without writing a zero
byte buffer
14 years ago
Micheil Smith
8da020d39e
Update node_net.cc to make us of node_constants.cc
also affects dgram which uses a constant from node_net.cc
14 years ago
Ryan Dahl
bb85e7751f
Now working on v0.3.1
14 years ago
Ryan Dahl
1582cfebd6
bump version to 0.3.0
14 years ago
Stéphan Kochen
dd52737476
Provide a C++ Buffer constructor for external storage.
In order to do this, buffer data management was moved out of the
JS entry-point New, and into Replace.
Secondly, the constructor makes an immediate call to Replace, and
in order for ArrayData calls to work, wrapping must already be set
up. Now, the constructor takes the wrappee as a parameter.
14 years ago
Stéphan Kochen
b3e60c7b25
Generalize Buffer::Copy to work with all unsigned byte external data.
14 years ago
Stéphan Kochen
d5e966154c
Simplify things by using `*ArrayData` everywhere.
14 years ago
Stéphan Kochen
d9b08d66d6
Remove old interface remains from Buffer.
These were all lacking implementation, so deprecating wouldn't help.
14 years ago
Ryan Dahl
b2969a9155
Don't call AtExit twice
14 years ago
Vitali Lovich
fb8830a64f
Fix parsing of linux memory
If process name contains a space, this parsing fails for no good reason.
15 years ago
Jorge Chamorro Bieling
99e19aa398
Remove unneeded function wrappers
14 years ago
Ryan Dahl
2629296c25
Add isatty for isaacs
14 years ago
Ryan Dahl
ceb5331a64
Force exit on SIGINT but still reset flags on stdio fds
Add test that one can ctrl+c out of a script spinning infinitely.
14 years ago
Tom Hughes
78da9cb052
Add --max-stack-size flag.
v8 doesn't expose a command-line flag to set the stack size, so this
adds a new flag that node understands how to handle and uses v8's
ResourceConstraints API.
14 years ago
isaacs
5e14c8bec0
Add ~/.node_modules as well as ~/.node_libraries
14 years ago
isaacs
b0adaff67e
require looks in node_modules folders
for modules starting with the __dirname and moving up.
This makes it much easier to localize dependencies to a particular program.
14 years ago
isaacs
492fc0d752
Split out modulePaths and defaultPaths
This way, the "default" paths of ~/.node_libraries and {prefix}/lib/node are only checked *after* anything that the user has placed into the NODE_PATHS environ, or pushed onto require.paths.
This makes require.paths a much more effective write-target, albeit slightly less useful as a read-target. However, given the existence of require.resolve(), this is less of an issue -- if you want to know what a module ID will map to, just ask that question and get an authoritative answer from the loading machinery.
14 years ago
isaacs
226eff5104
Add require.resolve.
Also, hack the repl so that it works as expected there, too.
14 years ago
Jorge Chamorro Bieling
c735b4663a
unbase64 skips over *any* illegal chars
14 years ago
Ryan Dahl
cf1db4f304
base64 decode should handle whitespace
14 years ago
Tom Hughes
f61b110cf6
Add signal handlers so we clean up before exiting.
Add SIGTERM and SIGINT signal handlers so that we run the exit handlers
before exiting when getting these signals. Fixes an issue where we
couldn't run vi after CTRL+C'ing node because the stdin fd was left
non-blocking.
14 years ago
Ryan Dahl
0fcb3bd3a9
Add .js to native script's filename
14 years ago
Ryan Dahl
c4636a578c
Dynamically load native scripts
14 years ago
Micheil Smith
83db91be41
Removed deprecated alias to lib/fs.js
14 years ago
Micheil Smith
e38eb0c5a4
Soft migration of sys -> util, Removal of deprecated utils module.
14 years ago
Rasmus Andersson
50443f08e0
environ symbol fix for Mac OS X
14 years ago
Ryan Dahl
cdd1d675a7
Remove old tcp module
14 years ago
Ryan Dahl
9d248f690a
Fix return in Buffer::New
14 years ago
Ryan Dahl
0cf03ab800
Add char* constructor for Buffer
14 years ago
Ryan Dahl
bc695475b9
Add Stream base class with stream.pipe
14 years ago
Ryan Dahl
fe74283e1d
Fix a few compiler warnings...
14 years ago
Ryan Dahl
a6017660d8
More clang fixes
14 years ago
Ryan Dahl
5dd08c6c71
Ugly fix for clang
14 years ago
Ryan Dahl
783f5019b0
Add flag to disable colors in REPL
14 years ago