Erick Tryzelaar
f4e2d5559f
Fix test-get-currentexe on darwin.
...
Darwin uses _NSGetExecutablePath to determine
the path of an executable, but that can return
an absolute path. This patch tweaks the executable
path to strip off a potential "./" prefix from
argv[0], which fixes the test.
2011-09-08 14:20:06 -07:00
Igor Zinkovsky
70bc6c0ca8
add test-tcp-close.c to uv.gyp
2011-09-08 13:23:49 -07:00
Bert Belder
06d69a82ee
Make MinGW happy again
2011-09-08 20:19:32 +02:00
Ben Noordhuis
431195c944
unix: run callbacks of pending writes when handle is closed
2011-09-08 19:15:22 +02:00
Ben Noordhuis
98b9f582f4
test: make sure that write callbacks run when handle is closed
2011-09-08 19:13:39 +02:00
Bert Belder
c2741514bc
win: fix spawn() bug
2011-09-08 18:01:42 +02:00
Ben Noordhuis
8fd1d71049
Update AUTHORS
2011-09-08 13:26:08 +02:00
Matthew Sporleder
4320874fcf
unix: netbsd support
2011-09-08 13:20:43 +02:00
Ben Noordhuis
90ea007f61
test: fix compiler warnings for test-spawn.c
2011-09-08 00:15:47 +02:00
Ben Noordhuis
5641503ae7
test: fix compiler warnings for test-fs.c
...
Include <unistd.h> on Unices, fixes warnings about unlink() not being declared.
2011-09-08 00:15:07 +02:00
Ben Noordhuis
4d7cfe4313
test: remove stale prototype declaration
2011-09-08 00:00:18 +02:00
Ben Noordhuis
cc91989cc2
unix: fix buffer overrun in uv__strlcpy()
...
Reported by Thomas Shinnick.
2011-09-06 15:44:47 +02:00
Ben Noordhuis
e8ab5cbe70
test: fix utime and futime tests on windows
2011-09-06 03:48:09 +02:00
Bert Belder
3d538af06b
win: correctly manage child process stdio handles
2011-09-06 03:20:16 +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
Bert Belder
58ef43eee7
win: use win32 api for file reading and writing
2011-09-06 00:45:56 +02:00
Ben Noordhuis
b7d88070d8
fs: add UV_ENOENT error code, add test
2011-09-06 00:17:59 +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
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
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
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
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
Ryan Dahl
7ccc7470e0
Add test for uv_fs_readdir sync
2011-09-04 16:54:27 -07:00
Ryan Dahl
142a70292b
unix: fix fs_chmod
2011-09-04 16:09:45 -07:00
Ben Noordhuis
826db45343
test: fix uv_fs_readdir test
...
Don't make assumptions about the order in which the
directory entries are returned by the file system.
2011-09-05 00:57:23 +02:00
Ryan Dahl
a52a2c781a
Fix warning on darwin
2011-09-04 15:48:54 -07:00
Ben Noordhuis
d3f60da67c
unix: implement uv_fs_readlink
2011-09-05 00:12:16 +02: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
Bert Belder
7b87ff7c9b
win: rename uv_loop_t.ares_channel to ares_chan to avoid confusing g++
2011-09-04 21:54:31 +02:00
Bert Belder
360f4119e4
Make getsockname/getpeername handle uninitialized sockets better
2011-09-04 19:18:56 +02:00
Bert Belder
12b01e95f9
Specialize uv_xxx_getsockname, add uv_tcp_getpeername
2011-09-04 04:49:13 +02:00
Ben Noordhuis
18af13795f
unix: fix warning: implicit declaration of function ‘strerror’
2011-09-04 03:45:28 +02:00
Ben Noordhuis
b680703178
unix: fix warning: implicit declaration of function ‘memcpy’
2011-09-04 03:45:15 +02:00
Luis Lavena
6422a14a8f
windows: correct a preprocessor typo
...
GCC chokes on ##name## concatenation (since . and prepare are invalid
tokens)
2011-09-04 02:26:53 +02:00
Igor Zinkovsky
cf5ed86a79
windows: implement missing fs functions
2011-09-03 12:23:27 -07:00
Luis Lavena
30ca028196
Fix MinGW build
...
Allow `make all` work under MinGW. Remove references to eio for MinGW.
Fixes #170
Fixes #171
2011-09-02 09:25:40 -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
Igor Zinkovsky
716e8eab39
windows: fix issue with SetFileCompletionNotificationModes on 64bit xp
2011-09-01 13:46:07 -07:00
Igor Zinkovsky
22197ebf3f
windows: include _stat struct into uv_fs_t
2011-09-01 11:54:43 -07:00