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
14 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
visionmedia
45948e054d
Added better error messages for async and sync fs calls with paths
15 years ago
Andrew Johnston
9599607065
Added posix fsync and fdatasync to fs module
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
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
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
Ryan Dahl
20372d2df3
Fix docs in node_file.cc
15 years ago
Ryan Dahl
c9e27b11c5
Unify ErrnoException creation
15 years ago
Ryan Dahl
4278f35e89
Add support for Buffer to fs.write
15 years ago
kriskowal
2b91f8d265
Fixed spurious suffixes on fs.readlink.
15 years ago
Rasmus Andersson
b57d946184
added fs.link, fs.symlink, fs.readlink
including sync versions and complete tests
15 years ago
Ryan Dahl
05ae932a0e
Implement fs.readdirSync()
15 years ago
Ryan Dahl
4c8889bba2
Revert "Add fs.readdirSync()"
Doesn't work on Linux.
This reverts commit 05d6da6c4a
.
15 years ago
isaacs
9acc8a686a
Expose fs.lstat
15 years ago
Micheil Smith
05d6da6c4a
Add fs.readdirSync()
15 years ago
Ryan Dahl
662fdfed37
fs.closeSync should return Undefined on success
15 years ago
Micheil Smith
bcc032e43a
Adding interface between node and libeio for Chmod.
15 years ago
Ryan Dahl
cd41e30bcc
Return chunk & bytes read for posix.readSync()
15 years ago
Ryan Dahl
76c1805c67
Add posix.truncate()
15 years ago
Ryan Dahl
987441283b
Callbacks from process.fs always start with error object
15 years ago
Ryan Dahl
3377a30fb8
Move cb_persist functions out of dns module
15 years ago
Ryan Dahl
4ddfd8aa42
Fix posix.statSync()
15 years ago
Ryan Dahl
45a806a066
Statically define symbols
~7% improvement in hello world HTTP response bench.
15 years ago