Felix Geisendörfer
cbbf9e43d1
Deprecate string interface for fs.read()
This patch makes buffers the preferred output for fs.read() and
fs.readSync(). The old string interface is still supported by
converting buffers to strings dynamically. This allows to remove the
C++ code for string handling which is also part of this patch.
15 years ago
Ryan Dahl
cbd2c3945b
Throwing in a callback should kill the process
There is a difference between errors which happen to a socket - like
receiving EPIPE - an exceptional situation but ultimately okay and the
situation where code throws in a callback - which is not okay.
Fixes test/simple/test-http-exceptions.js
TODO: explain this in docs.
15 years ago
Ryan Dahl
44ad6a7db2
Make buffer's c++ constructor public
15 years ago
isaacs
78be1e4930
Remove the ReportException from the Script class
This is so that syntax errors can be handled discretely in places like the
repl, where SyntaxErrors are expected and normal.
15 years ago
Ryan Dahl
d8af9d8edf
Minor style changes for fs.write code
15 years ago
Felix Geisendörfer
c46cbe0de4
Deprecate string interface for fs.write()
This patch makes buffers the preferred input for fs.write() and
fs.writeSync(). The old string interface is still supported by
converting strings to buffers dynamically. This allows to remove the
C++ code for string handling which is also part of this patch.
15 years ago
Peter Griess
2420f07e94
Allow process.setuid() and process.setgid() to accept string names in lieu of numeric IDs
15 years ago
Felix Geisendörfer
caba9c70c3
Implemented Utf8Decoder module
Allows to safely decode a utf8 stream into strings without breaking
on multibyte characters.
15 years ago
Ryan Dahl
1036aa9762
Fix errno display in c-ares exceptions
15 years ago
Felix Geisendörfer
0a539865dd
Support arrays and strings in buffer constructor
This is be very useful for testing code that deals with buffers.
15 years ago
visionmedia
45948e054d
Added better error messages for async and sync fs calls with paths
15 years ago
Jonas Pfenniger
4274e6b7d0
FIX: signal-unregister bug
We now restore the default signal behavior when all listeners are
removed for a given signal.
Re-enabled test-signal-unregister
15 years ago
Jonas Pfenniger
50148022d1
Thinner SignalWatcher, only using callback
Since it is only used internally, we don't need the complexity of
EventEmitter. The new SignalWatcher's design was copied from
IdleWatcher.
15 years ago
Andrew Johnston
9599607065
Added posix fsync and fdatasync to fs module
15 years ago
Ryan Dahl
ac3a2d899a
Changes to work on Solaris 10
15 years ago
Ryan Dahl
da9323040f
Simplify stack trace reporting using new V8 API
15 years ago
Jérémy Lal
4e40e8804b
System EV compatibility fix : use EV_DEFAULT_UC
15 years ago
Ben Noordhuis
c6c77d535f
Support for fstat(2) through fs.fstat() and fs.fstatSync(). Added test cases, updated documentation.
15 years ago
Ryan Dahl
c90e44e582
Just add an extra include for strings.h - don't try to be cute
15 years ago
Ryan Dahl
8e5b91c79b
Revert "Check for strings.h"
This reverts commit 032f651824
.
15 years ago
Ryan Dahl
032f651824
Check for strings.h
15 years ago
Ryan Dahl
b78508266b
Change string.h to strings.h compile on solaris
15 years ago
Ryan Dahl
ab068db9b1
Improve error reporting
- No more single line "node.js:176:9" errors
- No more strange output when error happens on first line due to
module wrapper function.
- A few tests to check these things
15 years ago
rentzsch
a5b132ad63
fs.Stats.size V8::Integer => V8::Number.
While VM::Integer::Value() offers an int64_t, V8::Integer::New() only
accepts an int32_t, truncating fs.Stat's size in BuildStatsObject().
I consider this a bug in V8, and we should move back to V8::Integer
when it gets a ctr that allows a int64_t. Until then, this work-around
should hold.
15 years ago
Ryan Dahl
3ac6deefa8
Change GC idle notify so that it runs along side setInterval
Doesn't appear any slower. Also checks for high memory usage and tries to
force more notifications.
15 years ago
Rhys Jones
afce4c3ae8
Added default CAs, updated openssl verify behaviour, added crypto and https documentation
15 years ago
Ryan Dahl
b6c5cf60b7
Ignore SIGPIPE
Was inadvertently removed with evcom,
c72967d335 (L10L1900)
15 years ago
Peter Griess
d9882395e2
Fix SEGV by setting msg_controllen earlier.
- Some implementations of CMSG_FIRSTHDR() rely on msg_controllen being
set correctly, else it returns NULL: see <linux/socket.h>.
15 years ago
Rhys Jones
1a317135c5
Additional OpenSSL tests
15 years ago
Paulo Matias
430cfd1825
Read all records to always empty the OpenSSL reading buffer.
15 years ago
Paulo Matias
3fed1cf36f
Make it possible to use client certificates to connect with a nodejs server, and make verifyPeer behaviour consistant.
15 years ago
Ryan Dahl
ea37d98949
Implement writeSync for buffers
(Needs tests still)
15 years ago
Ryan Dahl
3202bce288
Implement fs.readSync for buffers
15 years ago
Ryan Dahl
d76091d7d1
Implement fs.read() for Buffers (again)
15 years ago
Ryan Dahl
7a9c81d2dc
Fix memory leak with fs.writeSync
15 years ago
Ryan Dahl
d13f518010
Revert changes to node_file.cc
Revert "Fix memory leak in fs.writeSync()"
This reverts commit 5457eae28c
.
Revert "Implement fs.read() for buffers"
This reverts commit 692f580a07
.
15 years ago
Ryan Dahl
5457eae28c
Fix memory leak in fs.writeSync()
15 years ago
Ryan Dahl
692f580a07
Implement fs.read() for buffers
15 years ago
kriskowal
8d1f1186ca
Fixed/Completed buffer copy range checks.
15 years ago
Ryan Dahl
20372d2df3
Fix docs in node_file.cc
15 years ago
Herbert Vojčík
039d13b0c3
DRY binding('stdio')
15 years ago
Ryan Dahl
6d85802100
basicRequest -> module.requireNative
15 years ago
Ryan Dahl
3bb21b5191
Fix signo_string for linux and solaris
15 years ago
Herbert Vojčík
7a72885ede
process.evalcx has a deprecation message.
15 years ago
Herbert Vojčík
7e4c1285dc
Minor stylistic changes.
15 years ago
Herbert Vojčík
5d9753fccf
Fix child_process.cc build failure for FreeBSD.
15 years ago
Felix Geisendörfer
f8a3cf980f
Properly handle child process exit codes
The child process 'exit' was returning the status of the process, rather than
the exit code. This patch properly deconstructs the status into the exit code
and the term signal a process may have received.
See:
http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod#Watcher_Specific_Functions_and_Data_-5
and waitpid(2)
15 years ago
Ryan Dahl
9b2aac61b2
Resolve EWOULDBLOCK to string if different thatn EAGAIN
15 years ago
Tim Caswell
8f79169aef
Remove node.* deprecation messages.
15 years ago
Ryan Dahl
e7a1fa1293
fs.FileWriteStream -> fs.WriteStream, fs.FileReadStream -> fs.ReadStream
15 years ago