aboutsummaryrefslogtreecommitdiffstats
path: root/win32/win32.h
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-06 11:19:27 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-06 11:19:27 +0000
commit1acf7e6b018031df7d1413ae4d67e230034d0e20 (patch)
tree69c8086b74fd7ea683469ed0da69e365a02763db /win32/win32.h
parent3bd61a71a07d5ca96aaf3c34860a61e5527a6e78 (diff)
downloadruby-1acf7e6b018031df7d1413ae4d67e230034d0e20.tar.gz
* io.c (is_socket): new function.
* io.c (rb_io_close_read, rb_io_close_write): use is_socket(). * io.c (rb_io_fptr_finalize): need to check fptr->f before calling rb_io_fptr_cleanup(). * io.c (pipe_open): win32 pipe support (experimental). * win32/win32.[ch] (rb_w32_pipe_exec): return file descripters instead of FILE structure. * win32/win32.[ch] (rb_w32_is_socket): new function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.h')
-rw-r--r--win32/win32.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/win32.h b/win32/win32.h
index 16acd1c955..4ca3b299bc 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -138,8 +138,9 @@ struct timezone {
#endif
extern void NtInitialize(int *, char ***);
extern int rb_w32_cmdvector(const char *, char ***);
-extern pid_t rb_w32_pipe_exec(const char *, const char *, int, FILE **, FILE **);
+extern pid_t rb_w32_pipe_exec(const char *, const char *, int, int *, int *);
extern int flock(int fd, int oper);
+extern int rb_w32_is_socket(int);
extern int rb_w32_accept(int, struct sockaddr *, int *);
extern int rb_w32_bind(int, struct sockaddr *, int);
extern int rb_w32_connect(int, struct sockaddr *, int);