mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 01:23:57 +02:00
* 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
This commit is contained in:
parent
cf6334e1cb
commit
3c8dca55c4
4 changed files with 466 additions and 20 deletions
|
@ -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 *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue