Igor Zinkovsky
ee048aa3ab
fix async readdir
14 years ago
Ryan Dahl
21cc4c4985
Upgrade libuv to ea4271f
Required adding uv_default_loop() in many places.
14 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
Ryan Dahl
1088638725
upgrade libuv to a6ed175
14 years ago
Ben Noordhuis
7003d6eff5
Move ARRAY_SIZE macro to node.h
14 years ago
Bert Belder
764dfbb1bf
Open files in binary mode, on msvc too
14 years ago
Peter Bright
6ac8c55989
Make MSVS build.
MSVS settings don't actually need to be guarded by conditions. gyp will do
the right thing.
14 years ago
Peter Bright
13d6a1f67f
Basic VC++ compatibility work.
14 years ago
koichik
a3e3ad40b1
Fix fs can't handle large file on 64bit platform
fs.read() and fs.write() can't handle more than 2GB files on 64bit platform.
Also fs.truncate() can't handle more than 4GB files.
Fixes #1199 .
Fixes #1094 .
14 years ago
avz
0c3a7c075e
Fix wrong error handling at Open() after open(2) in sync mode
14 years ago
Ryan Dahl
feb26d6c74
Fixes #1203 . Add missing scope.Close to fs.sendfileSync
14 years ago
Bert Belder
406f44a86b
Build on windows again
14 years ago
Bert Belder
9cec08e490
Batch of ev -> uv changes
14 years ago
isaacs
5cfac21852
GH-853 fs.fchmod and fs.fchown
14 years ago
Jorge Chamorro Bieling
e7604b1ea7
Retain buffers in fs.read/write()
Closes GH-814.
Closes GH-827.
14 years ago
Ryan Dahl
4cc0a0878f
Better ifdef for futimes
14 years ago
Ryan Dahl
f63120be78
Fix solaris build
14 years ago
Ryan Dahl
55048cdf79
Update copyright headers
14 years ago
Ben Noordhuis
1d5ff15a46
fs.utimes() and fs.futimes() support.
14 years ago
Bert Belder
36846f9b6b
Windows: child process fixes
14 years ago
Bert Belder
6329633a3e
Windows: open files in binary mode
14 years ago
Bert Belder
f9fea12555
Fix windows build
14 years ago
Ryan Dahl
cc5e9130bb
fs.open should set FD_CLOEXEC
14 years ago
Bert Belder
c99962e4cd
Misc. cleanups
casts, unused vars, function ordering, /* within comment, etc.
14 years ago
Bert Belder
e0f47be9d0
Clean up the way windows headers are included
Plus make inclusion order a little more consistent in general
14 years ago
Bert Belder
bea5e6eff6
Re-enable stat watchers on windows
This reverts commit b8a99f94167a25f63ae096d9d5e2cc9cf70cecef.
14 years ago
Bert Belder
f48c36f74f
Use unicode and bigfile aware stat/fstat
14 years ago
Bert Belder
03a74efb16
Don't break the linux build
14 years ago
Bert Belder
1937c5e3c1
On windows, there's no support (yet) for chown and symlink functions
14 years ago
Bert Belder
51c6867280
On windows, stat() doesn't give you block (size) info
14 years ago
Bert Belder
f9a74a2327
On windows, mkdir() doesn't take a mode parameter
14 years ago
Bert Belder
8fc3bac868
Fix fsync/fdatasync for windows
14 years ago
Bert Belder
fae7b81589
On windows use eio__pread and eio__pwrite (hack)
14 years ago
Bert Belder
c7f0341d88
Include windows.h in node_file.cc
14 years ago
Bert Belder
81b26dc555
Stat watchers don't work on windows yet
14 years ago
Ryan Dahl
cea3a95f9f
Add ref to buffer during fs.write and fs.read
There was the possibility the buffer could be GCed while the eio_req was
pending. Still needs test coverage for the fs.read() problem.
See:
http://groups.google.com/group/nodejs/browse_thread/thread/c11f8b683f37cef
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
fe74283e1d
Fix a few compiler warnings...
14 years ago
Ryan Dahl
1cf538a60a
Work to get C++ fast buffers. incomplete
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
Peter Griess
760fb17bbf
Coverity fixes: src/node_file
15 years ago
Blake Mizerany
8c8534046c
fix whitespace errors
15 years ago
Ruben Rodriguez
242161bef2
Added new API to Script, and implemented it in the REPL
15 years ago
Micheil Smith
d89de07758
Adding experimental support for fs.chown and fs.chownSync.
Notes:
- Currently only accepts numeric user and group ids.
- No tests, as tests depend on getpwuid and getgrgid.
- No documentation, as there is no tests and this is experimental.
15 years ago
Felix Geisendörfer
c93e0aaf06
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
e84395ff8c
Revert "Deprecate string interface for fs.read()"
This reverts commit cbbf9e43d1
.
15 years ago
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
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