aboutsummaryrefslogtreecommitdiff
path: root/include/mingw.h
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2015-04-22 21:20:40 +0100
committerRon Yorston <rmy@pobox.com>2015-04-22 21:20:40 +0100
commit683b593c838db1fc2c2e303bb3811a4503e98a9b (patch)
tree61ac8cc87c3fd6c9c3faa1a0970986fa5429a443 /include/mingw.h
parentf40a7116939fce9574c8095a83026a0d68a20a27 (diff)
downloadbusybox-w32-683b593c838db1fc2c2e303bb3811a4503e98a9b.tar.gz
busybox-w32-683b593c838db1fc2c2e303bb3811a4503e98a9b.tar.bz2
busybox-w32-683b593c838db1fc2c2e303bb3811a4503e98a9b.zip
mingw: additional networking support
Diffstat (limited to 'include/mingw.h')
-rw-r--r--include/mingw.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/include/mingw.h b/include/mingw.h
index 247aae587..86259f2d1 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -217,18 +217,29 @@ int ioctl(int fd, int code, ...);
217 */ 217 */
218#define hstrerror strerror 218#define hstrerror strerror
219 219
220#define SHUT_WR SD_SEND
221
220int mingw_socket(int domain, int type, int protocol); 222int mingw_socket(int domain, int type, int protocol);
221int mingw_connect(int sockfd, struct sockaddr *sa, size_t sz); 223int mingw_connect(int sockfd, struct sockaddr *sa, size_t sz);
224int mingw_bind(int sockfd, struct sockaddr *sa, size_t sz);
225int mingw_setsockopt(int sockfd, int lvl, int optname, void *optval, int optlen);
226int mingw_shutdown(int sockfd, int how);
227int mingw_listen(int sockfd, int backlog);
228int mingw_accept(int sockfd1, struct sockaddr *sa, socklen_t *sz);
229int mingw_select (int nfds, fd_set *rfds, fd_set *wfds, fd_set *xfds,
230 struct timeval *timeout);
222 231
223NOIMPL(mingw_sendto,SOCKET s UNUSED_PARAM, const char *buf UNUSED_PARAM, int len UNUSED_PARAM, int flags UNUSED_PARAM, const struct sockaddr *sa UNUSED_PARAM, int salen UNUSED_PARAM); 232NOIMPL(mingw_sendto,SOCKET s UNUSED_PARAM, const char *buf UNUSED_PARAM, int len UNUSED_PARAM, int flags UNUSED_PARAM, const struct sockaddr *sa UNUSED_PARAM, int salen UNUSED_PARAM);
224NOIMPL(mingw_listen,SOCKET s UNUSED_PARAM,int backlog UNUSED_PARAM);
225NOIMPL(mingw_bind,SOCKET s UNUSED_PARAM,const struct sockaddr* sa UNUSED_PARAM,int salen UNUSED_PARAM);
226 233
227#define socket mingw_socket 234#define socket mingw_socket
228#define connect mingw_connect 235#define connect mingw_connect
229#define sendto mingw_sendto 236#define sendto mingw_sendto
230#define listen mingw_listen 237#define listen mingw_listen
231#define bind mingw_bind 238#define bind mingw_bind
239#define setsockopt mingw_setsockopt
240#define shutdown mingw_shutdown
241#define accept mingw_accept
242#define select mingw_select
232 243
233/* 244/*
234 * sys/stat.h 245 * sys/stat.h