]> sjero.net Git - wget/commitdiff
[svn] Also wrap accept() and listen() on Windows.
authorhniksic <devnull@localhost>
Sun, 3 Jul 2005 20:43:57 +0000 (13:43 -0700)
committerhniksic <devnull@localhost>
Sun, 3 Jul 2005 20:43:57 +0000 (13:43 -0700)
src/ChangeLog
src/mswindows.c
src/mswindows.h

index a51ad87d098cb686d4d5919eb87510381be25bed..7e4088fea70c235927b2e73fa986f29a79c09b90 100644 (file)
@@ -1,3 +1,7 @@
+2005-07-03  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * mswindows.h: Also wrap accept() and listen().
+
 2005-07-03  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * url.c (path_end): Skip separators appropriate for the scheme.
index 245114fe5280d70b048947f613438fbd18ceb08e..93eb71d1ebe60950db34164b650e67d3fd505511 100644 (file)
@@ -752,6 +752,8 @@ run_with_timeout (double seconds, void (*fun) (void *), void *arg)
 WRAP (socket, (int domain, int type, int protocol), (domain, type, protocol))
 WRAP (bind, (int s, struct sockaddr *a, int alen), (s, a, alen))
 WRAP (connect, (int s, const struct sockaddr *a, int alen), (s, a, alen))
+WRAP (listen, (int s, int backlog), (s, backlog))
+WRAP (accept, (int s, struct sockaddr *a, int *alen), (s, a, alen))
 WRAP (recv, (int s, void *buf, int len, int flags), (s, buf, len, flags))
 WRAP (send, (int s, const void *buf, int len, int flags), (s, buf, len, flags))
 WRAP (select, (int n, fd_set *r, fd_set *w, fd_set *e, const struct timeval *tm),
index 877bbff3c07ee33a593c0ab6b6d7bcac639e358f..df8e8c2d7bf482c73105a9332eedb3157bcd9e10 100644 (file)
@@ -149,6 +149,8 @@ const char *inet_ntop (int, const void *, char *, socklen_t);
 #define socket wrapped_socket
 #define bind wrapped_bind
 #define connect wrapped_connect
+#define listen wrapped_listen
+#define accept wrapped_accept
 #define recv wrapped_recv
 #define send wrapped_send
 #define select wrapped_select
@@ -162,6 +164,8 @@ const char *inet_ntop (int, const void *, char *, socklen_t);
 int wrapped_socket (int, int, int);
 int wrapped_bind (int, struct sockaddr *, int);
 int wrapped_connect (int, const struct sockaddr *, int);
+int wrapped_listen (int s, int backlog);
+int wrapped_accept (int s, struct sockaddr *a, int *alen);
 int wrapped_recv (int, void *, int, int);
 int wrapped_send (int, const void *, int, int);
 int wrapped_select (int, fd_set *, fd_set *, fd_set *, const struct timeval *);