mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Also wrap accept() and listen() on Windows.
This commit is contained in:
parent
1850c8ff95
commit
10f290cdf3
@ -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.
|
||||
|
@ -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),
|
||||
|
@ -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 *);
|
||||
|
Loading…
Reference in New Issue
Block a user