Ryan Dahl
0b925d075d
bump version
15 years ago
Ryan Dahl
7db5c8a10d
Fix toString('base64') bug
Thanks to Stepan Stolyarov for the test case.
15 years ago
Ryan Dahl
adec544fdd
Revert "Expose the V8 debug object process.debug"
This reverts commit d9fbb8a580
.
15 years ago
Ryan Dahl
31b59400f8
Allow null context in Script
15 years ago
isaacs
1a1214866f
SetBlocking should set blocking, not toggle it
15 years ago
isaacs
e9aacd40c6
When the parent's stdio FDs are passed to a child, make them temporarily blocking.
Many programs do not handle non-blocking stdio very well. In particular,
man and less have serious problems with this, and since stdout isn't being
flushed after each write, the output jumps about on the screen as you page
down. Programs that do use non-blocking stdio will set that flag themselves
(as node does).
This puts the stdio file descriptors into blocking mode before sharing them
with the child process, so that one could spawn a vim subprocess, or some
other program that depends on blocking IO.
15 years ago
Ryan Dahl
d9fbb8a580
Expose the V8 debug object process.debug
Add one duplicate test from V8, just to make sure it works.
15 years ago
Brian
71009ad3fe
Allow signals to be used with process.on in addition to process.addListener.
15 years ago
Danny Coates
dc8c079d90
remove node::CheckBreak in favor of using the v8 debugger js object
15 years ago
Ryan Dahl
c38dd24dc5
Fix style
15 years ago
Ben Noordhuis
f72ac17c89
Buffer: graciously handle padding in base64-encoded input.
15 years ago
Ryan Dahl
f291fbc8a7
Fix ending \0 in base64 decoding
15 years ago
Ben Noordhuis
95638c9b0d
Buffer: adjust buffer size so the base64-decoded input fits snugly.
Stops Valgrind from complaining about uninitialized memory access.
15 years ago
Ryan Dahl
5459e5c606
Globalize the Buffer object
15 years ago
Ryan Dahl
b3c0359b56
Only one line break before stacktrace
15 years ago
Ryan Dahl
d489555553
Use kqueue on recent macintosh builds
15 years ago
Benjamin Kramer
eeaf1ef970
Constify read-only global data
Also silences a compiler warning about deprecated conversion from const
char* to char*.
15 years ago
Benjamin Kramer
93cb09642d
Add missing parentheses
& has higher precedence than ==, making this a noop. Use the less
error-prone S_IS* macros instead. Found by clang.
15 years ago
Benjamin Kramer
eeb54c63d8
Fix addrlen for unix_dgram sockets
The old definition was off by one byte on BSD. Also simplify
ADDRESS_TO_JS because sun_path is always zero-terminated now.
15 years ago
Ryan Dahl
2a4568c85f
bump version
15 years ago
Dmitry Baranovskiy
a585c5bbb3
Fixed format, so it wouldn’t blow up if %d argument is null or undefined + ensure that numbers will be numbers
15 years ago
Ryan Dahl
2c1ca4078d
Implement buffer.write for base64
There might be an off-by-one on the returned value.
15 years ago
Ryan Dahl
528015e0d8
Implement buffer.toString('base64')
15 years ago
Andrew Naylor
e0d6f14b22
Buffer for Cipher, Decipher, Hmac, Sign and Verify
15 years ago
Sam Shull
8acea2693d
Add parenthesis to NODE_VERSION_AT_LEAST
15 years ago
Robert Keizer
5ebf6049d0
Added process.binding('stdio').getRows()
15 years ago
Ryan Dahl
9a26946aaa
Fix for issue #214
15 years ago
Ryan Dahl
02746eddd6
Apple's SUN_LEN is broken, override
15 years ago
Ryan Dahl
341e41726f
Set SO_REUSEADDR on all sockets
15 years ago
Ryan Dahl
fa344d8514
Fix solaris build
15 years ago
Ryan Dahl
0174ceb6b2
bump version
15 years ago
Marco Rogers
1662c37c40
Fix console formatter to recognize json properly
15 years ago
Matt Ranney
98341daee2
Fix unix dgram socket address resolution on Linux.
15 years ago
Ryan Dahl
5f30377bbc
Load modules in individual contexts
Add NODE_MODULE_CONTEXTS env var
Only one test was modified to check that this works. NEED to go through all
tests and modify them so that
NODE_MODULE_CONTEXTS=1 make test
passes.
15 years ago
Matt Ranney
4e50197e53
Datagram socket refactor. Add tests and documentation.
Support setTTL() and setBroadcast() socket options.
15 years ago
Peter Griess
e7c4f8cdaa
Buffer.copy() should liberally allow empty copies.
15 years ago
Peter Griess
b64a521d66
Buffer('') should create a 0-length buffer
15 years ago
Paul Querna
870aa3d97f
Move evals to extension module.
15 years ago
Paul Querna
ace2be8aa6
Move the Stat structure functions to node_file.cc
from node.cc, so we can convert fs to a module.
15 years ago
Paul Querna
82daa46e26
Move Buffer to extension model.
15 years ago
Paul Querna
4f7f43762d
Move child process to extension model.
15 years ago
Paul Querna
e65c27062f
Move http parser to extension model.
15 years ago
Paul Querna
e51aef7f3c
Move signal_watcher to extension model.
15 years ago
Paul Querna
208290b524
Move cares to extension model
15 years ago
Paul Querna
e5bb8abc9d
Move stdio to extension model.
15 years ago
Paul Querna
8dbfe5ea8f
Use the top level check for the bindings cache
(rather than each potential module having its own if check)
15 years ago
Paul Querna
30dadfc033
Register builtin extensions via a macro, rather than a manual strcmp
Set the stage for making the builtin modules more dynamic.
Note: this only converts crypto and net, I will add more extensions in a
later commit.
* node.h: Add utility macro for converting macro values to strings.
* node.h: Include the actual module name inside the module structure, not
just the file it was built from.
* node.h: New Macro, NODE_MODULE_DECL, for declaring an external reference
to a module structure.
* node_extensions.cc: New File, implements get_builtin_module, which
iterates over the module structures that are compiled into node.
* node.cc(node::Binding): Use the new module lookup function to find
modules.
* node_{net,crypto}.c: Add NODE_MODULEs to generate the module structure.
15 years ago
Ryan Dahl
6bf294d71a
JSON is %j not %f
15 years ago
Paul Querna
367b87d26d
Add support for the module structure to process.dlopen.
15 years ago
Paul Querna
49066042a2
Add basic structure and macros for node modules.
15 years ago