diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-28 12:46:58 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-28 12:46:58 +0000 |
commit | 3c8dca55c43b78c0564ad0ff93d67587a7a64bf8 (patch) | |
tree | 93cd95d1ba96fc03cc3e38f66df3c4964ca8d6b6 /include | |
parent | cf6334e1cb91bfee0f95e5ae7ea9c4a72df1f6c2 (diff) | |
download | ruby-3c8dca55c43b78c0564ad0ff93d67587a7a64bf8.tar.gz |
* win32/win32.c, include/ruby/win32.h (rb_w32_open): overlapped file
I/O support.
* win32/win32.c, include/ruby/win32.h (rb_w32_pipe): overlapped pipe
I/O support.
* wn32/win32.c (rb_w32_read, rb_w32_write): overlapped I/O support to
enable canceling I/O.
* thread_win32.c (ubf_handle): remove workaround.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/win32.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/ruby/win32.h b/include/ruby/win32.h index 41fe48a197..19e5030d92 100644 --- a/include/ruby/win32.h +++ b/include/ruby/win32.h @@ -134,7 +134,8 @@ extern DWORD rb_w32_osid(void); #define utime(_p, _t) rb_w32_utime(_p, _t) #define lseek(_f, _o, _w) _lseeki64(_f, _o, _w) -#define pipe(p) _pipe(p, 65536L, _O_NOINHERIT) +#define pipe(p) rb_w32_pipe(p) +#define open rb_w32_open #define close(h) rb_w32_close(h) #define fclose(f) rb_w32_fclose(f) #define read(f, b, s) rb_w32_read(f, b, s) @@ -543,8 +544,10 @@ HANDLE GetCurrentThreadHandle(void); int rb_w32_sleep(unsigned long msec); int rb_w32_putc(int, FILE*); int rb_w32_getc(FILE*); +int rb_w32_open(const char *, int, ...); int rb_w32_close(int); int rb_w32_fclose(FILE*); +int rb_w32_pipe(int[2]); size_t rb_w32_read(int, void *, size_t); size_t rb_w32_write(int, const void *, size_t); int rb_w32_utime(const char *, const struct utimbuf *); |