Bert Belder
bc4126bfaa
Windows: skip GetFileAttributes call when opening a file
...
It wasn't working, and everything seemed to work fine nonetheless. Removing it just saves a syscall.
2012-05-10 16:38:36 +02:00
Igor Zinkovsky
e6d4bca2ec
remove left-over cast fixes #3160
2012-04-23 10:52:53 -07:00
Igor Zinkovsky
ea50126358
add 64bit offset fs functions
2012-04-05 16:01:29 -07:00
Bert Belder
ec97ba8014
Windows uv_fs_stat: cap st_nlink to SHRT_MAX
2012-03-09 05:00:10 +01:00
Brandon Philips
fca18c33ac
win: fs: handle EOF in read
...
in luvit after upgrade libuv from 243cfc to d3efef readSync started
failing. It seems that the code cleanup stopped handling EOF
Trivially reproduced with this
local fs = require('fs')
print(fs.readFileSync('foo.luvit'))
2012-02-24 00:58:53 +01:00
Bert Belder
6c80bf34d3
Clean up error handling in win/fs.c, add some error mappings
2012-02-13 20:01:19 +01:00
Bert Belder
267e75dda2
Windows: better stat implementation
2012-02-02 17:03:40 +01:00
Brandon Benvie
74cff551d5
windows: fix off-by-one error in uv_fs_stat
...
uv__is_root typo caused incorrect fs.exists results in Node.
2012-01-28 16:52:44 +01:00
Bert Belder
92b260c065
windows: fix stat("c:\\") regression
2012-01-27 22:09:55 +01:00
Igor Zinkovsky
855764406e
windows: improve uv_fs_stat performance (by about 60%)
2012-01-11 19:21:47 -08:00
Igor Zinkovsky
43e3ac5798
windows: uv_fs_rename to replace the new file if it exists
...
fixes #283
2011-12-30 15:48:22 -08:00
Bert Belder
b4698d414b
Strip trailing whitespace
2011-11-25 10:03:27 +01:00
Igor Zinkovsky
cfa4112950
windows: make uv_fs_stat use open + fstat to support long paths
2011-11-24 19:18:17 -08:00
Igor Zinkovsky
942c68b80e
windows: fix utf16->utf8 conversion in uv_fs_readdir
2011-11-08 19:23:30 -08:00
Igor Zinkovsky
fe97c4dc63
windows: honor O_APPEND in uv_fs_open
2011-11-04 12:41:23 -07:00
Bert Belder
179f475b2a
win: fix fs__readdir buffer overflow bug
...
Thanks Runner Mei for pointing this out. Closes GH-224.
2011-10-21 18:42:40 -07:00
Igor Zinkovsky
fd9dbb1279
fix mingw build
2011-10-12 21:46:06 -07:00
Igor Zinkovsky
72b5976e83
windows: support utf8 in uv_fs functions
...
fixes #201
2011-10-12 13:24:22 -07:00
Igor Zinkovsky
81303a72be
fix fs_readdir_file on windows
2011-10-12 11:37:22 -07:00
Igor Zinkovsky
2216d38c29
windows: enable uv_fs_open to open directories
2011-10-12 10:42:41 -07:00
Igor Zinkovsky
72fb469a43
windows: check for fd==-1 in uv_fs functions
2011-10-11 18:22:10 -07:00
Igor Zinkovsky
40b64a81cb
windows: don't alloc readdir buffer for empty dirs
2011-10-11 11:47:05 -07:00
Igor Zinkovsky
c9ae7a6f95
windows: don't strip the trailing slash from filename if it follows a device name
2011-09-28 12:59:39 -07:00
Igor Zinkovsky
4fb120f649
windows: fix error reporting for uv_fs_ functions
2011-09-28 12:46:37 -07:00
Erick Tryzelaar
23796d208c
Fixes #76 . Unify OS error reporting
...
As a nice fringe benefit, this also shaves a word
off of a windows TCP handle by replacing "uv_err_t
bind_error" with "int bind_error".
2011-09-27 19:05:33 -07:00
Igor Zinkovsky
4197fc76b1
windows: make file handles non-inheritable by default to match node behavior
2011-09-14 13:33:55 -07:00
Igor Zinkovsky
2931bdcf54
windows: strip '\??\' from readlink path buffer.
2011-09-14 12:58:18 -07:00
Igor Zinkovsky
65c8a727a3
uv_fs_ functions to return result in sync mode
2011-09-14 11:47:49 -07:00
Igor Zinkovsky
cfa1423f96
fix fs_file_noent on windows
2011-09-08 18:23:19 -07:00
Bert Belder
0d373eb0b1
win: fix bug in fs__readlink
2011-09-09 01:25:52 +02:00
Bert Belder
2d1c672e2d
More MinGW fixes
2011-09-08 23:49:46 +02:00
Bert Belder
06d69a82ee
Make MinGW happy again
2011-09-08 20:19:32 +02:00
Bert Belder
58ef43eee7
win: use win32 api for file reading and writing
2011-09-06 00:45:56 +02:00
Igor Zinkovsky
a8017fd8a2
windows: update uv_fs_* functions to work with req.path
2011-09-04 23:58:31 -07:00
Igor Zinkovsky
b90459fc81
windows: use _stati64
2011-09-04 23:31:25 -07:00
Ryan Dahl
be3b37854e
win: initialize req.path = NULL.
2011-09-04 18:38:42 -07:00
Peter Bright
e1af07e831
Open files with sharing enabled. Fixes node's issue #1449 .
...
https://github.com/joyent/node/issues/1449
2011-09-04 18:37:28 -07:00
Peter Bright
7db243dc6f
Bring inline with node common.gypi.
...
Win32 readlink()
2011-09-04 13:24:45 -07:00
Igor Zinkovsky
060026ced3
windows: uv_fs_link + uv_fs_symlink
2011-09-04 13:24:35 -07:00
Igor Zinkovsky
cf5ed86a79
windows: implement missing fs functions
2011-09-03 12:23:27 -07:00
Igor Zinkovsky
22197ebf3f
windows: include _stat struct into uv_fs_t
2011-09-01 11:54:43 -07:00
Bert Belder
78debf9f67
win: multiplicity
2011-08-31 04:19:16 +02:00
Ryan Dahl
ca1171132e
win: stub out missing uv_fs functions
2011-08-30 01:53:24 -07:00
Ryan Dahl
3be275bad7
Begin implementation of UNIX uv_fs_ functions
...
Adding this incomplete work now to ease rebase troubles later as it moves
the functions to src/unix/fs.c and introduces src/unix/internal.h.
2011-08-29 14:36:45 -07:00
Igor Zinkovsky
925564e968
windows: improve error handling for fs functions
2011-08-27 13:59:34 -07:00
Igor Zinkovsky
3ea037ccb0
windows: free fs arguments inside uv_fs_req_cleanup
2011-08-26 18:11:31 -07:00
Igor Zinkovsky
25175c7071
uv_fs & uv_work APIs
2011-08-26 11:00:53 -07:00