summaryrefslogtreecommitdiff
path: root/libs/libcurl/src/select.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libcurl/src/select.h')
-rw-r--r--libs/libcurl/src/select.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/libs/libcurl/src/select.h b/libs/libcurl/src/select.h
index 6af855f950..d1d3d8564b 100644
--- a/libs/libcurl/src/select.h
+++ b/libs/libcurl/src/select.h
@@ -93,7 +93,7 @@ int Curl_wait_ms(timediff_t timeout_ms);
#define FDSET_SOCK(x) 1
#define VERIFY_SOCK(x) do { \
if(!VALID_SOCK(x)) { \
- SET_SOCKERRNO(WSAEINVAL); \
+ SET_SOCKERRNO(SOCKEINVAL); \
return -1; \
} \
} while(0)
@@ -105,7 +105,7 @@ int Curl_wait_ms(timediff_t timeout_ms);
#define VERIFY_SOCK(x) do { \
if(!VALID_SOCK(x) || !FDSET_SOCK(x)) { \
- SET_SOCKERRNO(EINVAL); \
+ SET_SOCKERRNO(SOCKEINVAL); \
return -1; \
} \
} while(0)
@@ -122,6 +122,8 @@ void Curl_pollfds_init(struct curl_pollfds *cpfds,
struct pollfd *static_pfds,
unsigned int static_count);
+void Curl_pollfds_reset(struct curl_pollfds *cpfds);
+
void Curl_pollfds_cleanup(struct curl_pollfds *cpfds);
CURLcode Curl_pollfds_add_ps(struct curl_pollfds *cpfds,
@@ -130,18 +132,17 @@ CURLcode Curl_pollfds_add_ps(struct curl_pollfds *cpfds,
CURLcode Curl_pollfds_add_sock(struct curl_pollfds *cpfds,
curl_socket_t sock, short events);
-struct curl_waitfds {
+struct Curl_waitfds {
struct curl_waitfd *wfds;
unsigned int n;
unsigned int count;
};
-void Curl_waitfds_init(struct curl_waitfds *cwfds,
+void Curl_waitfds_init(struct Curl_waitfds *cwfds,
struct curl_waitfd *static_wfds,
unsigned int static_count);
-CURLcode Curl_waitfds_add_ps(struct curl_waitfds *cwfds,
- struct easy_pollset *ps);
-
+unsigned int Curl_waitfds_add_ps(struct Curl_waitfds *cwfds,
+ struct easy_pollset *ps);
#endif /* HEADER_CURL_SELECT_H */