[pypy-svn] r20851 - in pypy/dist/pypy/translator/c: . src
ale at codespeak.net
ale at codespeak.net
Wed Dec 7 17:35:56 CET 2005
Author: ale
Date: Wed Dec 7 17:35:54 2005
New Revision: 20851
Modified:
pypy/dist/pypy/translator/c/extfunc.py
pypy/dist/pypy/translator/c/src/ll__socket.h
Log:
(nik,ale)
Well, newsocket works ( without any error checking whatsoever)
Modified: pypy/dist/pypy/translator/c/extfunc.py
==============================================================================
--- pypy/dist/pypy/translator/c/extfunc.py (original)
+++ pypy/dist/pypy/translator/c/extfunc.py Wed Dec 7 17:35:54 2005
@@ -66,6 +66,7 @@
ll__socket.ll__socket_htons: 'LL__socket_htons',
ll__socket.ll__socket_htonl: 'LL__socket_htonl',
ll__socket.ll__socket_ntohl: 'LL__socket_htonl',
+ ll__socket.ll__socket_newsocket: 'LL__socket_newsocket',
}
#______________________________________________________
Modified: pypy/dist/pypy/translator/c/src/ll__socket.h
==============================================================================
--- pypy/dist/pypy/translator/c/src/ll__socket.h (original)
+++ pypy/dist/pypy/translator/c/src/ll__socket.h Wed Dec 7 17:35:54 2005
@@ -13,6 +13,7 @@
int LL__socket_htons(int ntohs);
long LL__socket_ntohl(long htonl);
long LL__socket_htonl(long ntohl);
+int LL__socket_newsocket(int family, int type, int protocol);
RPyString *LL__socket_gethostname(void);
RPyString *LL__socket_gethostbyname(RPyString *name);
struct RPyOpaque_ADDRINFO *LL__socket_getaddrinfo(RPyString *host, RPyString *port,
@@ -75,6 +76,10 @@
return htonl(ntohl);
}
+int LL__socket_newsocket(int family, int type, int protocol)
+{
+ return socket(family, type, protocol);
+}
/* ____________________________________________________________________________ */
/* Lock to allow python interpreter to continue, but only allow one
More information about the Pypy-commit
mailing list