X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=win32%2Fwin32sck.c;h=49d38f33f14253017aed01e2c9124144b3370bb6;hb=d20626d86bf3d55ba658adbc2678de4c519cbc6c;hp=8bd6b6cfd5ab667112564ae68676f4eedf5f4d35;hpb=4f63d0249796d635a70b03245ad972152a3eba76;p=p5sagit%2Fp5-mst-13.2.git diff --git a/win32/win32sck.c b/win32/win32sck.c index 8bd6b6c..49d38f3 100644 --- a/win32/win32sck.c +++ b/win32/win32sck.c @@ -20,7 +20,6 @@ #if defined(PERL_OBJECT) #define NO_XSLOCKS -extern CPerlObj* pPerl; #include "XSUB.h" #endif @@ -93,6 +92,7 @@ static int wsock_started = 0; void start_sockets(void) { + dTHXo; unsigned short version; WSADATA retdata; int ret; @@ -495,8 +495,8 @@ win32_getprotobynumber(int num) struct servent * win32_getservbyname(const char *name, const char *proto) { + dTHXo; struct servent *r; - dTHX; SOCKET_TEST(r = getservbyname(name, proto), NULL); if (r) { @@ -508,8 +508,8 @@ win32_getservbyname(const char *name, const char *proto) struct servent * win32_getservbyport(int port, const char *proto) { + dTHXo; struct servent *r; - dTHX; SOCKET_TEST(r = getservbyport(port, proto), NULL); if (r) { @@ -521,6 +521,7 @@ win32_getservbyport(int port, const char *proto) int win32_ioctl(int i, unsigned int u, char *data) { + dTHXo; u_long argp = (u_long)data; int retval; @@ -561,24 +562,28 @@ win32_inet_addr(const char FAR *cp) void win32_endhostent() { + dTHXo; Perl_croak_nocontext("endhostent not implemented!\n"); } void win32_endnetent() { + dTHXo; Perl_croak_nocontext("endnetent not implemented!\n"); } void win32_endprotoent() { + dTHXo; Perl_croak_nocontext("endprotoent not implemented!\n"); } void win32_endservent() { + dTHXo; Perl_croak_nocontext("endservent not implemented!\n"); } @@ -586,6 +591,7 @@ win32_endservent() struct netent * win32_getnetent(void) { + dTHXo; Perl_croak_nocontext("getnetent not implemented!\n"); return (struct netent *) NULL; } @@ -593,6 +599,7 @@ win32_getnetent(void) struct netent * win32_getnetbyname(char *name) { + dTHXo; Perl_croak_nocontext("getnetbyname not implemented!\n"); return (struct netent *)NULL; } @@ -600,6 +607,7 @@ win32_getnetbyname(char *name) struct netent * win32_getnetbyaddr(long net, int type) { + dTHXo; Perl_croak_nocontext("getnetbyaddr not implemented!\n"); return (struct netent *)NULL; } @@ -607,6 +615,7 @@ win32_getnetbyaddr(long net, int type) struct protoent * win32_getprotoent(void) { + dTHXo; Perl_croak_nocontext("getprotoent not implemented!\n"); return (struct protoent *) NULL; } @@ -614,6 +623,7 @@ win32_getprotoent(void) struct servent * win32_getservent(void) { + dTHXo; Perl_croak_nocontext("getservent not implemented!\n"); return (struct servent *) NULL; } @@ -621,6 +631,7 @@ win32_getservent(void) void win32_sethostent(int stayopen) { + dTHXo; Perl_croak_nocontext("sethostent not implemented!\n"); } @@ -628,6 +639,7 @@ win32_sethostent(int stayopen) void win32_setnetent(int stayopen) { + dTHXo; Perl_croak_nocontext("setnetent not implemented!\n"); } @@ -635,6 +647,7 @@ win32_setnetent(int stayopen) void win32_setprotoent(int stayopen) { + dTHXo; Perl_croak_nocontext("setprotoent not implemented!\n"); } @@ -642,6 +655,7 @@ win32_setprotoent(int stayopen) void win32_setservent(int stayopen) { + dTHXo; Perl_croak_nocontext("setservent not implemented!\n"); }