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
Paul Querna
480164f923
Move node version to a single static header file.
Some compile time variables like the cflags and prefix have been moved to
the node_config.h.in, in the anticipation that they will be removed at
somepoint.
15 years ago
Peter Griess
99a5d1e293
Free kbuf[] in Verify::VerifyFinal().
15 years ago
Peter Griess
ac2404283e
Coverity stack size warnings in DefineConstants().
15 years ago
Peter Griess
7a706e4206
Coverity fixes: src/platform_linux.cc
15 years ago
Peter Griess
6eb0b6ac27
Coverity fixes: src/node_net
15 years ago
Peter Griess
760fb17bbf
Coverity fixes: src/node_file
15 years ago
Peter Griess
792c7caf40
Coverity fixes: src/node_crypto
15 years ago
Peter Griess
4e3c5d88b3
Coverity fixes: src/node.cc
15 years ago
Jerome Etienne
8e9f59a452
Support of console.dir + console.assert
15 years ago