summaryrefslogtreecommitdiff
path: root/win32/runperl.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-05-01 19:21:02 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-05-01 19:21:02 +0000
commit9e6b2b00f0190751b970ece3db7033405cb08ca5 (patch)
treee18c55b12253c77b6eedaa130c83d59345c1ba17 /win32/runperl.c
parent891fc7f27629745a734e804217bbdaf86146df17 (diff)
downloadperl-9e6b2b00f0190751b970ece3db7033405cb08ca5.tar.gz
[asperl] add AS patch#20 (exposes more global constants)
p4raw-id: //depot/asperl@908
Diffstat (limited to 'win32/runperl.c')
-rw-r--r--win32/runperl.c25
1 files changed, 21 insertions, 4 deletions
diff --git a/win32/runperl.c b/win32/runperl.c
index cfa195d044..9f8c26af6f 100644
--- a/win32/runperl.c
+++ b/win32/runperl.c
@@ -243,14 +243,14 @@ public:
char *r = win32_inet_ntoa(in);
PROCESS_AND_RETURN;
};
- virtual int IoctlSocket(SOCKET s, long cmd, u_long *argp, int& err)
+ virtual int Listen(SOCKET s, int backlog, int &err)
{
- int r = win32_ioctlsocket(s, cmd, argp);
+ int r = win32_listen(s, backlog);
PROCESS_AND_RETURN;
};
- virtual int Listen(SOCKET s, int backlog, int &err)
+ virtual int Recv(SOCKET s, char* buffer, int len, int flags, int &err)
{
- int r = win32_listen(s, backlog);
+ int r = win32_recv(s, buffer, len, flags);
PROCESS_AND_RETURN;
};
virtual int Recvfrom(SOCKET s, char* buffer, int len, int flags, struct sockaddr* from, int* fromlen, int &err)
@@ -309,6 +309,16 @@ public:
croak("socketpair not implemented!\n");
return 0;
};
+ virtual int Closesocket(SOCKET s, int& err)
+ {
+ int r = win32_closesocket(s);
+ PROCESS_AND_RETURN;
+ };
+ virtual int Ioctlsocket(SOCKET s, long cmd, u_long *argp, int& err)
+ {
+ int r = win32_ioctlsocket(s, cmd, argp);
+ PROCESS_AND_RETURN;
+ };
};
@@ -724,6 +734,13 @@ public:
FILE *f = (FILE*)pf;
return FILE_ptr(f);
};
+ virtual char* Gets(PerlIO* pf, char* s, int n, int& err)
+ {
+ char* ret = win32_fgets(s, n, (FILE*)pf);
+ if(errno)
+ err = errno;
+ return ret;
+ };
virtual int Putc(PerlIO* pf, int c, int &err)
{
CALLFUNCERR(win32_fputc(c, (FILE*)pf))