summaryrefslogtreecommitdiff
path: root/win32/win32.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-29 09:31:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-29 09:31:58 +0000
commit7345d0efd44555c62ba3ce0737e20e5a711ca7e8 (patch)
treef7e7df6a732c0ca30cc3c3146de3ecc1a3d985f7 /win32/win32.h
parent62280094cddf1f39c51dee094d943893a6401708 (diff)
* win32/win32.c (rb_w32_open_osfhandle): adjust
rb_w32_open_osfhandle() with _open_osfhandle(). * win32/win32.c (rb_w32_accept, rb_w32_socket): return -1 on error. * win32/win32.h: should use file descriptor instead of SOCKET. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.h')
-rw-r--r--win32/win32.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/win32/win32.h b/win32/win32.h
index 136706a5acb..23bac71fbfb 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -163,25 +163,25 @@ extern pid_t pipe_exec(char *, int, FILE **, FILE **);
extern int flock(int fd, int oper);
extern int rb_w32_fddup(int);
extern void rb_w32_fdclose(FILE *);
-extern SOCKET rb_w32_accept(SOCKET, struct sockaddr *, int *);
-extern int rb_w32_bind(SOCKET, struct sockaddr *, int);
-extern int rb_w32_connect(SOCKET, struct sockaddr *, 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);
extern void rb_w32_fdset(int, fd_set*);
extern void rb_w32_fdclr(int, fd_set*);
extern int rb_w32_fdisset(int, fd_set*);
extern long rb_w32_select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
-extern int rb_w32_getpeername(SOCKET, struct sockaddr *, int *);
-extern int rb_w32_getsockname(SOCKET, struct sockaddr *, int *);
-extern int rb_w32_getsockopt(SOCKET, int, int, char *, int *);
-extern int rb_w32_ioctlsocket(SOCKET, long, u_long *);
-extern int rb_w32_listen(SOCKET, int);
-extern int rb_w32_recv(SOCKET, char *, int, int);
-extern int rb_w32_recvfrom(SOCKET, char *, int, int, struct sockaddr *, int *);
-extern int rb_w32_send(SOCKET, char *, int, int);
-extern int rb_w32_sendto(SOCKET, char *, int, int, struct sockaddr *, int);
-extern int rb_w32_setsockopt(SOCKET, int, int, char *, int);
-extern int rb_w32_shutdown(SOCKET, int);
-extern SOCKET rb_w32_socket(int, int, int);
+extern int rb_w32_getpeername(int, struct sockaddr *, int *);
+extern int rb_w32_getsockname(int, struct sockaddr *, int *);
+extern int rb_w32_getsockopt(int, int, int, char *, int *);
+extern int rb_w32_ioctlsocket(int, long, u_long *);
+extern int rb_w32_listen(int, int);
+extern int rb_w32_recv(int, char *, int, int);
+extern int rb_w32_recvfrom(int, char *, int, int, struct sockaddr *, int *);
+extern int rb_w32_send(int, char *, int, int);
+extern int rb_w32_sendto(int, char *, int, int, struct sockaddr *, int);
+extern int rb_w32_setsockopt(int, int, int, char *, int);
+extern int rb_w32_shutdown(int, int);
+extern int rb_w32_socket(int, int, int);
extern SOCKET rb_w32_get_osfhandle(int);
extern struct hostent * rb_w32_gethostbyaddr(char *, int, int);
extern struct hostent * rb_w32_gethostbyname(char *);