Igor Zinkovsky
d5acfd0c05
64bit offsets for fs operations and cleanup uv_fs_* for uv-win
2012-04-18 11:05:27 -07:00
Ben Noordhuis
685b36ba66
linux: tidy up syscall code
2012-03-31 00:19:01 +00:00
Paddy Byers
abf9654a55
unix: create separate eio result queue per loop
...
Makes the eio "done" callback run in the thread that submitted it. Makes it safe
to use libeio from multiple event loops.
2011-12-20 20:47:33 +01:00
Shigeki Ohtsu
ba52023ef3
Fix missing increments of loop->counters
2011-12-12 18:01:26 +01:00
Ben Noordhuis
92c9e95721
unix: fix stray pointer free() when HAVE_FUTIMES=0
...
uv_fs_futime() failed to initialize req.path when HAVE_FUTIMES=0.
uv_fs_req_cleanup() later on tried to free the bogus pointer.
2011-11-22 00:00:52 +01:00
Ben Noordhuis
9757a43a57
unix: remove unused variable
2011-10-21 10:09:43 -07:00
Ben Noordhuis
721ad8c74f
sunos: implement uv_fs_futime()
2011-10-12 02:05:52 +00:00
Ben Noordhuis
41e8574920
unix: don't alloc memory for readdir on empty dir
2011-10-10 16:27:55 +02: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
Ben Noordhuis
9673abeab5
unix: fix pointer ownership bug
...
libuv realloc'd a pointer that belonged to and was later freed by libev.
2011-09-27 01:02:44 +02:00
Ben Noordhuis
8f617b93bc
unix: darwin < 10.6 does not have fdatasync, use fsync
2011-09-24 05:20:07 +02:00
Ben Noordhuis
c455f37803
unix: freebsd doesn't have fdatasync, do a full fsync instead
2011-08-17 06:40:39 +02:00
Erick Tryzelaar
905fe71341
unix: fix a compiler warning
2011-09-15 22:33:32 +02:00
Igor Zinkovsky
65c8a727a3
uv_fs_ functions to return result in sync mode
2011-09-14 11:47:49 -07:00
Ben Noordhuis
76216d8057
unix: handle readdir errors in uv__fs_after()
2011-09-14 17:59:44 +02:00
Ben Noordhuis
337ff16526
unix: revert "eio: fix memory leak in eio__scandir()"
...
This reverts commit b450d87719 .
It turns out that libeio doesn't actually leak memory but it does do an
unnecessary (and confusing!) allocation that is not free'd until after
the user callback returns.
2011-09-14 17:59:41 +02:00
Ben Noordhuis
b450d87719
eio: fix memory leak in eio__scandir()
2011-09-12 18:01:43 +02:00
Ben Noordhuis
bd6066cb34
unix: fix readdir cleanup assertion
2011-09-10 00:14:42 +02:00
Ben Noordhuis
79d9f81881
unix: implement uv_fs_futime, add tests for uv_fs_utime and uv_fs_futime
2011-09-06 02:52:52 +02:00
Ben Noordhuis
efcd273d68
unix: translate fs errno codes to libuv error codes
2011-09-06 00:17:18 +02:00
Ben Noordhuis
bb0c6e6d53
unix: move linux feature detection macros to internal.h
2011-09-05 16:05:28 +02:00
Ben Noordhuis
a9ba756bfd
unix: fix warning: comparison between signed and unsigned integer expressions
2011-09-05 15:04:16 +02:00
Ben Noordhuis
d9176108d2
unix: fix event loop not being unref'd on eio error
2011-09-05 15:03:52 +02:00
Ben Noordhuis
ed355d371e
unix: fix const correctness warnings
2011-09-05 14:23:41 +02:00
Ryan Dahl
991f6ee044
unix: Set req->result to -1 on async uv_fs_readdir error
...
fixes test/simple/test-fs-error-messages.js in node.
2011-09-04 18:45:45 -07:00
Ryan Dahl
a18860aec6
Add uv_fs_t.path on unix and tests
...
Windows implementation missing https://github.com/joyent/libuv/issues/177
2011-09-04 18:05:11 -07:00
Ryan Dahl
b6ede6c724
unix: uv_fs_readdir sync skips . and ..
...
Fixes test fs_async_dir
2011-09-04 17:13:05 -07:00
Ben Noordhuis
d3f60da67c
unix: implement uv_fs_readlink
2011-09-05 00:12:16 +02:00
Igor Zinkovsky
060026ced3
windows: uv_fs_link + uv_fs_symlink
2011-09-04 13:24:35 -07:00
Ryan Dahl
b89f4f34a4
implement uv_fs_utime
2011-09-01 17:40:57 -07:00
Ryan Dahl
b47fa77eb5
unix/fs.c: Apply macro magic, implement symlink, link, chown, fchown
2011-09-01 17:12:31 -07:00
Ryan Dahl
9f932f92cf
add test fs_chmod, implement uv_fs_fchmod and uv_fs_chmod on unix
2011-09-01 15:36:01 -07:00
Ryan Dahl
2e6035895c
Add test for uv_fs_fstat, implement on unix.
2011-09-01 14:15:06 -07:00
Ryan Dahl
ea4271fa90
submit error to correct loop
2011-08-31 01:43:09 -07:00
Ryan Dahl
e3f910d0a9
Multiplicity update on unix
...
Does not yet support multithreaded use of the thread pool.
2011-08-30 23:55:08 -07:00
Jeroen Janssen
2af955dbf4
Fix posix dirent usage
...
Fixes #161
2011-08-30 03:16:03 -07:00
Ryan Dahl
a6ed1757ab
unix: implement uv_fs_lstat
2011-08-30 01:32:53 -07:00
Ryan Dahl
894c005c42
unix: fix fs_async_sendfile
2011-08-30 00:52:43 -07:00
Ryan Dahl
1a4ead53d6
unix: implement uv_queue_work
2011-08-29 22:57:34 -07:00
Ryan Dahl
0e81406bfb
unix fs_async_dir works
2011-08-29 22:08:51 -07:00
Ryan Dahl
5d524fff1a
unix passes test fs_file_async
2011-08-29 20:41:45 -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