114 Commits
Author SHA1 Message Date
Igor Zinkovsky 052aaa4c4d windows: use 64bit offsets for uv_fs apis 2012-04-05 16:03:11 -07:00
Bert Belder 3733a85d8d Windows: include syscall in fs errors 2012-03-08 02:57:44 +01:00
Ben Noordhuis e90db17392 fs: fix typo in error message 2011-12-13 16:02:14 +01:00
Bert Belder 823a443321 Rename FSError to UVException and move to node.cc 2011-12-02 02:21:50 +01:00
Ben Noordhuis 9b4e8e0a0d fs: fix typo in function names
The build was not affected: the typos were in macros that only come into effect
when _LARGEFILE_SOURCE is not defined - which is never.
2011-12-01 22:29:39 +01:00
Bert Belder 5b014e0725 Fs: use strncmp instead of memcmp for comparing strings 2011-11-25 09:35:52 +01:00
Author: Igor Zinkovsky 1f16a7b6e5 Enable long paths on windows 2011-11-25 09:35:52 +01:00
Ben Noordhuis cdcb1118c8 Remove stray NODE_MODULE() semi-colons. 2011-11-09 16:34:09 +01:00
Igor Zinkovsky 6cb15403d3 remove SetCloseOnExec 2011-09-14 13:47:00 -07:00
Ryan Dahl a6ef3eb271 Upgrade libuv to 4197fc7
and use return value from sync uv_fs functions
2011-09-14 13:46:54 -07:00
Igor Zinkovsky 65e6ba9cce Enable link, symlink, and readlink on windows 2011-09-08 12:52:08 -07:00
Ben Noordhuis 56efe9cbc5 file: translate libuv error codes to errno names
Fixes incorrect error names (ex. ENOEXEC instead of EBADF,
EMLINK instead of ENOENT).

Fixes #1656.
2011-09-06 16:34:21 +02:00
Ben Noordhuis 2d9ab49239 file: fix errno propagation in sync fs calls
Include libuv fs error code in the JS exception.

Fixes #1657.
2011-09-06 02:15:08 +02:00
isaacs ef523e5719 fix test-fs-realpath 2011-09-04 22:14:03 -07:00
Ryan Dahl fcfec075e3 internal fs functions called with this == ReqWrap 2011-09-04 19:48:55 -07:00
Ryan Dahl 39ea27470c Return ReqWrap from internal fs functions 2011-09-04 19:44:01 -07:00
Ryan Dahl f5e486ebab Fix test-fs-error-messages.js 2011-09-04 18:48:19 -07:00
Ryan Dahl 17021ea631 Upgrade libuv to 142a702 2011-09-04 16:17:00 -07:00
Igor Zinkovsky 29e929de1e fix windows build break 2011-09-04 04:11:54 +02:00
Igor Zinkovsky a3d7782c08 enable missing fs functions on windows 2011-09-03 17:45:22 -07:00
Igor Zinkovsky ee048aa3ab fix async readdir 2011-09-03 17:44:54 -07:00
Ryan Dahl 21cc4c4985 Upgrade libuv to ea4271f
Required adding uv_default_loop() in many places.
2011-08-31 01:53:30 -07:00
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.
2011-08-30 01:36:10 -07:00
Ryan Dahl 1088638725 upgrade libuv to a6ed175 2011-08-30 01:35:54 -07:00
Ben Noordhuis 7003d6eff5 Move ARRAY_SIZE macro to node.h 2011-08-24 22:27:24 +02:00
Bert Belder 764dfbb1bf Open files in binary mode, on msvc too 2011-08-10 04:23:44 +02:00
Peter Bright 6ac8c55989 Make MSVS build.
MSVS settings don't actually need to be guarded by conditions. gyp will do
the right thing.
2011-08-06 22:39:28 -07:00
Peter Bright 13d6a1f67f Basic VC++ compatibility work. 2011-08-06 03:31:29 -07:00
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.
2011-07-14 02:52:54 +09:00
avz 0c3a7c075e Fix wrong error handling at Open() after open(2) in sync mode 2011-07-05 02:05:37 +02:00
Ryan Dahl 23b8931b62 Merge branch 'v0.4'
Conflicts:
	src/node.js
	src/node_version.h
2011-06-29 14:50:03 +02:00
Ryan Dahl feb26d6c74 Fixes #1203. Add missing scope.Close to fs.sendfileSync 2011-06-20 12:48:38 +02:00
Bert Belder 406f44a86b Build on windows again 2011-06-08 05:06:15 +02:00
Bert Belder 9cec08e490 Batch of ev -> uv changes 2011-05-23 17:31:29 -07:00
isaacs 5cfac21852 GH-853 fs.fchmod and fs.fchown 2011-04-20 16:04:33 -07:00
Ryan Dahl bfa9db9dd6 Merge branch 'v0.4'
Conflicts:
	src/node_version.h
	test/simple/test-buffer.js
2011-04-03 23:42:56 -07:00
Jorge Chamorro Bieling e7604b1ea7 Retain buffers in fs.read/write()
Closes GH-814.
Closes GH-827.
2011-03-28 15:28:55 -07:00
Ryan Dahl 4cc0a0878f Better ifdef for futimes 2011-03-22 20:19:42 +00:00
Ryan Dahl f63120be78 Fix solaris build 2011-03-22 20:07:18 +00:00
Ryan Dahl 247d880113 Merge branch 'v0.4'
Conflicts:
	src/node_version.h
2011-03-14 17:45:15 -07:00
Ryan Dahl 55048cdf79 Update copyright headers 2011-03-14 17:37:05 -07:00
Ben Noordhuis 1d5ff15a46 fs.utimes() and fs.futimes() support. 2011-03-02 20:35:45 -08:00
Bert Belder 36846f9b6b Windows: child process fixes 2011-02-08 21:21:39 -08:00
Bert Belder 6329633a3e Windows: open files in binary mode 2011-02-04 14:43:41 -08:00
Bert Belder f9fea12555 Fix windows build 2011-01-24 20:37:15 -08:00
Ryan Dahl cc5e9130bb fs.open should set FD_CLOEXEC 2011-01-24 11:57:21 -08:00
Bert Belder c99962e4cd Misc. cleanups
casts, unused vars, function ordering, /* within comment, etc.
2011-01-18 04:58:29 +01:00
Bert Belder e0f47be9d0 Clean up the way windows headers are included
Plus make inclusion order a little more consistent in general
2011-01-18 04:58:11 +01:00
Bert Belder bea5e6eff6 Re-enable stat watchers on windows
This reverts commit b8a99f94167a25f63ae096d9d5e2cc9cf70cecef.
2010-12-20 23:51:16 +01:00
Bert Belder f48c36f74f Use unicode and bigfile aware stat/fstat 2010-12-20 23:51:14 +01:00